Touch Light Using TTP223 Touch Sensor and Arduino uno - TechnoEsolution

January 29, 2022


Description

Hello, friends Welcome back to " Techno-E-Solution" In this article, I'll show you 'How to make a Touch light using a TTP223 touch sensor & Arduino Nano. In this project, we are going to use a capacitive touch sensor to control the lamp. The TTP223 touch sensor is a low power consumption sensor. Until many people used simple & old fashioned kit-Kat switches to control the appliances. Sometimes there are chances of electric shocks while using Kit-Kat switches. In this project, I will use Arduino nano to control the relay module which results in appliances connected across it getting turned on & off. We were entering the modern world & so we need to be modern. In this article, I'll share the complete details of this project with you. So without wasting any time let's make it.

Watch the video If reading bores you.

Material Required

Sr.No

Product Name

Quantity

Best Buy Link

1

Arduino Nano

1

https://amzn.to/34cS3SM

2

TTP223 Touch Sensor

1

https://amzn.to/3IICPUy

3

1-Channel Relay Module

1

https://amzn.to/3rOFl4M

4

Breadboard

1

https://amzn.to/3r4UPCI

5

Jumper Wires

1 Nos

https://amzn.to/3r4UPCI

Circuit Diagram


In the above circuit diagram, you can see the circuitry for Touch Light Using TTP223 Touch Sensor & Arduino nano. The reason behind using Arduino Nano is an awesome microcontroller with a small breadboard-friendly package that can be designed for various projects like controlling electrical devices, embedded computer applications, etc. It uses USB which can be used to connect these projects with a PC, Laptop.

What is Touch Sensor:- In single line definition the touch sensor is a type of sensor which senses the physical touch and sends digital output in form of electric current.

TTP223 Touch Sensor

The touch sensor, which we have used in this project is a capacitive touch type sensor module. The sensor driver is based on the driver IC TTP223. The operating voltage of the TTP223 IC is from 2 V to 5.5 V and the current consumption of the touch sensor is very low. The TTP223 consists of an analog front end and a digital back end, which makes it easy to use and simple to integrate into any application.

Pinouts Of TTP223 Touch Sensor

In the above image, you can see the pinout diagram of the TTP223 touch sensor. This sensor has 3 pins which are VCC, OUT & GND pins. This sensor is supplied from a 2V - 5.5V DC supply. This sensor sends output in two modes Active high & Active low. The terminals A & B are used for a special purpose or you can say for specific applications.

Features of the TTP223 Touch Sensor

  • IC Used:- TTP223
  • Dimension:- 15mm x 11mm
  • Input Voltage:- 2V - 5.5V DC
  • Supply Current:- 6uA - 16mA
  • Output Mode:- Active Low & Active High
  • Onboard Indicator LED

Arduino Code

/*
 * Hello friends welcome back to Techno-E-Solution
 * Here is the complete arduino code for Touch light using arduino.
 * Watch video tutorial of project :- https://youtu.be/fRgj2Mvnv08
 */
 
int Touch_Sensor = A5;
int LED = 13;
int Relay = 4;
 
int condition = 0;
int state = 0;
 
void setup() 
{
pinMode(Touch_Sensor, INPUT);
pinMode(LED, OUTPUT);
pinMode(Relay, OUTPUT);
}
 
void loop() 
{
condition = digitalRead(A5);
 
if(condition == 1)
{
delay(300); // de-bounce delay.
if(condition == 1)
{
state = ~state;
digitalWrite(LED, state);
digitalWrite(Relay, state);
}
}
}<br>


You can Bye me a coffee If you got this article helpful.