Touch Light Using TTP223 Touch Sensor & Arduino Nano

by Technoesolution2020 in Circuits > Arduino

1503 Views, 4 Favorites, 0 Comments

Touch Light Using TTP223 Touch Sensor & Arduino Nano

Tumbnail.png

Hello, friends Welcome back to " Techno-E-Solution" In this article, I'll show you 'How to a Touch light using a TTP223 touch sensor & Arduino nano to control the home appliances. You can control the Fan, AC, Lamp, etc by using a Touch switch. In this project we use a capacitive touch sensor to control the lamp, this sensor is used low power to operate. Until many people used simple & old fashioned kit-kat switches to control the home appliances, we were entering in the modern world & so we need to be modern. In this article, I'll share the complete details of this with you. So without wasting any time let's make it...

Wait | Wait | Wait

If you did not subscribe to our youtube channel yet, Do subscribe to our youtube channel for interesting projects.

Follow us on:-

| YOUTUBE| INSTAGRAM | FACEBOOK | INSTRUCTABLES | DAILYMOTION | HACKSTER |

Watch Complete Video Tutorial:-.

Material Required

10-14-2014-5-54-33-PM-e1604145229274.png
Inkedttp223-1-channel-capacitive-touch-sensor-module-red-color-800x800_LI-removebg-preview.png

To make this project we need the following components:-

  1. Arduino Nano X 1
  2. 1-Channel Relay Module X 1
  3. Touch Sensor TTP223 X 1
  4. Breadboard X 1
  5. Jumper Wires

[ Above links are affiliated link If you buy from the above links we get some bonus from them ]

Circuit Diagram

Untitled Sketch_bb.png

Follow the circuit diagram to make the connection.

Note:- Take the help of an expert person/electrician to make an AC lamp connection with Relay, Because work with AC supply is dangerous.

Arduino Code

arduino_logo_1200x630-01.png

Copy the following code & upload it to the Arduino

/*
 * 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>

Demo & Working

If you like this project subscribe to our youtube channel for a more interesting project.