MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › Building an LED chaser with the CD4017
HomeModels
Table of contents

On this page

Electrical & Electronic Basics (600 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

Building an LED chaser with the CD4017

The CD4017 is a CMOS decade counter with built-in decode, and one chip runs a ten-light chaser. This page covers the pins, the chaser wiring, speed control and expansion.

1. How it works

Chip character: inside is a 5-stage Johnson counter with decode, so ten outputs Q0 to Q9 walk high in turn, one per clock edge, and only one output is high at any moment, a natural fit for an LED chaser. It has CLK, an inverted CLKbar, RST reset, active high and returning to zero, and EN enable, halting while high. CMOS supply spans 3 to 15V with low static drain.

2. Numbers and practice

Chaser wiring: feed CLK from a clock source, a 555 oscillator or an MCU, and wire each of Q0 to Q9 through a current-limiting resistor into an LED to ground. Every pulse advances the lit position by one, and ten positions loop into a running light. Keep RST grounded, pulse it high to restart from the head, and ground EN to enable. The clock sets the speed: a few hertz reads as a moving dot, much faster blurs into a smear.

3. Pitfalls and fixes

Expansion and cautions: cascade chips by taking the Q9 of the front chip through an inverter into the CLK of the next, so finishing ten positions advances the following chip for more than ten channels, twenty for example. Never leave CMOS inputs floating, tie unused inputs to ground or supply; outputs only source a few milliamps, so big lamps need a transistor. Do not skimp on supply decoupling.

4. CD4017 key pin quick reference

PinNameFunction
CLKClockAdvances on rising edge
CLKbarInverted clockAdvances on falling edge
RSTResetReturns to zero when high
ENEnablePauses when high
Q0 to Q9OutputsOne high, walking
VDD and VSSSupply3 to 15V

5. Notes

Wire each Q through a resistor into an LED for the chaser; cascade by triggering the next chip from Q9. CMOS pins must not float, and big loads need a driver transistor.

6. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Sequential control per GB/T 4728 and IEC 60617 symbols. Always check the device datasheet and the product design file for ratings and derating.

7. Cautions

⚠️ Three common pitfalls:
① CMOS inputs left floating:they pick up noise and the light sequence wanders
② Output driving a big lamp directly:current beyond spec cooks the chip
③ RST left floating instead of grounded:spurious resets restart the chase from the head

Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL