The TTP223 and TTP224 are both capacitive touch sensor ICs, but they differ in the number of touch channels: the TTP223 provides a single channel, while the TTP224 provides four. Choose the TTP223 for simple on/off control of one function, and the TTP224 when you need four independent touch inputs, such as for a keypad or multi-button interface.
Formula
The calculator estimates total touch time by multiplying the duration of a single touch by the number of touches:
Total time (s) = Hold time per touch (s) × Number of touches
Where:
- Hold time per touch – the average duration of one touch, in seconds.
- Number of touches – how many times the sensor is activated.
This is a simple linear relationship. For example, if each touch lasts 0.5 seconds and you touch the sensor 10 times, the total active time is 5 seconds.
Worked Example
Using the default values from the calculator: hold time = 1 second, number of touches = 1.
- Multiply: 1 × 1 = 1 second.
- The result is 1 second of total touch time.
This matches the calculator output. For a more realistic scenario, if you hold a button for 0.8 seconds and press it 5 times, the total is 0.8 × 5 = 4 seconds.
Background: What Are TTP223 and TTP224?
The TTP223 and TTP224 are integrated circuits that detect touch through capacitive sensing. They are widely used in DIY electronics, custom keyboards, and consumer products because they are inexpensive, low-power, and easy to interface with microcontrollers like Arduino or ESP32.
The TTP223 is a single-channel touch sensor. It outputs a digital high or low signal when a finger is near the sensing pad. The TTP224 is a four-channel version; it can detect touches on four separate pads simultaneously and outputs four independent digital signals.
Both ICs are often sold as small breakout boards with a sensing pad and an LED indicator. They operate at 2.0–5.5 V, making them compatible with 3.3 V and 5 V logic systems.
How Capacitive Touch Sensing Works
Capacitive touch sensors work by measuring the change in capacitance on a sensing electrode. The human body is conductive and can store a small electrical charge, so when a finger approaches the pad, the capacitance increases. The IC detects this change and triggers the output.
There are two main types of capacitive sensing:
- Self-capacitance – measures the capacitance between the pad and ground. Used in TTP223 and TTP224.
- Mutual capacitance – measures the capacitance between two electrodes. Used in touchscreens.
The TTP223 and TTP224 use self-capacitance. They are designed for direct finger contact, but can also work through thin non-conductive materials like glass or plastic (up to a few millimeters).
How to Choose: TTP223 vs TTP224
The main decision factor is the number of touch channels you need.
- Choose TTP223 if you need a single touch button – for example, to turn a light on/off, trigger a relay, or as a simple input for a microcontroller.
- Choose TTP224 if you need multiple touch buttons – for example, a 4-button keypad, a volume control (up/down), or a menu selector.
Other considerations:
- Board size: TTP223 boards are tiny (about 15×15 mm), while TTP224 boards are larger (about 30×30 mm) due to four channels.
- Current consumption: Both are low-power, but the TTP224 draws slightly more because it has four sensing circuits.
- Output mode: Both can be configured for momentary or toggle output via a solder jumper on most breakout boards.
If you are unsure, start with the TTP223 for a simple prototype. You can always add more TTP223s if you need more buttons, though a TTP224 is more efficient for four or more.
Common Problems and Solutions
Users often report issues with capacitive touch sensors. Here are the most frequent ones:
- Sensor not responding: Check the power supply voltage and wiring. Ensure the sensing pad is not connected to ground or a long trace that adds capacitance.
- False triggers: The sensor may trigger without touch if the pad is too large or if there is electromagnetic interference. Keep the pad small (under 20 mm diameter) and away from noisy components.
- Inconsistent sensitivity: Sensitivity can vary with humidity and temperature. Most boards have a sensitivity adjustment capacitor – you can change it to a larger value to increase sensitivity.
- Output stuck high/low: Check the output mode jumper. If it is set to toggle, the output will stay high after a touch until touched again.
If you are using a long wire to the sensing pad, use a shielded cable or keep the wire short (under 10 cm) to reduce noise.
Comparison: TTP223 vs TTP224
| Feature | TTP223 | TTP224 |
|---|---|---|
| Channels | 1 | 4 |
| Outputs | 1 digital | 4 digital |
| Typical board size | 15×15 mm | 30×30 mm |
| Current consumption | ~1 mA | ~2 mA |
| Best for | Single button | Keypad, multi-button |
| Price (typical) | Lower | Higher |
Both ICs are available as bare chips or breakout boards. The TTP224 is essentially four TTP223s in one package, which simplifies wiring and reduces board space when you need multiple buttons.
Cost and Availability
Both TTP223 and TTP224 are inexpensive. As of 2025, a bare TTP223 IC costs a few cents, while a breakout board costs around $1. The TTP224 is slightly more expensive, but still under $2 for a board. They are widely available from electronics distributors and online marketplaces.
For small projects, buying breakout boards is more convenient because they include the necessary resistors, capacitors, and an LED. For mass production, you would integrate the bare IC into your own PCB design.
Safety and Accuracy Notes
Capacitive touch sensors are safe for consumer electronics because they use very low voltages and currents. However, keep these points in mind:
- Do not apply voltages above 5.5 V to the VCC pin – it can damage the IC.
- Ensure the sensing pad is not exposed to water or conductive liquids, as this can cause false triggers or short circuits.
- For medical or safety-critical applications, do not rely solely on a capacitive touch sensor without additional safety measures.
- If you are using the sensor to control AC mains (e.g., a relay for a lamp), isolate the low-voltage side from the mains with proper insulation and follow local electrical codes.
Alternatives to TTP223 and TTP224
If neither IC fits your needs, consider these alternatives:
- TTP226 – a 6-channel capacitive touch sensor, useful if you need more than four buttons.
- AT42QT1010 – a single-channel capacitive touch IC with auto-calibration, good for noisy environments.
- MPR121 – a 12-channel capacitive touch controller with I2C interface, ideal for complex keypads or sliders.
- Arduino CapacitiveSensor library – if you have spare pins, you can turn any microcontroller pin into a touch sensor using a high-value resistor.
For most hobby projects, the TTP223 and TTP224 are the simplest and most cost-effective options. The alternatives are worth exploring if you need more channels, digital communication, or higher reliability.
Frequently Asked Questions
Can I use TTP223 to control AC appliances?
Yes, but not directly. The TTP223 outputs a low-voltage signal (0–5 V) that can drive a relay or a solid-state switch. You must isolate the low-voltage circuit from the AC side using a relay with proper insulation and follow safety regulations.
How do I increase the sensitivity of a TTP223?
On breakout boards, there is a small capacitor (usually 0–50 pF) connected to the CS pin. Replacing it with a larger capacitor (e.g., 100 pF) increases sensitivity. You can also enlarge the sensing pad, but keep it under 20 mm to avoid false triggers.
What is the difference between momentary and toggle mode?
Momentary mode: the output is high only while the pad is touched. Toggle mode: the output changes state (high→low or low→high) on each touch and stays there. Most boards have a jumper to select the mode.
Can the TTP224 detect multiple touches at the same time?
Yes, the TTP224 can detect touches on all four channels simultaneously. Each channel has its own output pin, so you can read all four states independently.
Does the TTP223 work through glass or plastic?
Yes, it can sense through thin non-conductive materials up to a few millimeters thick. The exact thickness depends on the material and sensitivity setting. For thicker panels, you may need to increase sensitivity.
What is the maximum distance between the sensor and the microcontroller?
For digital outputs, you can use wires up to a few meters if they are not near high-voltage or high-frequency sources. For the sensing pad itself, keep the trace short (under 10 cm) to avoid parasitic capacitance.
Related
Formula used
in t | Time to hold (s) | s | 1 | 0 | 60 in c | Number of touches | - | 1 | 1 | 100 out total | Total touch time | s | t * c | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Valheim Server Not Showing in Community List Fixes
- DisplayPort vs HDMI: Which Cable Should You Use?
- Soundbar vs 2.1 Speaker System: Which Is Better?
- Mouse Moving on Its Own? Causes & Fixes
- Slack Channels for Construction Projects: Setup Guide
- Surface Won’t Turn On: Quick Fixes1.8 h