TEP DOWNLOAD CENTER

Project Files of Flex Sensor Library for Proteus V3.0 (Bend Sensor + Arduino)

Libraries Code Projects Simulation
tep://download-terminal flex-sensor-tep-v3-0-bc2c7894799944c38b45b4a0ae28766e.zip ZIP archiveV3.0Verified7 downloadsFree
Flex Sensor Library for Proteus V3.0: two Arduino UNOs with flex sensor modules, the amber strip of U2 bent to 90 deg on the sheet, the Flex Sensor Advance pop-up and the TEP Serial Monitor in its Simple interface printing ADC 128 and angle 90 deg
Proteus library · File 1 of 1

Flex Sensor Library for Proteus V3.0

Flex Sensor Library for Proteus V3.0 comes as a ZIP archive of 12 files (1.4 MB, 3.2 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

This is the download page of Flex Sensor Library for Proteus V3.0, the file package of the tutorial Flex Sensor Library for Proteus V3.0 (Bend Sensor + Arduino), published on The Engineering Projects in October 2026. Here you get the ZIP file (1.4 MB) with the Proteus library files (LIB and IDX), the simulation model (DLL), a ready Proteus simulation, an Arduino sketch and the compiled HEX firmware, the list of files it contains, the README when there is one, and the installation steps in order.

What this library is

Flex-Sensor-Library-for-Proteus-v3.0.zip with the bare flex sensor and the flex sensor module Simple and Advance (TEPFLEX.LIB and TEPFLEX.DLL), the TEP Serial Monitor and Arduino UNO libraries for Proteus, the two-UNO flex angle simulation with its HEX file, the demo sketch and a README.

This is version 3.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
  • TEPFLEX.LIB – Proteus library, 313.4 KB
  • TEPSERIALMON.LIB – Proteus library, 11.1 KB
  • ArduinoV3TEP.IDX – Library index, 830 B
  • TEPFLEX.DLL – Simulation model, 388.5 KB
  • TEPSERIALMON.DLL – Simulation model, 978 KB
  • and 6 more, all listed in the File Structure tab

The archive unpacks to 3.2 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, TEPFLEX.LIB and TEPSERIALMON.LIB and ArduinoV3TEP.IDX into its LIBRARY folder (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY).
  • Step 3: Copy TEPFLEX.DLL and TEPSERIALMON.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 Flex_Angle.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 Flex_Angle.hex; on hardware, flash the same file.
  • Step 7: Open FLEX-Angle-ArduinoUnoV3.pdsprj in Proteus and press Play.

Read the detailed guide

This page is for the files. The full tutorial, Flex Sensor Library for Proteus V3.0 (Bend Sensor + 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.

Read Flex Sensor Library for Proteus V3.0 (Bend Sensor + Arduino)

File Structure

flex-sensor-tep-v3-0-bc2c7894799944c38b45b4a0ae28766e.zip12 files · 5 folders · 3.2 MB unpacked
FLEX-TEP-v3.0/12 files · 3.2 MB
Arduino Code/1 file · 9.1 KB
Flex_Angle/1 file · 9.1 KB
INO Flex_Angle.inoArduino sketch 9.1 KB
Proteus Library Files/4 files · 420.9 KB
IDX ArduinoV3TEP.IDXLibrary index 830 B
LIB ArduinoV3TEP.LIBProteus library 95.6 KB
LIB TEPFLEX.LIBProteus library 313.4 KB
LIB TEPSERIALMON.LIBProteus library 11.1 KB
Proteus Model Files/2 files · 1.3 MB
DLL TEPFLEX.DLLSimulation model 388.5 KB
DLL TEPSERIALMON.DLLSimulation model 978 KB
Proteus Simulation/4 files · 1.4 MB
DSN FLEX-Angle-ArduinoUnoV3.pdsprjProteus simulation 40.8 KB
HEX Flex_Angle.hexCompiled HEX file 21.4 KB
DLL TEPFLEX.DLLSimulation model 388.5 KB
DLL TEPSERIALMON.DLLSimulation model 978 KB
TXT README.txtText file 31.2 KB

README

README.txt 354 lines
FLEX SENSOR LIBRARY FOR PROTEUS - V3.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/flex-sensor-library-for-proteus-v3-0.html
Report a bug or suggest a feature (our forum):
  https://www.theengineeringprojects.com/forum/category/flex-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
FLEX-TEP-v3.0/
|-- Proteus Library Files/
|   |-- ArduinoV3TEP.IDX                      0.8 KB   its index -> LIBRARY folder
|   |-- ArduinoV3TEP.LIB                     95.6 KB   TEP Arduino UNO (demo) -> LIBRARY folder
|   |-- TEPFLEX.LIB                         313.4 KB   sensor + module Simple / Advance (3 devices) -> LIBRARY
|   |-- TEPSERIALMON.LIB                     11.1 KB   TEP Serial Monitor Advance -> LIBRARY folder
|-- Proteus Model Files/
|   |-- TEPFLEX.DLL                         388.5 KB   flex sensor model -> MODELS folder
|   |-- TEPSERIALMON.DLL                    978.0 KB   Serial Monitor model -> MODELS folder
|-- Proteus Simulation/
|   |-- Flex_Angle.hex                       21.4 KB   both UNOs (demo sketch V3.0)
|   |-- FLEX-Angle-ArduinoUnoV3.pdsprj       40.8 KB   demo: UNO 1 + module Simple, UNO 2 + Advance
|   |-- TEPFLEX.DLL                         388.5 KB   copy of the model so the demo runs as is
|   |-- TEPSERIALMON.DLL                    978.0 KB   copy of the monitor model
|-- Arduino Code/
|   |-- Flex_Angle/Flex_Angle.ino             9.1 KB   the demo sketch (source of the .hex)
|-- README.txt                              ~32.0 KB   this file
Total: 3.18 MB (unzipped). The C++ source code of the model is not included.

WHAT IS IT?
A simulation model of the popular flex sensor (the Spectra Symbol style 2.2 inch
or 4.5 inch bend sensor) for Proteus 8. It is an ANALOG model - the sensor is a
real resistor inside Proteus's SPICE simulator - so the voltage on A0 is a real
voltage your Arduino reads with analogRead():
  * The resistance rises as the strip bends: 2.2 in = 25 k flat, 70 k at 90 deg,
    115 k at 180 deg; 4.5 in = 10 k flat, 60 k at 90 deg, 110 k at 180 deg
    (straight-line law, inside the datasheet's bend ranges; FLATR / BENDR set
    your own values - real sensors vary +/- 30 %).
  * In the usual divider (5 V - flex - A0 - 10 k - GND) A0 FALLS as it bends:
    the UNO reads 293 flat, 178 at 45 deg, 128 at 90 deg and 82 at 180 deg.
You bend it with buttons (0 / 15 / 30 / 45 / 60 / 90 / 120 / 180 deg, -5 / +5),
FLEX SLOWLY (a glove finger bending and straightening every 4 s), the sensor
size, or a click next to the strip (it bends towards your click). The finger
moves smoothly (about 200 deg per second), so the resistance never jumps.
The part looks like the flex sensor you buy: an upright amber (Kapton) strip with
a rounded free end, the silver sensing band with its black bars, two silver
traces, two crimp tabs and two legs - the bare sensor's two pins, or plugged into
the 2-pin header on top of a small blue module with its 10 k divider. The 2.2 in
and the 4.5 in sensor are drawn in scale (the 4.5 in twice as long, 29 bars).
While the simulation runs THE STRIP ITSELF BENDS on the sheet, to the right from
its stiff connector end, with the bars staying across it; a thin blue arc shows
the path its tip has swept and the degrees sit at the tip ("45 deg"). A small
display shows "2.2 in  |  45 deg  |  47.5 k" and what the demo sketch prints
("OUT 0.870 V   ADC 178   SKETCH 45 deg"). On the module the red PWR LED lights
with the supply and the amber OUT LED while OUT changes (the sensor moving). The
OUT LED, the display, the arc and the degrees are TEP additions (not on a real
module); the PWR LED is the module's own.

THREE DEVICES IN ONE LIBRARY (search "FLEX" in Pick Devices):
  Flex sensor        device FLEXTEP        "Flex Sensor 2.2 / 4.5 inch - Simple"
                     The bare 2-pin sensor (pins 1 and 2 at the bottom of the
                     strip): wire it into your own divider. On-Sheet Panel: the
                     FLEX SCENE next to the sensor.
  Module Simple      device FLEXMODTEP     "Flex Sensor Module (10k Divider) - Simple"
                     The sensor on a module with its 10 k divider (VCC OUT GND:
                     OUT goes straight to A0). On-Sheet Panel: the FLEX SCENE - a
                     gloved finger with the flex strip on its back, the bend dial,
                     the readouts ANGLE / RESISTANCE / SKETCH SAYS (the angle the
                     demo sketch prints) / ADC VALUE / OUT / VCC (measured), the
                     resistance vs bend angle chart and the buttons. The red X in
                     the panel's header closes it, the PANEL: SHOWN / CLOSED
                     button on the board opens it again.
  Module Advance     device FLEXMODADVTEP  "Flex Sensor Module (10k Divider) - Advance"
                     Pop-Up Panel: only the module on the schematic; at Run a TEP
                     pop-up window "TEP Flex Sensor Advance" opens - the same look
                     as the TEP Serial Monitor (move it by its header, resize it,
                     minimise it). The tabs Flex and Test sit in the header; the
                     gear and ? icons open Settings and Help; the palette icon
                     switches the theme:
                       Flex      the live finger scene, WHAT THE MODULE DOES - all
                                 measured: the supply, OUT (volts and % of VCC),
                                 the UNO's ADC count, what the demo sketch prints
                                 (R and the angle), the flex resistance worked out
                                 from the node voltages, the current, the divider,
                                 the LEDs, the last bend and how long OUT took to
                                 stand still - a curve of the ADC against the bend,
                                 BEND THE SENSOR (an angle slider 0 - 180 deg, the
                                 presets, - 5 / + 5, Still / Flex slowly, the size;
                                 while it flexes the slider keeps your angle as the
                                 base, an amber mark and a "FLEX SLOWLY now" line
                                 show the finger),
                                 a chart of the last 20 s (the ADC and the finger)
                                 and the PIN / EVENT LOG (power, every bend with
                                 OUT, ADC, R and the measured settle time, size and
                                 motion changes, the test tools)
                       Test      four tools measured on the running model: Angle
                                 sweep, Divider, Bend step, Calibrate (see THE TEST
                                 TOOLS below)
                       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, user guide,
                                 updates, donate, website, forum; Copy diagnostics
                                 for a bug report
                     The OPEN PANEL button on the board opens the window again after
                     you close it.
All three use the same model (TEPFLEX.DLL). The bare sensor keeps the Simple
panel (the tools need the module's own divider).

NEW IN V3.0
* Three devices: the bare sensor and the module Simple (the FLEX SCENE panel on
  the sheet, close / open with the red X and the board's PANEL button) and the
  module Advance (pop-up window with the scene, measured values, the controls, a
  chart, the pin / event log, four test tools, settings and help) - see above.
* The sensor as you buy it: the upright amber strip (silver band, black bars,
  traces, crimp tabs, legs; 2.2 in and 4.5 in in scale) that ITSELF bends on the
  sheet while the simulation runs - the bars stay across it, a thin arc shows the
  path of its tip, the degrees sit at the tip; a click next to the strip bends it
  towards the click. The module: a small clean blue board - the strip in its
  2-pin header on top, R1 "103", the PWR LED, the OUT LED (TEP addition), a
  readings display, a PANEL / OPEN PANEL button and a SIMPLE / ADVANCE badge. The
  bare sensor: the strip, its two pins at the bottom, a small name and display.
  There is no box behind the strip: when its angle changes (at most 12.5 times a
  second) the model asks Proteus to redraw the part (the strip on the sheet).
* Model (the analog SPICE model of the first build, unchanged and verified in
  Proteus 8.5 on 8 Oct 2026): the module's PWR LED is now a real 1.5 k load; the
  ADC VALUE / SKETCH SAYS readouts use the ADC exactly as Proteus's AVR converts
  (293 flat - the first build's panel said 292) and the demo sketch's own maths,
  so the panel and the sketch print the same numbers; test-tool helpers (the
  finger speed, a flipped divider); a pin / event log with the measured settle
  time of every bend; the sheet is redrawn only when something on it changes
  (at most 12.5 times a second) so Proteus stays fast; the Simulation Log names
  the device style and the DLL version.
* Before Run the panel's buttons are all drawn unselected; at Run the model lights
  the selection and paints a clean card edge around every button, the banner and
  the readouts it redraws (Proteus draws the symbol's boxes a little bigger than
  the model's, which left a thin rim of the start-up colour). The Test page's
  result tiles show "-" until a tool has measured them.
* The demo: ONE project with two UNOs - UNO 1 with the module Simple, UNO 2 with
  the module Advance - each with the TEP Serial Monitor Advance instead of the
  Virtual Terminal (U3 = UNO 1, U4 = UNO 2, quick buttons) and a green "bend"
  LED on D13.
* The demo sketch (V3.0) keeps every line of the earlier one ("ADC: 293   A0:
  1.43 V   R: 24.9 k   angle: 0 deg" four times a second) and adds the commands
  HELP, STATUS, READ, EVERY ms, LED deg, CAL FLAT, CAL BENT, FLAT ohms, BENT
  ohms, RDIV ohms and the bend LED on D13 (millis instead of delay, so the
  commands answer at once). It prints nothing periodically but the readings (and
  a line when the LED switches), and no line is longer than 80 characters.
* Sheet text is plain ASCII (Proteus draws schematic text with the ANSI code
  page). The C++ source code is not included.

TEST STATUS
V3.0: verified in Proteus 8.5 on 9 Oct 2026 (this package's TEPFLEX.DLL and
demo project):
  * Editor: the upright amber 2.2 in strip with its black bars in J1 on the
    module. Run: "0 deg" above the tip, the display "OUT 1.428 V   ADC 293
    SKETCH 0 deg", U3 "ADC: 293   A0: 1.43 V   R: 24.9 k   angle: 0 deg".
  * A click right of the strip bent it to 105 deg (the arc and "105 deg" at the
    tip); U3 printed "LED ON - bent past 45 deg" and "ADC: 117   A0: 0.57 V
    R: 77.4 k   angle: 105 deg". The panel's 90: 90 deg, ADC 128. The 4.5 in at
    180 deg: a neat half circle on the sheet.
  * FLEX SLOWLY with both sizes: smooth - no flicker, no trails, no leftover of
    the upright strip. The red X / PANEL button: the strip stays right. The
    Advance window's slider "(base)" + "FLEX SLOWLY now 26.6 deg (0 - 90 deg and
    back every 4 s)" + the amber marker.
  * The tools: Angle sweep 293 ... 82, 1.83 counts per degree, the sketch within
    1 deg; Divider: the on-board 10 k 165 counts, the best 47 k 257, ideal
    41.8 k; Bend step (3 steps, Quick): 87 ms 10 - 90 %, still after 144 ms,
    411 readings; Calibrate 24914.7 / 69921.9, 45 reads 45, 180 reads 180.
  * Speed: about 0.43 x real time with the Advance window open, U2 flexing
    slowly and both Serial Monitors running.
PC tests: 3,025 automatic checks, 0 failed:
  109 on the model (the resistance law for both sizes, custom values, the
  smooth STILL ramps and FLEX SLOWLY, every property parser, the drawing
  geometry, the UNO's ADC (rounded, as Proteus), the demo sketch's maths, the
  upright strip's bend (constant length, a click gives the angle back), the
  four tools on the pure model);
  410 on the complete Proteus model in a small SPICE solver (the stamps, the
  divider voltages at every bend, smooth motion, the timestep caps, properties,
  no power, a pin-powered supply, the three devices, the red X / PANEL button,
  the pop-up made at Run, the board's live parts, the strip drawn only after an
  erasing repaint and only when its angle changes, every pose of both sizes
  inside the symbol's area, the bars across the strip at every bend, clicks
  next to the strip, the event log, every sheet text ASCII and clear of the
  buttons in every state, the sheet redrawn only on a change at 10 - 12.5 Hz,
  the four tools on the running model with readings in every step and the
  scene put back, the article / forum links and all 8 Help cards, no rim of
  the symbol's colour around any redrawn button or box);
  49 with the REAL demo sketch on TWO UNOs against the complete model (every
  output line, the panel's numbers = the sketch's, the bend LED, every command,
  the Calibrate tool = CAL FLAT / CAL BENT, no line over 80 characters);
  2,457 on the rendered pop-up pages and boards (every page fits in TEP Dark and
  Light, at Large text and 150 % DPI; no table cell cut; every Test page uses its
  height; every tool's hint lines fit; every header state fits; the result tiles
  show "-" before a run and a value after it).
The analog method (an ISPICEMODEL DLL, the scheme of Labcenter's interactive
POT-HG) and this sensor's first build were run in Proteus 8.5 on 8 Oct 2026:
flat the UNO printed "ADC: 293   A0: 1.43 V   R: 24.9 k   angle: 0 deg", after
a click on 90 deg "ADC: 128 ... R: 69.9 k" - the numbers V3.0 reproduces.

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" (TEPFLEX.LIB with all three
   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 TEPFLEX.DLL and TEPSERIALMON.DLL from "Proteus Model Files" to the
   MODELS folder (...\Proteus 8 Professional\MODELS).
4. Delete TEPFLEX.IDX from the LIBRARY folder if there is one (Proteus makes a
   new index). Earlier versions of our flex sensor library may use other file
   names - you can keep them.
5. Start Proteus. In Pick Devices (P) search "FLEX": you get the three devices
   (category Sensors > Flex).

RUN THE DEMO
"Proteus Simulation\FLEX-Angle-ArduinoUnoV3.pdsprj" - keep the .hex file and the
two DLLs beside the project.
  UNO 1 (ARD1): module Simple (U1) + Serial Monitor U3, bend LED D1 on D13.
  UNO 2 (ARD2): module Advance (U2) + Serial Monitor U4, bend LED D2 on D13.
  Both run Flex_Angle.hex. VCC of each module on a +5V terminal, OUT on A0.
  1. Press Run. Both monitor windows open (9600 baud) and so does U2's pop-up.
     U3 and U4 show "TEP Flex Sensor demo - www.TheEngineeringProjects.com",
     "Bend the finger on the Proteus panel and watch the angle.", "Type HELP for
     the commands.", then four times a second "ADC: 293   A0: 1.43 V   R: 24.9 k
     angle: 0 deg". The PWR LEDs are lit, both strips stand upright on their
     modules with "0 deg" above the tip, the displays say "OUT 1.429 V   ADC 293
     SKETCH 0 deg".
  2. U1: click 90 on the panel (or click right of the strip, 45 deg up - it bends
     towards the click): the finger and the strip bend in 0.45 s, the OUT LED
     flashes, "ADC: 128   A0: 0.63 V   R: 69.9 k   angle: 90 deg" and "LED ON -
     bent past 45 deg" - the green LED D1 lights. 60 reads "ADC: 158 ... angle:
     59 deg" (the sketch's
     1023 and the ADC's steps - the panel's SKETCH SAYS shows the same 59).
     FLEX SLOWLY: the readings swing 293 .. 128 and the LED goes on and off.
     4.5 in (10 k): flat reads 512. Close the panel with its red X and open it
     with PANEL on the board.
  3. U3 / U4 quick buttons: U3 STATUS, READ, EVERY 1000, EVERY 250; U4 STATUS,
     CAL FLAT, CAL BENT, LED 60. To calibrate: with U2 flat click CAL FLAT, then
     bend U2 to 90 deg and click CAL BENT. U4 prints:
       STRAIGHT_RESISTANCE = 24915 (the sensor is flat now)
       BEND_RESISTANCE = 69922 (the sensor is bent 90 deg now)
  4. U2 (Advance): Flex page - the slider, the presets, Flex slowly, the size;
     watch WHAT THE MODULE DOES, the chart and the event log. Test page (each
     tool puts your bend back when it ends):
       Angle sweep: Run test - 0 .. 180 deg in 15 deg steps: ADC 293, 241, 205,
         178, 158, 141, 128, 117, 108, 100, 93, 87, 82; the resistance from the
         node voltages 25.0 k ... 115.0 k; the sketch's angle within 1 deg
         (60 -> 59, 120 -> 119); 1.83 counts per degree from 0 to 90.
       Divider: "+ 10 k to VCC (flipped)" - the ADC span flat -> 90 deg: 10 k
         165, 4.7 k 98, 22 k 234, 47 k 257 (the best), 100 k 217, flipped 165
         (731 -> 896, rising); ideal sqrt(R flat x R 90) = 41.8 k (from the
         10 k row's node voltages: 25.0 k and 70.0 k).
       Bend step: from 0 to 90 deg, Normal, 3 steps - a flat lead-in, then
         293 -> 128 -> 293 -> 128: 10 - 90 % in 261 ms, the ADC still after
         430 ms (the finger's 0.45 s move), every reading kept.
       Calibrate: flat 293, 45 deg 178, 90 deg 128, 180 deg 82 ->
         "const float STRAIGHT_RESISTANCE = 24914.7;" / "const float
         BEND_RESISTANCE = 69921.9;", checked: 45 deg reads 45, 180 reads 180.
  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 (the same in Proteus and on a real board)
Module: VCC -> 5V, GND -> GND, OUT -> A0. Bare sensor (FLEXTEP): pin 1 -> 5V,
pin 2 -> A0, and a 10 k resistor from A0 to GND (Proteus's RES part).
The bend LED + 220 ohm from D13 to GND on both UNOs (on a real board D13 is the
UNO's own LED).
In the sketch: analogRead(A0), volts = ADC x 5 / 1023, R = R_DIV x (5 / volts -
1), angle = (R - STRAIGHT) x 90 / (BEND - STRAIGHT); Serial 9600.
Serial Monitor RXD <- Arduino D1 (TX), Serial Monitor TXD -> Arduino D0 (RX),
Serial Monitor GND -> ground. RXD2 is not needed: the sensor sends no serial data.
Pin order in Proteus: VCC OUT GND (module), 1 2 (bare sensor).
REAL HARDWARE:
 * Bend the sensor AWAY from its printed (ink) side only, and never at its base
   (it kinks there): clamp the base, let only the sensing length bend.
 * Real sensors differ by +/- 30 % (the 2.2 in often reads 30 - 40 k flat):
   calibrate yours flat and at 90 deg (CAL FLAT / CAL BENT, or the Calibrate
   tool), and use the divider resistor in the sketch (RDIV) that you fitted.
 * A divider near the square root of R flat x R bent gives the most counts per
   degree: about 42 k for a 25 k / 70 k sensor - 47 k (as SparkFun) reads 257
   counts from flat to 90 deg, the module's 10 k 165 (the Divider tool).
 * A0 is ratiometric (it follows the supply): the sketch assumes 5 V.
 * Proteus's AVR rounds the ADC to the nearest count (flat: 1.4286 V = 292.6
   counts -> 293); a real ATmega328P truncates (292, 24.9 k -> 25.0 k). The
   panel and the tools show Proteus's number, the one your sketch prints in the
   simulation. One count is far below the +/- 30 % spread of real sensors.

THE BEND
The buttons, the pop-up's slider, a click next to the strip and the properties
set the bend angle (0 - 180 deg, one direction). A click right of the strip
bends it so its tip points at the click (in 5 deg steps: a click level with
the bend gives 180 deg, straight above it 0). On the sheet the strip bends from
its stiff connector end with an even curve over its sensing length. STILL moves the
finger smoothly at about 200 deg per second to the angle (a smoothstep; at least
0.15 s), FLEX SLOWLY bends it 0 .. the selected angle (90 deg below 15) and back
every PERIOD seconds (4 s). SENSOR SIZE swaps the 2.2 in and the 4.5 in sensor.
The resistance follows the angle at once (a flex sensor has no lag in this
model). While a test tool runs it owns the bend (the panel's buttons wait).

THE TEST TOOLS (Module Advance, Test tab) - what they really measure
Every tool runs on the live model. A tool only moves the sensor with the same
actions as the panel (the bend angle - and for two tools the finger speed or
the module's divider resistor) and reads the node voltages Proteus's SPICE
solver computes at OUT and VCC at every simulation step - so every number is
measured on the running circuit, with the simulation clock. Each tool shows one
"Good for:" line and one line on how it measures.
  Angle sweep    Good for: seeing the whole OUT curve and how well your sketch
                 turns the reading back into an angle. 0 - 180 deg in 15 deg
                 steps (or 0 - 90 in 5): at each angle it waits for a flat OUT
                 and averages it: OUT, the resistance worked out from the node
                 voltages, the UNO's ADC, the R and the angle the demo sketch
                 computes from that ADC; counts per degree, the largest sketch
                 error, the resolution near flat and near the end; a chart.
  Divider        Good for: choosing the divider resistor - the on-board 10 k
                 against 4.7 k to 100 k, and the flipped wiring. Swaps the
                 module's divider for 10 / 4.7 / 22 / 47 / 100 k to GND (and 10 k
                 to VCC, the flex to GND) and reads OUT flat and at 90 deg: the
                 ADC span, counts per degree, the divider current, the best one
                 and the ideal sqrt(R flat x R 90) - R flat and R 90 worked out
                 from the 10 k row's node voltages. The on-board 10 k comes back.
  Bend step      Good for: seeing how fast OUT follows a bend and how often your
                 sketch must read to catch the movement. From 0 or 45 deg to 90 or
                 180 deg, the finger Quick (600 deg/s) / Normal (200) / Slow (50),
                 1 - 3 steps (bend, straighten, bend). Each step starts from a
                 flat reading (a lead-in: at least 1 s, the last 0.5 s within 1
                 count) and lasts until OUT is flat again; every reading of every
                 step is kept: the ADC before and after, the 10 - 90 % time, when
                 the ADC count stopped changing, the settle time (within 1 count),
                 the rate, the angle the sketch prints, the number of readings; a
                 chart of the ADC and the finger over the whole run.
  Calibrate      Good for: getting STRAIGHT_RESISTANCE and BEND_RESISTANCE for
                 your sketch - the two numbers every flex sketch needs. Holds the
                 sensor flat, at 45, 90 and 180 deg (400 ms each, OUT averaged once
                 flat): the ADC of each, the two lines to paste, a check at 45 /
                 180 deg, and what the demo's 25000 / 70000 print instead.
  The tools refuse to start, with the reason, when the module has no power or
  another test runs; they stop (and put the bend back) when the power goes.

THE DEMO SKETCH ON THE SERIAL MONITOR (Flex_Angle V3.0)
  HELP          the command list
  STATUS        the calibration, R_DIV, the reading interval, the LED, the last
                reading
  READ          one reading now
  EVERY ms      the reading interval (0 = pause)
  LED deg       the bend LED on D13 lights from this angle (default 45, 0 = never)
  CAL FLAT      the sensor is flat now: this reading becomes STRA
…
Advertisement

Development1 release

  1. V3.0Flex Sensor Library for Proteus V3.0this page

    V3.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 flex-sensor-tep-v3-0-bc2c7894799944c38b45b4a0ae28766e.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (FLEX-TEP-v3.0) as it is.

  2. 2

    Copy the library files into Proteus

    Move ArduinoV3TEP.LIB, TEPFLEX.LIB and TEPSERIALMON.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. 3

    Add the simulation model

    Copy TEPFLEX.DLL and TEPSERIALMON.DLL 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 Flex_Angle.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 Flex_Angle.hex and run the simulation. For real hardware, flash the same file with your programmer.

  7. 7

    Open the example simulation

    Open FLEX-Angle-ArduinoUnoV3.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

    Flex Sensor Library for Proteus V3.0 (Bend Sensor + Arduino) explains every connection and setting in order; keep it open beside the files while you build.

How to add a library in Proteus 8 Run the HEX file in the Uno Test Bench, in your browser

FAQs9 questionsContact TEP

How do I download Flex Sensor Library for Proteus V3.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?

Flex Sensor Library for Proteus V3.0 comes as a ZIP archive of 12 files (1.4 MB, 3.2 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, 20af444877296528320dabcf292a18e43969ff17cd6853f231b8dd86fd3827e0. In PowerShell run Get-FileHash "flex-sensor-tep-v3-0-bc2c7894799944c38b45b4a0ae28766e.zip"; on macOS or Linux run shasum -a 256 "flex-sensor-tep-v3-0-bc2c7894799944c38b45b4a0ae28766e.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 · flex-sensor-tep-v3-0-bc2c7894799944c38b45b4a0ae28766e.zip
Rating
Your download will be ready shortly
Preparing your download…

Members skip the wait. Log in or join TEP.

  • 7Total downloads
  • 4%Popularity
  • ProteusCategory
  • 0Comments
  • ssyedzainnasirUploaded by
  • 9 Oct 2026Uploaded at
Last 14 days7 downloads
SHA-256 20af444877296528320dabcf292a18e43969ff17cd6853f231b8dd86fd3827e0
DocumentationFlex Sensor Library for Proteus V3.0 (Bend Sensor + Arduino)
Advertisement

Comments

0

Join the conversation

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