TOP Contributors

  1. MIKROE (2650 codes)
  2. Alcides Ramos (350 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136542 times)
  2. FAT32 Library (69737 times)
  3. Network Ethernet Library (55842 times)
  4. USB Device Library (46178 times)
  5. Network WiFi Library (41801 times)
  6. FT800 Library (40990 times)
  7. GSM click (28923 times)
  8. PID Library (26384 times)
  9. mikroSDK (26284 times)
  10. microSD click (25299 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Example

Alarm_Clock_with_Temperature_Display

Rating:

4

Author: Dennis Lepine

Last Updated: 2013-11-30

Package Version: 1.0.0.0

Example: 1.0.0.0

Category: Timers (Real time clock)

Downloaded: 1871 times

Followed by: 2 users

License: MIT license  

Demonstration of an alarm clock as well as temperature display (DS1820). Time is interrupt driven sourced from the PIC external osc. This is more for beginners, like me, starting to learn the C programming language and MikroC Pro using the EasyPicv7.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Alarm_Clock_with_Temperature_Display" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Alarm_Clock_with_Temperature_Display" changes.

Do you want to report abuse regarding "Alarm_Clock_with_Temperature_Display".

  • Information
  • Comments (4)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Example Blog

Setup:

EasyPicv7 development board using PIC 18F45K22

Port E, BITS 0-2 and Port D bit 0 are all using pull down resistors. Set the Port dip switches accordingly.

DS1820 jumper is set for RA4 (PortA.B4).

Piezo buzzer jumper is set for RC2 (PortC.B2)

All Port LEDS are set to off using dipswitch SW4.

Operation:

RE2=Hours, RE1=Minutes, RE0=Seconds, RD0=Alarm on/off

Pressing or holding hours/minutes/seconds buttons increments the time.

Pressing the alarm on/off button for less than a half a second toggles the alarm on and off. Pressing the alarm button for more than a half a second and it enters the "set alarm" mode. In the "set alarm" mode, the hours and minutes buttons are used to set the alarm time. The seconds button has no effect.

When the alarm activates, the LCD displays "Alarm" mode and an alert tone is heard on the piezo. It remains in this mode until the user presses the alarm button. After that, the alert tone is turned off and the LCD displays regular time and temperature.

 

16x2 LCD

16x2 LCD

Shows Time and Temperature as well as Alarm "on" icon.

View full image
Operation Buttons

Operation Buttons

Indicates which port buttons do what functions.

View full image

ALSO FROM THIS AUTHOR

PC-PIC Using USB HID

0

A very easy to follow VB.net example for sending text and controlling Port B on the EasyPic (18f4550) using the HIDLibrary.dll written by Mike O'Brien. Example can be modified as needed. The PIC code is Mikro's modified HID read/write interrupt example. The HID descriptor has been modified to use 2 report ID's. Port B LED's have to be turned on.

[Learn More]

ADC_T0_VOLTS

0

This program reads an analog input on AN0(PORTA.B0) using Vcc as the reference. Both the ACD value (0-1023) and the voltage (0.000-5.000) are displayed on a 2X16LCD. This is more for beginners, like me, starting to learn the C programming language and MikroC Pro. Processor: 18F45K22 Development Board: EasyPICv7

[Learn More]

Symon Says

0

Demonstration of an old memory game, Simon Says. It uses a 128x64 GLCD. Game is played entirely by the touch screen. Uses sound effects. This is more for beginners, like me, starting to learn the C programming language and MikroC Pro using the EasyPicv7.

[Learn More]