A PIC16F84A Alarm Clock

Summary of A PIC16F84A Alarm Clock


This project presents a simple weekly alarm clock using a PIC16F84A microcontroller. It keeps track of seconds, minutes, hours, and days of the week, displaying time on four seven-segment LED displays. Time settings and alarms (day, hour, minute, duration) are adjustable with three buttons. The alarm output is on the PIC's RA4 pin and indicated on the display's decimal point. The program is written in BASIC (mikroBasic), suitable for beginners. The design supports either common cathode or common anode LED displays, and the number of alarms depends on ROM space.

Parts used in the PIC16F84A Alarm Clock:

  • PIC16F84A Microcontroller
  • 4 Seven-segment LED displays (common cathode or common anode)
  • 3 push buttons (Up, Down, Enter)
  • RA4 open collector output for alarm signaling
  • Supporting passive components (resistors, capacitors as needed)
  • Power supply (not explicitly mentioned but required)

Here is a simple PIC16F84A alarm clock. This page summarizes this discussion (in french) in my forum, where Samir (aka numerique1) requested for help to build a weekly alarm clock for his school. Many thanks to him for his tests and patience.

A Alarm Clock

This clock counts seconds, minutes, hours and day of the week.
Time is displayed on 4 seven segment LED displays, and is adjustable with three buttons at start time (up, down, enter).
You can program the day of the week, hour, minute and duration of the alarms.
The number of alarms are limited by ROM space only.
The alarm is on the RA4 open collector output of the PIC, and is repeated on a decimal point of the display.

For once, the program is in BASIC (mikroBasic) and I hope it will make a good start for beginners.

First, the BASIC source code.

Schematic A Alarm Clock

Note that you can build it either for common cathod or common anode LED display.

 

For more detail: A PIC16F84A Alarm Clock


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.