TOP Contributors

  1. MIKROE (2784 codes)
  2. Alcides Ramos (403 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (132 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 (140963 times)
  2. FAT32 Library (73515 times)
  3. Network Ethernet Library (58321 times)
  4. USB Device Library (48509 times)
  5. Network WiFi Library (44132 times)
  6. FT800 Library (43687 times)
  7. GSM click (30546 times)
  8. mikroSDK (29290 times)
  9. PID Library (27220 times)
  10. microSD click (26931 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: 1910 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]

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]