Introduction: Tutorial for TTP223 Touch Sensor Module ( Capacitive)
Description
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.
Features
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.
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.
21 Discussions
8 weeks ago
How can I power multiple sensors off one power supply? I need to power four of these sensors off one battery but when I do they all trigger when just one sensor is touched.
Question 6 months ago
Can you to me how to wire the ttp223 with its own power supply. I'm using a 5v power supply to turn on 5v LEDs using the ttp223. The circuit works fine but there's a 2v drop over the ttp223 meaning the LEDs only get 3v (very dim) I can't increase the input voltage as the ttp has an operating voltage of 5.5v max
Question 1 year 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.
Answer 1 year ago
I'll suggest a simple and easy way...
Put a thin pin/nail through the wood...
Reply 1 year ago
Interesting idea. Will try it. Thanks.
Reply 6 months ago
ojo no te pinches el dedo
7 months ago
Can increase sensivity more then 10mm without touch the ped....adv
Question 9 months ago
how much current and voltage output from TTP i/o?
Question 1 year ago on Step 2
I need control 230 led lap ttp 223
How to do it?
Answer 1 year ago
Use a 5vdc relay
Question 1 year 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?
Answer 1 year ago
You need to power the TTP223 with a LDO 5v voltage regulator. It's 3 pins, very easy to use. Something like this: https://www.amazon.com/AMS1117-5-0-Step-Down-Voltage-Regulator-Module/dp/B078BCCDN1/ref=sr_1_9?hvadid=78340321331955&hvbmt=be&hvdev=c&hvqmt=e&keywords=5v+ldo+regulator&qid=1572735548&sr=8-9 . Then, the output of the TTP223 should go to the gate of a BS170, like this: https://www.amazon.com/FAIRCHILD-SEMICONDUCTOR-Fairchild-Channel-MOSFET/dp/B0797PWYYS/ref=sr_1_3?keywords=n+mosfet+transistor&qid=1572735935&s=automotive&sr=1-3 . You'll want to use a load resistor with your 3 LED's in series, and, subtract 7.2 - (3 * forward_led_voltage) to find the remaining voltage that you'll then need to current limit with a resistor. (See this article: http://www.learningaboutelectronics.com/Articles/N-channel-MOSFET-switch-circuit.php or this one: http://iamtechnical.com/n-channel-e-type-mosfet-switching-leds) Note that, depending on your LEDs' forward voltages, you may not be able to put them in series. The forward voltage may be too high, and a typical "9V" alkaline battery only puts out 7.2V. Also, if you use different color LEDs, you can't put them all in parallel and have a single current-limiting resistor. One of them (red, most likely) will have a lower forward voltage than, say, a blue, so the blue will never turn on. Don't ask how I know that :-) .
Question 2 years 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...!!!
Answer 2 years 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 1 year 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 2 years ago on Step 5
Will it work perfectly if I put a piece of foam, or hard plastic on it?
Question 2 years 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?
Answer 2 years 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.
2 years ago
Fantastic ! Thanks for the easy to follow instructable and bonus video !!
Simplicity at its best !
Keep up the awesome tinkering dude !
Question 2 years 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???