TTP223B Capacitive Touch Sensor Module
๐ What this module is
The TTP223B Capacitive Touch Sensor Module is a touch-based digital switch that replaces a physical button.
๐ Instead of pressing โ you just touch it
โ๏ธ Works like:
Mobile touch button
Touch lamp switch
โ๏ธ Working Principle
Uses capacitive sensing
Detects change in capacitance when your finger touches
โก๏ธ When touched:
Output โ HIGH
โก๏ธ When released:Output โ LOW
โ๏ธ Key Specifications
Operating Voltage: 2V โ 5.5V
Output Type: Digital (HIGH/LOW)
Response Time: ~60 ms
Touch Distance: up to ~5 mm (through plastic/glass)
Power Consumption: Very low
๐ Pinout (Very Simple)
VCC โ 3.3V / 5V
GND โ Ground
SIG / OUT โ Digital pin
๐ Only 3 pins โ very beginner-friendly
๐ง Modes (Important Feature)
1๏ธโฃ Momentary Mode (default)
Touch โ HIGH
Release โ LOW
2๏ธโฃ Toggle Mode
Touch once โ ON
Touch again โ OFF
๐ Mode can be changed using onboard pads/soldering
๐ก Applications
๐ก Touch-controlled lights
๐ฑ Smart switches
๐ Home automation
๐ค Robotics input buttons
๐ Password touch panels
โก Special Features
โ๏ธ Can work through:
Plastic
Glass
Acrylic
๐ You can hide the sensor behind a surface โ looks very premium
โ ๏ธ Important Notes (Very Important)
โ Does NOT work through metal
โ ๏ธ Sensitive to:
Moisture
Noise
โ ๏ธ Can auto sleep after some time (low power mode)
๐ Real-world issue:
Long press may stop after a few seconds (due to power-saving mode)
๐ Touch Sensor vs Push Button
| Feature | TTP223 Touch | Push Button |
|---|---|---|
| Input type | Touch | Press |
| Durability | High (no wear) | Mechanical wear |
| Looks | Modern | Basic |
| Cost | Slightly higher | Very cheap |
๐ When to use this
Use TTP223 if you want:
Modern touch interface
Hidden buttons
Durable input (no mechanical parts)
๐ When NOT to use
Avoid if you need:
Very noisy environments
Outdoor use with moisture
Long continuous press detection
๐ง Final Understanding
๐ This sensor = โtouch replacement for a buttonโ
๐ Simple, cheap, and very powerful for UI projects
