TEP DOWNLOAD CENTER

Project Files of Infrared Sensor Library for Proteus V2.0 (FC-51 Obstacle + Arduino)

Libraries Code Projects Simulation
tep://download-terminal infrared-sensor-tep-v2-0-958af5cc8b5247c4bfee0a137143a87b.zip ZIP archiveV2.0Verified69 downloadsFree
Infrared Sensor Library for Proteus V2.0: two Arduino UNOs with blue FC-51 IR obstacle sensors, the FC-51 Advance pop-up Scene page with WAVE HAND at 10 cm and its event log, and the TEP Serial Monitor in its Simple interface printing Obstacle detected and Path clear
Proteus library · File 1 of 1

Infrared Sensor Library for Proteus V2.0

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

Infrared Sensor Library for Proteus V2.0 is the download package that goes with our tutorial Infrared Sensor Library for Proteus V2.0 (FC-51 Obstacle + Arduino). On this page you can download the ZIP file (1.4 MB) and see what is inside before you save it: 12 files in 5 folders, the Proteus library files (LIB and IDX), the simulation model (DLL), a ready Proteus simulation, an Arduino sketch and the compiled HEX firmware. The tutorial explains the design; this page gets the files onto your computer and into use.

What this library is

Infrared-Sensor-Library-for-Proteus-v2.0.zip with FC-51 Simple and Advance (TEPFC51.LIB and TEPFC51.DLL), the TEP Serial Monitor and Arduino UNO libraries for Proteus, the two-UNO IR obstacle sensor 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
  • TEPFC51.LIB – Proteus library, 229.3 KB
  • TEPSERIALMON.LIB – Proteus library, 11.1 KB
  • ArduinoV3TEP.IDX – Library index, 830 B
  • TEPFC51.DLL – Simulation model, 377 KB
  • TEPSERIALMON.DLL – Simulation model, 978 KB
  • and 6 more, all listed in the File Structure tab

The archive unpacks to 3.1 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, TEPFC51.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 TEPFC51.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 FC51_Obstacle.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 FC51_Obstacle.hex; on hardware, flash the same file.
  • Step 7: Open FC51-Obstacle-ArduinoUnoV3.pdsprj in Proteus and press Play.

Read the detailed guide

This page is for the files. The full tutorial, Infrared Sensor Library for Proteus V2.0 (FC-51 Obstacle + 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 Infrared Sensor Library for Proteus V2.0 (FC-51 Obstacle + Arduino)

File Structure

infrared-sensor-tep-v2-0-958af5cc8b5247c4bfee0a137143a87b.zip12 files · 5 folders · 3.1 MB unpacked
FC51-TEP-v2.0/12 files · 3.1 MB
Arduino Code/1 file · 7.6 KB
FC51_Obstacle/1 file · 7.6 KB
INO FC51_Obstacle.inoArduino sketch 7.6 KB
Proteus Library Files/4 files · 336.8 KB
IDX ArduinoV3TEP.IDXLibrary index 830 B
LIB ArduinoV3TEP.LIBProteus library 95.6 KB
LIB TEPFC51.LIBProteus library 229.3 KB
LIB TEPSERIALMON.LIBProteus library 11.1 KB
Proteus Model Files/2 files · 1.3 MB
DLL TEPFC51.DLLSimulation model 377 KB
DLL TEPSERIALMON.DLLSimulation model 978 KB
Proteus Simulation/4 files · 1.4 MB
DSN FC51-Obstacle-ArduinoUnoV3.pdsprjProteus simulation 47.6 KB
HEX FC51_Obstacle.hexCompiled HEX file 15.1 KB
DLL TEPFC51.DLLSimulation model 377 KB
DLL TEPSERIALMON.DLLSimulation model 978 KB
TXT README.txtText file 27.7 KB

README

README.txt 379 lines
INFRARED (IR OBSTACLE) SENSOR FC-51 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/infrared-sensor-library-for-proteus-v2-0.html
Report a bug or suggest a feature (our forum):
  https://www.theengineeringprojects.com/forum/category/infrared-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
FC51-TEP-v2.0/
|-- Proteus Library Files/
|   |-- ArduinoV3TEP.IDX                      0.8 KB   its index -> LIBRARY
|   |-- ArduinoV3TEP.LIB                     95.6 KB   TEP Arduino UNO (demo) -> LIBRARY
|   |-- TEPFC51.LIB                         229.3 KB   FC-51 Simple + Advance (2 devices) -> LIBRARY
|   |-- TEPSERIALMON.LIB                     11.1 KB   TEP Serial Monitor Advance -> LIBRARY
|-- Proteus Model Files/
|   |-- TEPFC51.DLL                         377.0 KB   FC-51 model -> MODELS
|   |-- TEPSERIALMON.DLL                    978.0 KB   Serial Monitor model -> MODELS
|-- Proteus Simulation/
|   |-- FC51_Obstacle.hex                    15.1 KB   both UNOs (demo sketch V2.0)
|   |-- FC51-Obstacle-ArduinoUnoV3.pdsprj    47.6 KB   demo: UNO 1 + Simple, UNO 2 + Advance
|   |-- TEPFC51.DLL                         377.0 KB   copy of the model (runs as is)
|   |-- TEPSERIALMON.DLL                    978.0 KB   copy of the monitor model
|-- Arduino Code/
|   |-- FC51_Obstacle/FC51_Obstacle.ino       7.6 KB   the demo sketch (source of the .hex)
|-- README.txt                              ~29.0 KB   this file
Total: 3.07 MB (unzipped). The C++ source code of the model is not included.

WHAT IS IT?
A simulation model of the FC-51 IR obstacle avoidance sensor module for Proteus
8 - the blue board with the clear IR LED and the dark IR photodiode at one end,
the LM393 comparator, the blue sensitivity pot and the PWR / OBS LEDs. Your
Arduino reads its OUT pin exactly as with the real module: HIGH (the module's
own 10 k pull-up) while the path is clear, LOW while an obstacle is in front.
The model has the module's behaviour: the IR LED shines, an object close enough
reflects some IR back into the photodiode, the LM393 compares that signal with
the level set by the pot (the range of a WHITE object, 2 - 30 cm) and switches
OUT. A GREY object is seen up to 0.55 x that range, a BLACK one only up to
0.2 x; in SUNLIGHT the range shrinks to 0.6 x - and with the pot above 15 cm
the sun's IR alone pulls OUT LOW (a false detection). OUT follows the LM393
after the RESPONSE delay (2 ms); a change shorter than that is filtered.
You move the object yourself: 2 - 40 cm or none, white / grey / black, indoor
or sunlight, standing still or a hand waving it in and out of the beam.
While the simulation runs the board is alive: the IR LED glows and pulses, the
photodiode's core lights while it sees the obstacle, the pot turns, PWR and OBS
light - and an "IR VIEW" screen above the IR pair shows what the sensor looks
at: the IR beam going up, the object at its distance, the reflection coming
back to the photodiode (as strong as the colour reflects), the range line, the
sun, and a SIG meter (the LM393's input against its threshold).

TWO DEVICES IN ONE LIBRARY (search "FC-51" or "IR Obstacle" in Pick Devices):
  FC-51 Simple    device FC51TEP     "IR Obstacle Sensor FC-51 - Simple"
                  On-Sheet Panel: the "IR OBSTACLE SCENE" next to the board -
                  the state banner (NO OBSTACLE - OUT HIGH / OBJECT BEYOND THE
                  DETECTION RANGE / OBSTACLE DETECTED - OUT LOW / FALSE
                  DETECTION - SUNLIGHT IR / NO POWER), the side view with the
                  beam, the reflection and the object (click the scene or the
                  0 - 40 cm ruler to move it), DISTANCE / THRESHOLD / OUT /
                  DETECTIONS and the buttons: the distance (2 - 40 cm, NO
                  OBJECT, -1 / +1 cm), the colour, the light, the pot (-
                  SHORTER / + LONGER) and the motion (STILL / WAVE HAND). The
                  red X in the panel's header closes it, the PANEL button on
                  the board opens it again.
  FC-51 Advance   device FC51ADVTEP  "IR Obstacle Sensor FC-51 - 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
                  Scene and Test sit in the header; the gear and ? icons open
                  Settings and Help; the palette icon switches the theme:
                    Scene     the side view (click the track to move the
                              object), THE SENSOR (state, OUT, the object -
                              "(base)" while WAVE runs, "WAVE now: in / out of
                              the beam" -, the range, the signal, detections,
                              how long OUT is / was LOW, the measured response
                              and release times, pot, light), the scene and
                              module buttons, the last 10 s (the LM393's
                              decision and OUT LOW) and the EVENT LOG (power,
                              every LM393 decision with the distance and the
                              range, every OUT edge with its measured delay and
                              LOW time, filtered flips, the scene changes, the
                              hand's moves)
                    Test      four tools measured on the model (see THE TEST
                              TOOLS below): Colour sweep, Response time, Pot
                              check, Sunlight test
                    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, scene, 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 (TEPFC51.DLL) and the same properties (the
Advance device has no PANEL property - its window has "open at Run"). On both,
a click on the board's pot turns it: left half -2 cm, right half +2 cm.

NEW IN V2.0
* Two devices: FC-51 Simple (the scene on the sheet, close / open) and FC-51
  Advance (pop-up window with the scene, four test tools, settings and help) -
  see above.
* Board: the blue FC-51 drawn clean and bold, a little longer (closer to the
  real 31 x 14 mm board) with a button row: the PANEL: SHOWN / CLOSED button
  (Simple) or OPEN PANEL (Advance) and a SIMPLE / ADVANCE badge. The module's
  own LEDs PWR (red, the supply) and OBS (green, OUT LOW) plus EDGE (amber,
  0.3 s on every change of OUT) - EDGE is a TEP addition: the real FC-51 has
  only PWR and OBS. EDGE makes even a 2 ms pulse on OUT visible. Above the IR
  pair the animated IR VIEW screen.
* Model - an event log: power, every decision of the LM393 (obstacle / clear,
  with the distance and the range), OUT LOW / HIGH with the measured delay
  after the LM393 and the measured LOW time, a flip that reversed within the
  response delay (filtered - OUT did not change), the scene changes, the hand
  moving the object in / out (WAVE).
* Model - measured values on the panels: how long OUT was LOW, the response
  (LM393 -> OUT LOW) and release (LM393 -> OUT HIGH) delays, the signal
  against the threshold. A distance exactly ON the range now always counts
  (floating point could make 8.4 cm miss a range of 8.4 cm).
* Simulation Log: "NO OBSTACLE - OUT HIGH (OUT was LOW for 1.0 s)" - the
  measured LOW time added.
* The demo: ONE project with two UNOs - UNO 1 with FC-51 Simple, UNO 2 with
  FC-51 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 ("Obstacle
  detected!", "Path clear", the status line "Status: OUT = ...") and adds the
  obstacle number and time ("Obstacle detected!  #1 at 2.3 s"), how long OUT
  was LOW ("Path clear  #1 at 3.3 s (OUT was LOW for 1.0 s)") and the commands
  HELP, STATUS, RESET, WATCH s, DEBOUNCE ms. The status line is printed on
  STATUS or WATCH only - nothing is printed periodically unless you ask. Its
  times are rounded to 0.1 s.
* The simulation runs lighter: the panels redraw 12.5 times a second and only
  the parts that changed.
* 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 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;
  the Pot check's first tile names the measured pot setting nearest to 20 cm
  (with "Every 4 cm": "At pot 18 cm").
* 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.
  The demo loads cleanly; both monitors print the start lines and "Path
  clear"; WAVE HAND at 10 cm prints "Obstacle detected!" / "Path clear ...
  (OUT was LOW for ...)" and the pop-up shows Response / Release 2.000 ms with
  the event log and the 10 s chart. Colour sweep: WHITE 20.0 cm (released at
  20.7), GREY 11.0 cm (0.55 x), BLACK 4.0 cm (0.20 x). Response time (3 steps):
  2.000 ms in and out, the shortest pass seen 2.0 ms (1.0 ms filtered). Pot
  check every 4 cm: 2 - 30 cm, all 1.00 x. Sunlight test: false detection from
  pot 16 cm, safe up to 14 cm, sunlight range 0.60 x indoor (6 / 3.6, 10 / 6.0,
  14 / 8.4 cm). The sheet panel: no outline around the start-up buttons after
  picking others, no rim around the banner, readable captions, the red X and
  PANEL buttons work; the Test tiles show "-" before a run; Settings and Help
  work. The Pot check tile tweak was re-checked in Proteus on the shipped DLL
  (Every 4 cm: "At pot 18 cm" 18.0 cm, 1.00 x, 2.0 cm (pot 2) - 30.0 cm).
  And 1924 automatic checks on a PC, 0 failed:
  147 on the model alone (every colour x pot x distance, hysteresis, the
  response delay and its filter, sunlight, power, WAVE, the event log, the
  signal, the 0.1 cm grid, and the four test tools run as the adapter runs
  them: Colour sweep, Response time with readings in every step, Pot check,
  Sunlight test, refusals, Stop, power loss);
  395 on the complete Proteus model (properties, OUT edges at the exact times,
  one callback, every panel button and scene click, drawn frames without stale
  pixels, the panel close / open, both devices, the pop-up and all 8 Help
  links, the LEDs, the IR VIEW, ASCII-only sheet text in every state, the event
  log, the tools through the pop-up checked on the OUT 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 or the readouts);
  27 with the real demo sketch on TWO UNOs against the complete model (every
  line, the printed times = the model's events, the commands, WAVE HAND, the
  Response tool with DEBOUNCE 50, the Colour sweep, nothing printed while
  nothing happens, the demo's lines under 80 characters - the longest 74);
  1355 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" (TEPFC51.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 TEPFC51.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
   TEPFC51.IDX if there is one in the LIBRARY folder.
5. Start Proteus. In Pick Devices (P) search "FC-51": you get the Simple and
   the Advance device (category Sensors > Proximity).

RUN THE DEMO
"Proteus Simulation\FC51-Obstacle-ArduinoUnoV3.pdsprj" - keep the .hex file and
the two DLLs beside the project.
  UNO 1 (ARD1): FC-51 Simple (U1), Serial Monitor U3.
  UNO 2 (ARD2): FC-51 Advance (U2), Serial Monitor U4.
  Both run FC51_Obstacle.hex. OUT -> D2; the UNO's own LED (D13) shows the
  sensor. (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 three start lines and "Path clear" (below). The PWR
     LEDs are lit, the IR LEDs pulse, the IR VIEW shows the white object at
     30 cm - beyond the 20 cm range.
  2. U1: click 10 cm on the panel. 2 ms later OUT goes LOW: OBS and EDGE light,
     the banner turns orange, the reflection reaches the photodiode, U3 prints
     "Obstacle detected!  #1 at ...". Click NO OBJECT: "Path clear  #1 at ...
     (OUT was LOW for ...)". Try GREY and BLACK at 15 cm (not detected: their
     range is 11 / 4 cm), the pot (- SHORTER / + LONGER), SUNLIGHT (with the pot
     at 20 cm: a false detection - turn the pot down to 14 cm), WAVE HAND (OUT
     LOW for 1 s every 2 s). Close the panel with its red X and open it with
     PANEL: CLOSED on the board.
  3. U3 / U4 quick buttons: U3 STATUS, WATCH 2 (a status line every 2 s),
     WATCH 0, HELP; U4 STATUS, DEBOUNCE 50 (a change must last 50 ms), RESET,
     HELP.
  4. U2 (Advance): Scene page - the same scene buttons; watch THE SENSOR card,
     the last 10 s and the EVENT LOG. Test page: the four tools below.
  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)
FC-51 VCC -> +5 V, GND -> GND, OUT -> D2. In the sketch: pinMode(2, INPUT);
digitalRead(2) - LOW = obstacle. The module has its own pull-up; no library is
needed.
Serial Monitor RXD <- Arduino D1 (TX), Serial Monitor TXD -> Arduino D0 (RX),
Serial Monitor GND -> ground. RXD2 is not needed: OUT is one logic line and the
sketch prints what it sees.
Pin order in Proteus: OUT GND VCC (left to right, as on the real module with
the IR pair up and the header at the bottom - check your board's silkscreen).
REAL HARDWARE:
 * Supply 3.3 - 5 V, about 20 mA. OUT LOW = obstacle, HIGH = clear.
 * The pot sets the range: clockwise = longer, about 2 .. 30 cm for a white
   object; ordinary objects are seen at 15 - 20 cm in practice.
 * Dark objects reflect less IR: much shorter range (one tutorial: black at
   5 cm where white triggers at 25 cm - the 0.2 x of the model); matte black
   may not trigger at all. The grey factor 0.55 is our estimate.
 * Direct sunlight, strong IR sources and some LED lamps cause false
   detections - turn the pot down or shade the sensor.
 * The real LM393 board has no hysteresis: right at a long threshold OUT can
   chatter. The model adds a small one (release 0.3 cm or 3 % beyond the
   range) so a click exactly on the threshold does not chatter; DEBOUNCE in the
   sketch shows the software fix.
 * The response time: one listing says 2 ms (the only number we found); the
   RESPONSE property sets it in the model.

THE SCENE
The side view: the sensor on the left looking right, the object on a 0 - 40 cm
track (the ruler; 0 cm = the LED faces).
  DISTANCE      2 / 5 / 10 / 15 / 20 / 30 / 40 cm or NO OBJECT; FINE TUNE -1 /
                +1 cm; or click the scene / the ruler (1 - 40 cm)
  OBJECT COLOUR WHITE (the pot's range), GREY (0.55 x), BLACK (0.2 x)
  AMBIENT LIGHT INDOOR, SUNLIGHT (0.6 x; with the pot above 15 cm the sun alone
                pulls OUT LOW)
  SENSITIVITY   the pot: the white range, 2 - 30 cm in 2 cm steps
  MOTION        STILL, or WAVE HAND: a hand holds the object in the beam for
                1 s and takes it out for 1 s
While a test tool runs it owns the scene (the scene buttons and the pot wait -
the Simulation Log says so once).

THE TEST TOOLS (FC-51 Advance, Test tab) - what they really measure
Every tool runs on the live model. A tool only moves the object, sets the
colour, the pot or the light, and reads OUT 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 scene back when it ends (the motion is held STILL meanwhile).
  Colour sweep      Good for: knowing how close a white, grey or black object
                    must come before OUT goes LOW. At the pot as set, each
                    colour comes from 40 cm: 1 cm steps until OUT is LOW, then
                    (after a flat lead-in with nothing in front) again in
                    0.1 cm steps, then back out in 0.1 cm steps until OUT is
                    HIGH; OUT is read 20 ms after every step. A chart per
                    colour (every reading, the detection zone, the release) and
                    a table. On a PC (pot 20 cm, indoor): WHITE from 20.0 cm,
                    HIGH again at 20.7 cm; GREY 11.0 / 11.4 cm (0.55 x); BLACK
                    4.0 / 4.4 cm (0.20 x). About 3.4 s of simulation.
  Response time     Good for: knowing how fast OUT follows an obstacle - and
                    the shortest pass it can still see. 3 or 10 steps: nothing
                    in front with OUT HIGH for 100 ms (a flat lead-in), the
                    object in at half the range, held 200 ms, out again; then
                    four short passes of 0.5 / 1 / 1.5 / 2.5 x the response
                    delay. Zoomed charts of the IN and OUT edges, the passes,
                    a row per step. On a PC (RESPONSE 2 ms): in -> OUT LOW
                    2.000 ms and out -> OUT HIGH 2.000 ms in every step, OUT
                    LOW for 0.200 s; the 1 ms pass is filtered (the LM393 flip
                    is cancelled), 2, 3 and 5 ms passes show on OUT. About
                    2.1 s (3 steps).
  Pot check         Good for: setting the pot for the distance you need - with
                    your object's colour and light. The pot from 2 to 30 cm
                    (every 2 or 4 cm); at each setting the object approaches
                    from 40 cm as in the Colour sweep. A chart (detected
                    distance against the pot) and a list. On a PC (white,
                    indoor): 2.0 .. 30.0 cm = 1.00 x the pot at every setting;
                    grey 0.55 x; in sunlight 0.6 x up to 14 cm and OUT stuck
                    LOW from 16 cm. About 16 s (every 2 cm).
  Sunlight test     Good for: seeing why an IR obstacle sensor fails in the sun
                    - and how far to turn the pot down. SUNLIGHT with nothing
                    in front, the pot 2 .. 30 cm: OUT at each setting; then at
                    pots 6 / 10 / 14 cm the detection distance indoor and in
                    sunlight. On a PC: OUT LOW with nothing in front from pot
                    16 cm (safe up to 14 cm); white 6.0 / 10.0 / 14.0 cm indoor
                    and 3.6 / 6.0 / 8.4 cm in sunlight = 0.60 x. About 7.3 s.
  The tools refuse to start, with the reason, when the sensor has no power or
  another test runs; the Colour sweep and the Response time also when OUT is
  LOW with nothing in front (sunlight above pot 15 cm), and the Response time
  when the object cannot be seen at 1 cm (a range under 1 cm).

THE DEMO SKETCH ON THE SERIAL MONITOR (FC51_Obstacle)
  HELP          the command list (three lines)
  STATUS        the status line of the earlier versions + the LOW times
                (last / shortest / longest), WATCH and DEBOUNCE (two lines)
  RESET         the detection counter back to 0
  WATCH s       the status line every s seconds (0 = off, 0 - 60; off at start)
  DEBOUNCE ms   a change must last ms before it counts (0 - 1000; 0 at start)
                - the software fix for a chattering threshold
Monitor quick buttons in the demo: U3 STATUS, WATCH 2, WATCH 0, HELP; U4
STATUS, DEBOUNCE 50, RESET, HELP.
The sketch reads OUT about 50 times a second and prints a line only when
something happens (or on WATCH). In the demo its lines stay under 80
characters (the TEP Serial Monitor's Simple interface shows about 80); only
the second STATUS line can pass 80, with LOW times over 100 s, WATCH 60 and
DEBOUNCE 1000.

EXPECTED MONITOR OUTPUT (U3 and U4)
  FC-51 IR Obstacle Sensor demo - The Engineering Projects
  OUT = LOW means an obstacle is in front of the sensor.
  Infrared Sensor Library for Proteus V2.0 - type HELP for the commands.
  Path clear
Then 10 cm on U1, wait 1 s, NO OBJECT - e.g.:
  Obstacle detected!  #1 at 2.3 s
  Path clear          #1 at 3.3 s (OUT was LOW for 1.0 s)
(the times depend on when you click). STATUS:
  Status: OUT = HIGH (clear)     detections: 1
    LOW: last 1.0 s, shortest 1.0 s, longest 1.0 s; watch 0 s; debounce 0 ms
WAVE HAND at 10 cm: "Obstacle detected!" and "Path clear ... (OUT was LOW for
1.0 s)" every 2 s. WATCH 2: "Watch: a status line every 2 s." then the status
line every 2 s; WATCH 0: "Watch off."; DEBOUNCE 50: "Debounce: a change must
last 50 ms."; RESET: "Counter reset: 0 detections."; an unknown command:
"Unknown command: FOO - type HELP".

PROPERTIES (double-click the sensor > Edit Properties)
  DISTANCE     Object distance in cm, 1 - 40, or NONE (default 30)
  COLOUR       WHITE (default), GREY or BLACK
  SENSITIVITY  The pot: the white-object range in cm, 2 - 30 (default 20)
  AMBIENT      INDOOR (default) or SUNLIGHT
  MOTION       STILL (default) or WAVE
  RESPONSE     The LM393 -> OUT delay in ms, 0 - 1000 (default 2)
  PANEL        OPEN (default) or CLOSED - the Simple device's panel at Run
A bad value is logged in the Simulation Log and the default is used. The panel
style is chosen by the device (Simple / Advance), not by a property. The Advance
window settings (theme, text size, open at Run, size) are on its Settings page.
The demo's Serial Monitors: BAUD 9600, THEME TEPDARK, AUTOOPEN YES, QUICK1-4 as
above (see the Serial Monitor's article for all its properties).

LINKS.INI (OPTIONAL)
The Help page cards of the Advance device open web pages. To point them
somewhere else without a new DLL, put a text file named links.ini next to
TEPFC51.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
* A grey or black object is not detected at 15 cm: correct - dark objects
  reflect less IR (grey 0.55 x, black 0.2 x of the pot's range). Move it closer
  or turn the pot up.
* OUT is LOW with nothing in front: SUNLIGHT with the pot above 15 cm - the
  sun's IR alone crosses th
…
Advertisement

Development1 release

  1. V2.0Infrared 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. 1

    Extract the archive

    Right-click infrared-sensor-tep-v2-0-958af5cc8b5247c4bfee0a137143a87b.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (FC51-TEP-v2.0) as it is.

  2. 2

    Copy the library files into Proteus

    Move ArduinoV3TEP.LIB, TEPFC51.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 TEPFC51.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 FC51_Obstacle.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 FC51_Obstacle.hex and run the simulation. For real hardware, flash the same file with your programmer.

  7. 7

    Open the example simulation

    Open FC51-Obstacle-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

    Infrared Sensor Library for Proteus V2.0 (FC-51 Obstacle + 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

FAQs9 questionsContact TEP

How do I download Infrared 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?

Infrared Sensor Library for Proteus V2.0 comes as a ZIP archive of 12 files (1.4 MB, 3.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 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, 4b8de9d8a8573b0b5e900d842cded48c3ad1f55894247cb05b1f5ea81a96a0bf. In PowerShell run Get-FileHash "infrared-sensor-tep-v2-0-958af5cc8b5247c4bfee0a137143a87b.zip"; on macOS or Linux run shasum -a 256 "infrared-sensor-tep-v2-0-958af5cc8b5247c4bfee0a137143a87b.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 · infrared-sensor-tep-v2-0-958af5cc8b5247c4bfee0a137143a87b.zip
Rating
Your download will be ready shortly
Preparing your download…

Members skip the wait. Log in or join TEP.

  • 69Total downloads
  • 4%Popularity
  • ProteusCategory
  • 0Comments
  • ssyedzainnasirUploaded by
  • 9 Oct 2026Uploaded at
Last 14 days65 downloads
SHA-256 4b8de9d8a8573b0b5e900d842cded48c3ad1f55894247cb05b1f5ea81a96a0bf
DocumentationInfrared Sensor Library for Proteus V2.0 (FC-51 Obstacle + Arduino)
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.