3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Smallest Binary Clock

Smallest Binary Clock
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.

 
Remove these adsRemove these ads by Signing Up
 

Step 1Parts

Parts
«
  • small switch.JPG
  • pic16f84a.JPG
  • leds.JPG
  • leds-diffusion.JPG
  • crystal 32.768.JPG
  • 33_pf.jpg
  • 270R.jpg
  • led cut.jpg
  • last photo ←
»
For this project you will need:

1.PIC16F84A
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

« Previous StepDownload PDFView All StepsNext Step »
54 comments
1-40 of 54next »
May 7, 2012. 5:43 PMawesome746 says:
How do you set it?
May 5, 2012. 4:29 PMSuraj Grewal says:
I tryed this,pic written properly and confermed data,
but when connected to circuit given by you, ic gets hot and gets destroyed even at 3volts
but i liked your idea and will try to troubleshoot.
this thing made me crazy and even I dont know from where i got to arrange the 3 pics
ive got i just got them arranged some how.
I really want to make this thing

May 7, 2012. 9:41 AMSuraj Grewal says:
thanks
Dec 9, 2011. 8:31 AMmg9990 says:
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?
Oct 22, 2011. 11:04 AM16zzundel5 says:
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.
Oct 24, 2011. 9:43 PM16zzundel5 says:
I can't get your hex code to download. It says it is an incorrect link.
Aug 8, 2011. 10:10 AMmwagner63 says:
What programmer should i use for this that is not a jdm programmer
Jun 20, 2011. 5:09 PMtechno guy says:
You should put this on top of a wrist band and you can make a wrist watch like that.
Oct 6, 2010. 8:11 PMchinx says:
can you please give me the code for this project?pls....
Jun 14, 2011. 8:57 PMrobot1398 says:
do i have to load the rar file
May 26, 2011. 6:06 AMyaly says:
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.
May 26, 2011. 6:05 AMyaly says:
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.
May 19, 2011. 2:55 PMbotronics says:
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 "buried" 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.
May 19, 2011. 1:32 PMbotronics says:
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.
Apr 5, 2011. 4:44 AMKeganBlaydes says:
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?
Apr 5, 2011. 8:21 PMKeganBlaydes says:
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.
Mar 25, 2011. 9:27 PMrobot1398 says:
while programming we have to enter the hex code in the software?
Mar 21, 2010. 8:00 PMsobadnomad says:
Have you tried making it a watch?
What LEDs do I need?
Sep 21, 2010. 10:57 AMc1c2c3 says:
But what village?
Feb 28, 2011. 5:51 PMdungeon runner says:
Perhaps...you mean voltage?
Feb 6, 2011. 11:52 AMAeroflame says:
Hi, just wondering what battery you'd need to use to run this? Thanks
Feb 6, 2011. 12:01 PMAeroflame says:
Also, would this work with any 18 pin PIC chip?
Aug 30, 2010. 10:34 PMc1c2c3 says:
but how to connect to pc
Apr 17, 2010. 9:20 AMmitko900 says:
Hi all I make the sheme show me the time but hi is not match with the real how can I set up the clock in the real time in my country.
Thanks in advance for evry comment.
Apr 17, 2010. 12:03 PMmitko900 says:
can you make me some video example or something because in me just changing the leds one by one.
Apr 11, 2010. 10:38 AMbrooklynlord says:
i have 3 questions:

Are the button switches momentary or on/off?

How many picofarads should the load capacitance be for the crystal?

And do you must use 33 picofarads for the ceramic disk capacitors?
Apr 11, 2010. 11:46 AMbrooklynlord says:
Oh, and can there be a subsitute for the 16F84A that can be programmed with the same scripts and the JDM programmer? i find that the 16F84A in digikey is a little bit expensive.


Apr 11, 2010. 5:23 PMbrooklynlord says:
For the crystal, theres this thing called "load capacitance." I don't know how many picofarads this should be, because if you search in crystals in digikey, it ranges from 12.5 picofarads to 6 picofarads.
Feb 11, 2010. 10:15 PMbrit says:
I see the website is still up for this clock.
So the ASM and full instructions are  available.
http://www.piclist.com/techref/piclist/cheapic/binclock.htm


1-40 of 54next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
35
Followers
41
Author:macobt