This instructable will help you to build an Arduino Binary Clock.  The orignial idea for this instructable was designed by Daniel Andrade.  My instructable uses surface mount components, but can easily be adapted to through-hole components if you wish.  You can follow my other Instructable for Building Your Own Arduino to get started.

I would encourage you to give the surface mount an attempt however as this project is a great way to begin learning to solder surface mount components. 

For my clock, I have the display set on the top of the container. I use it on my workbench which I am usually standing at, so this way is easier to see.  It also creates a nice luminous effect when the lights are down low or off, casting the blue color upwards into the room.

You can select a container to your liking and place the clock face how it best fits your needs.
 
Remove these adsRemove these ads by Signing Up

Step 1: Component Shopping List

Duemilanove_3.jpg
Below is a list of all the items that you will need in order to complete this project.  I have tried to include places where you can order from as well as optional components that you may want to pick up.

This list is for surface mount items.  If you decide to go with through-hole components, the resources I have listed all sell them as well and you can just do a search on the component.

What You Need:
  1. ATmega168 with Arduino Bootloader - Available at FunGizmos for $4.00
  2. 10K Resistor - Available at Jameco - Cost 0.01 (ea./ 100 for $1.00) Item # 1877832
  3. 220 Ohm Resistor - Available at Jameco - Cost 0.01 (ea. / 100 for $1.00) Item # 1878149
  4. 22pF Capacitor - Available at Jameco - Cost  0.06 (ea. / 100 for $6.00) Item # 1856783
  5. 10uF Capacitor - Available at Jameco - Cost 0.12 (ea. / 10 for $1.20) Item # 1858797
  6. Pushbutton Switch - Available at Jameco - Cost  .35 ea. Item # 2076236
  7. LM78L05AC Voltage Regulator - Available at Jameco - Cost .39 ea. Item # 902186
  8. 13 LED's. I used Blue, but you can use any color. Available at Jameco - Cost .25 ea Item # 2046441
  9. 16MHz Crystal - Available at SparkFun.com - Cost 1.50 ea SKU: COM-00536
  10. DC Power Jack Connector - Available at SparkFun.com - Cost 1.25 ea. PRT-00119
  11. If you don't already have one, an Arduino Board. Available at SparkFun.com - Cost 29.95 DEV-00666 or Build Your Own Arduino
  12. PC Board (Perf Board/Proto Board) - Available at Radioshack - cost varries.
  13. Optional Protoboard - Available at Wright Hobbies - Cost 3.99 Item # PB400. I love these!
  14. Project Container. This will be used to house your clock. I went to Hobby Lobby craft store and picked up a cheap wood box for $1.99, and some scrap trim molding from Lowes for .25
  15. Translucent Acrylic - I picked up some white translucent acrylic from a local shop which cost $1 per pound.
  16. x2 SPDT Pushbuttons - Available at RadioShack -Cost $3.99 - Catalog #: 275-1549

Xexastan says: Jul 15, 2011. 5:50 PM
What pins do the buttons connect to? i have been searching these insructions (and the daniel andre site is having issues right now :( ) so i cant find out what to do. i have an arduino uno by the way :)
msumrell in reply to XexastanOct 7, 2012. 10:08 PM
Ever figure this out?
msumrell says: Oct 7, 2012. 10:07 PM
why doesnt this include instruction for how to hook up the buttons? I need to know where and how. thanks
TheBestJohn says: Jan 12, 2010. 11:42 PM
 This is definatly awesome! Now... it's time to do it with UV leds and fluorescent acrylic... awesome....

One more question that I can't seem to find the answer to anywhere. Lets say I wanted to build this and then take the microcontroller out of the arduino and have it permanently soldered onto the board (or another uC with the sketch and bootloader on it)... what has to go on the board for the circuit to still run?
ArduinoFun (author) in reply to TheBestJohnJan 13, 2010. 4:28 AM
I attached a photo to this that has everything on one board. Is this what you mean? My other Instructable at http://www.instructables.com/id/Build-Your-Own-Arduino/ shows everything you need to make the Arduino, so you would just put this on your board and arrange everything.

I added an Eagle file of just the Arduino PCB portion that I did, and Chris Mitchell emailed me for a copy and added the 16Mhz crystal and two caps rather than using the 16Mhz Resonator.

100_1777.JPG
TheBestJohn in reply to ArduinoFunJan 16, 2010. 1:01 AM
Awesome I think thats exactly what I'm looking for. Keep up the awesome work.. perhaps we'll collaborate on an instructable in the future?
roadieflip says: Nov 24, 2009. 5:06 AM
I have now made 2 versions of this clock, and both are having trouble with pin 7 not going high (unit 8 on the tens of minutes)...

Any ideas?

roadieflip in reply to roadieflipNov 24, 2009. 5:18 AM
I have run a chase program on my arduino, and pin 7 is working fine... Help, please!
roadieflip in reply to roadieflipNov 24, 2009. 8:16 AM
Don't worry, guys. I've just won the prize for being the worlds biggest f**kwit!

Maybe next time, i'll learn to read a schematic. (only been doing this electronics malarkey for years)

Nice job... My housemate wants me to build him one, now, even though I am knocking my head against a wall trying to explain binary to him...
SUC51206.JPGSUC51212.JPG
ArduinoFun (author) in reply to roadieflipNov 24, 2009. 12:02 PM
Glad you figured it out. I just got back from class and saw you posted. Went to the post and you already figured out :)

Looks nice as a shield!
cowscankill says: Nov 23, 2009. 3:38 PM
So the time in the first picture is 14:32?
ArduinoFun (author) in reply to cowscankillNov 23, 2009. 4:08 PM
Yes.
J-Manoo7 says: Oct 27, 2009. 5:25 PM
this is a win. good job. 5*
ArduinoFun (author) in reply to J-Manoo7Oct 27, 2009. 8:39 PM
Thanks! I hope you are right :)
ReCreate says: Oct 22, 2009. 10:51 PM
How well does the arduino keep track of time?
I have heard it has some problems keeping track of time, especially after several hours.
ArduinoFun (author) in reply to ReCreateOct 23, 2009. 4:23 AM
the clock is getting the time by counting the millis. and then overflows back to 0. so far I havent noticed a lagg and its been running for a couple of weeks.

ReCreate in reply to ArduinoFunOct 23, 2009. 9:31 AM
Oh yeah, I heard of that.
(And i also heard that it can only count for about 39 years! :P )
ArduinoFun (author) in reply to ReCreateOct 23, 2009. 11:58 AM
I am not sure on that. But if the Maya calendar is correct we wont have to worry about that after 2012, lol :)

I saw a project not too long ago though that mentioned they could count up to 999 years and figured after that, the people alive then could figure out an answer. I will see if I can find that link again. It might have been on the arduino playground www.arduino.cc

Do you want me to MSG you if I find the link?

The best resources I find for Arduino have come from www.arduino.cc as well as www.adafruit.com and the ITP Physical Computing Labs at http://itp.nyu.edu/physcomp/Intro/HomePage
ReCreate in reply to ArduinoFunOct 23, 2009. 4:48 PM
Sure if you want. ;)
grantskier says: Oct 22, 2009. 8:03 PM
first of all great instructable, about to build except..
what ohm resister goes with the LED's ?
thx
ArduinoFun (author) in reply to grantskierOct 22, 2009. 8:10 PM

Thanks grantskier. The LED resistors are 220 Ohm. You can use 220 Ohm through 560 Ohm depending on what you have laying around.

Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!