Tutorial for TTP223 Touch Sensor Module ( Capacitive)





The TTP223 is a touch pad detector IC replicating a single tactile button. This touch detection IC is designed for replacing traditional direct button key with diverse pad size.


1. Input Voltage: 3.3V - 5.5V DC

2. Module size: 15mm x 11mm

3. Stable touching detection of human body for replacing traditional direct switch key.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Material Preparation

For this tutorial, we required these items:

1. TTP223 Touch Sensor Module ( Capacitor)

2. 10mm LED (Yellow)

3. Resistor 220 ohm

4. Breadboard Power Stick 3.3V / 5V

5. Li-Ion Rechargable Battery 7.4V 1200mAh

Step 2: Pin Definition

Trigger setting mode: (1 = Short ; 0 = No Short)

Jumpers AB

Momentary / High Output 00 (used in this tutorial)

Self Lock / High Output 01

Momentary / Low Output 10

Self Lock / Low Output 11

Step 3: Hardware Connection

Make the connection as above picture.

Step 4: Results

Based on the results,

1. The LED will turn on when we touch the TTP223 Capacitive Touch Sensor Module.

2. If no touching detected, the LED will turn off.

Step 5: Video

This video shows the demonstration of tutorial how to use TTP223 Capacitive Touch Sensor Module.

Be the First to Share


    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    13 Discussions


    Question 11 days ago on Step 3

    I want to use a 9V battery to light up 3x 3V LED in serial, how can I use this TTP223 with a higher power source? How is the wiring?


    Question 7 months ago

    Can you tell me how I can increase the sensitivity of the sensor. I need to put this sensor behind a piece of wood and it is not responding. Thanks.

    2 answers

    Answer 6 months ago

    I'll suggest a simple and easy way...
    Put a thin pin/nail through the wood...


    Reply 6 months ago

    Interesting idea. Will try it. Thanks.


    Question 9 months ago

    Hello, can u tell me, how to reduce its sensitivity...?
    I bought some boards, they trigger, when my finger is close about 10mm...
    I don't have to even touch it...!!!

    2 answers

    Answer 9 months ago

    Reading the datasheet, the sensitivity can be decreased by

    a) reduce the size of the sensor (which you cannot do)
    b) increase the distance (for instance put some plastic above the contact)
    c) add a capacitor between the sensor and ground.

    If you can't do solution b, then I suggest you to add a capacitor. I do not have these modules, but if I saw correctly the unpopulated pads in the top right corner of the board images are for this purpose. Just solder there a small SMD capacitor (10-50pF, in a 0603 or package I think, or a 0805) and the sensitivity should decrease. The larger the capacitor, the smaller the sensitivity (but do not go beyond 50pF)


    Reply 6 months ago

    You can just solder a standard ceramic capacitor to the unpopulated solder pads shown in the top right of the board picture. I use a 22pf capacitor but a 47pf also works. I had to do this in order to get the module to work properly below 4.75 volts.


    Question 9 months ago on Step 5

    Will it work perfectly if I put a piece of foam, or hard plastic on it?


    Question 1 year ago on Step 5

    How to use this as power on off switch? I've tried to power on my Attiny85 with neopixel ring but the neopixels just light orange or white instead of doing the rainbow effect?

    1 answer

    Answer 1 year ago

    This device may have a 5V output when it is active, but it's not designed to/able to power a whole neopixel ring. You need to either: A) simply wire the "I/O" pin of this touch sensor to a spare pin on your Attiny85, and modify your firmware/sketch to control the neopixel ring accordingly. Or B), connect a P-type mosfet thusly: Source pin to 5V supply, Gate pin to the "I/O" pin of the touch sensor. The remaining Drain pin of the Mosfet will become a much stronger (and inverted, but you can easily fix that by changing the jumpers) 5V source when the touch sensor is activated, strong enough to drive your neopixel ring.

    Also, check the voltage of your 5V supply with a multimeter. You'll see that it's not actually 5V when you're loading it down with a whole neopixel ring.


    1 year ago

    Fantastic ! Thanks for the easy to follow instructable and bonus video !!

    Simplicity at its best !

    Keep up the awesome tinkering dude !


    Question 1 year ago on Step 2

    Can you explain the jumper pins in more detail. The difference between high output and low output. And difference between jog and self lock???

    1 answer

    Answer 1 year ago

    Self lock mode work as toggle switch: 1st touch -> ON, 2nd touch -> OFF ,

    Other mode work as push button: On or OFF only when u touching it.

    Low and High outputs are, what signal u send on output: HIGH or LOW.