Project Files of Touch Sensor Library for Proteus V2.0 (TTP223 + Arduino)
touch-sensor-tep-v2-0-8056304ac58645c198e59326f4b5c9b2.zip

Touch Sensor Library for Proteus V2.0
Touch Sensor Library for Proteus V2.0 comes as a ZIP archive of 12 files (1.3 MB, 2.9 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware.
- LIBProteus library
- IDXProteus library index
- DLLProteus model
- DSNProteus simulation
- INOArduino sketch
- HEXHEX firmware
Description
Looking for the files of Touch Sensor Library for Proteus V2.0 (TTP223 + Arduino)? Touch Sensor Library for Proteus V2.0 is the ZIP package (1.3 MB) you need. It holds the Proteus library files (LIB and IDX), the simulation model (DLL), a ready Proteus simulation, an Arduino sketch and the compiled HEX firmware. Below are the file structure, the README and the installation steps, so you can go from download to a working Proteus simulation in a few minutes.
What this library is
Touch-Sensor-Library-for-Proteus-v2.0.zip with TTP223 Simple and Advance (TEPTTP223.LIB and TEPTTP223.DLL), the TEP Serial Monitor and Arduino UNO libraries for Proteus, the two-UNO touch lamp simulation with its HEX file, the demo sketch and a README.
This is version 2.0; older or newer releases, when they exist, are listed in the Development tab.
What is inside the ZIP file
- ArduinoV3TEP.LIB – Proteus library, 95.6 KB
- TEPSERIALMON.LIB – Proteus library, 11.1 KB
- TEPTTP223.LIB – Proteus library, 89.3 KB
- ArduinoV3TEP.IDX – Library index, 830 B
- TEPSERIALMON.DLL – Simulation model, 978 KB
- TEPTTP223.DLL – Simulation model, 362 KB
- and 6 more, all listed in the File Structure tab
The archive unpacks to 2.9 MB and carries its own README (README.txt), shown in the README tab above.
How to download
Use the download panel at the top of this page: after the counter (30 seconds for guests, 10 for members) the black button unlocks and the ZIP file comes straight from our content network. If the browser opens it instead of saving, use Save as; extract the whole archive before using anything inside it.
How to install
- Step 1: Extract the ZIP file with Windows (Extract All), 7-Zip or WinRAR, keeping its folders.
- Step 2: Close Proteus and copy ArduinoV3TEP.LIB, TEPSERIALMON.LIB and TEPTTP223.LIB and ArduinoV3TEP.IDX into its LIBRARY folder (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY).
- Step 3: Copy TEPSERIALMON.DLL and TEPTTP223.DLL into the MODELS folder next to it, so the part simulates.
- Step 4: Start Proteus, press P and search for "ArduinoV3TEP"; place and wire it as in the tutorial.
- Step 5: Open TTP223_Touch_Lamp.ino in the Arduino IDE, pick board and port and Verify (Export Compiled Binary gives the HEX).
- Step 6: In Proteus set the controller's Program File to TTP223_Touch_Lamp.hex; on hardware, flash the same file.
- Step 7: Open TTP223-Touch-Lamp-ArduinoUnoV3.pdsprj in Proteus and press Play.
Read the detailed guide
This page is for the files. The full tutorial, Touch Sensor Library for Proteus V2.0 (TTP223 + Arduino), explains the circuit and the code step by step and shows the working results and the simulation; read it before you build. Questions about the download or the installation go in the comments below; more Proteus downloads are listed further down this page.
File Structure
7.1 KB830 B95.6 KB11.1 KB89.3 KB978 KB362 KB978 KB362 KB26.5 KB13.8 KB29.6 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in Touch Sensor Library for Proteus V2.0 (TTP223 + Arduino). Open an image for its full size.












README
TOUCH SENSOR (TTP223) LIBRARY FOR PROTEUS - V2.0
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/10/touch-sensor-library-for-proteus-v2-0.html
Report a bug or suggest a feature (our forum):
https://www.theengineeringprojects.com/forum/category/touch-sensor-proteus-library
The demo uses our TEP Serial Monitor Advance (included) instead of Proteus's
Virtual Terminal - its own article:
https://www.theengineeringprojects.com/2026/10/serial-monitor-advance-proteus-library.html
Support us (the libraries are free):
https://www.theengineeringprojects.com/donate
FILE STRUCTURE
TTP223-TEP-v2.0/
|-- Proteus Library Files/
| |-- ArduinoV3TEP.IDX 0.8 KB its index -> LIBRARY
| |-- ArduinoV3TEP.LIB 95.6 KB TEP Arduino UNO (demo) -> LIBRARY
| |-- TEPSERIALMON.LIB 11.1 KB TEP Serial Monitor Advance -> LIBRARY
| |-- TEPTTP223.LIB 89.3 KB TTP223 Simple + Advance (2 devices) -> LIBRARY
|-- Proteus Model Files/
| |-- TEPSERIALMON.DLL 978.0 KB Serial Monitor model -> MODELS
| |-- TEPTTP223.DLL 362.0 KB TTP223 model -> MODELS
|-- Proteus Simulation/
| |-- TEPSERIALMON.DLL 978.0 KB copy of the monitor model
| |-- TEPTTP223.DLL 362.0 KB copy of the model (runs as is)
| |-- TTP223_Touch_Lamp.hex 13.8 KB both UNOs (demo sketch V2.0)
| |-- TTP223-Touch-Lamp-ArduinoUnoV3.pdsprj 26.5 KB demo: UNO 1 + Simple, UNO 2 + Advance
|-- Arduino Code/
| |-- TTP223_Touch_Lamp/TTP223_Touch_Lamp.ino 7.1 KB the demo sketch (source of the .hex)
|-- README.txt ~30.8 KB this file
Total: 2.89 MB (unzipped). The C++ source code of the model is not included.
WHAT IS IT?
A simulation model of the TTP223 capacitive touch module (TTP223-BA6) for
Proteus 8 - the small red board with the round touch pad, the TTP223 chip
(marked 223B), the solder jumpers A and B and the 3-pin header I/O, VCC, GND.
Your Arduino reads its I/O pin exactly as with the real module: with the
factory setting (both jumpers open) I/O is LOW while the pad is free and HIGH
while a finger touches it.
The model has the chip's behaviour: about 0.5 s of calibration after power-on
(a finger on the pad then becomes the "nothing touched" reference and is
ignored until it is lifted), the response time (up to 220 ms while the chip
sleeps in its low-power mode, 60 ms when it is awake - it stays awake 12 s
after a touch; 60 ms after the lift), contacts shorter than the response are
not reported, the four jumper modes (momentary / toggle, active HIGH / LOW),
the max on time (a press longer than about 10 s re-calibrates the chip: OUT
goes back to idle with the finger still on) and cover sheets in front of the
pad (2 mm plastic and 5 mm glass work, 10 mm wood is too thick).
You touch the pad yourself: click and hold the round pad on the board, or use
the buttons TAP, HOLD, RELEASE, DOUBLE TAP and LONG HOLD.
While the simulation runs the board is alive: the pad glows (cyan while a
touch is reported, blinking amber while the chip calibrates, violet while a
finger is ignored), the LEDs light, the jumpers show their solder blobs - and
a "TOUCH VIEW" screen above the board shows what the chip measures over the
last 4 s: the finger's signal against the chip's baseline and threshold, and
an OUT lane below it.
TWO DEVICES IN ONE LIBRARY (search "TTP223" or "Touch" in Pick Devices):
TTP223 Simple device TTP223TEP "Touch Sensor TTP223 - Simple"
On-Sheet Panel: the "TTP223 TOUCH SCENE" next to the board -
the state banner (READY - TOUCH THE PAD / CALIBRATING -
DON'T TOUCH THE PAD / TOUCH DETECTED - OUT ACTIVE / MAX ON
TIME / NO TOUCH DETECTED - THE COVER IS TOO THICK / NO POWER
and more), the side view with the finger, the cover sheet and
the touch field (click it to hold / lift the finger), the
four jumper modes (click a row to set the jumpers), the last
10 s of the finger and OUT, the readouts OUT / MODE / TOUCHES
/ OUT ACTIVE and three button rows: the finger, the cover
sheet and the jumpers A / B. The red X in the panel's header
closes it, the PANEL button on the board opens it again.
TTP223 Advance device TTP223ADVTEP "Touch Sensor TTP223 - Advance"
Pop-Up Panel: only the board on the schematic; at Run a TEP
pop-up window opens - the same look as the TEP Serial Monitor
(move it by its header, resize it, minimise it). The tabs
Touch and Test sit in the header; the gear and ? icons open
Settings and Help; the palette icon switches the theme:
Touch the side view (click it to hold / lift the
finger), THE SENSOR (state, OUT, mode, the finger
and how long it is on, the cover, the signal
against the threshold, touches, how long OUT is /
was active, the measured response and release,
asleep / awake, the max on time left), the
finger, cover and jumper buttons, the last 10 s
(finger on the pad, touch reported, OUT active)
and the EVENT LOG (power, calibration, every
contact with its signal, every touch and release
with its measured delay, OUT edges with the active
time, contacts too short to report, ignored
contacts, the max on time, jumper / cover changes)
Test four tools measured on the model (see THE TEST
TOOLS below): Mode table, Response time, Max on
time, Cover sweep
Settings theme (TEP Dark / Light), text size, open at Run,
window size - remembered for your Windows user
Help Help & Support like the TEP Serial Monitor:
report a bug, suggest a feature, article, guide,
updates, donate, website, forum; Copy diagnostics
(sensor, board, measured values, events, test
results) for a bug report
The OPEN PANEL button on the board opens the window again
after you close it.
Both devices use the same model (TEPTTP223.DLL) and the same properties (the
Advance device has no PANEL property - its window has "open at Run"). On both,
the round pad on the board is a touch pad (hold the mouse button = finger on)
and a click on jumper A or B solders / opens it.
NEW IN V2.0
* Two devices: TTP223 Simple (the scene on the sheet, close / open) and TTP223
Advance (pop-up window with the scene, four test tools, settings and help) -
see above.
* Board: the red TTP223 module drawn clean and bold with a button row: the
PANEL: SHOWN / CLOSED button (Simple) or OPEN PANEL (Advance) and a SIMPLE /
ADVANCE badge. LEDs: PWR (red, the supply), LED (red, the module's own LED -
lit while OUT is HIGH, as on the real board) and EDGE (amber, 0.3 s on every
change of OUT). PWR and EDGE are TEP additions: the real module has only the
one LED. Above the board the animated TOUCH VIEW screen.
* Model - an event log: power, the calibration (and a finger caught in it),
every contact with its signal, every touch and release with the measured
delay after the contact / lift, low-power or fast mode, OUT edges with the
measured active time, contacts too short to report, ignored contacts, the
max on time, the cover and jumper changes.
* Model - measured values on the panels: how long OUT was active, the response
(contact -> touch reported) and release (lift -> released) delays, the signal
against the threshold (bare pad 3.0 x, plastic 2.0 x, glass 1.6 x, wood
0.6 x), asleep / awake and the max on time left.
* Simulation Log: "released - touch lasted 0.14 s, OUT LOW (OUT was active for
0.14 s)" - the measured active time added.
* The demo: ONE project with two UNOs - UNO 1 with TTP223 Simple, UNO 2 with
TTP223 Advance - each with the TEP Serial Monitor Advance instead of the
Virtual Terminal (U3 = UNO 1, U4 = UNO 2, quick buttons).
* The demo sketch keeps every line of the earlier version ("Touched! #1 - lamp
ON", "Released (held 0.14 s)") and adds the commands HELP, STATUS, RESET,
LAMP TOGGLE / FOLLOW and ACTIVE HIGH / LOW. Nothing is printed periodically:
a line only when something happens or on a command.
* The simulation runs lighter: the panels redraw 12.5 times a second and only
the parts that changed; the Advance window repaints at once when something
happens and at most about 6 times a second for its running counters and
timeline (in Proteus about 0.6 x real time for the two-UNO demo with the
window open on the Test page, U1's panel animating and both monitors open).
* The LIB texts are written at their centres, and the small row captions on
the panel have room above their buttons.
* No coloured rim around the panel's buttons: the symbol (the panel's look
before Run) draws every button unselected, and the model paints a clean
margin under each button, the banner, the mode rows and the readouts before
it repaints them, so a button picked at start-up leaves no outline when you
pick another.
* The Test page's result tiles show "-" until the tool has measured a value.
* Version 2.0 everywhere (earlier versions of this library were 1.x); the C++
source code is not included.
TEST STATUS
V2.0: verified in Proteus 8.5 on 9 Oct 2026 (this package's DLL and demo).
The demo loads cleanly; U3 and U4 print the four start lines; the pads blink
amber while the chips calibrate, then READY. Two taps: "Touched! #1 - lamp
ON" / "Released (held 0.14 s)", then "Touched! #2 - lamp OFF" / "Released
(held 0.30 s)"; the event log shows the first touch 220 ms after the contact
(low power), then 60.000 ms (fast mode), release 60.000 ms. Mode table: 4 of
4 match the datasheet, 60.000 / 60.000 ms. Response time (3 touches):
220.000 / 60.000 / 60.000 ms, release 60 ms; the 30 ms contact is not
reported, 60 / 90 / 150 ms are (the shortest seen 60 ms). Max on time: OUT
active 10.000 s, then "OUT LOW - idle" with the finger still on; a tap
0.52 s after the lift is ignored (re-calibrating), one at 1.62 s is reported
in 60 ms. Cover sweep: 3 of 4 (3.0 / 2.0 / 1.6 / 0.6 x), the smallest margin
GLASS 1.6 x, WOOD too thick. The sheet panel: HOLD shows "TOUCH DETECTED -
OUT ACTIVE" with the cyan pad glow; PLASTIC + jumper B CLOSED shows "TOGGLED
ON - TOUCH AGAIN TO SWITCH OFF" and the solder blob on the board's jumper B;
no rim around any button, readable captions, the red X and PANEL work.
Speed: about 0.6 x real time (24.5 s simulated in 41.1 s with U2's window
open on the Test page, U1's panel animating and both monitors open).
The board's round pad held with the left mouse button for 3 s (U1): the pad
turns cyan, "TOUCH DETECTED - OUT ACTIVE", OUT HIGH, TOUCHES 1; after the
release "READY - TOUCH THE PAD", OUT LOW, OUT ACTIVE 1.40 s, and the finger
trace and OUT show the touch - Proteus sends the button-up, the press-and-hold
works (checked the same afternoon on the same DLL).
And 1440 automatic checks on a PC, 0 failed:
196 on the model alone (the four modes, calibration and a finger caught in
it, 220 / 60 ms response and the 12 s awake window, 60 ms release, short
contacts cancelled, the max on time and the re-calibration, the covers,
power, the event log, the signal, and the four test tools run as the adapter
runs them: Mode table, Response time, Max on time, Cover sweep, refusals,
Stop, power loss);
351 on the complete Proteus model (properties, I/O edges at the exact times,
one callback, every panel button, the board pad and jumpers, drawn frames
without stale pixels, the panel close / open, both devices, the pop-up and
all 8 Help links, the LEDs, the TOUCH VIEW, ASCII-only sheet text in every
state, the event log, the tools through the pop-up checked on the I/O pin,
the panel captions clear of the buttons, the 12.5 Hz redraw of only what
changed, no rim of the symbol's colour around any button, the banner, the
mode rows or the readouts, the calibration / response / max on time decided
at every simulator event, the window's repaint rate);
29 with the real demo sketch on TWO UNOs against the complete model (every
line, the printed held times = the model's events = the panel's OUT ACTIVE,
the commands, LONG HOLD, ACTIVE LOW, the Response time and Mode table tools,
nothing printed while nothing happens, every line shorter than 80
characters - the longest has 70);
864 on the rendered pop-up and boards (every page fits in TEP Dark and
Light, at Large text and 150 % DPI; no cut text; no empty band on the test
pages; every tool's hint lines fit; every header state fits; the result
tiles show "-" before a run and never a placeholder number).
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" (TEPTTP223.LIB with both
devices, TEPSERIALMON.LIB and the TEP Arduino UNO V3 library
ArduinoV3TEP.LIB / .IDX used by the demo) to the LIBRARY folder of Proteus,
for example:
C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY
(on some PCs: C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\
LIBRARY - use the folder that already holds Proteus's own .LIB files).
3. Copy TEPTTP223.DLL and TEPSERIALMON.DLL from "Proteus Model Files" to the
MODELS folder (...\Proteus 8 Professional\MODELS).
4. If an earlier version is installed: replace its LIB / DLL and delete
TEPTTP223.IDX if there is one in the LIBRARY folder.
5. Start Proteus. In Pick Devices (P) search "TTP223": you get the Simple and
the Advance device (category Sensors > Touch).
RUN THE DEMO
"Proteus Simulation\TTP223-Touch-Lamp-ArduinoUnoV3.pdsprj" - keep the .hex file
and the two DLLs beside the project.
UNO 1 (ARD1): TTP223 Simple (U1), Serial Monitor U3.
UNO 2 (ARD2): TTP223 Advance (U2), Serial Monitor U4.
Both run TTP223_Touch_Lamp.hex. I/O -> D2; the UNO's own LED (D13) is the
lamp. (The LED + 220 ohm on A0 comes from the demo template; the sketch does
not use it.)
1. Press Run. Both monitor windows open (9600 baud) and so does U2's pop-up.
U3 and U4 show the four start lines (below). The pads blink amber for
0.5 s while the chips calibrate, then the banner says READY.
2. U1: click TAP on the panel. The first touch takes 220 ms (the chip
sleeps): U3 prints "Touched! #1 - lamp ON" and "Released (held 0.14 s)".
TAP again within 12 s: 60 ms now - "Released (held 0.30 s)". Hold the
round pad on the board with the mouse, try DOUBLE TAP, LONG HOLD (OUT
drops after 10 s with the finger still on - "held 10.00 s"), the covers
(WOOD 10 mm: no touch is detected) and a mode row. Close the panel with
its red X and open it with PANEL: CLOSED on the board.
3. U3 / U4 quick buttons: U3 STATUS, LAMP FOLLOW, LAMP TOGGLE, HELP; U4
STATUS, ACTIVE LOW, ACTIVE HIGH, HELP.
4. U2 (Advance): Touch page - the same buttons; watch THE SENSOR card, the
last 10 s and the EVENT LOG. Test page: the four tools below. Close jumper
A (active LOW): press ACTIVE LOW on U4 so the sketch reads it right.
5. Close U2's window and open it again with OPEN PANEL on the board.
Closed a monitor window? Click OPEN MONITOR on the monitor part.
WIRING (as in the earlier versions)
TTP223 VCC -> +5 V, GND -> GND, I/O -> D2. In the sketch: pinMode(2, INPUT);
digitalRead(2) - HIGH = touched (both jumpers open). The chip drives the pin
HIGH and LOW itself: no pull-up and no library are needed.
Serial Monitor RXD <- Arduino D1 (TX), Serial Monitor TXD -> Arduino D0 (RX),
Serial Monitor GND -> ground. RXD2 is not needed: I/O is one logic line and
the sketch prints what it sees.
Pin order in Proteus: I/O VCC GND (left to right, seen from the pad side; VCC
is in the middle on every module - check your board's silkscreen).
REAL HARDWARE:
* Supply 2.0 - 5.5 V; I/O is the chip's CMOS output (0 / VCC levels).
* The four modes (jumper A = AHLB, jumper B = TOG; open = the factory
setting):
A open, B open OUT LOW, HIGH while touched (momentary, active HIGH)
A closed, B open OUT HIGH, LOW while touched (momentary, active LOW)
A open, B closed OUT LOW, each touch flips it (toggle, starts LOW)
A closed, B closed OUT HIGH, each touch flips it (toggle, starts HIGH)
Set the jumpers with the power off; the model applies a change at once.
* Don't touch the pad for about 0.5 s after power-on: the chip calibrates.
* The datasheet gives the response as at most about 60 ms in fast mode and
220 ms in low-power mode (at 3 V); the TTP223-BA6 on these modules runs in
the low-power mode until a touch wakes it up. The model uses these maximum
values exactly.
* The BA6 has no max on time in its datasheet, but users report the output
dropping after 7 - 12 s of continuous touch; the model uses 10 s (MAXON).
* The pad works through a few mm of plastic or glass - no metal in front of
it. The signal factors of the covers are our estimates.
* The module's one LED is lit while OUT is HIGH - with jumper A closed it is
lit while the pad is NOT touched.
THE SCENE
The side view: the module on its spacers on a table, the pad facing up, the
cover sheet on it and the finger coming down.
FINGER TAP (0.3 s on the pad), HOLD (stays until RELEASE), RELEASE, DOUBLE
TAP, LONG HOLD (the max on time + 3 s); or hold the board's pad
with the mouse, or click the side view (hold / lift)
COVER NONE (signal 3.0 x the threshold), PLASTIC 2 mm (2.0 x), GLASS
5 mm (1.6 x), WOOD 10 mm (0.6 x - too thick, never detected)
JUMPERS A OPEN (active HIGH) / CLOSED (active LOW), B OPEN (momentary) /
CLOSED (toggle); or click a row of the mode table, or a jumper on
the board
The finger reaches the pad 120 ms after the click (it travels). While a test
tool runs it owns the scene (the buttons wait - the Simulation Log says so
once).
THE TEST TOOLS (TTP223 Advance, Test tab) - what they really measure
Every tool runs on the live model. A tool only moves the finger, sets the
jumpers or the cover, and reads I/O and the model's event log - so every
number it shows is what OUT really did, measured with the simulation clock.
Each tool shows one "Good for:" line and one line on how it measures. Every
tool puts the jumpers and the cover back when it ends. The result tiles show
"-" until the tool has a result.
Mode table Good for: choosing the jumpers - what OUT does in each of
the four modes, measured on the pin. Each setting (all four
or as set): two touches; OUT read before, while touched and
after each lift, against the TOG / AHLB table. A chart per
setting and a table. On a PC: 4 of 4 match the datasheet;
touch -> OUT 60.000 ms, lift -> OUT 60.000 ms. About 6.6 s
of simulation.
Response time Good for: knowing how fast a touch reaches OUT - 220 ms
while the chip sleeps, 60 ms when awake. 3 or 10 touches
after a flat lead-in (the first one while the chip sleeps -
the tool first waits, up to 12 s after the last touch, with
a countdown), then contacts of 30 / 60 / 90 / 150 ms. A bar
chart, the short contacts and a row per touch. On a PC
(RESPONSE AUTO): first touch 220.000 ms (low power), then
60.000 ms; release 60.000 ms; the 30 ms contact is not
reported, the shortest contact seen is 60 ms. About 4.2 s
(3 touches, after the wait).
Max on time Good for: knowing why a long press drops out after about
10 s - and that the finger must be lifted. Holds the finger
on for MAXON + 3 s, lifts it, then taps 0.52 s and 1.62 s
after the lift (during / after the 1 s re-calibration). A
chart and a list. On a PC (MAXON 10): OUT active for
10.000 s, then OUT LOW - idle with the finger still on; the
tap 0.52 s after the lift is ignored (re-calibration), the
one 1.62 s after it is reported in 60 ms. About 15.6 s.
Cover sweep Good for: choosing the panel in front of the pad - which
material and thickness still work. One touch through each
cover (all four or as set); the chip's signal against its
threshold and what OUT did. A bar chart and a table. On a
PC: NONE 3.0 x, PLASTIC 2 mm 2.0 x, GLASS 5 mm 1.6 x
reported (smallest margin: glass); WOOD 10 mm 0.6 x - too
thick. About 3.2 s.
The tools refuse to start, with the reason, when the module has no power or
another test runs; Response time and Max on time also when the cover is too
thick (WOOD 10 mm). A tool waits for the calibration to end before its first
touch. With MAXON 0 (OFF) Max on time holds the finger 15 s: OUT stays active.
THE DEMO SKETCH ON THE SERIAL MONITOR (TTP223_Touch_Lamp)
HELP the command list (three lines)
STATUS the pad, I/O, the lamp, the touches, the held times (last /
longest), the active level and the lamp mode (two lines)
RESET the touch counter back to 0
LAMP TOGGLE each touch switches the lamp (at start)
LAMP FOLLOW the lamp is on while the pad is touched - for a module that
toggles by itself (jumper B closed)
ACTIVE HIGH I/O HIGH means touched (jumper A open - at start)
ACTIVE LOW I/O LOW means touched (jumper A closed)
Monitor quick buttons in the demo: U3 STATUS, LAMP FOLLOW, LAMP TOGGLE, HELP;
U4 STATUS, ACTIVE LOW, ACTIVE HIGH, HELP.
The sketch reads I/O about 1000 times a second and prints a line only when
something happens (or on a command); every line is shorter than 80 characters
(the TEP Serial Monitor's Simple interface shows about 80).
EXPECTED MONITOR OUTPUT (U3 and U4)
TTP223 Touch Lamp - The Engineering Projects
Waiting 0.6 s while the TTP223 calibrates (don't touch the pad)...
Ready - touch the pad to switch the lamp.
Touch Sensor Library for Proteus V2.0 - type HELP for the commands.
Then TAP on U1, and TAP again a moment later:
Touched! #1 - lamp ON
Released (held 0.14 s)
Touched! #2 - lamp OFF
Released (held 0.30 s)
(the first touch waits 220 ms while the chip sleeps, the second only 60 ms).
LONG HOLD: "Touched! #3 - lamp ON", then after 10 s "Released (held 10.00 s)"
with the finger still on. STATUS:
Status: pad free, I/O LOW, lamp ON, touches: 3
held: last 10.00 s, longest 10.00 s; active HIGH; lamp TOGGLE
LAMP FOLLOW: "Lamp mode: FOLLOW - the lamp is on while the pad is touched.";
ACTIVE LOW: "Active level: LOW - I/O LOW means touched (jumper A closed).";
RESET: "Counter reset: 0 touches."; an unknown command: "Unknown command: FOO
- type HELP".
PROPERTIES (double-click the sensor > Edit Properties)
JUMPERA OPEN (default, active HIGH) or CLOSED (active LOW)
JUMPERB OPEN (default, momentary) or CLOSED (toggle)
COVER NONE (default), PLASTIC, GLASS or WOO
…Development1 release
-
V2.0Touch Sensor Library for Proteus V2.0this page
V2.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 touch-sensor-tep-v2-0-8056304ac58645c198e59326f4b5c9b2.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (TTP223-TEP-v2.0) as it is.
- 2
Copy the library files into Proteus
Move ArduinoV3TEP.LIB, TEPSERIALMON.LIB and TEPTTP223.LIB and ArduinoV3TEP.IDX 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 TEPSERIALMON.DLL and TEPTTP223.DLL 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 TTP223_Touch_Lamp.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 TTP223_Touch_Lamp.hex and run the simulation. For real hardware, flash the same file with your programmer.
- 7
Open the example simulation
Open TTP223-Touch-Lamp-ArduinoUnoV3.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
Touch Sensor Library for Proteus V2.0 (TTP223 + Arduino) explains every connection and setting in order; keep it open beside the files while you build.
FAQs9 questionsContact TEP
How do I download Touch Sensor Library for Proteus V2.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?
Touch Sensor Library for Proteus V2.0 comes as a ZIP archive of 12 files (1.3 MB, 2.9 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 12 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, b53e8233176cb9e3d2dd1f64c38727e3071866545f468718d74786ad544614b8. In PowerShell run Get-FileHash "touch-sensor-tep-v2-0-8056304ac58645c198e59326f4b5c9b2.zip"; on macOS or Linux run shasum -a 256 "touch-sensor-tep-v2-0-8056304ac58645c198e59326f4b5c9b2.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.
- 17Total downloads
- 4%Popularity
- ProteusCategory
- 0Comments
- ssyedzainnasirUploaded by
- 10 Oct 2026Uploaded at
b53e8233176cb9e3d2dd1f64c38727e3071866545f468718d74786ad544614b8
















Comments
0