Touch Switch Using 555 Timer in Monostable Mode with Adjustable Delay
A touch switch has no moving parts: you touch a metal plate and a light or buzzer turns on for a set time. Staircase lights, doorbells and table lamps often use this idea. In this project an NE555 timer is wired as a monostable (one-shot). A finger across a two-part touch plate pulls the trigger input low, the 555 output goes high for a time set by a resistor and capacitor, and then returns low on its own.
You will learn the three key 555 thresholds, the monostable timing formula T = 1.1RC, and how to drive a relay safely from the 555 output.
Components Required
| Part | Value / Type | Quantity |
|---|---|---|
| Timer IC U1 | NE555 (8-pin DIP) with socket | 1 |
| R1 (trigger pull-up) | 10 mega-ohm (4.7 mega-ohm also works) | 1 |
| R2 (timing, fixed) | 10 kilo-ohm | 1 |
| VR1 (timing, adjustable) | 1 mega-ohm potentiometer | 1 |
| C1 (timing) | 100 microfarad, 25 V electrolytic | 1 |
| C2 (control pin) | 10 nanofarad ceramic | 1 |
| C3 (supply decoupling) | 100 microfarad electrolytic + 100 nanofarad ceramic | 1 each |
| R3, LED | 1 kilo-ohm, red LED | 1 each |
| Q1 and R4 | BC547, 4.7 kilo-ohm base resistor | 1 each |
| Relay and D1 | 12 V coil relay (or 9 V), 1N4007 | 1 each |
| Touch plate | Two strips of copper or tinned PCB with a 1 mm gap | 1 |
| Power | 9 to 12 V DC | 1 |
Circuit Explained Stage by Stage
Stage 1: The touch input
The NE555 triggers when pin 2 falls below one third of the supply voltage. R1, a very high value resistor of 10 mega-ohm, holds pin 2 high when nobody is touching. The touch plate has two parts: one connected to pin 2, the other to ground. A fingertip bridging the gap has a skin resistance that is usually far below 10 mega-ohm, so pin 2 is pulled well under one third of the supply and the timer triggers.
Stage 2: The monostable timer
When triggered, the 555 output on pin 3 goes high and its internal discharge transistor on pin 7 turns off. C1 starts charging through R2 and VR1. When the voltage on C1, sensed at pin 6, reaches two thirds of the supply, the internal flip-flop resets: pin 3 goes low and pin 7 discharges C1 quickly, ready for the next touch.
T = 1.1 x R x C (R = R2 + VR1) Minimum: 1.1 x 10 k x 100 uF = 1.1 s Maximum: 1.1 x 1010 k x 100 uF = about 111 s
Electrolytic capacitors have wide tolerance and some leakage, so the real time may differ by 20 percent or more, especially at the long end. Set the delay by ear with VR1 rather than trusting the calculation exactly.
Stage 3: Output driver
Pin 3 can source or sink up to about 200 mA according to the NE555 datasheet, but it is good practice to drive a relay through a transistor. Pin 3 drives Q1's base through R4. Q1 switches the relay coil, with D1 across the coil to absorb the turn-off spike. An LED with R3 from pin 3 to ground shows when the timer is active.
Pin connections
| NE555 pin | Name | Connection |
|---|---|---|
| 1 | GND | Ground |
| 2 | Trigger | Touch plate A and R1 to +V |
| 3 | Output | R4 to Q1 base; R3 and LED to GND |
| 4 | Reset | +V (keep it high) |
| 5 | Control | C2 10 nF to GND |
| 6 | Threshold | Joined to pin 7 and to C1 positive |
| 7 | Discharge | To R2 and VR1 in series from +V |
| 8 | Vcc | +V, with C3 to GND |
How It Works
Touch the plate: pin 2 drops below one third of the supply, the output goes high, the LED lights and the relay pulls in. Take your finger away and the timer keeps running until C1 reaches two thirds of the supply. If you are still touching the plate when the time runs out, the output stays high, because the trigger input has priority while it is held low.
Variation: touch on, touch off
To make a toggle-style switch, remove C1 and R2, tie pin 6 to ground through a 10 mega-ohm resistor, and add a second touch plate between pin 6 and +V. Touching the first plate sets the output high and touching the second, which pulls pin 6 above two thirds of the supply, resets it. This is the 555 bistable mode.
Assembly and Testing
- Fit an 8-pin socket and wire pins 4 and 8 to +V and pin 1 to ground first.
- Add C2 on pin 5, join pins 6 and 7, and connect C1 and the R2 plus VR1 chain.
- Connect R1 and the touch plate. Keep the wire from the plate to pin 2 short to reduce noise pickup.
- Add the LED, then Q1, the relay and D1 with its band towards +V.
- Set VR1 to minimum and power up. The LED should be off. Touch the plate: the LED should light for about one second.
- Turn VR1 to maximum and time the delay with a phone stopwatch.
Troubleshooting
- Output stays high permanently: pin 2 is held low. Check R1 and look for a solder bridge on the touch plate.
- Triggers by itself: long plate wires pick up noise. Shorten them, add a 100 nanofarad capacitor at the supply pins, or reduce R1 to 4.7 mega-ohm.
- Does not trigger with dry fingers: dry skin can be very resistive. Increase R1, narrow the plate gap, or moisten the fingertip.
- Delay much longer than expected: C1 is leaky or of larger value than marked. Try a fresh, low-leakage capacitor.
- Relay clicks but 555 resets: add the 100 microfarad decoupling capacitor close to pin 8 and check the supply can handle the relay current.
Summary
The 555 monostable turns a brief touch into a clean, timed pulse. A high-value pull-up keeps the trigger idle, a fingertip pulls it below one third of the supply, and C1 with R2 and VR1 sets the on-time through T = 1.1RC. A transistor and relay let the timer control a real load safely at low voltage.