TOP Contributors

  1. MIKROE (2656 codes)
  2. Alcides Ramos (353 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 (136853 times)
  2. FAT32 Library (69997 times)
  3. Network Ethernet Library (55993 times)
  4. USB Device Library (46293 times)
  5. Network WiFi Library (41896 times)
  6. FT800 Library (41204 times)
  7. GSM click (29012 times)
  8. PID Library (26423 times)
  9. mikroSDK (26394 times)
  10. microSD click (25385 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: 1875 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

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]

Internet Based Date-Time-Weather Sync Using The ESP8266

0

Using a ESP8266 wifi module and a 18F45K22, date and time are stripped off a Google Serv. and sync'd with the clock routine. Clock auto set. Adjusted for DST in N.A. Adjust time zone. Adjust poll times. Weather is had using Yahoo weather api. Included are the NodeMCU Lua code files used on the ESP8266. * This was just an exercise in feasibility.

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