Digital Clock Circuit
Digital Clock Circuit
Digital Clock Circuit
K A B T R O N I C S
Table of Contents
INTRODUCTION .................................................................................................. 3 UNPACKING/PARTS LIST .................................................................................. 4 SOLDERING ........................................................................................................ 5 ASSEMBLY INSTRUCTIONS .............................................................................. 7 PARTS IDENTIFICATION .................................................................................. 23 THEORY OF OPERATION ................................................................................. 28 IN CASE OF DIFFICULTY ................................................................................. 31 SPECIFICATIONS .............................................................................................. 32 CIRCUIT BOARD VIEWS ................................................................................... 33 REFERENCE DESIGNATORS........................................................................... 34 SCHEMATIC ...................................................................................................... 35
Copyright July 2, 2009 by KABtronics Document version 3 for use with PC board version 4
Page 2
K A B T R O N I C S
I N T R O D U C T I O N
Introduction
Thanks for buying this kit. After a few hours of assembly, and with a clock to show for your efforts, I hope you will thank me for offering this kit. To all the experienced electronic hobbyists, let me apologize right now for the simple tone and overload of information in this manual, I am attempting to give enough information to allow a motivated beginner a chance to get this working. All you experienced folks can turn right now to the assembly section and go for it (watch out for the 7-segment LED placement, otherwise, this kit really is as simple as it seems). If you are not skilled in soldering parts onto a PC board, you should read the soldering section and also search the web to learn about soldering, there are many good sites that teach soldering. You need to make 593 good solder joints to have the clock work. If you are not familiar with components, you should read the parts identification section, but frankly, this kit was designed for a somewhat knowledgeable electronic hobbyist. Be certain of a part before you solder it.
Page 3
K A B T R O N I C S
U N P A C K I N G / P A R T S
L I S T
Unpacking/Parts List
Gently unpack the contents of the box. Check off the items below as you unpack. This will also serve as a chance to become familiar with the parts.
Item 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
Desc 0.01 poly cap 0.1 poly cap 10000uF electrolytic cap KBL04 bridge rectifier 1N4148 diode LED, single LDS8164 7 segment display 3 Ohm 5 Watt resistor 330 resistor 4.7K resistor 82K resistor 100K resistor 180 resistor pack 47K resistor pack LM339/3302 LM7805 74LS00 74LS47 74LS51 74LS74 74LS83 74LS85 74LS90 74LS92 header, wire capture push switch Heat sink Bolt Nut Nylon Tie Strap PC Board Wall Transformer Solder Desolder Braid
Qty 1 25 1 1 1 4 6 1 4 5 1 2 5 1 1 1 1 6 1 1 1 1 3 4 1 2 1 1 1 1 1 1 1 1
Unpacked
Page 4
K A B T R O N I C S
S O L D E R I N G
Soldering
This manual cant teach the art of soldering, but here are the basics. Remember, you need to make over 590 GOOD solder joints; each bad joint will be an adventure in troubleshooting. Wet the tip of the iron with a bit of solder and wipe off the excess solder on the wet sponge occasionally, or when you notice the joint is not heating properly. The small amount of solder left on the tip helps conduct heat to the lead and the pad. Insert the component leads and press the component flat against the PC Board. Slightly spread the leads to hold it in place when you flip the board over to expose the back side with the component lead facing up.
Make good contact between the iron, the lead, and the pad on the board so the lead and the pad both heat up enough to melt the solder. It should take from 0.5 to 1 second for the joint to become hot enough to melt the solder. Dont overheat the joint, as soon as the solder melts and wicks into the joint remove the iron and hold still for a few seconds until the joint freezes.
Page 5
K A B T R O N I C S
S O L D E R I N G
A good solder joint will form a shiny curved surface bonding the lead and the pad on the PC board. If the lead wasnt heated enough to melt the solder, the solder will wick in to the pad, but will not adhere to the lead. You may notice a dark line around the lead where the solder dives down through the hole. A similar bad joint forms when the pad wasnt heated enough to melt the solder. A cold solder joint can often be fixed by reheating the joint; sometime a little more solder will be needed. More detailed instructions can be found on the internet with a little searching on the topic of soldering. After inspecting the solder joint, clip off the excess lead using the diagonal cutter. Cut at the top of the solder joint; dont dig into the solder joint.
Unsoldering
A supply of de-soldering braid is supplied with the kit. If you find the need to remove a component, use the de-solder braid by pulling out a few inches and pressing the braid against the lead and the pad using the iron. You will see the solder melt and spread into the wick leaving very little solder left in the pad. Sometimes it helps to clip the lead off the component so you can deal with each lead separately.
Optional Clean-up
The clear sticky rosin left around the solder site can be cleaned up with alcohol and a toothbrush, but be sure to let the board dry before expecting the board to operate properly. You wont hurt the circuit by powering it up, but it wont count right until the board has completely dried. Water soluble rosin-cored solder is available at hobby stores. As for me, I dont bother to clean up the board.
Page 6
K A B T R O N I C S
A S S E M B L Y
I N S T R U C T I O N S
Assembly Instructions
At the highest level, the assembly instructions are;
Place each component in its identified location with its leads through the proper holes, solder the leads into place leaving the component snugly against the PC board, and clip the component leads flush with the top of the solder joint. Repeat for all 81 components.
OK, thats a bit too short. After the following general information, there are detailed instructions. Find a location to build this clock where you have room to place the board and still have room to place the components within easy reach. Place a garbage can within reach of the work, you will find you need to deal with the clipped off leads of components. You will need the following tools to build your clock. Soldering Iron meant for electrical work Small Diagonal Cutter Very small flat-blade screwdriver to tighten the wire terminals A VOM meter to check for shorts and power supply operation Maybe an oscilloscope, while not necessary, may come in useful if you find yourself unable to diagnose a problem. If you cant fix your problem by inspection and location of bad soldering or misplaced components, you will need an oscilloscope.
Page 7
K A B T R O N I C S
A S S E M B L Y
I N S T R U C T I O N S
Component Side One side of the PC board has white paint markings, shapes, and reference designators. That marked side is the component side, upon which all the components will be placed. The following diagram is a copy of the white markings on the board, which is known as the silkscreen. Following that is the Bill of Materials, knows as the BOM.
So, to build this clock you need to; pick a location on the board, read the reference designator there, either from the board or the silkscreen drawing, use the BOM to cross index that reference to the part, find that part, place it in the holes oriented correctly, solder it in place, and clip off the leads Repeat for all components. Following the BOM, there is a suggested order of assembly. If you want to build in your own order, you may want to read through the following pages to pick up some hints on mounting odd components.
Page 8
K A B T R O N I C S
A S S E M B L Y
I N S T R U C T I O N S
Bill Of Materials
Ref C1 C2 C3 C4 C5 C6 C7 C8 C9 C10 C11 C12 C13 C14 C15 C16 C17 C18 C19 C20 C21 C22 C23 C24 C25 C26 C27 D1 D2 D3 D4 D5 D6 DIS1 DIS2 DIS3 DIS4 DIS5 DIS6 J1
Component 10000uF 0.1 0.1 0.1 0.1 0.01 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 KBL04 Bridge 1N4148 LED LED LED LED LDS8164 LDS8164 LDS8164 LDS8164 LDS8164 LDS8164 Terminal
Ref R1 R2 R3 R4 R5 R6 R7 R8 R9 R10 R11 R12 R13 RP1 RP2 RP3 RP4 RP5 RP7 SW1 SW2 U1 U2 U3 U4 U5 U6 U7 U8 U9 U10 U11 U12 U13 U14 U15 U16 U17 U18 U19 U20
Component 100K 4.7K 4.7K 82K 4.7K 4.7K 4.7K 100K 3 ohm 5 W 330 330 330 330 47K 180 180 180 180 180 PB switch PB switch LM7805 LM339 74LS92 74LS90 74LS47 74LS47 74LS00 74LS51 74LS92 74LS90 74LS47 74LS47 74LS92 74LS85 74LS83 74LS47 74LS47 74LS92 74LS90 74LS74
Page 9
K A B T R O N I C S
A S S E M B L Y
I N S T R U C T I O N S
Assembly
( ) C1 Mount this large electrolytic capacitor on its side. Be sure to place the + lead in the + hole and the lead in the other hole. Often the minus lead is shorter or marked by a line of arrows on the side. Use a nylon strap to hold it snug against the board before soldering the two leads.
( ) D1 Mount the bridge rectifier with the plus lead in the hole near the + sign. The plus side may also be beveled for identification.
Page 10
K A B T R O N I C S
A S S E M B L Y
I N S T R U C T I O N S
( ) J1 Clip off the two small plastic nubs on the bottom so it will sit flat when the leads are in the holes.
, then mount the connector with the openings for the wires towards the board edge. (You will connect the wires later)
Page 11
K A B T R O N I C S
A S S E M B L Y
I N S T R U C T I O N S
( ) U1 Mount it with a nut and a bolt and sandwich a heat sink between the IC and the board. Dont solder the three leads until the assembly is tightly fastened.
Transistor Wall Clock Kit Page 12
K A B T R O N I C S
A S S E M B L Y
I N S T R U C T I O N S
Now load the watt resistors and a diode ( ) R1 100K (Brown-Black-Yellow) ( ) R2 4.7K (Yellow-Purple-Red) ( ) R3 4.7K (Yellow-Purple-Red) ( ) R4 82K (Gray-Red-Orange) ( ) R5 4.7K (Yellow-Purple-Red) ( ) R6 4.7K (Yellow-Purple-Red) ( ) R7 4.7K (Yellow-Purple-Red) (this is missing the R7 marking on PC board Version 3, it is near R6, to above and left of C15) ) ( ) R8 100K (Brown-Black-Yellow) ( ) D2 Small Diode, 1N4148, mount with the line on the diode matching the line on the board. ( ) RP1 47K There is only one 47K resistor pack. The leads may be spread a bit wide, be gentle when bending the leads, they will break off if flexed too much. ( ) U2 LM339 or 3302 IC Mount this IC like the resistor pack, note the orientation on the package and match the silkscreen orientation.
Page 13
K A B T R O N I C S
A S S E M B L Y
I N S T R U C T I O N S
Mount the rest of the ICs ( ) U3 74LS92 ( ) U4 74LS90 ( ) U5 74LS47 ( ) U6 74LS47 ( ) U7 74LS00 ( ) U8 74LS51 ( ) U9 74LS92 ( ) U10 74LS90 ( ) U11 74LS47 ( ) U12 74LS47 ( ) U13 74LS92 ( ) U14 74LS85 ( ) U15 74LS83 ( ) U16 74LS47 ( ) U17 74LS47 ( ) U18 74LS92 ( ) U19 74LS90 ( ) U20 74LS74
Page 14
K A B T R O N I C S
A S S E M B L Y
I N S T R U C T I O N S
( ) RP5 ( ) RP7
330 330
Moount the single 0.01 poly cap. ( ) 0.01 Poly Cap at C6. The cap is marked 103 Mount all the other poly caps, they are all 0.1 value, marked 104 ( ) C2 0.1 ( ) C3 0.1
Page 15
K A B T R O N I C S
A S S E M B L Y
I N S T R U C T I O N S
0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1
( ) C17 ( ) C18 ( ) C19 ( ) C20 ( ) C21 ( ) C22 ( ) C23 ( ) C24 ( ) C25 ( ) C26 ( ) C27
0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1
Mount the four resistors in the display section ( ) R10 ( ) R11 330 330 ( ) R12 ( ) R13 330 330
Page 16
K A B T R O N I C S
A S S E M B L Y
I N S T R U C T I O N S
Mount the Displays. There is a danger of incorrectly mounting these 7 segment displays.
Page 17
K A B T R O N I C S
A S S E M B L Y
I N S T R U C T I O N S
Note how pin one is marked by the numeral 1 in the upper left. The white dot in the lower right of the silkscreen for the display is the DP - not a pin indicator. The 7-segment LED displays are missing 5 pins; 1,8,9,16,18. This allows for the part to fit into the socket two ways, the wrong way and the right way. The right way is decimal points on the lower edge and the part towards the bottom edge, closer to the Resistor Packs. Pin one hole on the board will not have a lead in it when the part is mounted correctly.
Mount the LEDs. The short pin goes in the lower hole. The lower hole is marked with a square on the silkscreen ( ) D3 LED ( ) D4 LED ( ) D5 LED ( ) D6 LED
Your wall transformer may come with prepared wires, if not, prepare the wall transformer wires as shown below.
Page 18
K A B T R O N I C S
A S S E M B L Y
I N S T R U C T I O N S
Page 19
K A B T R O N I C S
A S S E M B L Y
I N S T R U C T I O N S
Use soldering iron to tin (coat with solder) the wire ends.
Page 20
K A B T R O N I C S
A S S E M B L Y
I N S T R U C T I O N S
Thread the wall transformer wires as shown and connect the wires to the terminal. You will need a very small screw driver to tighten the terminal screws. It does not matter which wire from the wall transformer goes into which hole of the connector.
Final Tests
When the board is powered up, some of the counters can start in illegal states, such as 15 Oclock and 75 minutes, but the counters will count out of bad states and into legal times. Use the M and H switches to cycle the counters and stop at the correct time. On your first power up testing, carefully watch each digit to be sure all counts are counted, 0-9 on seconds and minutes, 0-5 on tens of seconds and tens of minutes, and 1-12 on hours. Use the H and M switches, otherwise this test would take 12 hours to complete.
Optionally Mount the Clock on a Plaque
This clock fits well on a 7 by 9 inch plaque; I recommend 6 to 10 coats of spray shellac. Then mount the clock to the plaque using the nylon standoffs screws supplied.
Page 21
K A B T R O N I C S
A S S E M B L Y
I N S T R U C T I O N S
Page 22
K A B T R O N I C S
P A R T S
I D E N T I F I C A T I O N
Parts Identification
Resistors
Resistors can be identified by the color bands as shown in the adjacent chart (if this manual is in color). These parts can be placed in either direction on the board, they are not polarized.
5 Watt Resistor
This large part is similar to the Watt resistors above but can dissipate much more power. This part is also non-polarized, the same as the watt resistors above.
Page 23
K A B T R O N I C S
P A R T S
I D E N T I F I C A T I O N
Poly Capacitors
Poly capacitors are not polarized; place them either way on the board.
Electrolytic capacitors
Electrolytic capacitors have the value printed on them. These are polarized parts; you must place them in the proper position on the board. There is only one of these on the board in the power supply section. Follow the instructions carefully when mounting this part.
Page 24
K A B T R O N I C S
P A R T S
I D E N T I F I C A T I O N
Diodes
Diodes are polarized; the line on the component needs to match the line on the PC board symbol. Diodes can be damaged by overheating them during soldering, so be quick about it, but do heat the joint enough to make a good solder joint.
Bridge Rectifier
This four pin device must be placed properly; Pin 1 is marked with a square on the board and with a bevel on the package.
DIP ICs
Page 25
K A B T R O N I C S
P A R T S
I D E N T I F I C A T I O N
These multi-pin parts must have the marking for pin one match the board markings.
LEDs
On the left is the single LED. It has a flat on the body and/or a short lead that should identify the cathode. The cathode lead should go into the square hole on the PC board. On the right is the 7 segment LED. It is in an 18 pin package outline, but many of the pins are missing AND PIN 1 IS MISSING. The danger is that you may mount this part in the wrong holes. Note that pin 1 of the symbol on the PC board is marked, even though there is no pin 1 on the part. The smaller dots on the Led display are decimal points, while they are not used in this kit, they do help orient the part. These dots should be at the lower part of the display when mounted. Just in case you hadnt figured this out yet, the LEDs are at the top edge of the finished clock. When you mount this part, you will find that it fits in two positions, up-high with pins in the highest holes, and down-low with a pin on one side in a lowest hole. The hole for pin one should be empty when you have this part mounted properly.
Switches
Theres not much to say about these switches. They will fit two ways on the board, either way will work. Dont force it in 90 degrees off.
Page 26
K A B T R O N I C S
P A R T S
I D E N T I F I C A T I O N
Page 27
K A B T R O N I C S
I N
C A S E
O F
D I F F I C U L T Y
Theory of Operation
The clock extracts 60 Hz from the power supply, divides it by 60 to get seconds, and drives a chain of counters; seconds, minutes, and hours. The counters drive 7-segment decoder/drivers to light the displays. These sections use the 74LS90 divide by 10 IC and the 74LS92 divide by 12 (6&2) IC. The 74LS47 7 segment decoder driver takes 4 bits binary number and drive the display directly. The schematic shows simple circuitry of these sections. The following sections will describe the more complex parts of the clock.
Prescale, Seconds, and Minutes
Page 28
K A B T R O N I C S
I N
C A S E
O F
D I F F I C U L T Y
60Hz Extraction
The 60 Hz extraction circuit block diagram above, and the circuit below, show the sine wave from the input 9 Volts AC being converted to a square wave, a pulse train being generated, and a capacitor being discharged by the pulse train. The reason for this complicated circuit is so that if extra noise on the power line appears, the extra pulses will be ignored and not over clock the counter chain.
Page 29
K A B T R O N I C S
I N
C A S E
O F
D I F F I C U L T Y
Power Section
The 9 volts AC is rectified to DC by the bridge, and filtered by the 10,000 uFarad capacitor. The 2.2 ohm (or maybe 3 Ohm) drops the voltage for the LM7805 regulator to share the power dissipation. The regulator produced 5 volts to power the clock.
Hours
The hours section converts a 0-11 count into a 1-12 display using a comparator and an adder. The table shows the values at the counter and adder for each count. And that is the workings of the TTL clock.
Page 30
K A B T R O N I C S
I N
C A S E
O F
D I F F I C U L T Y
In Case of Difficulty
General Troubleshooting
The most useful tool you have when troubleshooting is your brain.
Start with the data showing the problem. If one of the displays is not counting properly, stop and think about it. How is it counting? Is it changing at all? (this will tell you if the input clock is present) Is it changing at the right rate? (this will tell you if the clock to the counter is at the right frequency) Is it going through the proper number of states, even if the numbers displayed are wrong? (this will hint if the problem is in the decode/display area or the counter) Is it displaying only proper numbers, or are there odd characters and blanks showing? (this will hint at problems in the 7-segment decoders) Make a most likely guess at the problem, then gather more data to either support or refute your guess. Repeat until you find the problem. This list is my guess at the cause of any problem in decreasing order of probability; Wrong component loaded Component loaded backwards Bad solder joint causing open or short to adjacent pad A clipped-off lead has stuck to the back of the board and is shorting out the circuit The board is resting on something conductive shorting out the circuit A component is bad because; o it was over heated when soldered (medium chance) o came that way with the kit (low chance) o was damaged by static electricity when handled (unlikely) The PC board is damaged or was fabricated incorrectly (very unlikely)
So take a close look at the back of the board looking for bad solder joints and clipped leads in the area of the problem. Check for proper components and orientations. If you havent found the problem, after thoroughly thinking through the problem and checking everything you can think of, feel free to email [email protected]. I cant fix the problem for you, but I can work with you to find the problem and supply a spare part or two if needed to get you running.
Page 31
K A B T R O N I C S
S P E C I F I C A T I O N S
Specifications
PC board Size: 5 inches wide by 8 inches high (Allow inch behind board and inch above when loaded for parts clearance) Weight: About 6.5 oz (not including wood plaque), (add 9 oz for wall transformer) Power consumption: About 7.3 watts, (0.77 amps @ 9.5 volts AC) Temperature limits: Designed for room temperature operation, 60-80 F Longevity: The electrolytic capacitor will eventually dry out as the liquid gradually leaks out the pressure vent, you may need to replace it in 10 or 15 years. The LED displays will gradually grow dimmer, perhaps reaching 50% brightness in 10 or 20 years. The bridge rectifier may fail at some point, it is working hard. Any of these items can be easily replaced by you. Warrantee: There is no warrantee of any kind. KABtronics wants you to succeed and be happy with your clock, so dont hesitate to email [email protected] with questions if you are having difficulty.
Page 32
K A B T R O N I C S
Page 33
K A B T R O N I C S
Reference Designators
Ref C1 C2 C3 C4 C5 C6 C7 C8 C9 C10 C11 C12 C13 C14 C15 C16 C17 C18 C19 C20 C21 C22 C23 C24 C25 C26 C27 D1 D2 D3 D4 D5 D6 DIS1 DIS2 DIS3 DIS4 DIS5 DIS6 J1 Component 10000uF 0.1 0.1 0.1 0.1 0.01 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 KBL04 Bridge 1N4148 LED LED LED LED LDS8164 LDS8164 LDS8164 LDS8164 LDS8164 LDS8164 Terminal Ref R1 R2 R3 R4 R5 R6 R7 R8 R9 R10 R11 R12 R13 RP1 RP2 RP3 RP4 RP5 RP7 SW1 SW2 U1 U2 U3 U4 U5 U6 U7 U8 U9 U10 U11 U12 U13 U14 U15 U16 U17 U18 U19 U20 Component 100K 4.7K 4.7K 82K 4.7K 4.7K 4.7K 100K 3 Ohm 5 W 330 330 330 330 47K 180 180 180 180 180 PB switch PB switch LM7805 LM339/3302 74LS92 74LS90 74LS47 74LS47 74LS00 74LS51 74LS92 74LS90 74LS47 74LS47 74LS92 74LS85 74LS83 74LS47 74LS47 74LS92 74LS90 74LS74
Page 34
K A B T R O N I C S
Schematic
Page 35
K A B T R O N I C S
Page 36
K A B T R O N I C S
Page 37
K A B T R O N I C S
Page 38
K A B T R O N I C S
Page 39
K A B T R O N I C S
Page 40