Instructables
Picture of Binary Clock
p7150057.jpg
p7150054.jpg
Here is a simple example how to build cool looking binary 24 hour clock. Red LEDs shows seconds, green LEDs minutes and yellow LEDs hours.

Case contains four buttons to adjust the time. Clock works with 9 volts.

This clock is easy to do and parts cost only few bucks, so it is also cheap to do.
 
Remove these adsRemove these ads by Signing Up

Step 1: Schematic And Parts

Picture of Schematic And Parts
I used the blue colored case, because it was cheap and looked good to my eyes.

Parts:
- Clock crystal (Q1) 32.768 kHz.
I think the easiest way to get that crystal is take it from the old wall clock.

- 560pF, 22pF capacitors and one 10M resistor

- 1 x 4060 IC, which is the 14bit ripple counter.
With 32.768 KHz clock crystal this IC gives 2Hz out from the pin number 3

- 3 x 4024 IC
This is 7bit ripple counter

- 2 x 4082 IC
Dual 4-input AND gate

- 1 x 2,1mm plugin

- 17 x led
Red, yellow, green or what ever you like

- 17 x 470 Ohm resistors
I used the 9 Volt supply, so the output from the pins is something around 9V. Typical forward
voltage for these LEDs are about 2 Volts. Let's want that, the current to the LED is something about
0,015 A = 15 mA, then (9-2)V / 0,015A = 466 Ohm -> 470 Ohm is size of resistors.

Now it's time to download 4020 14-stage ripple counter data sheet and we will find that, the
max output current is 4mA =), but it is enough and works anyway.

1-40 of 140Next »
DavisM8 months ago

Hi, Im trying to build this and i was testing my and gates and the output pins stays high even when i pull all 4 inputs to ground. Help please!!

dutado3 years ago
(removed by author or community request)
looks possible, this downloads safe people.

build it and post pictures! i'll follow closely
(removed by author or community request)
Your link is dead. Is there any alternative mirror where I can download it?
justMaD5 years ago
/noobquestion
how is the whole part in front of the 4060 powered (with the crystal and all)?
all i see there is ground, and no power at all...

also you don't mention those pulldown resistors in your parts-list, maybe you should add them.

i really like your clock and your instructable, though it's a bit short and hard to understand for starters

sry, that's my first project of such kind ;)
when you find the data sheets for the ICs you'll find that for the 4060 pin 8 goes to ground and pin 16 goes to power, and for the 4024s and 4082s pin 7 is ground and pin 14 is power.
I am confused
I need to build this
Gas_2 years ago
Anyone whose clock runs too slow should look at these links for the 4060 ic and the crystal oscillator.
https://www.jameco.com/Jameco/Products/ProdDS/13151.pdf
http://www.doctronics.co.uk/4060.htm

My clock was counting slowly so i changed some of the values for the crystal oscillator. I changed C1 to 10pf, C2 to 27pf, R1 to 15M, and added a 330k resistor between pin 10 of 4060 IC and the bottom junction of R1. After changing these values the clock works perfectly
Hi there. As my name suggests, I'm a noob at this.
I have all the pieces here, and I've started setting them up on a bread board, but I wanted to know if anyone could create a sort of testing diagram?
i.e., After the 4060 IC chip, if I set it up to a LED, should the light flicker or stay solid?

Also, can the rig work without buttons? I understand the time will be off. I just mean from a technical aspect.

Thanks to anyone who may reply!
The clock will operate without the "SET" buttons. You would simply have no connection where the 3 N.O. hour/min/sec set buttons are. I think those pull-down resistors should still be used though. The N.C. set button coming out of the 4060 could be just a solid connection.

In what way did you want to test? To step the circuit manually, all you need to do is apply a voltage pulse to the CP/CLK+ (clock-pulse, pin 1 of 4024). However, that is exactly what the hour/min/sec set buttons are there for.

As for the led, if you are placing an LED in series between the 14th-bit output of the 4060 (pin 3) and the CP/CLK+ (pin 1 of 4024), I would think it should oscillate at 2Hz. It may happen that the voltage drop ends up being an issue for triggering the "seconds" 4024 CP/CLK+ though. An LED would also oscillate at 2Hz if connected (same fashion as the others) to the first output of the "seconds" 4024 (pin 12)

I just ordered my parts from DigiKey for about CA$10 and should get them in a few days, so I can finally build this thing! In the meantime, I've modeled the circuit with SPICE and have a pretty good understanding of it, with the exception of the crystal/4060 part and the importance of the values of the capacitors and the resistor.
aj2004 aj20042 years ago
In case anyone was looking to have a battery backup, here's a schematic:

http://oi40.tinypic.com/207omyb.jpg

That circuit will continue supplying power to the clock portion of the circuit while disabling the LEDs, in order to save power. The dual-diode configuration is a simple standard method to prevent "charging" of the battery by the power supply. In reality, the batteries would heat up and be damaged and/or cause damage. The transistor can be whatever run-of-the-mill NPN you want. I clocked my 5VDC circuit at maximum 50mA or so, so any NPN transistor will work. The transistor will allow current to flow from the LEDs' common cathode (-) to the circuit's ground (common/0V) while the main power supply (+9V) is on. The transistor can be omitted to remove this feature. The battery voltage should be whatever this circuit needs in order to run (3V, but maybe 4.5V needed, considering diode voltage drop). Also, a switch/button could be inserted between the collector and emitter of the transistor in order to enable the LED display by choice while on battery backup. If it doesn't work right with the transistor, maybe the 10KR resistor needs to be reduced? Also, if the supply power isn't switched quickly enough to eliminate delay (thus losing the time in the process), a capacitor could be placed parallel to either the +9V supply, or maybe the circuit's main supply.

Another quick note, this circuit will operate off a USB connection just fine, just so long as the LED resistors are the correct value. I use 1KR value for these 3.2V/20mA super-bright LEDs I got.
aj20042 years ago
This is exactly the circuit I was looking for. Anyone know of a way I might be able to power this through USB (5VDC)? If I understand correctly, the main issue is to do with the load of the LEDs. If so, could the power from each output, to each LED, be bumped up with a transistor? I don't know the power limitations of USB off hand, but disregarding that, what might I need to change in order to convert this circuit to 5V instead of 9V? My issue is simply with needing to plug it into 120VAC with an adapter. It seems overkill, though I get the need for such voltage.

Thanks
This is what I was looking for!!! I was going to make a computer from scratch but this is where I wanted to start. Do you have a larger image of the schematic that I can use?
lehthanis2 years ago
I got this sort of working. Very nice schematic. I remade it in Eagle, and cleaned up the schematic based on my specific LED's and the capacitance of my crystal. I also changed the 4060 portion to match the circuit on the doctronics page (220k trimmer and 10M voltage limiter) I also changed it to a 15pF cap on pin 10 and 2.2-22pF trimmer cap on pin 11 of the 4060.

I'm getting some skipped digits on the hours and minutes...I'm going to have to evaluate which digits and see if I can figure out what's causing it...but I'm very pleased with this circuit...I'm going to try and modify it to keep time with a watch battery and light the LED's with the 9V external power. Assuming the watch battery will power all of those CMOS IC's.
sgandhi2 years ago
Is the set button a momentary button like this:
http://www.roleepolee.com/products/roleepolee/microswitch6167a.jpg

If so, how would the seconds 4024 counter get pulses when you release this button?
lehthanis2 years ago
I went to buy the parts, and the first thing I looked at were the 470 Ohm Resistors. They come in 1/8 Watt, 1/4 Watt, and 1/2 Watt...Which ones do I buy? Will I have that same issue with the other parts? Also are the capacitors microfarads or picofarads? I saw a 22 microfarad electrolytic capacitor...is that what I need?

Thanks! Can't wait to build this!
Nitemare3 years ago
what if the clock gains or loses time? is that where the 39pF trimmer capacitor comes in? or should the oscillator keep accurate time no matter the value of the capacitor?
jermatln3 years ago
I am having an issue my clock is counting however it is counting slower then it should it takes about 100 seconds for a minute to pass. I am doing this for a school project so help would be greatly appreciated. thank you
sxdemon4 years ago
Why are you taking outputs from different pin numbers on the first and second ripple counters? (the ones calculating seconds and minutes respectively) Would you not be trying to get the same value of 60 from each counter? (60 seconds = 1 minute and 60 minutes = 1 hour)
ktucek sxdemon3 years ago
the 14 bit counter reduces the frequency to only 2 hz, which means that you need to count 2 signals for one second - that's why the first counter in loop is moved by one bit... on the "next step" its explained ;)
zezin3 years ago
Where is the 4020 in the schematic?
jensenr303 years ago
I really like this project. It is very well-documented. The pictures are great!

I'm subbed.
iiisao3 years ago
this never worked out for me ... i tried lot's of things, and the clock never did anything.
ASDF36 years ago
Could you please elaborate with respect to the components in the upper-left portion of your diagram? What are the components listed as SET_SEC, SET_MIN, SET_HOUR, PULL_DOWN_SEC, PULL_DOWN_MIN, PULL_DOWN_HOUR, J1, VDD and VSS? Also, what is SET connected to terminal 3 of the 14 bit counter? I am eager to try to build this, but want to know exactly what to do first. Thank you for your help!
iideetee (author)  ASDF36 years ago
SET_SEC, SET_MIN, SET_HOUR, SET are on/off buttons.
PULL_DOWN_SEC, PULL_DOWN_MIN, PULL_DOWN_HOUR are pull down resistors.
J1 is 2,1mm plug in. VDD is voltage and VSS is ground.
Hope it helped =)
What does the plug for? does it need to be plugged in?
iideetee (author)  NetReaper5 years ago
Yep, it will kill 9V battery too fast, that's why there is also change to use transformer.
Shoot.. this blows my plan of installing all this in a Altoids tin and having it be portable. Anyway i could make it portable? I'm totally new to this Circuits and Electronics thing, but am willing to take a headfirst plunge into it. Any suggestions?
Okay, i have a idea. Would it be possible to cut the power to the LED's but keep the power to the rest as to save the time and not wipe it. Installing a press switch to activate the LED's then let go to turn them off? I don't know anything about this stuff, so, i'm basically trying to be creative on conserving energy.
Yea, if you were interested you could definitely add a push button or a switch to cut off power to the LEDs. Since all the LEDs are connected on one side to ground, simply connect a N.O. button between the LEDs and ground. When you press the button the LEDs would then get power (more accurately a ground source) and can light.
Quick question - it looks like SET_SEC, SET_MIN, and SET_HOUR must be N.O. switches, and SET must be N.C.  Is that correct?
iideetee (author)  davidmac20035 years ago
Yes it is =)

http://www.seeedstudio.com/depot/images/product/MEC00035.JPG

and

http://www.seeedstudio.com/depot/index.php?main_page=popup_image&pID=250

Something like that.

ASDF3 iideetee6 years ago
Yes. Thank you very much! =D
beehard443 years ago
i'm trying to make a dirt cheap binary clock because, well, my budget is small. I only need minutes and not seconds, which ICs and components do i omit? sorry if i am a n00b
olso20954 years ago
Here's a good resource for learning more about using the crystal oscillator to make the time more accurate. Also, gives you an idea of how things are calculated if you need to troubleshoot a clock running too fast (like mine) or too slow. http://www.doctronics.co.uk/4060.htm
uerliza4 years ago
I apologize if either my english or my question or both are dumb, but I really want to make it and there are some information missing since I never did anything eletronic at all. The question is: How do I know what is a pull-down resistor ? I tried to buy this and couldn't find anywhere. I did some research and maybe it is a normal resistor just to make sure the signal will be 0 or 1? Could someone explain me? What do i have to buy? Thank you in advance...
ok its not dumb, but you should have gone to wikipedia first. thats what i did when i hadthe same question. a pull up resistor es a resistor which connects to Vcc ( 5V for exp) and a button, while a pull down connector connects to ground and a button. that way, its a way of making sure you pin always has input ( ov, or 5v) and you dont leave it unconnected. a pull down resistor will put 0v on your pin until you press the button and will put 5v on it while keeping the current loss to a minimum. its the same thing, pull up or down. diference is down connects to 0v the up to 5v. all good? this means it is just a normal resistor. anything above a few k Ohm should work, though it depends on the circuit
3096 years ago
hey man, this is an awesome project, but is there anyway that you can get a clearer schematics image up. I am having a really hard time reading this one.
1-40 of 140Next »