How to Make Knight Rider LED Chaser
The iconic red scanner bar sweeping back and forth on K.I.T.T. from Knight Rider is one of the most recognizable light effects in pop culture history. You do not need a microcontroller or complex programming to recreate this effect; all it takes are two classic integrated circuits: an NE555 timer and a CD4017 decade counter, along with a clever diode matrix.
Required Components
| Component | Specification / Value | Quantity |
| Timer IC | NE555 Timer | 1 |
| Counter IC | CD4017 Decade Counter | 1 |
| LEDs | 5mm Red LEDs | 6 |
| Diodes | 1N4148 Fast-Switching Diodes | 6 |
| Resistors | 470 Ω (LED current limiter) | 1 |
| 1 kΩ (Timing pull-up) | 1 | |
| 47 kΩ (Timing discharge) | 1 | |
| Capacitor | 1 µF Electrolytic Capacitor | 1 |
| Power Source | 9V Battery with Snap Connector | 1 |
| Prototyping | Half- or Full-size Breadboard | 1 |
| Wiring | Jumper Wires | ~20 |
How the Circuit Works
The circuit achieves its fluid “ping-pong” back-and-forth sweep through three functional stages:

1. The Clock Generator (555 Timer)
The 555 timer is configured as an astable multivibrator (an oscillator that continuously toggles between high and low without needing an external trigger):
- Pin 4 (Reset) is tied directly to Pin 8 (VCC) to prevent accidental resets.
- Pin 2 (Trigger) and Pin 6 (Threshold) are linked together and monitor the charging voltage of the 1 µF capacitor to ground.
- The capacitor charges through the 1 kΩ and 47 kΩ resistors and discharges through the 47 kΩ resistor via Pin 7 (Discharge).
- This produces continuous square-wave clock pulses at Pin 3 that set the chasing speed.
2. The Step Sequencer (CD4017)
The clock signal from Pin 3 of the 555 enters Pin 14 (Clock Input) of the CD4017 decade counter.
- Pins 13 (Clock Inhibit) and 15 (Reset) are tied to Ground, allowing the IC to cycle freely across all ten outputs (Q0 through Q9) in sequence: Q0 → Q1 → Q2 → Q3 → Q4 → Q5 → Q6 → Q7 → Q8 → Q9
3. The Diode Steering Matrix
A standard decade counter steps linearly in one direction. To create a back-and-forth sweep across only 6 physical LEDs, the 10 outputs are paired symmetrically:
| Output Phase | Active CD4017 Pin | Target LED | Direction |
| Step 0 (Q0) | Pin 3 | LED 1 | Outward / Start |
| Step 1 (Q1) | Pin 2 | LED 2 | Forward → |
| Step 2 (Q2) | Pin 4 | LED 3 | Forward → |
| Step 3 (Q3) | Pin 7 | LED 4 | Forward → |
| Step 4 (Q4) | Pin 10 | LED 5 | Forward → |
| Step 5 (Q5) | Pin 1 | LED 6 | Turnaround point |
| Step 6 (Q6) | Pin 5 | LED 5 | Reverse ← |
| Step 7 (Q7) | Pin 6 | LED 4 | Reverse ← |
| Step 8 (Q8) | Pin 9 | LED 3 | Reverse ← |
| Step 9 (Q9) | Pin 11 | LED 2 | Reverse ← |
The 1N4148 switching diodes isolate paired outputs (e.g., Q1 and Q9). Without the diodes, a high voltage on Q1 would feed directly back into Q9 while it is held low, shorting the output stage and stalling the counter.
How to Make Knight Rider LED Chaser
Step 1: Wire the 555 Timer Section
- Place the 555 timer across the center divider of the breadboard (notch pointing left).
- Connect Pin 1 to the negative (ground) rail.
- Connect Pin 8 to the positive (VCC) rail.
- Bridge Pin 4 to Pin 8 (VCC).
- Bridge Pin 2 to Pin 6.
- Insert the 47 kΩ resistor between Pin 2 and Pin 7.
- Insert the 1 kΩ resistor between Pin 7 and Pin 8.
- Insert the 1 µF capacitor with its anode (long leg) in Pin 2 and cathode (short leg/stripe) in the negative rail.
Step 2: Wire the CD4017 Power and Control Pins
- Place the CD4017 a few rows below the 555 timer.
- Connect Pin 16 (VDD) to the positive rail.
- Connect Pin 8 (VSS/GND) to the negative rail.
- Bridge Pin 13 (Clock Inhibit) and Pin 15 (Reset) to Pin 8 (ground).
- Connect Pin 3 of the 555 to Pin 14 of the CD4017 using a jumper wire.
Step 3: Wire the Diode Matrix and LEDs
Position the 6 LEDs in a row along the bottom or side of the breadboard:
- LED 1: Connect CD4017 Pin 3 (Q0) through a 1N4148 diode (anode facing the IC pin) to the anode of LED 1.
- LED 2: Connect CD4017 Pin 2 (Q1) and Pin 11 (Q9) to the anode of the second 1N4148 diode, leading to LED 2.
- LED 3: Connect CD4017 Pin 4 (Q2) and Pin 9 (Q8) to the anode of the third diode, leading to LED 3.
- LED 4: Connect CD4017 Pin 7 (Q3) and Pin 6 (Q7) to the anode of the fourth diode, leading to LED 4.
- LED 5: Connect CD4017 Pin 10 (Q4) and Pin 5 (Q6) to the anode of the fifth diode, leading to LED 5.
- LED 6: Connect CD4017 Pin 1 (Q5) through the sixth diode to the anode of LED 6.
Step 4: Ground Return & Power
- Connect all LED cathodes together into a shared negative bus.
- Place the 470 Ω resistor in series between this shared LED bus and the negative rail of the breadboard.
- Snap the 9V battery into the buckle connector:
- Connect the red wire to the positive rail.
- Connect the black wire to the negative rail.
Tuning the Scan Speed
To adjust how fast the scanner sweeps:
- Faster sweep: Decrease the value of the timing capacitor (e.g., 0.47 µF) or lower the 47 kΩ resistor.
- Slower sweep: Increase the capacitor value (e.g., 2.2 µF or 4.7 µF) or replace the 47 kΩ resistor with a 100 kΩ potentiometer wired as a rheostat to dial in the exact speed manually.
Why does a circuit with a 10-step decade counter (CD4017) only use 6 physical LEDs to produce a back-and-forth ping-pong effect, and why are 1N4148 diodes necessary to make it work?
The CD4017 decade counter naturally advances in a single forward sequence from output 0 through output 9 on each incoming clock pulse before repeating. To turn this one-way, 10-step sequence into a smooth back-and-forth sweep across 6 LEDs, the inner four LEDs are shared between forward and reverse steps:
- Forward Sweep: Outputs Q0 through Q5 fire sequentially to illuminate LED 1 through LED 6.
- Reverse Sweep: Outputs Q6 through Q9 fire sequentially to step backward through LED 5 down to LED 2.
- Loop Restart: Output Q0 fires again, returning to LED 1 and repeating the cycle.
Because pairs of outputs share the same LED—specifically Q1 and Q9 for LED 2, Q2 and Q8 for LED 3, Q3 and Q7 for LED 4, and Q4 and Q6 for LED 5—the 1N4148 switching diodes are essential. When one output pin goes HIGH to illuminate its LED, the inactive paired output pin is held LOW. The diodes act as one-way valves that allow current to reach the LED while preventing current from back-feeding into the inactive LOW output, which would otherwise short the chip and disrupt the timing cycle.
Frequently Asked Questions
What controls the sweep speed of the LEDs?
The sweep speed is determined by the 555 timer’s clock pulse rate, which is set by the values of the timing resistors and the capacitor.
Which pins handle the directional turnaround points on the CD4017?
The turnaround points are driven individually by pin Q0 (LED 1) and pin Q5 (LED 6).
What would happen if the 1N4148 diodes were removed?
Without the diodes, current from an active output pin would back-feed into the connected inactive low pin, causing a short circuit instead of lighting the shared LED.

Author
Alex Klein is an electrical engineer with more than 15 years of expertise. He is the host of the Electro University YouTube channel, which has thousands of subscribers.
