Touch sensor TTP223 with TinkerPie
A capacitive touch pad on its own little board.
| Type | Digital sensors |
|---|---|
| Connect to | any accessory pin |
| Gives | true while touched |
| Simulator | Yes: a control appears under the simulated board |
How it works
The TTP223 is a capacitive touch sensor. Your finger changes the tiny electrical field around the pad, and the chip notices the change and switches its output.
How to wire it
Signal (DO / OUT / S) to any accessory pin: S1-S4, P10-P13, P43 or P44. Power from 3.3 V where the module allows it.
Code
In blocks: Accessories category in TinkerPie Studio. As code:
// JavaScript
sensors.touchModule(Pin.S1)
// Arduino C++
sensors::touchModule(Pin::S1) Good to know
- Works through thin plastic, paper or wood, so you can hide it.
- Reacts in a fraction of a second.
- Solder jumpers on the back change the mode (momentary or toggle).
Similar modules
- PIR motion sensor HC-SR501
- IR obstacle sensor
- Push button module
- Tilt switch SW-520D
- Reed switch (magnet)
- Vibration sensor SW-420
- Hall effect sensor A3144
- Line tracker TCRT5000
More projects to try
Questions
Can I try the Touch sensor TTP223 without buying one?
Yes. In TinkerPie Studio the simulator shows a control for it under the board, so you can test your program before you build it.
Why does the touch sensor trigger by itself?
It recalibrates when powered on, so do not touch it during start-up, and keep it away from long wires and metal.