Build it step by step
0 of 8 doneBuild the clock
ICM7555 with RA, the 1 kilohm plus pot, and 10 microfarad.
Check the clock
Pin 3 should pulse, a spare LED and resistor will show it.
Place the 4017
Pin 16 to 5 V, pin 8 and pin 13 to ground.
Join clock to counter
ICM7555 pin 3 to 4017 pin 14.
Add the LEDs
Ten 4.7 kilohm resistors, one per output, in order.
Add reset
10 kilohm pull-down on pin 15 and a button to 5 V.
Run it
The light should run from Q0 to Q9 and repeat.
Shorten the loop
Join pin 1 (Q5) to pin 15 for five steps.
How do you build a ten-step LED sequencer?
A CMOS timer clocks a 4017 decade counter to light ten LEDs in turn, with a reset button, a speed knob and a shorter loop option. You need CD4017 Counter, ICM7555 / LMC555 CMOS timer, Potentiometer 100 kΩ (linear), LED 5 mm red × 10, Resistor 4.7 kΩ × 10, Resistor 10 kΩ × 2, Resistor 1 kΩ, Electrolytic capacitor 10 µF, Ceramic capacitor 10 nF, Tactile push button 6 mm, 5 V 2 A USB adapter, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm). It takes 8 steps and about 150 minutes.
- Level
- Intermediate
- Time
- About 150 min
- Parts
- 13
Parts list
- Integrated CircuitsBuyCD4017 Counter × 1
- Integrated Circuits
- PassivesBuy
- SemiconductorsBuyLED 5 mm red × 10
- PassivesBuyResistor 4.7 kΩ × 10
- PassivesBuyResistor 10 kΩ × 2
- PassivesBuyResistor 1 kΩ × 1
- PassivesBuy
- PassivesBuy
- SwitchesBuy
- PowerBuy
- PrototypingBuy
- PrototypingBuy
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| 5 V adapter positive | CD4017 pin 16 (VDD), ICM7555 pin 8 and pin 4 | Power rails |
| 5 V adapter negative | CD4017 pin 8 (VSS) and ICM7555 pin 1 | Common ground |
| CD4017 pin 13 (clock inhibit) | GND | Allows counting |
| ICM7555 pin 8 | 10 kilohm RA to pin 7 | Clock charge path |
| ICM7555 pin 7 | 1 kilohm in series with the 100 kilohm pot (two wires only) to pin 6 | Speed control as RB |
| ICM7555 pin 6 joined to pin 2 | 10 microfarad capacitor to GND (stripe to ground) | Timing capacitor |
| ICM7555 pin 5 | 10 nanofarad capacitor to GND | Control decoupling |
| ICM7555 pin 3 (output) | CD4017 pin 14 (clock) | Counter steps on each rising edge |
| CD4017 pin 15 (reset) | 10 kilohm pull-down to GND, and button to 5 V | Press to return to step 0 |
| CD4017 outputs 3, 2, 4, 7, 10, 1, 5, 6, 9, 11 | 4.7 kilohm each to ten LED anodes in order | Q0 to Q9, one LED per step |
| All ten LED cathodes | GND | Common return |
Code
The CD4017 is a decade counter with ten decoded outputs. On every rising edge at its clock input, the high output moves to the next of ten pins, which makes a running light with no code at all. The clock here comes from a CMOS 555 timer in astable mode, and a pot in the timing resistor lets you change the speed from under one step a second to about twelve. The CMOS 555 is used rather than the bipolar NE555 because a CD4017 on 5 volts wants a clock high of about 3.5 volts, and the bipolar chip only reaches about 3.3 volts. The 4017 outputs can only supply about a milliamp at 5 volts, so the LEDs use 4.7 kilohm resistors. They look dim but are clear with high-brightness LEDs, whereas 330 ohm resistors would overload the outputs. The reset pin sends the counter back to step zero, held low by a pull-down resistor so it never floats, and a press of the button to the supply resets it. For a shorter loop, join the output after the last step you want to the reset pin, and the counter restarts immediately: using Q5 gives a five-step loop. Handle the CMOS chips with care, as they can be damaged by static.
Build notes (no code needed for this build) How the pieces work ICM7555 astable clock: f = 1.44 / ((RA + 2 x RB) x C) RA = 10 kilohm, RB = 1 kilohm + pot (0 to 100 kilohm), C = 10 microfarad fastest (pot at 0) : 1.44 / ((10k + 2k) x 10 uF) = about 12 steps per second slowest (pot at 100k): 1.44 / ((10k + 202k) x 10 uF) = about 0.7 steps per second The 1 kilohm in series stops the pot from shorting pin 7 to pin 6 when turned to zero. Why the CMOS 555 and not the NE555: a CD4017 on 5 V needs a clock high of about 3.5 V or more. A bipolar NE555 output at 5 V only reaches about 3.3 V, which is marginal. The ICM7555 swings close to the full supply. CD4017 pin map (each output goes high in turn on every clock rising edge) Q0 pin 3, Q1 pin 2, Q2 pin 4, Q3 pin 7, Q4 pin 10 Q5 pin 1, Q6 pin 5, Q7 pin 6, Q8 pin 9, Q9 pin 11 Pin 12 is the carry out, leave it unconnected. Pin 13 clock inhibit to GND. Pin 15 reset. LED current: a CD4017 output on 5 V can only supply about 1 mA, so each LED uses 4.7 kilohm. That gives about (5 - 1.9) / 4.7k = 0.65 mA, which is dim but clear with a high-brightness red LED. Do not use 330 ohm resistors here. Shorter loop: remove the reset button for this test and connect the output of the first step you do NOT want (for example Q5, pin 1, for a five-step loop) to the reset pin 15. The counter resets as soon as that output goes high, so Q0 to Q4 repeat. Keep the pull-down in place. Handling: CMOS inputs can be damaged by static. Touch a grounded metal object before handling, and never leave pin 14 or 15 floating.
Test checklist
What you should see at each check. If a reading is far off, stop and use the troubleshooting list.
| Check | Expected |
|---|---|
| Power on | One LED lit, stepping along the row |
| Turn the pot | Speed changes from slow to fast |
| Press reset | Light jumps back to the first LED |
| Join Q5 to reset | Only the first five LEDs light in turn |
| LED brightness | Dim but clear at about 0.65 mA |
If it does not work
Nothing lights
Check pins 16, 8 and 13 and that pin 15 is held low.
Lights jump around
A floating reset pin, check the 10 kilohm pull-down.
Counter does not step
Check the clock reaches pin 14 and pin 13 is grounded.
Order is wrong
The outputs are not in pin order, use the pin map in the notes.
LEDs too dim
Use high-brightness LEDs, not larger currents on the outputs.
Still stuck? Find the fault step by step with your multimeter →
Common questions
What parts do I need for the ten-step LED sequencer?
CD4017 Counter, ICM7555 / LMC555 CMOS timer, Potentiometer 100 kΩ (linear), LED 5 mm red × 10, Resistor 4.7 kΩ × 10, Resistor 10 kΩ × 2, Resistor 1 kΩ, Electrolytic capacitor 10 µF, Ceramic capacitor 10 nF, Tactile push button 6 mm, 5 V 2 A USB adapter, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).
How long does the ten-step LED sequencer take to build?
About 150 minutes for a intermediate maker, in 8 steps.
How do I know the ten-step LED sequencer works?
Power on: One LED lit, stepping along the row. Turn the pot: Speed changes from slow to fast. Press reset: Light jumps back to the first LED.
Nothing lights: what should I check?
Check pins 16, 8 and 13 and that pin 15 is held low.
Lights jump around: what should I check?
A floating reset pin, check the 10 kilohm pull-down.
Counter does not step: what should I check?
Check the clock reaches pin 14 and pin 13 is grounded.
Order is wrong: what should I check?
The outputs are not in pin order, use the pin map in the notes.
