Picture of My Arduino Binary Clock
Hi from Italy
Although many watches are created binary, my project was inspired mainly to this:
http://, very smart and funny.
I tried to improve the design and to add something personal.
I think it's a good result at the end.
The project is not difficult, requires patience, it requires a little knowledge of electronics and the use of Arduino.

Ok, check out the video and if you like it lets start!

Remove these adsRemove these ads by Signing Up

Step 1: List of materials

Picture of List of materials
Luigino scheda.jpg
-n.1 IKEA frame called "Ribba" 13x18 cm
-LED to mark hours and minutes (You have seen the first images of the LEDs that there are different colors, but of course you can change them as you like, now is the reference of the project.):
n.8 green 5 mm
n.3 red 5mm
n.2 yellow 5 mm
-LED to light the words "Hours Minutes"
n.7 white 5mm
-LED to light the numbers 1/2/4/8
n.4 pink 5mm
-LED to light the words "binary clock"
n.4 pink 3 mm
-n.24 Resistor 220 ohm (for 5mm led)
-n.4 Resistor 150 ohm (for 3mm led)
-Cartonboard thicker to make LED holder
(we will Insert the cartonboard between the glass and the bottom of the frame supporting)
-Some acetate (4-5) sheets (for inkjet or laserprint) to create the mask
-a flat wire 26 wire
-3 micro button to set hours and minutes and on/off
-A small piece of prototyping PCB to make the shield (see later)
-Some double strip
-n.1 Arduino Uno/2009 or clone or self made. I've used one Luigino assembled by me
-Power supply 6V 500ma or other Arduino compatible.
Clapoti made it!2 months ago

I finally made it... with some small modifications, and I credited your Instructable.

Cello62 (author)  Clapoti2 months ago
Great job! Very nice. Thanks for sharing
FariidaY5 months ago

I am trying to do a simulation before making this to make sure I am doing it right, but the leds keep blinking no matter what I do. Right now I don't have the hour and min leds given that they really don't need coding. Just click "start simulation"

SebastianB28 months ago

I made it after your good instruction. I made also a small circuit for the atmega 328. I soldered the led the other way, cathode (negative -short leg) to GND and the anodes (positive-long leg) to the to digital pins, didn’t read carefully, so I had to switch digitalWrite in the sketch.

msimonaƶƶi9 months ago
Grazie. gentilissimo! E complimenti per i tuoi progetti di orologi. Sono bellissimi.
msimonaƶƶi9 months ago
ciao, non mi è chiaro"a layer of gray and a white matt" te lo chiedo in italiano perché in inglese non ho capito :-(.
Sono due ulteriori strati? Quello bianco è la carta da disegno opaca, mentre quello grigio?
Cello62 (author)  msimonaƶƶi9 months ago
In sostanza devi fare in modo di evitare che la luce dei led si "diffonda" e si concentri solamente solo sulla lettera da illuminare. Per ottenere questo io ho adottato del bianco opaco, che limita la diffusione, e uno o più strati di grigio che smorzano l'intensità, fai le prove comunque. A presto
livoyema3 years ago
that is really beatiful, I made it, but I have some problems with the software. effectively, my clock is low, I lost 7minutes in 3days! have you a solution? have you modified the soft? thx for all
RickyO1 livoyema10 months ago

The loop is losing time. Imaging that lastTick is on 901 and the next loop() doesn't come around for 101 ms, then you'll be at 1002ms by the time you reach the if condition. What happens to the 2ms? They are lost. It can be even worse; you are at 999ms and the next time takes 101ms, you would end up at 1100ms, losing a whole 100ms!

Also, since you are calling millis(); twice in the original, there is a chance that the second call is further forward than the first comparison.

Try this fix:

int temp = millis();
if (temp - lastTick >= 1000) {
lasteTick = temp;

Clapoti livoyema10 months ago

I saw online that when creating a clock this is "normal" because of voltage difference and things like that... there is a "Real Time Clock" module that exists that makes sure that the time stays accurate, I don't know how it works exactly, but it could fix your problem... but hopefully you fixed your problem in the last 2 years ;)

Cello62 (author)  livoyema3 years ago
Ty for reply
No, i'm sorry, as explained there is a version 12 hours and at 24, I used the version in 24 hours and is perfect.
Sometimes there can be problems if there are changes in Arduino voltage double check if the power supply is ok.
Thx for responding so fast!
My power supply is 12V for my arduino, but I don't know how it can be the problem?
you have no delay problems on yours?
excuse me, I'm french, and my english is not fluent!
May be I can see inside the following boucle to send lasTick by serial port.
"if (millis() - lastTick >= 1000) {
lastTick = millis();
Like that, I'll see if it is really 1000 between two values.
Cello62 (author)  livoyema3 years ago
>>Thx for responding so fast!
I'm in Italy, yours email comes faster here....;-)

>>you have no delay problems on yours?
No, i'm sry
I told you about power supply is important because it is stabilized by 7 to 12 volts, power surges can cause delays.

Elec22032 years ago
Great, it looks like a bought clock
sibi.20093 years ago
Can u explain about micro switch connection between led and arduino
Cello62 (author)  sibi.20093 years ago
All i think has explained above. What isn't clear? All the micro switch have two pin, one is connected to an Analog pin of Arduino (see what) and one to GND. If you have a question again let me know. Thanks
ok ok thanks.......i also have problem with opening the code file
Cello62 (author)  sibi.20093 years ago
Is a web site problem, if you have installed Arduino IDE correctly try to rename the file as .ino or .pde , the last methods is to copy and past the text into an arduino clear sketch
thanks for your help problem has been solved
Whether v need to connect the switch with pull down resistor as given in this page
Cello62 (author)  sibi.20093 years ago
not necessary in this case isnt the same like your tutorial
Nice! I can see that you have successfully completed your project.
Cello62 (author)  Emiliano Valencia3 years ago
Thanks for the advice, I just tried to do something that is also visually beautiful.
Hey, I built a new version of my clock, be sure to check it out.
drj1133 years ago
That is a beautiful rendition of a LED clock - I love the care you have taken in making it.

Cello62 (author)  drj1133 years ago
Never like yours, I can improve .. thanks
kenyer3 years ago
Really beautiful, and much easier to read than I thought it would.
Cello62 (author)  kenyer3 years ago
Thanks very kind