Table of Contents
- 1 Touch Based Door Lock System Using Arduino:
- 2 TTP223 CAPACITIVE TOUCH SENSOR
- 3 Components Required
- 4 Circuit Diagram & Connections
- 5 Practical Working of the Project:
- 6 Source Code/Programs:
- 7 Video Tutorial & Explanation:
- 8 Share & Spread Love:
- 9 Related Posts
Touch Based Door Lock System Using Arduino:
In this project of we will learn How to design Touch Based Door Lock System Using Arduino & Touch Sensor TTP223. Door Lock System using Arduino & TTP223 Capacitive Touch Sensor Switch is a simple project for switching circuit, i.e switching the servo motor on/off with the help of simple touch. The door can be locked or unlocked just by simply touching. We are using Touch Sensor TTP223 as a switch and LCD to display the status of door lock and LED to indicate on/off status as well.
The application area of this project are home and office where simple touch can open and close the door. Interfacing touch sensor TTP223 with Arduino acts as a switch for unlocking the door.
Before starting you can check our previous project Touch Detector using Arduino TTP223 Capacitive Touch Sensor Switch
TTP223 CAPACITIVE TOUCH SENSOR
(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.
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.
1. Arduino Uno Board 2. TTP223 Capacitive Touch Sensor - (Buy Online from Amazon) 3. 16X2 LCD Display 4. SG90 Servo Motor - (Buy Online from Amazon) 5. LED 6. Resistor 330 ohm 7. Breadboard 8. Connecting Wires
Circuit Diagram & Connections
Connect the signal pin of TTP223 Touch Sensor to Arduino Digital Pin 7.
Connect servo motor signal pin to Arduino Digital Pin 3.
Connect the LED to Arduino Digital Pin 5 via 330 ohm resistor.
Connect the LCD to analog pin A0, A1, A2, A3, A4, A5 of Arduino as shown in the figure.
Practical Working of the Project:
After the Code Uploaded the, the LCD will display
Touch Based Door Lock System
The servo Motor will reset to original position.
If the Touch Sensor is Touched, the LCD will display 2 Lines
Status: Unlocked Touch to Lock
Similarly Servo Motor will rotate by 180 degree and LED will glow.
If the Touch Sensor is Touched again , the LCD will display 2 Lines
Status: Locked Touch to Unlock
Similarly Servo Motor will rotate reversely by 180 degree a and LED will get off.
You can see these in the photos below.
Here is a code for Touch Based Door Lock System Using Arduino & Touch Sensor TTP223. Copy the code, the cmpile and upload to Arduino UNO Board.