Toggle ON / OFF Switch with a single push-button
- Michail Papadimitriou
- 207.821 Views
This project describes how to build a “soft touch” switch. By “soft touch” we mean that you have to push once to set the device ON and push again to set the device OFF. This kind of switch works by latching a relay to ON state with the push of a button and with another push latch is released. It is working like flip-flop states. In that way, you can control power to a device using one push button.
The circuit is built around a 555 timer configured in a way that let it latch on one state and action is required to change state. The circuit is powered from +5V and there are connectors to connect the controlling device. Inspiration from this project and circuit is found here: http://todbot.com/blog . We added a relay on output, an indicator led as well as connectors for power, external push button, and relay contacts.
The Schematic for this circuit can be seen above. The circuit toggles a relay when button S1 is pressed. The operation of this circuit is simple. Pins 6 and 2 of 555 timer are at half power voltage. When output pin 3 is high then capacitor C1 is charged and when it’s low capacitor is discharged. When the button is pressed capacitor voltage appears on pin 6 and 2 and output pin 3 changes state as well as capacitor voltage changes. So when output is high capacitor has +5V. When we press the button pin 3 goes low and the capacitor goes 0V, when we press the button again output goes high again, so we have toggle functionality. When the output is high transistor T1 is conducting current and the relay is latched when low relay is released. Diode D1 is used to protect the transistor from back voltage generated when the relay goes off.
A disadvantage of this circuit is that when we connect power to the circuit relay is engaged. A solution to this can be found on the second reference website below.
$18 Welcome Bonus for new registrations Now https://jlcpcb.com