TOP Contributors

  1. MIKROE (2784 codes)
  2. Alcides Ramos (382 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (97 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 (139703 times)
  2. FAT32 Library (72095 times)
  3. Network Ethernet Library (57318 times)
  4. USB Device Library (47663 times)
  5. Network WiFi Library (43284 times)
  6. FT800 Library (42618 times)
  7. GSM click (29958 times)
  8. mikroSDK (28370 times)
  9. PID Library (26975 times)
  10. microSD click (26359 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: 1894 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

LCD_CLOCK

0

This program implements a 12H digital clock and displays it on a 2x16LCD. It uses the internal OSC and will not be as accurate over time as with using an external crystal or a real time clock (RTC) I.C. This is more for beginners, like me, starting to learn the C programming language and MikroC Pro.*RE0,RE1,RE2 have to use the pull-down resistors.

[Learn More]

PC-PIC Using Serial Comms

0

Demonstration of RS-232 serial communications between the EasyPIC v7 development board using the 18F45K22 and a windows-based PC. This is more for beginners, like me, starting to learn the C programming language and Visual Basic.

[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]