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

20260316_165345[1].jpg
20260316_170305[1].jpg

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.

Supplies

Screenshot 2026-03-14 171637.png
Screenshot 2026-03-14 171711.png
Screenshot 2026-03-16 170711.png

Components List:

  1. ESP32 Dev Module
  2. Touch Sensor Module (TTP223B)
  3. LCD Display
  4. I2C Module
  5. LED
  6. Breadboard
  7. Jumper wires

About the Sensor

Screenshot 2026-03-16 170628.png
Screenshot 2026-03-16 170650.png

The Touch Sensor (TTP223):

  1. The TTP223 Touch Sensor Module is a capacitive touch switch that can detect human touch.
  2. It works by sensing he change in capacitance when a finger comes in contact with the sensor pad.
  3. A Sensor does not need require mechanical pressure.
  4. A simple touch from a finger is enough to trigger the sensor output.
  5. The module provides a digital output signals that can be easily connected to microcontrollers such as ESP32, Arduino, etc.
  6. It has three pins : VCC, GND, OUT.

Connections

20260316_170305[1].jpg

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

20260316_165313[1].jpg
20260316_165345[1].jpg

Working

  1. The touch sensor continuously monitors the surface of the sensor pad.
  2. When a person touches the sensor with their finger, the sensor detects a change in capacitance and sends a signal to the ESP32.
  3. The ESP2 reads this signal and determines whether a touch has occurred.
  4. When touch is detected, the ESP32 turns on the LED and Displays 'Touch Detected' on the LCD screen.
  5. 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:

  1. Touch-Based Light Switches
  2. Smart Home Control Panels
  3. Security System


Conclusion

  1. This project demonstrates how a touch sensor can be used with ESP32 to detect human touch.
  2. The system provide clear feedbacks whenever a touch events occurs.