Project Files of ESP32 Capacitive Touch Light Panel with MPR121 - Proteus Simulation
cd30e71e183a4260a9e17ab40661403e.zip

ESP32 Capacitive Touch Light Panel with MPR121 - Proteus Simulation V1.0
ESP32 Capacitive Touch Light Panel with MPR121 - Proteus Simulation V1.0 comes as a ZIP archive of 27 files (4.8 MB, 10.5 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware.
- LIBProteus library
- DLLProteus model
- DSNProteus simulation
- INOArduino sketch
- HEXHEX firmware
Description
ESP32-Capacitive-Touch-Light-Panel-MPR121-Proteus-Simulation-v1.0.zip: the complete Proteus simulation project (an ESP32 DevKit V1, an MPR121 touch sensor, four 5 mm LEDs, an IRLZ44N with a W5W lamp, an I2C LCD 16x2, the Laptop and Mobile WiFi Monitors), the Arduino sketch ESP32_Touch_Panel.ino and its HEX, every LIB and DLL and a README.
File Structure
13.5 KB17.7 KB36.6 KB181.4 KB39.5 KB21.8 KB13.1 KB20.2 KB17.9 KB306.9 KB291 KB409 KB289.5 KB308 KB3.0 MB295 KB311 KB36.1 KB83 KB291 KB409 KB289.5 KB308 KB3.0 MB295 KB311 KB11.5 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in ESP32 Capacitive Touch Light Panel with MPR121 - Proteus Simulation. Open an image for its full size.












README
===============================================================================================================
ESP32 Capacitive Touch Light Panel with MPR121 - Proteus Simulation - Project V1.0
The Engineering Projects - www.TheEngineeringProjects.com
===============================================================================================================
IMPORTANT LINKS
The project tutorial (circuit, code, simulation results):
https://www.theengineeringprojects.com/2026/12/esp32-capacitive-touch-light-panel-mpr121-proteus-simulation.html
The libraries this project is built from (each post has its own full download and tutorial):
ESP32 DevKit V1 board:
https://www.theengineeringprojects.com/2026/10/esp32-devkit-v1-library-for-proteus-v2-0.html
MPR121 touch sensor:
https://www.theengineeringprojects.com/2026/11/mpr121-touch-sensor-library-for-proteus.html
5mm LED:
https://www.theengineeringprojects.com/2026/11/5mm-led-library-for-proteus.html
N-MOSFET (IRLZ44N):
https://www.theengineeringprojects.com/2026/11/n-mosfet-library-for-proteus.html
Filament bulb (W5W):
https://www.theengineeringprojects.com/2026/11/filament-bulb-library-for-proteus.html
Resistor:
https://www.theengineeringprojects.com/2026/11/resistor-library-for-proteus.html
I2C LCD 16x2:
https://www.theengineeringprojects.com/2026/10/i2c-lcd-16x2-library-for-proteus-v1-0.html
Laptop WiFi Monitor:
https://www.theengineeringprojects.com/2026/10/laptop-wifi-monitor-library-for-proteus.html
Mobile WiFi Monitor:
https://www.theengineeringprojects.com/2026/10/mobile-wifi-monitor-library-for-proteus.html
Support our free work: https://www.theengineeringprojects.com/donate
FILE STRUCTURE
ESP32-Touch-Panel-TEP-v1.0/
|-- Proteus Library Files/
| |-- TEPBULB.LIB 17.7 KB a part of the project -> LIBRARY folder
| |-- TEPESP32V1.LIB 36.6 KB a part of the project -> LIBRARY folder
| |-- TEPI2CLCD16X2.LIB 181.4 KB a part of the project -> LIBRARY folder
| |-- TEPLAPTOP.LIB 39.5 KB a part of the project -> LIBRARY folder
| |-- TEPLED5MM.LIB 21.8 KB a part of the project -> LIBRARY folder
| |-- TEPMOBILE.LIB 13.1 KB a part of the project -> LIBRARY folder
| |-- TEPMPR121.LIB 20.2 KB a part of the project -> LIBRARY folder
| |-- TEPNMOS.LIB 17.9 KB a part of the project -> LIBRARY folder
| |-- TEPRESISTOR.LIB 306.9 KB a part of the project -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEPBULB.DLL 291.0 KB a model -> MODELS folder
| |-- TEPLCD.DLL 409.0 KB a model -> MODELS folder
| |-- TEPLED5MM.DLL 289.5 KB a model -> MODELS folder
| |-- TEPMPR121.DLL 308.0 KB a model -> MODELS folder
| |-- TEPNET.DLL 3.01 MB a model -> MODELS folder
| |-- TEPNMOS.DLL 295.0 KB a model -> MODELS folder
| |-- TEPRESISTOR.DLL 311.0 KB a model -> MODELS folder
|-- Proteus Simulation/
| |-- ESP32_Touch_Panel.hex 83.0 KB the firmware U1 runs
| |-- ESP32-Touch-Panel.pdsprj 36.1 KB the project simulation
| |-- TEPBULB.DLL 291.0 KB copy of the model
| |-- TEPLCD.DLL 409.0 KB copy of the model
| |-- TEPLED5MM.DLL 289.5 KB copy of the model
| |-- TEPMPR121.DLL 308.0 KB copy of the model
| |-- TEPNET.DLL 3.01 MB copy of the model
| |-- TEPNMOS.DLL 295.0 KB copy of the model
| |-- TEPRESISTOR.DLL 311.0 KB copy of the model
|-- Arduino Code/
| |-- ESP32_Touch_Panel/ESP32_Touch_Panel.ino 13.5 KB the sketch (source of the .hex)
|-- README.txt ~11.1 KB this file
Total: 10.52 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
A wall light panel with no moving parts: twelve copper pads behind the front glass, read by an MPR121 capacitive
touch controller and an ESP32. Four pads are keys - a tap toggles a light, a hold switches everything off (or on) -
and eight pads in a row are a slider that dims a 12 V lamp: the lamp follows the finger. The panel is on Wi-Fi too:
every light, the lamp and a child lock from a laptop or a phone, and each pad's raw capacitance reading live.
* U1 ESP32 DEVKIT V1 runs ESP32_Touch_Panel.hex on TEP-WiFi at 192.168.1.101.
* U2 an MPR121 breakout (TOUCHMPR121TEP) on I2C at 0x5A (ADD to GND): SDA D21, SCL D22, IRQ (open drain, active
low) on D4, 3.3V on +3.3V. Its electrodes E0 - E11 are the panel's pads.
* D1 - D4 5 mm LEDs for the four lights (yellow HALL, green DESK, orange PORCH, red NIGHT) on D27, D26, D25 and D33,
each through 220 ohm (R1 - R4).
* L1 a W5W 12 V 5 W lamp (BULBW5WTEP) from +12V to the drain of Q1, an IRLZ44N (IRLZ44NTEP); the gate from D32
through R5 220 ohm, a 500 Hz PWM.
* LCD1 an I2C LCD 16x2 (I2CLCD16X2BLUEADVTEP, 0x27) on the same bus, VCC from the DevKit's VIN (5 V).
* Laptop WiFi Monitor (PC1) and Mobile WiFi Monitor (MOB1) open http://192.168.1.101/.
What the sketch does:
the MPR121 set up with its own registers (no library): a soft reset, a touch threshold of 12 and a release
threshold of 6 on every pad, then run mode for all 12 (ECR = 0x8C); when IRQ goes LOW it reads the
touch status (0x00 / 0x01) and each pad's filtered data and baseline: delta = baseline - data
the keys E0 - E3: a TAP (the finger lifted within 1 s) toggles HALL, DESK, PORCH or NIGHT; HOLD E0 for 1 s =
ALL OFF, HOLD E3 for 1 s = ALL ON (the four lights and the lamp at 100 %)
the slider E4 - E11: the finger's position is the centroid of the touched pads, each weighted by its delta -
E4 = 0 %, E11 = 100 %, a finger across two pads = the point between them; the lamp follows it and
fades (1 s for the whole range); a move of two pads or more is reported as a SWIPE
LOCK a child lock from the dashboard: the pads are still read, but change nothing
the LCD LIGHTS 1 . 3 . (the lights on) / LAMP 57% ###--- (or LOCKED); a line is written only when it changes
Its pages:
/ the dashboard with the links Refresh, ALL OFF, ALL ON, HALL, DESK, PORCH, NIGHT, LOCK, LAMP 0 %,
LAMP 50 % and LAMP 100 %; the lights, the lamp, the touched pads, every pad's delta, the last events
/data JSON: the lights, the lamp and its target, the lock, the touch status, the touches, and the 12 pads'
filtered data, baselines and deltas
Libraries: WiFi, WebServer and Wire (part of the ESP32 core), LiquidCrystal_I2C.
TEST STATUS
Tested in Proteus 8 Professional on Windows 11, the run that made the tutorial's screenshots (the times are the
sketch's clock; the MPR121's pop-up gives each pad's data, baseline and delta; the fingers from its chips):
- 3.39 s READY: the MPR121 at 0x5A (3.30 V), ECR 0x8C, 12 pads running, about 700 counts each, deltas within 3.
- Taps: E0 touched at 7.07 s, lifted at 7.39 s: HALL ON. E2 frozen while touched (data 653, baseline 712, delta 59,
status 0x004), lifted after 1.8 s: PORCH ON.
- A swipe along E4 ... E11, frozen with the finger across E8 + E9 (deltas 61 and 61, status 0x300): the lamp on its
way to 64 % (2452 K, 22 lm); SWIPE right: 0 % to 100 % in 4166 ms; the lamp at 100 %: 2699 K, 50 lm, 4.99 W.
- A slider tap on E6: LAMP 29 % - 2056 K, 5 lm; the IRLZ44N switching 501 times a second, about 29 % on.
- Hold E3: ALL ON 1.00 s after the touch (the lift changed nothing). LOCK from the web: a tap on E1 ignored ("DESK
tap ignored: LOCKED"); UNLOCK. Hold E0: ALL OFF 1.00 s after the touch, the lamp fading out (39 %: 2180 K, 8 lm).
- From the dashboard: DESK ON and LAMP 50 % (2321 K, 13 lm). 36.9 s of simulation in 469 s.
- Our first run: the hold fired the instant E0 was touched - loop() read millis() before touchUpdate() stamped the
touch, and the unsigned difference wrapped round; now a fresh millis() is taken after the update.
INSTALLATION
1. Close Proteus. Extract the WHOLE zip file, for example to your Desktop.
2. Copy the files from "Proteus Library Files" into the LIBRARY folder of Proteus, for example
C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY
3. Copy the files from "Proteus Model Files" into the MODELS folder (next to LIBRARY).
4. Start Proteus. Press P in the schematic and search for ESP32 DEVKIT V1 or MPR121 to check that the parts are
there.
RUN THE SIMULATION
1. Open "Proteus Simulation\ESP32-Touch-Panel.pdsprj". Keep ESP32_Touch_Panel.hex and the DLL files beside it.
2. Press Play. Click U2 for the MPR121's pop-up: its chips E0 - E11 put a finger on a pad and take it off again.
Tap E0 - E3 for the lights; touch E4 ... E11 one after the other for the slider; hold E0 for ALL OFF.
A click on an electrode pin on the sheet touches it too.
3. Open the Laptop or the Mobile WiFi Monitor (Go): the lights, ALL OFF / ALL ON, LOCK and the lamp.
PROPERTIES USED IN THIS PROJECT
U1 ESP32 DEVKIT V1 PROGRAM=ESP32_Touch_Panel.hex
U2 TOUCHMPR121TEP TOUCH=NONE (DEMO plays the library's own sequence of touches from 1 s)
D1 - D4 LED5MMYELLOWTEP, LED5MMGREENTEP, LED5MMORANGETEP, LED5MMREDTEP; R1 - R5 220 ohm (RESISTOR4BANDTEP)
Q1 IRLZ44NTEP; L1 BULBW5WTEP; LCD1 I2CLCD16X2BLUEADVTEP; PC1, MOB1 HOMEPAGE=http://192.168.1.101/
TROUBLESHOOTING
* MPR121 NOT FOUND on the serial monitor: SDA / SCL swapped, 3.3V not powered, or ADD not on GND (0x5B then).
* No touches: the sketch never wrote ECR (the MPR121's pop-up says STOP MODE), or the thresholds are 0.
* A light toggles only when the finger lifts: that is the tap - a hold must be told apart from it.
* The lamp does not dim, only on / off: a PWM of 1 kHz or more reaches the MOSFET as its average voltage in the
simulation - keep 500 Hz.
* Real hardware: short electrode wires, apart from each other; a thin non-conductive front (glass, acrylic); the
thresholds suit pads of a few square centimetres.
LICENCES
* The project, the sketch, the parts (LIB files) and the models (DLL files) are made by The Engineering Projects
and are free for learning and for your own projects. The models use only standard Windows libraries.
The C++ source code of the models is not included; the source code is not included for any model.
* The .hex file is built with the TEP Boards for Proteus and the LiquidCrystal_I2C library (1.1.2).
* Proteus is a product of Labcenter Electronics and is not included. ESP32 is a product of Espressif Systems. This
project is not made or endorsed by them.
VERSION
V1.0 - the first release of the project.
===============================================================================================================Development1 release
-
V1.0ESP32 Capacitive Touch Light Panel with MPR121 - Proteus Simulation V1.0this page
V1.0 is the only release in the Download Center so far. When a newer version is published, it appears above with its own download page.
Installation8 steps
From the download to a working project, in order. The steps follow what the package contains.
You will need
- Proteus Design SuiteProteus 8 or newer (Labcenter), on Windows
- Arduino IDE1.8 or 2.x, with the board of the tutorial chosen under Tools → Board
- Any archive toolWindows, macOS and Linux extract ZIP files on their own
Steps
- 1
Extract the archive
Right-click cd30e71e183a4260a9e17ab40661403e.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (ESP32-Touch-Panel-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move TEPBULB.LIB, TEPESP32V1.LIB and TEPI2CLCD16X2.LIB and 6 more and the files into the LIBRARY folder of your Proteus installation: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY for Proteus 8, or the matching Proteus 7 folder. Older versions keep it under ProgramData\Labcenter Electronics. If Proteus is open, close it first.
- 3
Add the simulation model
Copy TEPBULB.DLL, TEPLCD.DLL and TEPLED5MM.DLL and 4 more into the MODELS folder next to LIBRARY, so the component can run, not only be drawn.
- 4
Restart Proteus and place the component
Start Proteus, open a schematic, press P (Pick Devices) and search for the component by the name used in the tutorial. It appears with its pins ready to wire.
- 5
Open the sketch in the Arduino IDE
Open ESP32_Touch_Panel.ino, select your board and port under Tools, then Verify. Sketch → Export Compiled Binary writes the HEX file a simulation needs.
- 6
Load the HEX file
In Proteus double-click the microcontroller, set Program File to ESP32_Touch_Panel.hex and run the simulation. For real hardware, flash the same file with your programmer.
- 7
Open the example simulation
Open ESP32-Touch-Panel.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.
- 8
Follow the tutorial
ESP32 Capacitive Touch Light Panel with MPR121 - Proteus Simulation explains every connection and setting in order; keep it open beside the files while you build.
FAQs9 questionsContact TEP
How do I download ESP32 Capacitive Touch Light Panel with MPR121 - Proteus Simulation V1.0?
Wait for the 30-second guest countdown on this page, then press the download button; the file comes straight from our storage. Members who are logged in skip the wait. If the browser opens the file instead of saving it, use its Save as option. The download link is made for you when the countdown ends and works for 15 minutes; a saved or shared link stops working, so share this page instead.
What is inside the archive?
ESP32 Capacitive Touch Light Panel with MPR121 - Proteus Simulation V1.0 comes as a ZIP archive of 27 files (4.8 MB, 10.5 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware. Open the File Structure tab for the full list of 27 files.
What should I do if the download does not start?
Check the browser's download list first; an ad blocker or a company firewall can also hold it back, so try another browser or network. If the file arrives incomplete, download it again. For an installation problem, read the Install tab or tell us in the comments with your software version and the exact error message.
Is this file free?
Yes. Every file in the TEP Download Center is free for learning, personal and student projects. If you share it, link back to this page or the tutorial so others find the latest version.
How do I check that the file arrived complete?
Compare its SHA-256 with the one on this page, 2757fcb0919c91fe73de8ed2c45a980c98b74b718f2ccf9e8c97336ba09c2393. In PowerShell run Get-FileHash "cd30e71e183a4260a9e17ab40661403e.zip"; on macOS or Linux run shasum -a 256 "cd30e71e183a4260a9e17ab40661403e.zip". The same value means the file is exactly the one in our storage; a different one means the download broke off, so download it again.
Do I need WinRAR to open the ZIP file?
No. Windows, macOS and Linux open ZIP archives on their own (Extract All, or double-click). WinRAR and 7-Zip work too. Extract the whole archive before using the files.
Where do I put the LIB and IDX files?
Both files go into the LIBRARY folder of your Proteus installation (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY; Proteus 7 has the same folder under its own name). Restart Proteus afterwards and search for the component with P.
Which Proteus version does the library need?
The tutorial names the Proteus version the library was made and tested with. Most TEP libraries work in Proteus 7 and Proteus 8; if the component does not appear after a restart, check that both the LIB and the IDX file were copied and that Proteus was fully closed while copying.
How do I get the HEX file into the simulation?
Compile the sketch in the Arduino IDE (Sketch → Export Compiled Binary gives you the HEX next to the sketch), then in Proteus double-click the board, set Program File to that HEX and run.
Members skip the wait. Log in or join TEP.
- 0Total downloads
- 4%Popularity
- ESP32 ProjectsCategory
- 0Comments
- ssyedzainnasirUploaded by
- 2 Dec 2026Uploaded at
2757fcb0919c91fe73de8ed2c45a980c98b74b718f2ccf9e8c97336ba09c2393






















Comments
0