Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Switches, Relays & Input
  4. ›TTP223 Capacitive Touch Sensors and ESP32 Touch Pins

Component guide · Beginner · 3 min read

TTP223 Capacitive Touch Sensors and ESP32 Touch Pins

By Geekobot Learning Team · Updated 24 Oct 2026

On this page
Short answerWiring and modesTouch through a caseESP32 built-in touch and MPR121Common mistakesFAQsParts and next steps
Short answer

A capacitive touch sensor detects a finger by the small change in capacitance it adds to a pad, so there is no moving part. The TTP223 module gives a digital HIGH when touched, runs from 2 to 5.5 V, and two solder pads set toggle mode and output polarity. It works through a few mm of plastic or glass. Classic ESP32 boards have built-in touch pins, and the MPR121 handles 12 pads.

Key specs at a glance

Chip
TTP223 single-key touch IC
Supply
2.0 to 5.5 V
Output
Digital, HIGH on touch by default
Modes
Momentary or toggle, and active HIGH or LOW, set by pads A and B
Through material
Up to a few mm of plastic, glass or wood
Multi-key
TTP224 (4), MPR121 (12, I2C), ESP32 touch GPIOs
01

Wiring and modes

Connect VCC to 3.3 V or 5 V, GND to GND and SIG (I/O) to a digital pin. Touching the pad sets the output HIGH and lights the LED. No pull-up or debouncing is needed.

The two solder jumpers on the back select behaviour. On most modules one pad sets toggle mode (each touch flips the output, like a latching switch), and the other inverts the output to active LOW. Check the module's silkscreen or listing, since labelling differs. The chip calibrates itself at power-up, so do not touch the pad while switching on.

02

Touch through a case

Mount the module with its pad pressed flat against the inside of a plastic, acrylic or glass panel up to about 3 mm thick; thicker panels need a larger pad or adjusting the sensitivity capacitor on the module. Metal panels block it. Keep the wires to the pad short, and keep it away from mains wiring and motors. Damp surfaces and water drops can cause false touches.

03

ESP32 built-in touch and MPR121

Classic ESP32 boards (and ESP32-S2 and S3) have touch-capable GPIOs: touchRead(T0) returns a value that drops (on classic ESP32) when touched, so compare it against a threshold measured at start-up. A strip of copper tape or a coin on a wire makes a pad. ESP32-C3 boards have no touch pins.

For a keypad of 12 touch pads, use an MPR121 board over I2C, with up to four boards on one bus.

04

Common mistakes to avoid

  • !Touching the pad while powering up, so it calibrates wrongly.
  • !Putting the sensor behind metal.
  • !Long unshielded wires to a remote pad.
  • !Expecting touch pins on an ESP32-C3.
  • !Not checking which jumper does toggle versus polarity.
05

Frequently asked questions

Does the TTP223 need a pull-up resistor?

No. It has a push-pull output that drives HIGH and LOW itself.

How do I make the TTP223 work as a toggle switch?

Bridge the toggle-mode solder pad on the back; each touch then flips the output.

Can a touch sensor work through glass?

Yes, through about 2 to 3 mm of glass or plastic with the pad pressed flat against it.

Which ESP32 boards have touch pins?

Classic ESP32, ESP32-S2 and ESP32-S3. The ESP32-C3 and C6 do not.

Why does my touch sensor trigger by itself?

Moisture, nearby mains wiring or a long pad wire. Shorten wires, keep it dry and re-power without touching.

Parts for this guide

  • Capacitive Touch Sensor Module
    ₹50View
  • 5V Relay Module with Optocoupler
    ₹74View
Shop Keypads & Touch

Terms in this guide

CapacitanceA capacitor's ability to store charge, measured in farads (F); hobby parts are usually in pF, nF or µF.GPIOGeneral-purpose input/output: a microcontroller pin that your code can read or drive.I2CInter-Integrated Circuit: a two-wire bus (SDA and SCL) that connects many devices by address.DebounceFiltering the rapid on-off bouncing of a mechanical switch so one press counts once.

Projects that use it

Put this into practice: 12 step-by-step builds in our project library use parts from this guide.

Beginner · 45 minutesTouch lamp switchView projectBeginner · 45 minutesTouch lamp with brightness and colourView projectBeginner · 30 minutesWhich materials are touch-sensitive?View project
Browse all 12 projects

Keep learning

How-toBeginnerPush Buttons with ArduinoWire a push button between a digital pin and ground, set the pin to INPUT_PULLUP, and the pin reads LOW while pressed.3 min read · Switches, Relays & InputComponent guideBeginnerESP32 GuideThe ESP32 is a low-cost 3.3 V microcontroller from Espressif with built-in Wi-Fi and Bluetooth, used for IoT devices, smart-home controllers and web dashboards.5 min read · Boards & MicrocontrollersComponent guideBeginnerRelay ModulesA relay module is an electrically controlled switch that lets a microcontroller turn a separate circuit on or off, such as a 12 V pump or a mains lamp.4 min read · Switches, Relays & InputHow-toBeginner4x4 Matrix Keypad with ArduinoA 4x4 matrix keypad arranges 16 buttons in four rows and four columns, so it needs only 8 pins instead of 16.3 min read · Switches, Relays & InputComponent guideBeginnerCapacitors ExplainedA capacitor stores electric charge and releases it quickly, which lets it smooth power supplies, filter noise and set timing.3 min read · Passive Components

Sources

  • Tontek TTP223 datasheet
  • Espressif ESP32 touch sensor documentation
  • NXP MPR121 datasheet

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWiring and modesTouch through a caseESP32 built-in touch and MPR121Common mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide2 items · ₹124

Capacitive Touch Sensor Module · 5V Relay Module with Optocoupler

Ask the Community

Ask a question