<- Back to Projects
Digital electronics · project 1 of 3 · checked against the NE555 & CD4017B datasheets

NE555 → CD4017 ten-LED chaser

The 555 runs as an astable clock. Each rising edge advances the CD4017, which drives one of its ten outputs high at a time, so a single LED lights and walks down the column. This is the build version: 5 V from a USB-C breakout board, ceramic capacitors, decoupling on both chips, and a two-speed switch that adds a 10 µF capacitor.

wire clock line while the 555 output is high

Bench controls

C = C1 (switch off), or C1 + C5 (switch on)
thigh = 0.693·(R1+R2)·C
tlow = 0.693·R2·C
f = 1.44 / ((R1 + 2·R2)·C)

Readouts

Clock frequency
–
steps per second
Duty cycle
–
555 output high
Each LED lit
–
one clock period
Full sweep
–
Q0 → Q9 → Q0
LED current ≈
–
estimate, red LED
Active output
Q0
pin 3

The current estimate treats the CD4017B output as a source with a few hundred ohms of internal resistance (it falls as the supply rises), in series with the 470 Ω resistor and a 2 V LED. Use it as a guide, not a measured value.

Validation

OK

555 astable network

R1 (1 kΩ) from +V to pin 7, R2 (47 kΩ) from pin 7 to pins 6 + 2 tied together, C1 from pins 6/2 to ground. This is the textbook astable. With 1 µF it runs at about 15.2 Hz with a 50.5 % duty cycle.

OK

555 supply and reset

Pin 8 and pin 4 (active-low reset) both go to +V, and pin 1 goes to ground. Tying pin 4 high is required. Left floating, it can stop the oscillator at random.

OK

Clock path

555 pin 3 drives CD4017 pin 14 (CLK). The 4017 advances on the rising edge.

OK

CD4017 control pins

Pin 13 (clock inhibit, active low) and pin 15 (reset) are both tied to ground, so counting is enabled and never reset. Both must be tied. Floating CMOS inputs give erratic counting.

OK

CD4017 power

Pin 16 (VDD) goes to +V and pin 8 (VSS) to ground. Your drawing shows them as two short stubs away from the chip outline. They are wired correctly, but that style is easy to misread on a breadboard.

OK

Output pin numbers

Q0–Q9 = pins 3, 2, 4, 7, 10, 1, 5, 6, 9, 11 and CO = pin 12. All of them match the CD4017B datasheet. CO is an output, so leaving it unconnected is fine.

OK

LED polarity and shared resistor

The anodes go to the Q outputs and all the cathodes go to a common bus, then through 470 Ω to ground. Only one output is high at a time, so one resistor can serve all ten LEDs. The LEDs on the low outputs only see a small reverse voltage, which is harmless.

OK

Supply · USB-C breakout at 5 V

5 V suits both chips (LM555 runs from 4.5 V, CD4017B from 3 V), and USB's 4.75–5.25 V range stays inside both. Use a breakout with the two 5.1 kΩ CC pull-down resistors fitted, or a USB-C charger won't turn its output on. Check the output with a meter before connecting the circuit.

Note

LED drive · 470 Ω shared, no transistor

At 5 V each LED gets roughly 2–3 mA. The 4017 output's own resistance (several hundred ohms at 5 V) limits the current more than the 470 Ω does. That's only a few mW in the output, so it's safe, but the LEDs are dim. They're clearly visible indoors, and high-efficiency LEDs look brighter at this current. To check, measure the voltage across the 470 Ω while one LED is lit and divide by 470.

OK

SW1 speed switch · 10 µF only

C1 (1 µF) stays connected permanently. SW1 switches a single 10 µF capacitor (C5) in parallel with it. Off gives about 15 Hz (fast), on gives about 1.4 Hz (slow, easy to follow by eye). Because the 555 is never left without a timing capacitor, opening the switch can't make it race. Any SPST ON-OFF switch works. With an SPDT toggle, use the middle lug and one outer lug and leave the other outer lug empty.

Note

C1 and C5 are electrolytics · mind the polarity

+ goes to pins 6/2 (C1 directly, C5 through the switch), − to ground. The timing node always stays between about 1.7 and 3.3 V, so the voltage never reverses. Electrolytic tolerance is often ±20 %, so the slow speed can vary a little. Moving the switch while it runs can add one extra step, which is harmless.

OK

C2 · 10 nF (103) on 555 pin 5

This keeps the 555 threshold steady against supply noise.

OK

C3, C4 · 100 nF (104) at each IC

Place them with short leads directly across each chip's supply pins. Without them, the 555's switching spike can clock the 4017 twice, and LEDs get skipped.

Note

U2 socket made from two DIP-8 sockets

Butt them tightly so pins 8 and 9 sit at the normal 2.54 mm pitch. Mark the real pin-1 end: the combined socket has two notches, and inserting the 4017 backwards puts +V on its ground pin.

Chip pinouts · top view

Looking down on the chip with its legs in the board. The notch (or dot) is at the top, and pin 1 is top-left. Count down the left side, then up the right side. Each pin is labelled with what it connects to in this build.

U1 · LM555 / NE555, DIP-8
U2 · CD4017BE, DIP-16 through-hole. The CD4017BD on your order is the SOIC surface-mount version and won't fit the socket. Mark the notch end of your two butted DIP-8 sockets.
+5 V Ground Clock Timing parts LED outputs Not connected

Perfboard layout · 80 × 55 mm

Hole grid rows A–T × columns 1–30 on the FR2 board. If your board has an extra row or column, leave it empty as the margin. Bare wires along row B and row S are the +5 V and ground rails. Switch to the solder side to make the underside links. That view is drawn mirrored, exactly as you see the board turned over.

Which counter IC: use the CD4017BE (DIP-16 through-hole) from your order. The CD4017BD is the SOIC surface-mount version of the same chip. It won't fit the socket, so keep it aside.

+5 V Ground Clock Timing / switch LED drive LED cathodes

Component side: thick coloured lines are insulated wires on top. Faint dashed lines are bare links underneath.

Insulated wires

Parts and holes

Build order

  1. Rails. On the solder side, lay bare tinned wire along row B (columns 1–29) and row S (columns 1–29). Solder it every few holes.
  2. Sockets. Put the DIP-8 socket for U1 with pin 1 at F6. Put the two DIP-8 sockets for U2 end to end with pin 1 at E16. Both notches point toward row A. Mark pin 1 on U2's socket.
  3. Underside links. Switch the view to the solder side. Make every silver line with bare wire or a solder bridge between neighbouring pads. Check the pads beside each link stay separate.
  4. Low parts. Fit R1 (flat), R2 and R3 (standing upright), and C2, C3, C4 (ceramic).
  5. C1. This is the SMD electrolytic. Solder it on the solder side, across pads K12 (+) and M12 (−, stripe end).
  6. C5 (10 µF). + leg in L10, striped − leg in M10.
  7. LEDs. Long leg (anode) in row P, short leg in row Q, D1 at column 10 through D10 at column 28.
  8. Wires. Fit W1, W2 and L1–L10 with insulated wire on the component side.
  9. Off-board parts. Connect the USB-C breakout VBUS (+) to B1 and GND (−) to S1. Connect SW1's two lugs to J13 and K10 (on an SPDT toggle: middle lug to J13, one outer lug to K10).
  10. Test before inserting the chips. A meter between the B and S rails must not beep. Power up and check U1 socket pin 8 and U2 socket pin 16 read about 5 V to ground. Power off, then insert the chips.