Counting Without Code
You'll build a working stopwatch from counter chips, displays and a timebase you trimmed yourself, with not a line of code anywhere in it.
About
Before microcontrollers, every digital clock and counter was a handful of logic chips, and building one teaches you what the code is doing for you now. You'll make a stopwatch that counts tenths of a second on three seven-segment displays, with a 555 timebase you trim on the scope, a start button that doesn't bounce and a reset. It's thirty-odd wires on a breadboard that all have to be right, and the first time it runs it will probably count in twos because the button is bouncing. The chips cost a couple of dollars each and the whole thing comes in under fifteen. When it keeps time against your phone for ten minutes, you've understood timing, decoding and debouncing by building them.
At a glance
- Per requirement
- 35 XP
- Completion bonus
- 300 XP
- Requirements
- 6
- Takes
- Two or three weeks
- Skill level
- Intermediate (months of practice)
- Cost
- Inexpensive (under $20)
- Supplies
- You need some
- Where
- At home
- Other people
- On your own
Requirements
-
1
Draw the block diagram and pick the chips. You need a 10 Hz timebase, three decade counters with seven-segment decoding built in (the CD4026 does both in one chip), three common-cathode displays, a start-stop gate and a reset line. Draw it as blocks with arrows before you touch a part, then list the chips and look up their pinouts. Take a photo of the diagram and the parts list. Photo
-
2
Build a 10 Hz 555 timebase and trim it against the scope. An astable 555 with a trimmer pot in the timing chain gets you close. Put the scope on the output and adjust the trimmer until the period reads 100 ms as exactly as you can get it. Film the trace while you trim it in. Video
-
3
Chain three counters and displays so they count tenths, seconds and tens of seconds. The carry-out of each counter clocks the next. Wire the displays through current-limiting resistors, or they'll pull more than the chip can give. When it runs, every digit should roll over cleanly at nine. Take a photo of it counting with the three digits lit, or film it rolling over from 9.9 to 10.0. Photo or video
-
4
Add a start-stop button that doesn't bounce and a reset that works mid-count. Gate the clock through the CD4026's own clock inhibit pin or an AND gate, driven by a flip-flop that toggles on each press, and debounce the button with a capacitor and a Schmitt trigger or a 555 monostable. Reset pulls every counter's reset pin high for a moment. Film three starts and stops in a row with no double counts, then a reset from a non-zero display. Video
-
5
Run it for ten minutes beside your phone and record the drift. Start both together, stop both at ten minutes and compare. A second or two out is normal for a 555 and tells you why real clocks use crystals. Take a photo of both stopwatches stopped side by side with the drift written on tape. Photo
-
6
Move it to perfboard or a box, and show it timing something real. An egg, a sprint, a kettle or a game turn. Take a photo of the finished stopwatch in use, with the display readable. Photo