Tsukure Mad Labs Push Button Toggle Switch

A toggle switch is used to toggle the output between two devices. Means when one device is ON, second device remains OFF and when second device is OFF, first device becomes ON. This toggle of output can be controlled using a PUSH button switch, so you can control two devices using one button. Further you can interface two Relays in place of LEDs to control the two AC appliances. We have mainly used 555 time IC and 4017 IC in this circuit.

This same circuit can be used as PUSH ON/PUSH OFF button circuit, if we remove any of the LED. One button press would ON the LED and another Press would OFF the LED.

4017 IC is a CMOS decade counter chip. It can produce output at the 10 pins (Q0 – Q9) sequentially, means it produce output one by one at the 10 output pins. This output is controlled through a LOW to HIGH clock pulse at PIN 14 (positive edge triggering). At first, output at Q0 (PIN 3) is HIGH, then with each clock pulse, output advance to the next PIN. Like one clock pulse makes the Q0 LOW and Q1 HIGH, and then the next clock pulse makes the Q1 LOW and Q2 HIGH, and so on. After the Q9, it will start from the Q0 again. So it creates sequential ON and OFF of all the 10 OUTPUT PINs.

We now know that 4017 IC output advance with a positive edge clock pulse, so we have used 555 timer IC in Monostable mode, to produce a LOW to HIGH clock pulse. We have connected a button on Trigger PIN 2 of 555 IC, to produce a positive edge pulse with each button press. To trigger the 555 in monostable mode, trigger PIN 2 must be LOW, so we have connected it to the Ground using PUSH button switch. This generated clock pulse at PIN 3 of 555 is given to 4017 IC at PIN 14.

When firstly, power is applied to IC 4017, output at PIN 3 (Q0) is HIGH, where we have connected FIRST LED. When we press the PUSH button, then a LOW to HIGH clock pulse is applied to PIN 14 (first clock pulse) of 4017 and output at Q0 becomes low and PIN 2(Q1) becomes HIGH, where we have connected Second LED. Now this position will remain until the next clock pulse. If we press the Push Button again (second clock pulse), output at Q1 becomes LOW and Q2 becomes HIGH. And because Q2 is connected to the RESET pin 15 of 4017, it will reset the IC and again output at Q0 becomes HIGH (first LED) and Q2 becomes LOW (Second LED). So it works like a toggle switch.

We have also used a RC circuit (22uf capacitor and 100k resistor) at CLOCK PIN 14 of 4017, so that it only counts one clock pulse on each time button is pressed. Otherwise circuit may behave unexpectedly OR it can count two or more pulses because of noise or bouncing effect of Push button.

Components used in this module...

Find out more about the components used in this STEM Module.

Let's Get Started!

Below you will find a list of bits to gather before hand, followed by a detailed schematic. Using a breadboard lay out the components and connect them together as shown. Alternatively you can purchase this module from our shop and simply solder the components in the places indicated on the quality assured printed circuit boards provided.

What You Need...

1 9V Black Battery Box Connector Cable Battery / Battery Holder
1 1uF Capacitor (Polarized)
1 22uF Capacitor (Polarized)
1 555 Timer Integrated Circuit (IC)
1 CD4017 Integrated Circuit (IC)
1 5mm Green (Diffused) LED
1 5mm Red (Diffused) LED
1 Tsukure Mad Labs - Push Button Toggle Switch PCB
1 100K
[ Brown, Black, Black, Orange ]
Resistor (0.25 Watt)
1 1K
[ Brown, Black, Black, Brown ]
Resistor (0.25 Watt)
1 470R
[ Yellow, Violet, Black, Black ]
Resistor (0.25 Watt)

NB: Any resistor colour codes specified relate to 5 band resistor codes, the 5th band has not been shown intentionally. The 5th band indicates the resistor tolerence, we use only the highest tolerence resistors in our products.

Sharing is Caring!

If you like this project, or maybe, know someone else that might, why not click the buttons below to share the experience!

Get Involved!

We are building an international community of engineers, programmers, builders, makers, nerds and geeks, join in below. Ask questions about this module or perhaps share your projects and show others how you have used this information to do something kool!

Tsukure Mad Labs STEM Categories

Tsukure TV

We will be launching the Tsukure TV YouTube Channel very soon! Subscribe now so that you don't miss out on the BIG LAUNCH!

Just An Idea!

This project is currently just an idea, a prototype! This is how we begin our journey of discovery and welcome you to join us.

Why not have a go at making this idea into a working project.

STEM Ranges

Additional Resources


Our team of engineers and coders have been busy building our own resources to allow us to improve our workflow. You too can have these resources at your disposal.


Useful Links