Skip to main content
ELECTRONICS COMPONENTS · ARDUINO · ESP32 Shop, learn and build
BUILDCIRCUIT.COM logoBUILDCIRCUIT.COMLearn · Design · Build
Home›Tutorial
🛠️ Dive into our collection of DIY Kits, 🔊 Audio Amplifiers, Digital Scoreboards, FM transmitters, and more!
🎶 Explore endless possibilities at our new store.
Build Circuits Logo or Description
MAKER TUTORIAL

Toggle switch

This 555 timer circuit below toggles the LED when a button is pressed. Pins 2 and 6, the threshold and trigger inputs, are held at 1/2 the supply voltage by the two 10K resistors.

Toggle switch
Description: The following circuit works as a toggle switch. The circuit has two stable states, ON and OFF. Once it is ON, it remains ON till you press the switch again. This 555 timer circuit below toggles the LED when a button is pressed. Pins 2 and 6, the threshold and trigger inputs, are held at 1/2 the supply voltage by the two 10K resistors. When the output is high, the capacitor charges through the 100K resistor, and discharges when the output is low. When the button is pressed, the capacitor voltage is applied to pins 2 and 6 which causes the output to change to the opposite state. When the button is released, the capacitor will charge or discharge to the new level at the output (pin 3). The parts are not critical, the resistors can be somewhat higher or lower, but the 2 resistors at pins 2 and 6 should be equal values, and the resistor connected to the cap should be 10 times greater or more. Advantages of this circuit are the large hystersis range at the input which avoids false triggering, and only a few parts are needed for construction. One disadvantage is the relay(if relay is used in place of LED) may be engaged when power is first applied. To solve this problem, you could tie the reset line (pin 4) to another resistor/capacitor combination with the capacitor at ground and the resistor at the +B1 point. This will cause pin 4 to be held near ground for a short period which will reset the output when power is applied.

🛠️ Dive into our collection of DIY Kits, 🔊 Audio Amplifiers, Digital Scoreboards, FM transmitters, and more! 🎶 Explore endless possibilities at our new store. Build Circuits Logo or Description

Keep making.

Explore more circuits, Arduino projects and practical electronics tutorials.

Discover more tutorials →
WHAT'S NEXT?

Keep exploring

More tutorials →