Touch Detector using Arduino TTP223 Capacitive Touch Sensor Switch

Arduino TTP223 Capacitive Touch Sensor Switch (Last Updated On: December 5, 2018)

Introduction:

In this project of we “interfaced TTP223 Capacitive Touch Sensor Switch with Arduino” for designing touch detector. Touch Detector using Arduino TTP223 Capacitive Touch Sensor Switch is a simple project for switching circuit with the help of simple touch. Any home appliances can be controlled with the touch sensor by interfacing relay with it.


The application areas of this project are Water proofed electric products, Button key replacement, Consumer products etc. We need Switch to control electronics appliances. Some time electrical switches will give a shock when we use electrical switches with wet hand. Electronic load is much interactive than ordinary switches, may be some projects needs touch switch. Here the Digital Capacitive touch sensor arduino interface is made as an experiment.


TTP223 CAPACITIVE TOUCH SENSOR

Introduction:

(Buy this TTP223 Online from Amazon)
A capacitive touch sensor module based on the dedicated TTP223 touch sensor IC. The module provides a single integrated touch sensing area of 11 x 10.5mm with a sensor range of ~5mm. An on-board LED will give a visual indication of when the sensor is triggered. When triggered the modules output will switch from its idle low state to high (default operation). Solder jumpers allow for reconfiguring its mode of operation to be either active low or toggle output.

Arduino TTP223 Capacitive Touch Sensor Switch

Internal Structure:

TTP223 is 1 Key Touch pad detector IC, and it is suitable to detect capacitive element variations. It consumes very low power and the operating voltage is only between 2.0V~5.5V. The response time max about 60mS at fast mode, 220mS at low power mode @VDD=3V. Sensitivity can adjust by the capacitance(0~50pF) outside.

Working Mechanism of TTP223 Capacitive Touch Sensor

Capacitive screens do not use the pressure of your finger to create a change in the flow of electricity. Instead, they work with anything that holds an electrical charge – including human skin.

When a finger hits the screen a tiny electrical charge is transferred to the finger to complete the circuit, creating a voltage drop on that point of the screen. The software processes the location of this voltage drop and orders the ensuing action.


Touch Detector using Arduino TTP223 Capacitive Touch Sensor Switch

Components Required:

1. Arduino Uno Board
2. TTP223 Capacitive Touch Sensor (Buy Online)
3. LED or Buzzer
4. Breadboard
5. Connecting Wires

Connections:

Do the connection as follows:
Sig Pin of TTP223 Capacitive Touch Sensor ——————- Arduino Digital Pin D7
Vcc Pin of TTP223 Capacitive Touch Sensor ——————- Arduino 5V
GND Pin of TTP223 Capacitive Touch Sensor ——————- Arduino GND
LED positive pin —————————————– Arduino Digial Pin D13
LED negative pin —————————————– Arduino Ground Pin

Circuit Diagram:

Arduino TTP223 Capacitive Touch Sensor Switch


Arduino Source Code:

Here is an Arduino Source Code for designing Touch Detector using Arduino TTP223 Capacitive Touch Sensor Switch.

#define ctsPin 7 // Pin for capactitive touch sensor
int ledPin = 13; // pin for the LED
void setup() {
  Serial.begin(9600);
  pinMode(ledPin, OUTPUT);  
  pinMode(ctsPin, INPUT);
}
 
void loop() {
  int ctsValue = digitalRead(ctsPin);
  if (ctsValue == HIGH){
    digitalWrite(ledPin, HIGH);
    Serial.println("TOUCHED");
  }
  else{
    digitalWrite(ledPin,LOW);
    Serial.println("not touched");
  } 
  delay(500); 
}

Video Preview & Explanation:

Recommended For You

About the Author: Alex Newton

Ask A Question .......

Close