TEP DOWNLOAD CENTER

Project Files of MPR121 Touch Sensor Library for Proteus Simulation

Libraries Code Projects Simulation
tep://download-terminal 66fdebb5523b4e4da32e852ec1b2ad73.zip ZIP archiveV1.0Verified0 downloadsFree
MPR121 Touch Sensor Library for Proteus Simulation: the MPR121 board, an Arduino UNO V4.0 and a speaker as a touch piano
Proteus library · File 1 of 1

MPR121 Touch Sensor Library for Proteus V1.0

MPR121 Touch Sensor Library for Proteus V1.0 comes as a ZIP archive of 16 files (1.8 MB, 4.1 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

MPR121-Touch-Sensor-Library-for-Proteus-v1.0.zip with the MPR121 touch sensor for Proteus simulation (TEPMPR121.LIB and TEPMPR121.DLL), our resistors and speaker, our Arduino UNO V4.0, the A4 demo, its sketch and a README.

Read MPR121 Touch Sensor Library for Proteus Simulation

File Structure

66fdebb5523b4e4da32e852ec1b2ad73.zip16 files · 5 folders · 4.1 MB unpacked
MPR121-Touch-Sensor-TEP-v1.0/16 files · 4.1 MB
Arduino Code/1 file · 2.8 KB
MPR121_Demo/1 file · 2.8 KB
INO MPR121_Demo.inoArduino sketch 2.8 KB
Proteus Library Files/4 files · 540.1 KB
LIB ArduinoV4TEP.LIBProteus library 201.9 KB
LIB TEPMPR121.LIBProteus library 20.2 KB
LIB TEPRESISTOR.LIBProteus library 306.9 KB
LIB TEPSPEAKER.LIBProteus library 11 KB
Proteus Model Files/4 files · 1.7 MB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPMPR121.DLLSimulation model 308 KB
DLL TEPRESISTOR.DLLSimulation model 311 KB
DLL TEPSPEAKER.DLLSimulation model 286 KB
Proteus Simulation/6 files · 1.8 MB
DSN MPR121-Touch-Piano-ArduinoUnoV4.pdsprjProteus simulation 24 KB
HEX MPR121_Demo.hexCompiled HEX file 21.2 KB
DLL TEPARDUINO.DLLSimulation model 883.5 KB
DLL TEPMPR121.DLLSimulation model 308 KB
DLL TEPRESISTOR.DLLSimulation model 311 KB
DLL TEPSPEAKER.DLLSimulation model 286 KB
TXT README.txtText file 12.5 KB

README

README.txt 215 lines
MPR121 TOUCH SENSOR LIBRARY FOR PROTEUS SIMULATION - V1.0 (12 capacitive touch electrodes on I2C, a pop-up)
Designed by The Engineering Projects
www.TheEngineeringProjects.com

IMPORTANT LINKS
Article (read it first - pictures, step by step, every feature explained):
  https://www.theengineeringprojects.com/2026/11/mpr121-touch-sensor-library-for-proteus.html
Report a bug or suggest a feature (our forum):
  https://www.theengineeringprojects.com/forum
The demo runs on our Arduino UNO V4.0 (included) - working LEDs, RESET and a
built-in serial monitor, no Virtual Terminal to wire - its own article:
  https://www.theengineeringprojects.com/2026/10/arduino-uno-library-for-proteus-v40.html
Support us (the libraries are free):
  https://www.theengineeringprojects.com/donate

FILE STRUCTURE
MPR121-Touch-Sensor-TEP-v1.0/
|-- Proteus Library Files/
|   |-- ArduinoV4TEP.LIB                              201.9 KB   TEP Arduino boards V4.0 (UNO) -> LIBRARY
|   |-- TEPMPR121.LIB                                  20.2 KB   the library -> LIBRARY folder
|   |-- TEPRESISTOR.LIB                               306.9 KB   a part the demo uses -> LIBRARY folder
|   |-- TEPSPEAKER.LIB                                 11.0 KB   a part the demo uses -> LIBRARY folder
|-- Proteus Model Files/
|   |-- TEPARDUINO.DLL                                883.5 KB   the Arduino board model -> MODELS folder
|   |-- TEPMPR121.DLL                                 308.0 KB   the model -> MODELS folder
|   |-- TEPRESISTOR.DLL                               311.0 KB   its model -> MODELS folder
|   |-- TEPSPEAKER.DLL                                286.0 KB   its model -> MODELS folder
|-- Proteus Simulation/
|   |-- MPR121_Demo.hex                                21.2 KB   the demo firmware
|   |-- MPR121-Touch-Piano-ArduinoUnoV4.pdsprj         24.0 KB   the demo project
|   |-- TEPARDUINO.DLL                                883.5 KB   copy of the board model
|   |-- TEPMPR121.DLL                                 308.0 KB   copy of the model
|   |-- TEPRESISTOR.DLL                               311.0 KB   copy of its model
|   |-- TEPSPEAKER.DLL                                286.0 KB   copy of its model
|-- Arduino Code/
|   |-- MPR121_Demo/MPR121_Demo.ino                     2.8 KB   the demo sketch (source of the .hex)
|-- README.txt                                        ~13.3 KB   this file
Total: 4.08 MB (unzipped). The C++ source code of the models is not included.

WHAT IS IT?
The common MPR121 12-electrode capacitive touch breakout, drawn from the top at its real size: the
24 x 34 mm blue board, the MPR121, its 3.3 V
regulator and pull-ups, the PWR LED, the header IRQ SCL SDA ADD 3.3V GND and the electrode pins E0 -
E11. The drawing is our own; the model
follows the MPR121 datasheet:
  * I2C at 0x5A (ADD to GND) or 0x5B (ADD high); the register pointer first, then auto-increment.
  * The registers: touch status (0x00 / 0x01), the filtered data (0x04 - 0x1D) and baselines (0x1E -
    0x2A) of every electrode, the touch /
    release thresholds (0x41 - 0x5A), debounce (0x5B), the AFE and filter configuration (0x5C /
    0x5D), ECR (0x5E), soft reset (0x80 = 0x63);
    the configuration registers take writes only in stop mode, as on the chip.
  * Touch and release by the thresholds against the baseline, the baseline following an untouched
    electrode, IRQ (open drain, active
    low) on every change of the status, released by reading it.
  * The fingers: TOUCH DEMO plays a sequence, the pop-up's chips E0 - E11 touch one, a click on an
    electrode pin on the sheet touches it,
    and an electrode pin pulled LOW by the circuit (a button to GND) counts as a finger. Touched
    pads light up on the sheet.
  * Click the board for the pop-up: the 12 electrodes with their data, baselines and deltas against
    the thresholds, the touch status over
    time, the I2C traffic; graphs, an event log and a check page.
The body is drawn as on the real part and to true scale against our Arduino.
The TEP signature and the pop-up are TEP additions.

ONE DEVICE (search "MPR121" or "touch" in Pick Devices):
  TOUCHMPR121TEP  "MPR121 Touch Sensor V1.0" in TEPMPR121.LIB (Modules > Sensors), prefix U, model
  TEPMPR121.DLL (mixed).
                  Pins: IRQ SCL SDA ADD 3.3V GND (left), E0 - E11 (right).
  The demo also uses our resistors (RESISTOR4BANDTEP, TEPRESISTOR) and our 28 mm speaker
  (MINISPEAKER28TEP, TEPSPEAKER).

THE POP-UP
Click the part at Run. The toolbar: E0 - E11 (a finger on / off), Release all, Demo. Tabs:
    Touch Sensor  The 12 electrodes (data, baseline, delta against the touch / release thresholds),
    the touch status over time; tiles: the
                  address and the supply, ECR, the touch status, IRQ, the reads and writes, the
                  status reads, the touches, the last touch.
    Graphs     the live values over the last 2, 6 or 15 s. Live / Freeze.
    Event log  every change and warning; filters All / Changes / Warnings, Pause, Clear
    Check      what the part is doing and what to look at, each with a verdict (green = fine, amber
    = check, red = wrong)
    Settings   theme, text size, open at Run, window size
    Help       report a bug, suggest a feature, article, updates, donate, forum; Copy diagnostics
    for a bug report

TEST STATUS
V1.0: verified in Proteus 8.5 on 21 Nov 2026 (the demo project as shipped: an A4 sheet, an Arduino UNO V4.0).
What the runs showed (the model's own numbers and the sketch's monitor):
  * The project loads and starts cleanly; the demo ran 5.6 simulated seconds in about 2 minutes on
    our PC with the pop-up open and the
    pictures being taken.
  * Power-up at 0x5A (ADD low); the sketch: soft reset at 76 ms, the thresholds 12 / 6 on all
    electrodes, ECR = 0x8C at 85 ms (12 electrodes,
    the baselines from the first samples, a sample every 16 ms); 27 writes.
  * The DEMO touches: E0 at 1.013 s (data 641, baseline 700, delta 59 > 12), released at 1.477 s
    (delta under 6); then E2, E4, E5, E7, E11,
    each touched ~13 ms after the finger and released ~70 ms after it; E1 + E9 together at 4.613 s:
    touch status 0x202.
  * IRQ low at every change, released by each status read: 14 reads (28 status registers), no NACK,
    nothing written in run mode.
  * The Arduino printed every touch with its note and played C4 ... B4 on the speaker (C#4 for the
    two keys together).
  * The pop-up (Touch Sensor, Graphs, Event log, Check) followed the run.

INSTALLATION (about 2 minutes)
1. Close Proteus. Extract the WHOLE ZIP to a normal folder (e.g. Desktop).
2. Copy everything in "Proteus Library Files" (TEPMPR121.LIB, TEPRESISTOR.LIB, TEPSPEAKER.LIB and
our Arduino library V4.0, ArduinoV4TEP.LIB, with the ARDUINO UNO V4.0 used by the demo) to the
LIBRARY folder of Proteus, for example:
     C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY
   (use the folder that already holds Proteus's own .LIB files).
3. Copy TEPMPR121.DLL, TEPRESISTOR.DLL, TEPSPEAKER.DLL and TEPARDUINO.DLL from "Proteus Model Files"
to the MODELS folder (...\Proteus 8 Professional\MODELS).
4. Delete TEPMPR121.IDX from the LIBRARY folder if it is there (Proteus makes a new index).
5. Start Proteus. In Pick Devices (P) search "MPR121".

RUN THE DEMO
"Proteus Simulation\MPR121-Touch-Piano-ArduinoUnoV4.pdsprj" (an A4 sheet) - keep the .hex file and
the DLLs beside the project.
  ARD1:   Arduino UNO V4.0 running MPR121_Demo.hex (window "TEP Arduino UNO - ARD1"): A4 / A5 = SDA
  / SCL, D2 = IRQ, D8 = the speaker.
  U1:     the MPR121 (TOUCH DEMO): ADD and GND to the ground (0x5A), 3.3V on +3.3V.
  R1, LS1: 100 ohm from D8 to our 28 mm speaker.
  The sketch sets the MPR121 up (soft reset, thresholds 12 / 6, ECR 0x8C) and plays C4 ... B4 for E0
  ... E11 while an electrode is touched.
Closed the monitor? Click the UNO's USB port.

WIRING (the same in Proteus and on a real board)
  3.3V and GND to the supply (3.3 V; the board's regulator also takes 5 V on most versions), SDA /
  SCL to the I2C bus, IRQ to an input
  pin, ADD to GND for 0x5A. The electrodes: copper pads, foil or wires behind a thin non-conductive
  cover.
REAL HARDWARE:
 * Keep the electrode wires short and apart: long wires add capacitance and pick up touches of their
   own.
 * The baseline follows slow changes: touch thresholds of 12 / 6 suit pads of a few square
   centimetres.
 * Change the configuration only in stop mode (ECR = 0x00), then start again.
 * Four boards share one bus with ADD on GND, 3.3V, SDA and SCL (0x5A - 0x5D).

THE DEMO SKETCH ON THE SERIAL MONITOR (MPR121_Demo V1.0, 9600 baud)
MPR121_Demo prints each touch and release. EXPECTED MONITOR OUTPUT
  MPR121 touch piano: E0 = C4 ... E11 = B4
  E0 touched: C4
  E0 released

PROPERTIES (double-click the part > Edit Properties)
  TOUCH  DEMO (a sequence of touches from 1 s) or NONE (only the chips, the clicks and the pins).
  Default DEMO.
Every run starts again from the properties.

LINKS.INI (OPTIONAL)
The Help page cards of the pop-up open web pages. To point them somewhere else without a new DLL,
put a text file named links.ini next to TEPMPR121.DLL with lines KEY=URL, for example:
  ARTICLE=https://www.theengineeringprojects.com/...
Keys: WEBSITE, FORUM, BUG_REPORT, FEATURE_REQUEST, ARTICLE, USER_GUIDE,
UPDATE_CHECK, DONATE. Only http:// and https:// links are used; lines starting
with # are comments.

TROUBLESHOOTING
* No touches reported: ECR is still 0x00 (stop mode), or the thresholds are 0.
* Configuration ignored: it was written in run mode - write ECR = 0x00 first (the event log warns).
* IRQ stays low: the sketch never reads 0x00 / 0x01.
* No answer on the bus: the address is wrong (ADD), or 3.3V is not powered.
* The part is not simulated: TEPMPR121.DLL is missing from MODELS and from the project folder.
* The part is not simulated: TEPMPR121.DLL is missing from MODELS and from the project folder. No
  UNO / no monitor window: TEPARDUINO.DLL is missing, or click the UNO's USB port.

BUG REPORTS AND FEATURE REQUESTS
Please post them in our forum with a screenshot, the Serial Monitor text, the
simulation log and the pop-up's Copy diagnostics text:
  https://www.theengineeringprojects.com/forum

SUPPORT US
This library is free. If it saves you time, please support our work:
  https://www.theengineeringprojects.com/donate

WEBSITE
  https://www.theengineeringprojects.com/

LICENCES AND THIRD-PARTY NOTES
* The model (TEPMPR121.DLL), the symbols and artwork, the other parts of ours in the demo and the
  Arduino Library V4.0 (ArduinoV4TEP.LIB / TEPARDUINO.DLL, with its built-in TEP Serial Monitor
  Advance) are made by The Engineering Projects. The models use only standard Windows libraries; no
  Visual C++ redistributable is needed.
  The C++ source code is not included.
* Arduino UNO V4.0 (ArduinoV4TEP.LIB / TEPARDUINO.DLL, our Arduino Library V4.0 - its
  microcontroller is Proteus's own AVR model): The Engineering Projects,
  https://www.theengineeringprojects.com/2026/10/arduino-uno-library-for-proteus-v40.html
* The .hex file is built from the demo sketch and the Arduino AVR core 1.8.6, which includes
  LGPL-licensed code; its source code is available at
  https://github.com/arduino/ArduinoCore-avr/tree/1.8.6
* Proteus is a product of Labcenter Electronics and is not included. Arduino is a trademark of Arduino SA.
  This library is not made or endorsed by Arduino or Labcenter.

REBUILDING THE FIRMWARE (OPTIONAL)
The HEX file is supplied; Arduino IDE is not needed to run the demo. To edit the sketch, open
Arduino Code\MPR121_Demo\MPR121_Demo.ino, select Arduino Uno and use Sketch > Export Compiled
Binary. Replace the simulation's .hex with the exported HEX. The sketch needs 7,716 bytes of flash
and 525 bytes of RAM.

MODEL SCOPE AND LIMITS
Modelled: the I2C slave and the register map, the electrodes' filtered data and baselines, touch /
release with thresholds and debounce,
the baseline initialisation by ECR's CL bits and its tracking, IRQ, soft reset, stop-mode writes,
the ADD address.
Our figures: an untouched electrode about 700 counts, a finger 60 counts over 30 ms, one count of
noise.
Not modelled: the charge current / time and the auto-configuration (0x7B - 0x7F), the proximity
electrode, the GPIO / LED driver function.

VERSION
TEP MPR121 Touch Sensor library V1.0 (Nov 2026). Device TOUCHMPR121TEP (TEPMPR121.LIB /
TEPMPR121.DLL). Demo sketch MPR121_Demo V1.0 (Wire only). Demo board: ARDUINO UNO V4.0 (TEP Arduino
Library V4.0) with its built-in serial monitor; our resistors and 28 mm speaker V1.0.
Advertisement

Development1 release

  1. V1.0MPR121 Touch Sensor Library for Proteus 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. 1

    Extract the archive

    Right-click 66fdebb5523b4e4da32e852ec1b2ad73.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (MPR121-Touch-Sensor-TEP-v1.0) as it is.

  2. 2

    Copy the library files into Proteus

    Move ArduinoV4TEP.LIB, TEPMPR121.LIB and TEPRESISTOR.LIB and 1 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. 3

    Add the simulation model

    Copy TEPARDUINO.DLL, TEPMPR121.DLL and TEPRESISTOR.DLL and 1 more into the MODELS folder next to LIBRARY, so the component can run, not only be drawn.

  4. 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. 5

    Open the sketch in the Arduino IDE

    Open MPR121_Demo.ino, select your board and port under Tools, then Verify. Sketch → Export Compiled Binary writes the HEX file a simulation needs.

  6. 6

    Load the HEX file

    In Proteus double-click the microcontroller, set Program File to MPR121_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.

  7. 7

    Open the example simulation

    Open MPR121-Touch-Piano-ArduinoUnoV4.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.

  8. 8

    Follow the tutorial

    MPR121 Touch Sensor Library for Proteus Simulation explains every connection and setting in order; keep it open beside the files while you build.

How to add a library in Proteus 8

FAQs9 questionsContact TEP

How do I download MPR121 Touch Sensor Library for Proteus 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?

MPR121 Touch Sensor Library for Proteus V1.0 comes as a ZIP archive of 16 files (1.8 MB, 4.1 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 16 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, d86d6e6829ba68931870f5416ed6dd40bc72684c9d2aa8de5a53216a2eccd296. In PowerShell run Get-FileHash "66fdebb5523b4e4da32e852ec1b2ad73.zip"; on macOS or Linux run shasum -a 256 "66fdebb5523b4e4da32e852ec1b2ad73.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.

preparing · 66fdebb5523b4e4da32e852ec1b2ad73.zip
Rating
Your download will be ready shortly
Preparing your download…

Members skip the wait. Log in or join TEP.

  • 0Total downloads
  • 4%Popularity
  • ProteusCategory
  • 0Comments
  • ssyedzainnasirUploaded by
  • 30 Nov 2026Uploaded at
Last 14 days0 downloads
SHA-256 d86d6e6829ba68931870f5416ed6dd40bc72684c9d2aa8de5a53216a2eccd296
DocumentationMPR121 Touch Sensor Library for Proteus Simulation
Need help with this file? Bug report Ask a question Download problemsGet updates
Advertisement

Comments

0

Join the conversation

Start the conversationAsk a question or share how you used this download.