Circuits / Sensors
Arduino UNO: touch sensor
The TTP223 gives a clean digital level that follows the finger, 60 to 220 ms late; the program prints each change; powered from the UNO's 5 V its output is 5 V, well above the 3 V the UNO needs for a HIGH

Tap a part to see its voltages and currents. It is a model, not a measurement.
What do you need?
- Development board Arduino UNOAliExpress Amazon
- Touch sensor TTP223AliExpress Amazon
- Jumper wires × 4AliExpress Amazon
- BreadboardAliExpress Amazon
The AliExpress links are affiliate links: if you buy through them ohmio.dev gets a commission, at no extra cost to you. Affiliate links
This page is a guide: the numbers come from a simulation, and real parts vary. Check your parts before you power the circuit. Safety and responsibility
How does an Arduino read a touch sensor?
The TTP223 turns a finger's capacitance into a clean digital level on SIG, so the Arduino needs no analog reading. The module runs from the UNO's 5 V pin, so SIG goes from 0 V at rest to 4.99 V while you touch. That is over the 3.0 V (0.6 × VCC) an UNO needs to read a HIGH; at 3.3 V the margin would be only 0.3 V. D2 reads SIG. The program keeps the last reading and, when it changes, prints TOUCH if the level is HIGH and RELEASE if it is LOW. The module is not instant: in the model, a touch at 1.0 s prints TOUCH at 1.225 s, and letting go at 2.5 s prints RELEASE at 2.725 s, about 0.22 s late. Its fast mode, on some boards a solder pad, cuts that to about 60 ms. On a real board, keep your finger off the pad while it powers up: it calibrates in the first half second.
Values from the Protoboard ISO simulation: a model, not a bench measurement.
Hear about the next circuit
One email when a new circuit is out, about twice a month. Nothing else.