Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

TTP223 Touch Sensor: Adjust Sensitivity & Output Mode

· 6 min read · Home Automation

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The TTP223 is a compact capacitive touch sensor module that outputs a digital high or low signal when you touch its pad. By default, it works in "direct mode" (output high while touched) with a fixed sensitivity, but you can change both behaviors by moving tiny solder bridges (jumpers) on the board. This guide shows you how to adjust the sensitivity (how easily it triggers) and switch between momentary (touch-to-activate) and toggle (touch-to-latch) output modes.

What You'll Need

  • TTP223 touch sensor module (the common blue or black board with 3 pins: VCC, GND, OUT)
  • Soldering iron and solder (for moving jumpers)
  • Small flat-head screwdriver or a craft knife (to scrape solder bridges if needed)
  • Multimeter (optional, to verify output)
  • Breadboard and jumper wires (for testing)
  • Power source: 2.5V to 5.5V DC (e.g., Arduino 5V or 3.3V, or a coin cell)
  • LED and resistor (220Ω to 1kΩ) to visualize output (optional)

Step-by-Step

  1. Identify the jumpers on the board. Look for small solder pads labeled A and B (sometimes marked as "S" and "M"). On most TTP223 modules, there are two sets of pads: one for sensitivity (often labeled A or with a capacitor symbol) and one for output mode (labeled B or with a "M" for mode). The default configuration is: A pads bridged (high sensitivity) and B pads open (direct mode).
  2. Understand the sensitivity options. The TTP223 has a built-in capacitor that sets the touch threshold. By bridging or opening the A pads, you change the capacitance. Typically:
    - A pads bridged (default): higher sensitivity (touch detected with a lighter touch, but may be more prone to false triggers).
    - A pads open: lower sensitivity (requires a firmer touch, but reduces false triggers). Some modules have three pads (A, B, C) for multiple levels; check the silkscreen labels.
  3. Change the output mode. The B pads control the output mode.
    - B pads open (default): Direct mode – OUT goes HIGH while the pad is touched, and goes LOW when released.
    - B pads bridged: Toggle mode – a touch flips the output state (e.g., first touch turns OUT HIGH, second touch turns it LOW) and it stays in that state until the next touch.
  4. Modify the jumpers. Using a soldering iron, either add solder to bridge the pads or remove solder to open them. To open a bridged pad, use solder wick or a desoldering pump. To bridge, apply a small amount of solder connecting the two pads. Work carefully to avoid bridging adjacent pads unintentionally.
  5. Test the module. After changing the jumpers, power the module (VCC to positive, GND to negative) and connect a multimeter or LED to the OUT pin. Touch the sensor pad and observe the output. In direct mode, the output should be HIGH only while touching. In toggle mode, each touch should change the output state and hold it.
  6. Adjust sensitivity if needed. If the sensor is too sensitive (triggers without touch) or not sensitive enough (requires very firm touch), try the opposite jumper configuration. Some modules also have a small trimmer capacitor (a tiny screw adjuster) – turn it clockwise to increase sensitivity, counterclockwise to decrease it. Note: not all modules have this trimmer.
  7. Secure the settings. Once you have the desired behavior, you can leave the jumpers as is. If the module is used in a project, apply a small piece of tape over the jumper area to prevent accidental changes or shorts.

Common Mistakes

  • Confusing the A and B pads. Bridging the wrong pads can lead to unexpected behavior. Always check the board's silkscreen or datasheet for the exact labels.
  • Using too much solder. Excess solder can bridge multiple pads, causing short circuits. Use a fine-tip iron and a small amount of solder.
  • Forgetting to power cycle. After changing jumpers, the module may not immediately reflect the new setting until you disconnect and reconnect power.
  • Assuming all modules are identical. There are several TTP223 board variants; some have different jumper layouts or additional components. Always verify the specific board's markings.

Tips

  • Use a magnifying glass or a macro lens on your phone to see the tiny pads clearly.
  • If you're unsure about the default state, test the module before modifying it – note the output behavior for a baseline.
  • For toggle mode, remember that the output state is stored in the chip's memory; it will retain its last state after power-off (if the power is removed and restored, it may start in a random state). Plan your circuit accordingly.
  • When testing sensitivity, place the module on a non-conductive surface (like wood or plastic) to avoid stray capacitance from a metal table.
  • If you need to adjust sensitivity frequently, consider using an external capacitor on the touch pad (add a small value capacitor between the pad and ground) instead of changing jumpers – this is a more advanced technique but gives finer control.

Troubleshooting

  • Output does not change after jumper modification. Ensure you have actually bridged or opened the correct pads. Use a multimeter in continuity mode to verify the connection between the two pads. Also, power-cycle the module after changes.
  • Sensor triggers without touch. This usually indicates too high sensitivity. Open the A pads (if bridged) or reduce the trimmer capacitance. Also check for nearby metal objects or wires that add stray capacitance.
  • Sensor does not trigger at all. Check that VCC and GND are connected correctly and within the 2.5-5.5V range. Verify the OUT pin is not shorted to ground. If you changed the B pads to toggle mode, try touching again – the output may already be in the HIGH state, so a touch would turn it LOW.
  • Output is erratic or flickers. This can be due to a poor ground connection or interference from the power supply. Add a 100nF decoupling capacitor between VCC and GND close to the module. Also ensure the touch pad is not too large (increase pad size can cause instability).
  • Module gets hot. This is rare but indicates a short circuit, likely from solder bridging. Disconnect power immediately and inspect the board for solder bridges.

Frequently Asked Questions

What is the default output mode of the TTP223?

The default is direct mode: the output goes HIGH when the pad is touched and LOW when released. This is with the B pads open (not bridged).

How do I make the TTP223 toggle on/off with each touch?

Bridge the B pads (the mode selection pads) with solder. After power cycling, the output will toggle its state with each touch.

Can I adjust sensitivity without soldering?

If your module has a trimmer capacitor, you can turn it with a small screwdriver. Otherwise, soldering is required to change the jumper configuration. Some modules also allow adjusting sensitivity by changing the size of the touch pad – a larger pad increases sensitivity, a smaller one decreases it.

What is the operating voltage of the TTP223?

The TTP223 chip works from 2.0V to 5.5V, but most modules are rated for 2.5V to 5.5V. Common usage is 3.3V or 5V from microcontrollers.

Does the TTP223 work through glass or plastic?

Yes, it can detect touch through non-conductive materials like glass, acrylic, or plastic up to a few millimeters thick, depending on sensitivity. Higher sensitivity (bridged A pads) allows for thicker overlays.

How do I know which pads are for sensitivity vs. mode?

Check the silkscreen on the board. Often the sensitivity pads are labeled 'A' and mode pads are labeled 'B'. Some boards use 'S' for sensitivity and 'M' for mode. If unlabeled, refer to the module's datasheet or the TTP223 IC datasheet, which shows the typical application circuit.