Introduction
Most electronic devices use a toggle switch or push button
to turn ON and OFF. But what if you could do this with just one button?
That’s exactly what this circuit achieves using the CD4017 Decade Counter IC.
It’s simple, efficient, and a great project for hobbyists and makers.
How It Works
The CD4017 is a decade counter/divider IC with 10
decoded outputs (Q0–Q9). Each time it receives a clock pulse, it advances to
the next output pin.
- When
you press the button, the IC receives a clock pulse.
- The
first press activates Q0 → ON state.
- The
second press activates Q1 → OFF state.
- The
cycle continues, but by wiring only two outputs (Q0 and Q1), we can create
a neat ON/OFF toggle.
Circuit Components
- CD4017
Decade Counter IC
- Push
Button (momentary switch)
- Resistors
(for pull-down/pull-up configuration, Current limiting resistor for Output
LED)
- Capacitor
(for debounce filtering)
- LED
(to demonstrate ON/OFF switching)
- Power
Supply (5Vdc)
![]() |
| One Button On/Off Circuit |
Circuit Explanation
- Clock
Input (Pin 14): A switch (S1) is connected between U1 Pin 14 and VCC.
Each press sends a pulse.
- One
resistor R1, 470 Ohm pull down resistor, is connected between Pin-14 and
GND.
- Reset
(Pin 15): Ensures the IC starts from Q0 when powered ON. Pin-15 is
connected to Pin-4. So that on the
next press, it will reset the Output, and LED, LD1, will be OFF.
- Outputs
(Q0 & Q1):
- Q0
→ Connected to the load, LED LD1, through R2 Resistor.
- Q1
→ Connected to reset or directly used to turn OFF the load.
- Debouncing:
A small capacitor C1, 100nF, across the button ensures clean pulses
without multiple triggers.
Applications
- DIY
gadgets with a single ON/OFF button
- Lamp
or fan control circuits
- Embedded
projects where minimal switches are desired
- Learning
tool for digital electronics and counters
Advantages
- Reduces
switch count (only one button needed)
- Easy
to build and understand
- Low-cost
components
- Can
be extended for more functions using other outputs of CD4017
Conclusion
This one-button ON/OFF circuit using CD4017 is a
perfect example of how digital ICs can simplify everyday electronics. With just
a push button and a counter IC, you can toggle devices ON and OFF elegantly.
It’s a great beginner-friendly project that also teaches the fundamentals of
counters and sequential logic.





