You’re probably familiar with single button on/off switches. Most of the ones you see now on devices are IC logic switches but there was a time when these types of switches used transistors only. I can remember when the first stereos of the 70s had “soft touch” controls. One button turned a device on or off without actually mechanically switching the circuit.
This project demonstrates a simple version of this type of circuit. It uses three transistors, two NPN and one PNP. There’s also a capacitor which gets charged and discharged, and this is what makes the button capable of performing two functions with the same contacts. The output of this circuit is negative.
Here’s a description of the circuit as it appears on the talkingelectronics.com website:
LATCHING A PUSH BUTTON – also called: PUSH-ON PUSH-OFF
When the circuit is turned on, capacitor C1 charges via the two 470k resistors. When the switch is pressed, the voltage on C1 is passed to Q3 to turn it on. This turns on Q1 and the voltage developed across R7 will keep Q1 turned on when the button is released.
Q2 is also turned on during this time and it discharges the capacitor. When the switch is pressed again, the capacitor is in a discharged state and this zero voltage will be passed to Q3 turn it off. This turns off Q1 and Q2 and the capacitor begins to charge again to repeat the cycle.
This is a useful circuit that can be put to use on many devices. Try building one and see what you can switch on and off with it.
Keep on hackin!
Parts List:
2 – BC547 NPN Transistors
1 – BC557 PNP Transistor
3 – 470K resistors
2 – 10K resistors
1 – 1K resistor
1 – 100K resistor
1 – 1M resistor
1 – 1uF polarized capacitor
1 – Momentary contact switch
1 – 9 volt battery and holder
The Schematic:
I first saw this circuit in 2004 here: http://www.edn.com/article/474642-Latching_power_switch_uses_momentary_action_pushbutton.php
You may want to check it out at that location as there is a much more complete description of how it works and how to modify it for different voltages. Scroll to the bottom of that link and just download the PDF since the PDF includes the diagram of the circuit.
Chris
The capacitor is acting as a crude debounce mechanism.
See: http://www.labbookpages.co.uk/electronics/debounce.html
I had the same problem, my fix for this was adding an extra resistor a 1.2k type.
On the OFF mode, you will have 0.03 volt on output.
The circuit looks like that:
[url=http://postimg.org/image/utdzyrqkr/][img]http://s9.postimg.org/utdzyrqkr/1_2k.jpg[/img][/url]
I added the resistor that RegiKacat suggested but when I hit the momentary switch the LED just blinks but does not switch off. If I hold the button down, making the connection the LED is off and then turns back on when I release the switch. What am I doing wrong?