This is the Smallest Binary Clock that show the time with just 4 leds.
The brain in this clock is PIC16F84A,The time will be displayed when the 'show' pushbutton is pressed. The digits of the time are displayed in BCD on the four LEDs. Tens of hours is displayed followed by hours, tens of minutes and then minutes.

Step 1: Parts

For this project you will need:

2.Crystal 32.768khz(you may find in ordinary clocks)
3.Four leds any color
4. Resistors 4x270 ohm
5. Ceramic cap 2x33 Pf
6. Push Buttons 3 peaces

<p>made it with a clap switch for remix 2.0</p>
I'm sorry, but it's not the smallest.. Mine is smaller!! ;D&lt;br /&gt;&lt;a href=&quot;http://www.mastrogippo.it/?p=54&quot;&gt;www.mastrogippo.it/&lt;/a&gt;<br/>
Sorry I found the code but,can you have it&nbsp; in hex?And what number is the chip?<br />
Schematics and code are on my website, but since it's a very old project I don't actually remember the chip name and I don't know where to find the hex... Sorry! :(<br />
<p>isn't it same sized as this -http://www.instructables.com/id/Binary-Marble-Clock/</p><p>accept the one in link is not on pcb,otherwise its same sized</p>
sorry to say but ^macobt's^ one is smaller it appears bigger in photo, his one can be made as small as the chip itself using smd leds
This is good watch,Bravo.Can you post me the schematic and code for this project.<br />Regards macobt<br />
how do you cut the tops off the LEDs
<p>Recently I bought blue 5mm(and only blue leds were available) leds with flat tops</p>
About how much does it cost to make?
<p>costs about 4$ for me</p>
My final version with cr2032 can run 3 days with full accuracy,(after that it looses accuracy)
Very good job suraj.
If I want to use a crystal with a different value, could I change something in the code to accommodate?
No you cant use difrent crystal,the time will speed up or speed down
Okay, so I can't just tell the code to act differently?
I made one too- <br> <br> <br>last time i burnt the crystal this time all went ok
have you tried surface mount resisters? it would give a much cleaner look
I tryed this,pic written properly and confermed data, <br>but when connected to circuit given by you, ic gets hot and gets destroyed even at 3volts <br>but i liked your idea and will try to troubleshoot. <br>this thing made me crazy and even I dont know from where i got to arrange the 3 pics <br>ive got i just got them arranged some how. <br>I really want to make this thing <br> <br>
Late reply, I know, but did you fix the problem? What was wrong?
i've tried it third time <br>but the same chip i reprogrammed to make macobt's other clock <br>ill make a video on it also onse i make it compact <br>its a single digit numeric clock
First you will need to use new pic,because if the pic get hot that mean that the pic is dead :( As you can see the circuit is very simple,check your programmer its ok. <br>Or send me some pictures to see.macobt@gmail.com
thanks <br>
hey do i need to program it, i think i do so with which am i suppose to program is it Arduino Uno? thanks also is there a way to make it without programming? thanks
This is PIC microcontroller,its not arduino.
http://www.instructables.com/id/Simple-JDM-PIC-Programmer/ <br>this worked for me
This is not an Arduino chip, it is a PIC. There are many different programmable microcontrollers around, Arduino just happens to be the easiest for beginners.
Hi, just wondering what battery you'd need to use to run this? Thanks
Also, would this work with any 18 pin PIC chip?
Hello<br>This clock works with PIC16F84 microcontroller,and voltage is 5 volts.
How should I download the program on the micro-controller? Do I need to connect it to a breadboard or something?
could you maybe help me? im trying to make a clock very similar to this accept the led changes every hour and it shows 12 leds (one for each hour) Could i do this in a similar way to yours?
Here are pictures of my board design and Eagle schematic. If anyone would like these files, please email me. I just placed an order with BatchPCB and Futurlec for the board and components, respectively. I am very excited for this project! If anyone would like me to program their PIC, I can do that.
great job,just keep going with good work.
I can't get your hex code to download. It says it is an incorrect link.<br>
Here is new link<br>https://rapidshare.com/files/4206999002/Clock_2.hex
What programmer should i use for this that is not a jdm programmer
You should put this on top of a wrist band and you can make a wrist watch like that.
can you please give me the code for this project?pls....
The hex code for the clock is in step 2(programming and wireing)
do i have to load the rar file
hi i have all the components but when i plug my micro controller to be programed it gives me an error. the pic16f84a i have is brand new and i tried several programing softwares and serial and usb programming boards i even tried different hex files please help.
hi i have all the components but when i plug my micro controller to be programed it gives me an error. the pic16f84a i have is brand new and i tried several programing softwares and serial and usb programming boards i even tried different hex files please help.
I got the hex code to load with the pickit 2. What ever the problem i had earlier was my ICD on my other programmer got confused. The compiled .ASM code matches the hex file. So nothing funny is &quot;buried&quot; in the code. I set up a protoboard to test the pic. It seems to run. One problem I see is this. You really can't tell which digit is being flashed out. 01:00 can look the same as 00:01. There is nothing to tell what digit position is indicated. We need an extra led to show the pacing of the leds.
When I load the hex code with pickit2, it says its not a valid hex code. If you click on the hex file, a box opens and asks how to set up a comport. What is going on with this file? A true hex file is just a list of hexadecimal characters, should not have code to cause a comment box to open. It might be better to run the .asm file thru mplab and do a quick build (which I'm going to do now) and make the .hex code. By the way, a 16f628 is not exactly like a 16F84A. The allocation of memory and ports may be different. Just depends on the application.
i have a quick question to ask. after assembling the clock and (correctly) transferring the .hex file onto the pic 16f84a, the clock itself doesnt do a thing. when connected to the battery, it only sits there, like it probably should. but after you press any button, nothing happens. they only thing that i can make it do is to quickly flash all 4 LEDs when i connect it to 12V+. and even that only happens with 2 second delay. any clues what might be wrong here?
the clock is not working on 12 volts,its working on 5volts,if you connect the microcontroller on 12 volts its gona burn.
i am aware of that. but as i said, anything below 12 volts doesnt give any response whatsoever. the 12 volts part was just an extreme test to see if anything works at all.
while programming we have to enter the hex code in the software?<br>

About This Instructable


49 favorites


Bio: My name is marjancho and I love electronics,makeing gadgets,hack and pranks.
More by macobt: Monster 10,000 Lumens 1000w equiv.LED Flashlight How To Make 3D Hologram Projector - No Glasses ✔Convert Air Freshener Into Dynamo Generator
Add instructable to: