Project Files of FSR402 Force Sensor Library for Proteus Simulation
9ae1f9df7efb4d89b8c96bcc6407a1d4.zip

FSR402 Force Sensor Library for Proteus V1.0
FSR402 Force Sensor Library for Proteus V1.0 comes as a ZIP archive of 19 files (2.2 MB, 4.9 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
FSR402-Force-Sensor-Library-for-Proteus-v1.0.zip with the FSR 402 force-sensing resistor for Proteus simulation (TEPFSR402.LIB and TEPFSR402.DLL), our OLED, 5 mm LED and resistor libraries, our Arduino UNO V4.0, the A4 demo with its sketch and a README.
File Structure
8.1 KB201.9 KB12.2 KB21.8 KB112.4 KB306.9 KB883.5 KB314.5 KB289.5 KB342.5 KB311 KB24.8 KB31.1 KB883.5 KB314.5 KB289.5 KB342.5 KB311 KB13.8 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in FSR402 Force Sensor Library for Proteus Simulation. Open an image for its full size.
README
FSR402 FORCE SENSOR LIBRARY FOR PROTEUS SIMULATION - V1.0 (a force-sensing resistor, 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/fsr402-force-sensor-library-for-proteus.html
Report a bug or suggest a feature (our forum):
https://www.theengineeringprojects.com/forum/category/flex-sensor-proteus-library
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
The force and its trend are drawn on our SSD1306 OLED (in this zip; its article):
https://www.theengineeringprojects.com/2026/10/oled-ssd1306-library-for-proteus-v1-0.html
Support us (the libraries are free):
https://www.theengineeringprojects.com/donate
FILE STRUCTURE
FSR402-Force-Sensor-TEP-v1.0/
|-- Proteus Library Files/
| |-- ArduinoV4TEP.LIB 201.9 KB TEP Arduino boards V4.0 (UNO) -> LIBRARY
| |-- TEPFSR402.LIB 12.2 KB the library -> LIBRARY folder
| |-- TEPLED5MM.LIB 21.8 KB a part the demo uses -> LIBRARY folder
| |-- TEPOLED12864.LIB 112.4 KB a part the demo uses -> LIBRARY folder
| |-- TEPRESISTOR.LIB 306.9 KB a part the demo uses -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEPARDUINO.DLL 883.5 KB the Arduino board model -> MODELS folder
| |-- TEPFSR402.DLL 314.5 KB the model -> MODELS folder
| |-- TEPLED5MM.DLL 289.5 KB its model -> MODELS folder
| |-- TEPOLED.DLL 342.5 KB its model -> MODELS folder
| |-- TEPRESISTOR.DLL 311.0 KB its model -> MODELS folder
|-- Proteus Simulation/
| |-- FSR402_Demo.hex 31.1 KB the demo firmware
| |-- FSR402-Force-ArduinoUnoV4.pdsprj 24.8 KB the demo project
| |-- TEPARDUINO.DLL 883.5 KB copy of the board model
| |-- TEPFSR402.DLL 314.5 KB copy of the model
| |-- TEPLED5MM.DLL 289.5 KB copy of its model
| |-- TEPOLED.DLL 342.5 KB copy of its model
| |-- TEPRESISTOR.DLL 311.0 KB copy of its model
|-- Arduino Code/
| |-- FSR402_Demo/FSR402_Demo.ino 8.1 KB the demo sketch (source of the .hex)
|-- README.txt ~14.3 KB this file
Total: 4.90 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
A round force-sensing resistor of the FSR 402 type, drawn from above: the 18.3 mm head at its real
size - the dark active area with the
printed fingers seen through the film, the amber edge - and its tail (shortened in the drawing) with
two silver traces into two crimp
tabs, the pins 1 and 2. The sensor is our own drawing (no maker's mark); it follows the way these
sensors behave:
* Two films pressed together: the resistance between 1 and 2 falls as the force rises - an open
circuit unloaded (20 Mohm in the
model), the turn-on near 0.15 N, about 10 kohm at 1 N and 1 kohm at 10 N: R = 10 kohm x (1 N /
F)^0.95. The conductance grows
almost linearly with the force.
* A little creep: under a steady force the resistance falls up to 6 % over a few seconds (4 s); a
change of load starts it again.
* A 30 ms response; no polarity.
* The force in a scene (PROFILE DEMO: nothing, a light touch 0.5 N at 2 s, a firm press 5 N at 4
s, released at 6 s, four taps at
3 N from 7.5 s, a squeeze rising to 18 N from 10.5 s, held, released at 15 s).
* On the sheet the head comes alive at Run: the active area glows warmer and wider the harder it
is pressed. Click it at Run for the
pop-up: the pad with the fingertip and a force gauge, the force and the resistance over the run,
the readings and the force chips;
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 "FSR" or "force" in Pick Devices):
FSR402TEP "FSR402 Force Sensor V1.0" in TEPFSR402.LIB (Sensors > Force), prefix FSR, model
TEPFSR402.DLL (analog). Two pins along the bottom: 1
and 2 (no polarity).
THE POP-UP
Click the part at Run. Tabs:
Force Sensor chips: Off, Touch 0.5 N, Press 5 N, Hard 10 N, Squeeze 20 N; Demo (the scene again
from now).
The pad from above with the fingertip and the glow, a 0 - 20 N gauge; the force and
the resistance (log scale) over the
run; eight tiles: the force, the resistance, the conductance, the voltage and
current, the press, the presses and the
peak, the creep, the scene.
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 20 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 16.5 simulated seconds in about 7 minutes on
our PC with the pop-up open and the
pictures being taken (the run waited for the shared PC).
* Nothing on the pad: an open circuit (20 Mohm), A0 at 0.005 V - "open (over 1 Mohm)".
* A light touch 0.5 N at 2 s: 19.1 kohm, A0 1.72 V - TOUCH, the green LED on.
* A firm press 5 N at 4 s: 2.13 kohm, A0 4.125 V, the sketch "F 5.12 N" (the 1.9 % creep);
released at 6 s: "Press 1 released: peak
5.15 N (525 g)".
* Four taps at 3 N from 7.5 s: four presses, each "peak 3.02 N (308 g)"; 2.97 N and 3.55 kohm in
the second tap.
* A squeeze from 10.5 s: 10.9 N and 1.01 kohm at 12 s (HARD, the red LED); 18 N held: 617 ohm (the
creep 3.9 %), the sketch 18.93 N;
released at 15 s: "Press 6 released: peak 19.29 N (1967 g)" - over-read by the creep.
* The pop-up (Force 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" (TEPFSR402.LIB, TEPOLED12864.LIB, TEPLED5MM.LIB,
TEPRESISTOR.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 TEPFSR402.DLL, TEPOLED.DLL, TEPLED5MM.DLL, TEPRESISTOR.DLL and TEPARDUINO.DLL from "Proteus
Model Files" to the MODELS folder (...\Proteus 8 Professional\MODELS).
4. Delete TEPFSR402.IDX from the LIBRARY folder if it is there (Proteus makes a new index).
5. Start Proteus. In Pick Devices (P) search "FSR".
RUN THE DEMO
"Proteus Simulation\FSR402-Force-ArduinoUnoV4.pdsprj" (an A4 sheet) - keep the .hex file and the
DLLs beside the project.
A press pad:
ARD1: Arduino UNO V4.0 running FSR402_Demo.hex, its serial monitor built in (window "TEP Arduino
UNO - ARD1").
FSR1: the FSR 402: PROFILE DEMO (a touch, a press, taps, a squeeze, release); pin 1 on VCC, pin
2 on A0.
R1: 10 k from A0 to GND (the divider: A0 = 5 V x 10 k / (10 k + R)).
OLED1: our SSD1306 OLED, 128 x 64, yellow and blue (0x3C, I2C on A4 / A5): RELEASED / TOUCH /
PRESS / SQUEEZE, the force in newtons
and grams, the resistance, a scrolling 0 - 20 N trend and the presses with the peak.
D1, D2: TOUCH (green, D5) while the pad is pressed; HARD (red, D6) above 10 N. Each through 220
ohm (R2, R3).
Fifty times a second the sketch averages 8 conversions of A0, works out R = 10 k x (1023 -
ADC) / ADC and the force
F = (10 k / R)^(1 / 0.95); a press starts above 0.3 N and ends under 0.2 N, its peak
printed when it ends.
Closed the monitor? Click the UNO's USB port.
WIRING (the same in Proteus and on a real board)
The FSR from 5 V to an analog input, a 10 k resistor from that input to GND. A bigger resistor (47
k, 100 k) makes light touches show
more; a smaller one spreads out the hard presses.
REAL HARDWARE:
* Use it for touch and "how hard", not for weighing: parts differ by several percent, the reading
creeps under a steady load and
depends on where and with what it is pressed.
* Press on the dark round area only, on a flat, firm backing; a puck or a small rubber pad spreads
the force evenly.
* Never bend the tail near the head, and do not solder the tabs directly - use a connector or crimp
them.
* Calibrate your own part with known weights if you need numbers.
THE DEMO SKETCH ON THE SERIAL MONITOR (FSR402_Demo V1.0, 9600 baud)
The sketch prints its set-up, each press's peak and a line every second. EXPECTED MONITOR OUTPUT
FSR 402 press pad - The Engineering Projects
FSR from 5 V to A0, 10 k from A0 to GND; F = (10 k / R)^(1 / 0.95) N
F .... N A0 ..... V R .... kohm
Press 1 released: peak .... N (... g)
PROPERTIES (double-click the part > Edit Properties)
The force (PROFILE) DEMO (a touch, a press, taps, a squeeze) or STEADY (FORCE;
the chips change it) (DEMO)
The force for STEADY (FORCE) 0 - 20 N (0)
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 TEPFSR402.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
* A0 stays at 0 V: nothing on the pad (an open circuit) - or the 10 k is missing and the input
floats.
* The force reads too high or too low: the divider's resistor in the sketch (R_FIXED) does not match
the circuit's.
* Light touches do not show: use a bigger divider resistor.
* The reading drifts under a steady press: that is the FSR's creep, a few percent.
* The part is not simulated: TEPFSR402.DLL is missing from MODELS and from the project folder.
* The part is not simulated: TEPFSR402.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/category/flex-sensor-proteus-library
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 (TEPFSR402.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\FSR402_Demo\FSR402_Demo.ino, select Arduino Uno and use Sketch > Export Compiled
Binary. Replace the simulation's .hex with the exported HEX. The sketch needs 11,330 bytes of flash
and 643 bytes of RAM.
MODEL SCOPE AND LIMITS
Modelled: the resistance against the force with its turn-on, the open circuit unloaded, the creep,
the response; the scene and the
chips. Our choices: the curve R = 10 k x (1 N / F)^0.95, the 20 Mohm open circuit, the 6 % / 4 s
creep, the 30 ms response, the scene,
the glow. Not modelled: part-to-part spread, hysteresis, the effect of the contact area and where it
is pressed, temperature.
VERSION
TEP FSR402 Force Sensor library V1.0 (Nov 2026). Device FSR402TEP (TEPFSR402.LIB / TEPFSR402.DLL).
Demo sketch FSR402_Demo V1.0 (analogRead and Wire - no library). The demo also uses our SSD1306 OLED
library (TEPOLED12864: OLED12864YELLOWBLUEADVTEP, TEPOLED.DLL), our 5 mm LED library (TEPLED5MM) and
our resistor library (TEPRESISTOR), shipped in this package. Demo board: ARDUINO UNO V4.0 (TEP
Arduino Library V4.0) with its built-in serial monitor.Development1 release
-
V1.0FSR402 Force 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
Extract the archive
Right-click 9ae1f9df7efb4d89b8c96bcc6407a1d4.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (FSR402-Force-Sensor-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move ArduinoV4TEP.LIB, TEPFSR402.LIB and TEPLED5MM.LIB and 2 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 TEPARDUINO.DLL, TEPFSR402.DLL and TEPLED5MM.DLL and 2 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 FSR402_Demo.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 FSR402_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.
- 7
Open the example simulation
Open FSR402-Force-ArduinoUnoV4.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
FSR402 Force Sensor Library for 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 FSR402 Force 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?
FSR402 Force Sensor Library for Proteus V1.0 comes as a ZIP archive of 19 files (2.2 MB, 4.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 19 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, 88a04b70d68924fff178a5a4229cacb4c65db24c53db7c50d787bf988b8d5972. In PowerShell run Get-FileHash "9ae1f9df7efb4d89b8c96bcc6407a1d4.zip"; on macOS or Linux run shasum -a 256 "9ae1f9df7efb4d89b8c96bcc6407a1d4.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
- ProteusCategory
- 0Comments
- ssyedzainnasirUploaded by
- 27 Nov 2026Uploaded at
88a04b70d68924fff178a5a4229cacb4c65db24c53db7c50d787bf988b8d5972



























Comments
0