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.

Make A Digital Clock From Scratch

Make A Digital Clock From Scratch
«
  • PICT0008.JPG
  • PICT0011.JPG
  • PICT0005.JPG
  • PICT0004.JPG
  • PICT0002.JPG
 In some point in the life of every electronics hobbyist the need to make a clock is borned, in my case it was about a month after I soldered my first part on a board, but back then I didn't have the right tools, parts and knowledge to do such a thing.
But after about 2 years I got all the things I didn't have back then and I was ready to make my first digital clock, and with all the LEDs I had left over from my 8x8x8 LED cube project I decided to make my own custom LED clock.

So join me and build your own custom LED digital clock powered by our favorite little micro-controller the Arduino.





 
Remove these adsRemove these ads by Signing Up
 

Step 1What Do We Need?

What Do We Need?
«
  • FGU90KFG3CAMA76.MEDIUM.jpg
  • perf-board-xl.jpg
  • F10Q3CBFWM6T8W9.MEDIUM.jpg
  • PICT0002.JPG
 Here is what tools you will need to make this:
  1) Soldering Iron.
  2) Some solder wire.
  3) Small needle nose plier
  4) Small cuter
  5) Wire striper

I made my clock with a stand alone arduino without the original board because I wanted to make a finished project.

Now here are the parts you will need to make the clock:
  1) 130 LEDs.
  2) 15 2N4401 transistors.
  3) 20 1K resistors.
  4) about 10 resistors for the current protection(more detail in step 2). I used 150Ohms.
  5) DS1307 real time clock IC.
  6) one coin cell battery holder.
  7) 4 Tact switches.
  8) Prefboard (you would like to get along one for the display about 8inch*3inch)
  9) ATMega328 with arduino bootloader.
  10) A programmer for programing the chip. 
  11) 7805 voltage regulator.
  12) 16MHz crystal.
  13) two 22pF caps.
  14) 28 pin IC socket for the ATMega328.
  15)10 uF cap.
  16)0.1 uF cap.
  17) 4017 counter
  18) 32.768KHz crystal




« Previous StepDownload PDFView All StepsNext Step »
102 comments
1-40 of 102next »
May 26, 2012. 1:16 PMalsatel06 says:
Hey :)) pourriez-vous s'il vous plaît envoyez-moi des schémas de résolution d'origine et le fichier hex, mon e-mail www.alsatel06@yahoo.fr) Merci quand même

www.alsatel06@yahoo.fr

plz
Dec 25, 2011. 4:29 AMSophia Almstead says:
Hi been awhile.
The script you added to upload to the atmega328 does not work with Arduino 1.0.
Can you make an updated version of the code.
Jan 4, 2012. 8:24 AMSophia Almstead says:
nvm, already worked it out.
Apr 29, 2012. 2:51 PMfox-dyed says:
How did work this issue out? I'm running into the same trouble trying to get the program to work with 1.0
Apr 29, 2012. 5:32 PMfox-dyed says:
Figured it out and here's how:

There's an outdated standard library in his libraries called WProgram.h and in the original program.

All you do is edit the name to Arduino.h which is the name of the new standard library, but to do this you need an editor program like microsoft's visual studio to open, edit and save the new libraries. Once you've done that it should compile with no issues in 1.0.
Mar 29, 2012. 8:21 PMacao says:
I don't know what libraries to install to the Arduino... Are all the library included in the attachment above?

Thanks
Mar 15, 2012. 4:09 AMshonkhonil says:
I need pdf file.plz help me.my email address is
zahidhasan19@gmail.com
Dec 10, 2011. 8:43 AMdsteven says:
Can you send me complete source code, please... (not hex)
dave_steven1102@gmail.com

thanks!
Oct 20, 2011. 4:17 AMcarouselification says:
Hey! Nice Tutorial! I am going to try and use this for a school physics prac, and i was wondering if you could possibly email me the pdf of this? Thanks!
Nov 14, 2011. 2:06 AMdimitarmrmeski says:
Hey :)) could you please send me schematics in original resolution and the hex file,my email dime_mrme@yahoo.com ,:)) thanks anyway
Oct 20, 2011. 6:32 AMcarouselification says:
31771@cggs.act.edu.au :) Thanks!
Sep 23, 2011. 7:16 PMwellydenny says:
Please I need Schematics ....
Sep 18, 2011. 11:51 PMsevencore says:
I'll try this one for next. I already done with Syst3mX 24x6 LED Matrix for my first new hobby and success.

Thanks Syst3mX.
Aug 26, 2011. 5:11 AMelectronic boy says:
Your circuit diagram shows that 9 PNP transistors and 6 NPN transistors are needed, so why in the parts list is it stated that 15 pnp to be used ?
please respond soon
Thanx
Aug 26, 2011. 9:35 AMelectronic boy says:
Yes but your (GND driver) would require NPN transistors, wouldn't it or am i missing something, also every transistor on your circuit diagram is an NPN, hence no variation in the arrow, the arrow points away from the transistor(NPN)
Aug 25, 2011. 5:04 PMelectronic boy says:
Hey, can it be changed from 24 hour to 12 hour ?
Thanks
Aug 22, 2011. 12:01 AMheema says:
Hey, could you please send me schematics in original resolution and the hex file and can i use white led's ? , thanks :
ph-heema@hotmail.com

sorry but just one more thing how many days it took from you to make it ?
Jul 9, 2011. 7:54 PMcbadrilaa's says:
can u send me complete steps n schematics plzz..:D
membrane_owner@yahoo.com
Jun 23, 2011. 8:41 AMRITESH KAKKAR says:
Good one..............
Apr 28, 2011. 6:33 PMMr. GMD says:
Hi, first off let me say this is a great project and I would like to built it. But could you help me with the resistor calculation ? I am not getting the same values as you did. Can you put some numbers that you used to the equation?

The calculation is simple and gos like this :
R=(Vcc-Vled)/(Iled*3)
R= the resistor value
Vcc = The voltage that is supplied
Vled = the forward voltage on the LED
Iled =the current the LED takes
Apr 29, 2011. 4:40 AMMr. GMD says:
Ok, thanks alot. Also, I was not converting the mA to A before dividing. This helped me a great deal !
Thanks again.
Apr 28, 2011. 6:55 PMcrd_shinobi says:
Just dropping into your question, what's the value you got?
Apr 26, 2011. 5:32 PMpurluesky says:
I have never use arduino before or anything similar to it. Could anyone here explain to me steps by steps how to load the program onto the chips using arduino. Thank you.
Apr 20, 2011. 8:47 AMcrd_shinobi says:
The two 22pF capacitors are non-polar right?
The 10uF and 0.1uF capacitor is polarized right?

Dumb question, but how do I tell which pin is the positive pin?
Apr 20, 2011. 9:00 AMcrd_shinobi says:
Ah thanks.
Also does the voltage rating have influence on the circuit?
Apr 20, 2011. 9:20 AMcrd_shinobi says:
Ah good, I thought using 50 V might've been a problem.
Btw.
If the below is a description of a capacitor.
Description

CAPACITOR CERAMIC, 22PF, 50V, C0G/NP0, Radial
Dielectric Characteristic:C0G / NP0
Capacitance:22pF
Capacitance Tolerance:± 5%
Voltage Rating:50VDC
Series:Mono-Kap
Capacitor Case Style:Radial Leaded
No. of Pins:2
RoHS Compliant: Yes


How can I tell if that is a non polar capacitor or polar?
Apr 20, 2011. 9:56 AMcrd_shinobi says:
Alright thanks for all your help.
Apr 9, 2011. 5:52 PMcrd_shinobi says:
Hello.
Let me see if I understand your schematic.
Correct me if I'm wrong in any way, please.

There are a total of 6 digits and 4 dots.
Each digit is broken down into 7 segments.
First:
The anode pin of each led in a segment is connected with the 150 ohm resistor and the resistor is connected to the emitter pin of the 2N4401 transistor. A total of 7 2N4401 transistors are used for the 7 segments. Is all that correct?

Second:
The cathode pins in a single digit are all soldered together and is then connected to the collector of another 2N4401 transistor. Since there are 6 digits this takes 6 more 2N4401 transistors. Is that all correct?

Last:
The 4 dots are split into the 2 upper and 2 lower led.
So 2 more t2N4401 transistors are needed.
The emitter of the 2N4401 transistor is connected to the anode pin of the 2 LEDs and the cathode pin of the 2 LED are then connected to a 150 ohm resistor and then grounded.


I have a question on the last one.
Why are the resistors connected on the cathode pin of the LEDs that are used as dots and not the anode pin?

like in the 7 segments the resistors are connected to the anode pins.
Apr 7, 2011. 4:26 AMnardilla says:
where can i get programmer for programing the chip ?
1-40 of 102next »

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!
99
Followers
4
Author:Syst3mX(Vadim)
Electronics and LEDs what can be better ?! :D