Build it step by step
0 of 8 donePower the chip
Pin 8 and pin 4 to plus, pin 1 to minus.
Add the trigger
Pin 2 to the plus rail through 1 Mohm.
Add the touch pads
Pad A to pin 2, pad B to minus.
Build the timer
100 kohm from pin 7 to plus, pins 6 and 7 joined, 10 uF to ground.
Add the bypass
100 nF from pin 5 to ground.
Add the LED
Pin 3 through 1 kohm to the LED and ground.
Connect the battery
The LED stays off.
Touch the pads
The LED lights for about a second.
How do you build a touch switch with a 555?
A 555 in monostable mode lights a lamp for a few seconds when you touch two metal contacts. You need NE555 Timer IC, Resistor 1 MΩ, Resistor 100 kΩ, Electrolytic capacitor 10 µF, Electrolytic Capacitor 100 µF, Ceramic Capacitor 100 nF, LED 5 mm red, Resistor 1 kΩ, 9 V battery, 9 V battery snap with DC jack and Breadboard 830 Tie Points. It takes 8 steps and about 75 minutes.
- Level
- Beginner
- Time
- About 75 min
- Parts
- 11
Parts list
- Integrated CircuitsBuyNE555 Timer IC × 1
- PassivesBuyResistor 1 MΩ × 1
- PassivesBuyResistor 100 kΩ × 1
- PassivesBuy
- PassivesBuy
- PassivesBuy
- SemiconductorsBuyLED 5 mm red × 1
- PassivesBuyResistor 1 kΩ × 1
- BatteriesBuy9 V battery × 1
- PowerBuy
- PrototypingBuy
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| 555 pin 1 (GND) | Battery minus | Ground rail |
| 555 pin 8 (VCC) | Battery plus | 9 V rail |
| 555 pin 4 (RESET) | Battery plus | Keeps the chip running |
| 555 pin 2 (TRIGGER) | Touch pad A | And through 1 Mohm to the plus rail |
| Touch pad B | Battery minus | Two bare wire ends a few millimetres apart |
| 555 pin 7 (DISCHARGE) | Through 100 kohm to the plus rail | And joined to pin 6 |
| 555 pin 6 (THRESHOLD) | Pin 7 and timing capacitor plus | Capacitor minus to the ground rail |
| 555 pin 5 (CONTROL) | 100 nF to ground | Keeps noise out |
| 555 pin 3 (OUTPUT) | 1 kohm then red LED then ground | The lamp |
Code
A 555 timer set up as a monostable, or one-shot, gives one output pulse of a fixed length each time its trigger pin is pulled low. Here the trigger pin is held high by a very large 1 megohm resistor, so very little current flows through it. Two bare wire ends form a touch pad: when a damp fingertip bridges the gap it adds a path of a few hundred kilohms to ground, which pulls the trigger pin below one third of the supply and starts the pulse. The length of the pulse depends only on the 100 kilohm resistor and the capacitor, about 1.1 times R times C, so the small capacitor gives a short flash of about a second and the larger one gives about eleven seconds. If you keep your finger on the pads after the time has run out, the circuit may run again, which is why the LED can stay on while you touch. A dry finger might not work: wet it slightly, press firmly, or use a bigger gap to start with and move the wires closer. This build uses a 9 volt battery and only a few milliamps, so it is safe to touch.
No code. This is a hardware-only circuit. On time is about 1.1 x R x C. R = 100 kohm With the 10 uF capacitor: 1.1 x 100,000 x 0.00001 = about 1.1 seconds With the 100 uF capacitor: 1.1 x 100,000 x 0.0001 = about 11 seconds How it works 1. Pin 2 is held high by the 1 Mohm resistor, so the 555 is waiting. 2. A damp fingertip bridging the two pads pulls pin 2 low enough to trigger it. 3. The output goes high, the LED lights and the capacitor charges. 4. When the capacitor reaches two thirds of the supply the output goes low again. 5. If your finger is still on the pads, the 555 may start another cycle. Capacitors vary by 20 percent or more, so time it with a stopwatch.
Test checklist
What you should see at each check. If a reading is far off, stop and use the troubleshooting list.
| Check | Expected |
|---|---|
| Power on | LED off |
| Damp finger across the pads | LED on for about 1 second |
| Swap in the 100 uF capacitor | About 11 seconds |
| Finger held on | May run again |
| Pads far apart | Needs a firmer touch |
If it does not work
LED never lights
Moisten your finger and press harder, or move the pads closer.
LED stays on
Check pin 4 goes to plus and that pins 6 and 7 are joined.
LED flickers
Add the 100 nF capacitor on pin 5.
Very short flash
Check the capacitor value and the 100 kohm resistor.
Chip hot
Wrong supply connection, disconnect the battery at once.
Still stuck? Find the fault step by step with your multimeter →
Common questions
What parts do I need for the touch switch with a 555?
NE555 Timer IC, Resistor 1 MΩ, Resistor 100 kΩ, Electrolytic capacitor 10 µF, Electrolytic Capacitor 100 µF, Ceramic Capacitor 100 nF, LED 5 mm red, Resistor 1 kΩ, 9 V battery, 9 V battery snap with DC jack and Breadboard 830 Tie Points.
How long does the touch switch with a 555 take to build?
About 75 minutes for a beginner maker, in 8 steps.
How do I know the touch switch with a 555 works?
Power on: LED off. Damp finger across the pads: LED on for about 1 second. Swap in the 100 uF capacitor: About 11 seconds.
LED never lights: what should I check?
Moisten your finger and press harder, or move the pads closer.
LED stays on: what should I check?
Check pin 4 goes to plus and that pins 6 and 7 are joined.
LED flickers: what should I check?
Add the 100 nF capacitor on pin 5.
Very short flash: what should I check?
Check the capacitor value and the 100 kohm resistor.
