ESP32 Sensor System With LCD Display & LED
by mansiramteke139 in Circuits > Sensors
954 Views, 2 Favorites, 0 Comments
ESP32 Sensor System With LCD Display & LED
In this project, I worked with a Touch Sensor with the ESP32 Microcontroller to detect human touch. When a user touches the sensor, the ESP32 detect the signal and displays a message on the LCD Display. At the same time LED indicator turns ON to show that the touch has been detected.
Touch sensors are widely used in modern electronic devices such as smartphone, touch lamps and smart home control panels because they provide a simple and reliable way of interaction without mechanical buttons.
Downloads
Supplies
Components List:
- ESP32 Dev Module
- Touch Sensor Module (TTP223B)
- LCD Display
- I2C Module
- LED
- Breadboard
- Jumper wires
About the Sensor
The Touch Sensor (TTP223):
- The TTP223 Touch Sensor Module is a capacitive touch switch that can detect human touch.
- It works by sensing he change in capacitance when a finger comes in contact with the sensor pad.
- A Sensor does not need require mechanical pressure.
- A simple touch from a finger is enough to trigger the sensor output.
- The module provides a digital output signals that can be easily connected to microcontrollers such as ESP32, Arduino, etc.
- It has three pins : VCC, GND, OUT.
Connections
Touch Sensor Connection:
Touch Sensor - ESP32
VCC - 3.3V
GND - GND
OUT - GPIO 4
LCD Coonection:
LCD - ESP32
VCC - 5V
GND - GND
SDA - GPIO 13
SCL - GPIO 14
LED Connection:
LED(+) - GPIO 26
LED(-) - GND
CODE
Downloads
OUTPUT
Downloads
Working
- The touch sensor continuously monitors the surface of the sensor pad.
- When a person touches the sensor with their finger, the sensor detects a change in capacitance and sends a signal to the ESP32.
- The ESP2 reads this signal and determines whether a touch has occurred.
- When touch is detected, the ESP32 turns on the LED and Displays 'Touch Detected' on the LCD screen.
- When there is no touch, the LED remains off and the LCD shows 'No Touch'.
Applications
The Touch Sensors are commonly used in many modern electronic system such as:
- Touch-Based Light Switches
- Smart Home Control Panels
- Security System
Conclusion
- This project demonstrates how a touch sensor can be used with ESP32 to detect human touch.
- The system provide clear feedbacks whenever a touch events occurs.