Tag: ESP32 light switch

1 articles found.

ESP32 Capacitive Touch Light Panel with MPR121 - Proteus Simulation

ESP32 Capacitive Touch Light Panel with MPR121 - Proteus Simulation: the ESP32, the MPR121 touch controller, four lights, a dimmed W5W lamp and an I2C LCD

Hello friends, I hope you all are doing great. Today, I am going to share the ESP32 Capacitive Touch Light Panel with MPR121 - Proteus Simulation, the ninety-third project of our IoT Projects series. If you have searched for an ESP32 touch switch, how to use the MPR121 capacitive touch sensor, a touch slider dimmer, or how capacitive touch really works, here is a complete wall panel in a Proteus simulation. Modern light switches have no buttons at all: a sheet of glass, some copper behind it, and a chip that notices when your finger comes close. This panel has twelve pads, read by an MPR121 on the ESP32's I2C bus. Four pads are keys: a tap toggles a light, a one-second hold switches everything off (or everything on). The other eight sit in a row and form a slider: slide your finger along it and a 12 V lamp follows, dimmed by PWM through a logic-level MOSFET. The ESP32 works out where the finger is between two pads from how strongly each one feels it. An LCD shows the state, and a dashboard on the Wi-Fi controls everything, adds a child lock and shows each pad's raw capacitance reading live. In this tutorial, we will go through the circuit, how a capacitive pad and the MPR121 measure a finger, the baseline and the two thresholds, how a slider finds a position between pads, how to tell a tap from a hold, and the code. Then we tap, swipe and hold in the simulation and watch the numbers. At the end, you can download the project with the sketch and every library file. NOTICE: Our ...