A straightforward circuit can replace the mechanical power switches in your projects. With a soft-touch push button, the ever-useful NE555 and just a few additional components, you can give your designs a more polished finish. Use it to switch relays, lights, electrical loads and more. Build your own push-button ON-OFF control without contact bounce.

The NE555 continues to offer plenty of possibilities for electronics enthusiasts. Even with limited experience, you can use it to build useful, educational circuits that adapt to everyday applications. If you already work with microcontrollers and complex designs, adding an on/off switch in hardware and firmware is straightforward. For simpler standalone projects—switching a basic light, a small fan or a power supply—this circuit can be a valuable learning tool and perhaps the start of a vocation.

The circuit

739B.jpg
Circuit diagram for the ON-OFF button

One useful feature of the NE555 is that its output at pin 3 can source or sink up to 200 mA. By comparison, ICs made with CMOS technology may handle currents of up to 50 mA, which may not be enough for some applications. Keep this distinction in mind when designing: choosing a device with insufficient output current can leave your finished circuit unable to work as expected. Datasheets available online identify whether a device uses bipolar or CMOS technology, helping you make an informed choice. Bipolar technology does not mean obsolete or old-fashioned; it is simply a different manufacturing method. For example, National Semiconductor has produced both a bipolar LM555 and a CMOS version at the same time.

Pins 2 and 6 are tied together and, through equal-value resistors R1 and R2, connected to V+/2. They act as inputs to the internal voltage comparators, whose reference levels are one-third and two-thirds of the supply voltage. The IC's internal diagram helps make the pin functions clear: pin 1 is GND, pin 2 is 1/3 V+, pin 6 is 2/3 V+, and pin 8 is V+.

739C.jpg
Dead zone in which the NE555 does not change its output state

Biasing the inputs at V+/2 places them in what is known as the dead zone: neither below 1/3 nor above 2/3 of V+, but between those thresholds. To prevent an uncertain output state when the circuit starts, pin 4 (Reset) is connected to V+, while pin 5 is connected to GND through C2 to ensure a low initial state. C3 therefore starts discharged. R3 and the NE555's internal connection to the low (GND) state ensure that it remains so.

Pressing the ON-OFF button applies a voltage close to zero—below 1/3 of the supply voltage—and triggers the IC's internal flip-flop. Pin 3 then rises to a voltage close to V+, switching on whatever load is connected to the output. The high output charges C3 through R3 and keeps it charged, leaving the circuit in standby until the button is pressed again. At that point, the voltage stored in C3—above 2/3 of V+ and close to V+—triggers another change in the flip-flop. Pin 3 falls close to GND, and the cycle starts over.

739D.jpg
Soft-touch push buttons suited to this project

Small push buttons often raise concerns about contact bounce: a faulty or bouncing contact could produce several rapid changes at the IC output during a single press. This design avoids that problem because C3 does not charge or discharge instantly; R3 has a high value. The time C3 takes to cross the 2/3 or 1/3 V+ thresholds prevents bounce from causing multiple transitions.

The components do not need to be precision parts, so this is an inexpensive circuit made with items readily available from electronics suppliers. The push button can be a soft-touch type or an industrial model; choose whichever best suits your design.

Electrical noise is another consideration. Switching loads can generate interference in control circuits—for instance, when a relay's moving contacts connect or disconnect—and that noise can trigger the switch unintentionally. Give the NE555 a supply that is well protected from interference. A 100 nF capacitor across the IC's supply pins, mounted as close to the chip as possible, provides useful filtering. Some applications may need additional precautions, such as a metal shield. The circuit operates over a wide supply range of 4.5 to 16 volts, making it versatile for existing or new projects as well as a useful learning exercise.

Driving different loads

Pin 3 switches between a low level and a high level, the latter corresponding to V+. That signal can control a range of loads, from simple LEDs to substantial electrical systems. The first two examples below use NPN transistors to switch relays. The first uses a BJT such as the BC639, which can handle collector currents of up to 1 A. It is suitable for small relays and loads such as a lamp, a small ventilation blower or DC motors drawing no more than 2 A. These are relays of modest, roughly medium size.

739E.jpg
Examples of driving relays with NPN transistors

Another option is a power MOSFET such as the IRFZ44, which its datasheet rates for peak currents of up to 50 A. A circuit of this kind can switch a substantial DC motor, including car windshield-washer motors or power-window motors. Halogen lighting is another possible application. The connections are simple, but the transistor must be fitted with a suitably sized heatsink to dissipate the heat generated under sustained, heavy operation.

739F.jpg
Driving loads with a MOSFET and a triac

For the final example, an optotriac (MOC3041) and a triac can be used together to switch loads connected directly to household mains. The triac also needs an appropriately sized heatsink to handle the heat produced by substantial loads. Choose the triac model carefully: the one shown in the diagram can handle a little over 1 kW (1,000 watts) when correctly installed on a heatsink.

R6 and C2 form what is known as a “snubber network.” It protects the triac when the circuit controls inductive loads, such as large motors, powerful AC electromagnets or lamps that require ballasts.

Take great care when working with mains electricity. It is extremely dangerous unless the proper precautions are followed.