You can use a PIC microcontroller and an LED matrix to create a binary clock (or if you prefer you can wire up individual LEDs).
This project uses an LED matrix block as it saves lots of wiring. So what is it ?
Its an led clock that displays the time information as binary numbers...
...and it is a good way of learning how to read binary (well up to 9 any way!).
You can represent the numbers 0-9 using 4 binary digits so only four leds are needed for each time digit. There's a binary-decimal conversion table here.
To display hours, minutes and seconds (2 digits each) you need 6 binary digits in total (depending on whether you use a 24 hour clock the top digit needs only 1 or 2 LEDs).
How to read a binary clock
the time is displayed in 24 hour mode so:
- The 1st two digits represent 0-23 hours,
- The next two digits represent 0-59 minutes,
- The next two digits represent 0-59 seconds.
|
Hours
|
MSD | 0-2 |
|
Hours
|
LSD | 0-3 |
| Minutes | MSD | 0-5 |
| Minutes | LSD | 0-9 |
| Seconds | MSD | 0-5 |
| Secondss | LSD | 0-9 |
Note: You could use a 5x7 led matrix as only the right hand 4 leds (also only 6 rows)are used in this project.
The black rectangle, in the diagram above, shows which leds you need to look at - the rest are not used in this project. You read the clock starting from the top and read horizontal row of four LEDs as a binary number. Each LED that is on represents a one and each LED that is off represents a zero. You then use the conversion table to translate it into decimal until you become so good at it that you won't need the table!
For more detail: Making a binary clock using a PIC Microcontroller
Related projects
Adaptive Alarm Clock: Build a Smart, User-Centric wake-Up system
Project Overview The goal of this ambitious undergraduate project was to develop a novel alarm clock capable of analyzing a person's unique...
Clocks & TimersDesigning Your Ideal Alarm Clock: An Introduction to PIC18
Within this laboratory session, you'll employ the C language to create an alarm clock, delving into the implementation of "C" programs on...
Clocks & TimersBuilding your Dream Alarm Clock Using the PIC18
Objective: In this laboratory session, your objective is to create an alarm clock using the C programming language. You will gain proficiency...
Clocks & TimersBuild a DIY Smart Watch Using Microcontroller
Introduction Wearables (Smart Watch) are becoming increasingly more prevalent in today's markets; however cost continues to limit the demand for such devices....
Clocks & Timers · PIC16F84AIN-8 single nixie tube clock using PIC16F84
After receiving one IN-8 tube from a friend (thanks), I decided to build myself a clock. This clock is more an ornament...
Clocks & Timers · PIC16F84APIC16F84A timer0 code and Proteus simulation
This post provides the timer0 code for PIC16F84A microcontroller. This code is written in C language using MPLAB with HI-TECH C compiler....

