Discrete CMOS Digital Desk Clock
by jayakody2000lk in Circuits > Clocks
747 Views, 5 Favorites, 0 Comments
Discrete CMOS Digital Desk Clock
This project began with a simple idea: to build a fully functional digital desk clock using only classic CMOS logic ICs that are still readily available in local electronics markets. No microcontrollers, no firmware, no programmable logic - just counters, flip-flops, logic gates, and seven-segment decoders doing exactly what they were designed to do. The result is a 24-hour digital clock powered from a 5V, 1A supply, drawing roughly 200mA, and assembled entirely by hand on a perfboard using point-to-point wiring.
Schematic files for this project are hosted in the GitHub repository. Additionally, a PDF version is available for download within this article.
Supplies
- C1, C2 – 27pF – 2 pcs
- C3, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14, C15, C16, C17, C18, C19, C20 – 0.1µF – 17 pcs
- C4 – 1µF – 1 pc
- C21, C22, C23, C24 – 10µF – 4 pcs
- D1, D2, D3, D4 – 5mm Red LED – 4 pcs
- J1 – 5.5mm × 2.5mm DC Barrel Jack – 1 pc
- Q1 – 2SC945 (TO-92) – 1 pc
- R1–R42 – 330Ω – 42 pcs
- R43 – 10MΩ – 1 pc
- R44 – 100KΩ – 1 pc
- R45, R46, R50 – 10KΩ – 3 pcs
- R47, R49, R51, R52, R53 – 1KΩ – 5 pcs
- R48 – 22KΩ – 1 pc
- SW1 – DPDT 8mm On/Off Self-Locking Switch – 1 pc
- SW2, SW3 – SKRGAED010 Tactile Switch – 2 pcs
- U1, U3, U11 – CD4518 – 3 pcs (datasheet)
- U2, U5, U6, U8, U12, U13 – CD4511 – 6 pcs (datasheet)
- U4, U7, U9, U10, U14, U15 – 5161AH / D198K 7-segment display (0.56″) – 6 pcs (datasheet)
- U16 – CD4060 – 1 pc (datasheet)
- U17 – CD4013 – 1 pc (datasheet)
- U18 – CD4081 – 1 pc (datasheet)
- U19 – CD4071 – 1 pc (datasheet)
- U20 – CD40106 – 1 pc (datasheet)
- Y1 – 32.768kHz Crystal (2mm × 6mm) – 1 pc
- DIP-16 IC Socket – DIP-16 IC Socket – 10 pcs
- DIP-14 IC Socket – DIP-14 IC Socket – 4 pcs
- 2.54mm Female SIP Socket (40-pin) – Round Female SIP Socket – 2 pcs
- Prototype Board – 18 × 30cm FR-1 Single-Sided Board – 1 pc
- Hook-up Wire – 30AWG Wrap Wire (8 colors) – 1 set
Notes:
- All resistors are 5% tolerance, carbon film unless otherwise specified.
- Capacitors (Ceramic/Mylar):Rated for 25V or 50V operation.
- Capacitors (Electrolytic): Minimum voltage rating of 16V.
- High-quality solder wire and acid-free solder paste are required.
- For best results use a 900M-T-SK or similar chisel-style tip for optimal heat transfer.
How the Clock Works
The clock is based on a crystal-controlled time base. A 32.768kHz crystal oscillator generates a stable frequency, which is divided down to exactly 1Hz using CMOS divider and flip-flop ICs.
This 1Hz signal drives a cascade of BCD counters that count seconds, minutes, and hours. Additional logic resets the counters at 60 seconds, 60 minutes, and 24 hours to maintain correct time in a 24-hour format.
Each BCD output is decoded and displayed using seven-segment LED displays.
Downloads
Major ICs and Building Blocks
The design uses commonly available CMOS ICs such as:
- CD4060 for crystal oscillator and frequency division
- CD4013 flip-flops for signal conditioning
- CD4518 BCD counters for time counting
- CD4511 BCD-to-seven-segment decoders
- CMOS logic gates (AND, OR, Schmitt triggers) for reset and control logic
All components were selected because they are easy to source from local electronics markets.
Power Supply and Decoupling
The entire circuit operates from a regulated 5 V DC supply. The clock consumes approximately 200 mA during normal operation.
Decoupling capacitors are placed close to each IC to reduce noise and ensure stable operation. A standard 5 V, 1 A power adapter is more than sufficient for continuous use.
Building on Perfboard
Instead of using a PCB, the entire circuit was built on perfboard using point-to-point wiring. This approach allows flexibility and encourages careful signal routing and layout planning.
I recommend building the circuit in stages:
- Power distribution and decoupling
- Crystal oscillator and 1Hz time base
- Seconds counter and display
- Minutes counter and display
- Hours counter and display
- Control and reset logic
Testing each section before moving to the next makes fault-finding much easier.
Display and Wiring Tips
Seven-segment LED displays are driven through BCD-to-seven-segment decoder ICs with current-limiting resistors on each segment.
When wiring the displays:
- Keep segment wiring neat and consistent
- Double-check common-anode or common-cathode orientation
- Test each digit individually before final assembly
Good wiring discipline is especially important with point-to-point construction.
Time Setting Controls
Push buttons are used to set minutes and hours. These switches inject faster clock pulses into the counters when pressed.
The design allows time adjustment while the clock is running, and setting the minutes automatically resets the seconds to zero. All switch inputs are debounced using RC networks and Schmitt-trigger inverters for reliable operation.
Testing and Troubleshooting
After completing the wiring:
- Verify the 1Hz signal using an LED or oscilloscope
- Check counter rollovers at 60 seconds, 60 minutes, and 24 hours
- Confirm proper reset behavior
- Test time-setting buttons
Most issues in this type of build are related to wiring errors, so careful inspection goes a long way.
Enclosure and Final Assembly
Once the circuit was fully tested, it was mounted inside a homemade picture frame built from molded PVC picture-frame bars.
This enclosure gives the clock a unique look and reinforces the "fully handmade" nature of the project, combining electronics with simple mechanical fabrication.