Stop using clunky physical buttons for your Arduino projects. Instead, why not use the TTP223 capacitive touch sensor. The sensor detects your finger just like your phone screen. But the best part? It works through plastic, glass, and wood. Capacitive touch is a technology that detects touch by sensing changes in electrical capacitance on a surface — like when your finger (which conducts electricity) touches a screen or button and alters its electric field. It's the tech behind most smartphone screens and touch buttons (including the TTP223 module).

⚡Components Required

🔗 1 x TTP223: https://s.click.aliexpress.com/e/_c3UT3PPb 

🔗 1 x FNIRSI DPS-150: https://s.click.aliexpress.com/e/_c3EPIPtP  

🔗 1 x FNIRSI HS-02 Smart Soldering Iron: https://s.click.aliexpress.com/e/_c3K4TF9v

⚡Under The Microscope

This is the bottom of the module which carries the primary TTP223 IC. Both module and chip bear the same name TTP223. Then we have the 3 Pins VCC, Output and GND. These two solder joints labeled A and B - can be used to switch bet 4 diff modes, which I will explain in a moment. 

You can adjust sensitivity of the module by:

  • changing the size of the touch pad
  • by changing the thickness of the panel covering it
  • or by adding an external capacitor

A capacitor placed between the sense pin and ground Reduces Sensitivity. A smaller capacitance value means Higher Sensitivity. The adjustable range is typically between 0 to 50pF. 

  • No capacitor (0pF): Most sensitive.
  • Increasing capacitor value (up to 50pF): Module becomes progressively less sensitive.

The LED indicator lights up when the touch sensor is activated. This onboard LED gives a visual indication that the sensor pad has detected your touch.

The Front of the module has the circular or rectangular copper area, often with a fingerprint-like icon, which is the sensing surface you touch to activate the switch.

For battery-operated builds, power consumption is key - and the TTP223 delivers. At 3 volts, it consumes a tiny 1.5 microamps while waiting for a touch. When a finger approaches, it instantly ramps up to fast response mode, giving you seamless control without chewing through your battery.

⚡Operating Voltage

The Operating Voltage of the TTP223 Module is between 2.0V ~ 5.5V. While the chip can technically run down to 2.0V, the output signal strength weakens as the supply voltage drops. For reliable logic levels with 3.3V or 5V microcontrollers, powering the module at 3.3V or 5V respectively.

If you power the module with 5V, the output HIGH will be roughly around 4V. If you're connecting this to a 3.3V microcontroller, the output HIGH stays close to 2.64V. It is safer to power the module with 3.3V so it doesn't exceed the microcontroller's input limits.

⚡Jumper Config

The jumpers on the TTP223 module control two independent behaviors: Jumper A sets the output logic level, and Jumper B sets the switching behavior. So, lets connect this module to a breadboard and lets checkout the 4 operational modes.

When both A and B are not soldered - the output becomes HIGH upon touch and returns to LOW when released. This is the factory default state of a brand new module. So, it behaves like a momentary touch-to-on switch whose initial state is LOW. In other words it acts like a traditional push button switch.

When only Jumper A is soldered - The output goes LOW when touched, and stays HIGH when released. So, it behaves like a momentary touch-to-off switch whose initial state is HIGH.

When only Jumper B is soldered - The module acts like a self locking switch or toggle switch (where every touch flips the output state) that starts with an initial LOW state. One touch turns it ON, the next touch turns it OFF, holding that state until you touch it again.

When both A and B are soldered - the module still acts like a self locking switch or toggle switch however, this time it...

Read more »