TEP DOWNLOAD CENTER

Project Files of Flame Sensor Library for Proteus V2.0 (IR Flame Sensor + Arduino)

Libraries Code Projects Simulation
tep://download-terminal flame-sensor-tep-v2-0-a839b9b64f8a4ffb892306276c917939.zip ZIP archiveV2.0Verified21 downloadsFree
Flame Sensor Library for Proteus V2.0: two Arduino UNOs with blue flame sensor modules, the Flame Advance pop-up Scene page with a candle at 30 cm and FLAME DETECTED, and the TEP Serial Monitor printing FIRE! Flame detected
Proteus library · File 1 of 1

Flame Sensor Library for Proteus V2.0

Flame 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

This is the download page of Flame Sensor Library for Proteus V2.0, the file package of the tutorial Flame Sensor Library for Proteus V2.0 (IR Flame 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

Flame-Sensor-Library-for-Proteus-v2.0.zip with Flame Simple and Advance (TEPFLAME.LIB and TEPFLAME.DLL), the TEP Serial Monitor and Arduino UNO libraries for Proteus, the two-UNO fire alarm 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
  • TEPFLAME.LIB – Proteus library, 213.2 KB
  • TEPSERIALMON.LIB – Proteus library, 11.1 KB
  • ArduinoV3TEP.IDX – Library index, 830 B
  • TEPFLAME.DLL – Simulation model, 389.5 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, TEPFLAME.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 TEPFLAME.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 Flame_Alarm.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 Flame_Alarm.hex; on hardware, flash the same file.
  • Step 7: Open Flame-Sensor-ArduinoUnoV3.pdsprj in Proteus and press Play.

Read the detailed guide

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

File Structure

flame-sensor-tep-v2-0-a839b9b64f8a4ffb892306276c917939.zip12 files · 5 folders · 3.1 MB unpacked
FLAME-TEP-v2.0/12 files · 3.1 MB
Arduino Code/1 file · 8.2 KB
Flame_Alarm/1 file · 8.2 KB
INO Flame_Alarm.inoArduino sketch 8.2 KB
Proteus Library Files/4 files · 320.7 KB
IDX ArduinoV3TEP.IDXLibrary index 830 B
LIB ArduinoV3TEP.LIBProteus library 95.6 KB
LIB TEPFLAME.LIBProteus library 213.2 KB
LIB TEPSERIALMON.LIBProteus library 11.1 KB
Proteus Model Files/2 files · 1.3 MB
DLL TEPFLAME.DLLSimulation model 389.5 KB
DLL TEPSERIALMON.DLLSimulation model 978 KB
Proteus Simulation/4 files · 1.4 MB
DSN Flame-Sensor-ArduinoUnoV3.pdsprjProteus simulation 45.6 KB
HEX Flame_Alarm.hexCompiled HEX file 16.3 KB
DLL TEPFLAME.DLLSimulation model 389.5 KB
DLL TEPSERIALMON.DLLSimulation model 978 KB
TXT README.txtText file 28.5 KB

README

README.txt 369 lines
FLAME SENSOR 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/flame-sensor-library-for-proteus-v2-0.html
Report a bug or suggest a feature (our forum):
  https://www.theengineeringprojects.com/forum/category/flame-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
FLAME-TEP-v2.0/
|-- Proteus Library Files/
|   |-- ArduinoV3TEP.IDX                        0.8 KB   its index -> LIBRARY folder
|   |-- ArduinoV3TEP.LIB                       95.6 KB   TEP Arduino UNO (demo) -> LIBRARY folder
|   |-- TEPFLAME.LIB                          213.2 KB   Flame Simple + Advance (2 devices) -> LIBRARY folder
|   |-- TEPSERIALMON.LIB                       11.1 KB   TEP Serial Monitor Advance -> LIBRARY folder
|-- Proteus Model Files/
|   |-- TEPFLAME.DLL                          389.5 KB   flame sensor model -> MODELS folder
|   |-- TEPSERIALMON.DLL                      978.0 KB   Serial Monitor model -> MODELS folder
|-- Proteus Simulation/
|   |-- Flame_Alarm.hex                        16.3 KB   both UNOs (demo sketch v2.0)
|   |-- Flame-Sensor-ArduinoUnoV3.pdsprj       45.6 KB   demo: UNO 1 + Flame Simple, UNO 2 + Flame Advance
|   |-- TEPFLAME.DLL                          389.5 KB   copy of the model so the demo runs as is
|   |-- TEPSERIALMON.DLL                      978.0 KB   copy of the monitor model
|-- Arduino Code/
|   |-- Flame_Alarm/Flame_Alarm.ino             8.2 KB   the demo sketch (source of the .hex)
|-- README.txt                                ~29.2 KB   this file
Total: 3.08 MB (unzipped). The C++ source code of the model is not included.

WHAT IS IT?
A simulation model of the common IR flame sensor module for Proteus 8 - the blue
LM393 comparator board with the black 5 mm IR receiver (760 - 1100 nm) on long
legs, the blue sensitivity pot, a PWR LED and a D0 LED - with its two outputs:
  A0  an analog voltage: LOWER means MORE infrared (a stronger or closer flame),
      0 - 5 V on the UNO's ADC (about 1021 with no infrared at all, 20 when the
      receiver is saturated);
  D0  a digital output: LOW while the infrared is stronger than the pot's trip
      level (the D0 LED lights), HIGH otherwise.
The model is a real ANALOG part in Proteus's simulator (SPICE): the board's 10 k
pull-up and the receiver form the A0 divider, the LM393's open-collector output
with its 10 k pull-up is D0 - your Arduino reads the node voltages exactly as on
a real board (analogRead / digitalRead). You set up the scene: the flame (a
candle, a lighter or a gas burner), how far away it is (6 - 100 cm), how far the
sensor is turned away from it (0 - 90 deg; the receiver sees about 60 deg), the
room light (a dark room, indoor light or sunlight - which carries infrared and
can set off a false alarm), the flame's flicker (A0 ripples like a real flame)
and the pot. A flame you light while the simulation runs GROWS (a candle in
about 1.2 s) and one you put out fades, so D0 follows it a little later - as on
the real board.
The part looks like the real module: the blue board in its real proportions
(31 x 14 mm), the black receiver standing over its top edge, the pot (its rotor
turns with the trip level), the LM393, the PWR and D0 LEDs and the 4-pin header.
While the simulation runs the receiver's dome glows with the infrared, three IR
wave arcs ripple down into it and a "what the sensor sees" window above it shows
the flame - it grows when lit, flickers, gets smaller far away, moves aside when
the sensor is turned - with the room lamp or the sun. TEP additions on the board:
the IR level bar with the pot's trip mark (red), the A0 box (the live A0
voltage) and the PANEL / OPEN PANEL button with a SIMPLE / ADVANCE badge.

TWO DEVICES IN ONE LIBRARY (search "Flame" in Pick Devices):
  Flame Simple    device FLAMETEP     "Flame Sensor (TEP) - Simple"
                  On-Sheet Panel: the FLAME SCENE panel on the schematic next to
                  the sensor - a side view with the sensor on its stand, the flame
                  on a table with a measuring tape (0 - 100 cm), the receiver's 60
                  deg view, IR heat waves, the lamp / the sun; the "A0 vs POT"
                  comparator gauge, the readouts IR LEVEL / A0 / ADC / D0 and
                  three rows of buttons (flame source, flicker, distance, fine
                  -/+ 2 cm, angle, ambient light, sensitivity pot). The red X in
                  the panel's header closes it, the PANEL button on the board
                  (PANEL: SHOWN / CLOSED) opens it again.
  Flame Advance   device FLAMEADVTEP  "Flame Sensor (TEP) - Advance"
                  Pop-Up Panel: only the sensor 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 scene drawn live (side view), THE MODULE (the
                              IR level as the demo sketch computes it, A0 and its
                              ADC count, D0 and its LED, the pot's trip level and
                              reference, the steady IR level and the flicker now,
                              LIGHTING / GOING OUT), every control (flame, flicker,
                              a distance slider + -/+ 2 cm, angle, light, pot), a
                              live A0 chart of the last 10 s (min / max per 20 ms,
                              the pot's reference, D0 LOW shaded) and the D0 PIN
                              LOG (every change of D0 with the time and A0)
                    Test      four tools measured on the running circuit: Range
                              sweep, D0 threshold, Step response, Sunlight test
                              (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 (sensor,
                              scene, board, the D0 log, the 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 (TEPFLAME.DLL) and the same properties.

NEW IN V2.0
* Two devices: Flame Simple (the scene panel on the sheet, close / open) and
  Flame Advance (pop-up window with the scene, four test tools, settings and
  help) - see above.
* Board: the real module's shape (portrait, 31 x 14 mm) drawn clean and bold,
  the black receiver on long legs with a glowing dome, three IR wave arcs, the
  "what the sensor sees" window, the IR level bar with the trip mark, the A0
  box, a PANEL / OPEN PANEL button and a SIMPLE / ADVANCE badge. LEDs: PWR (red)
  and D0 (green) are the module's own; the IR bar and the A0 box are TEP
  additions (the real board has no display).
* Model - ignition: a flame lit while the simulation runs grows (candle 1.2 s,
  lighter 0.15 s, gas burner 0.4 s - the model's times, no data sheet gives
  them) and one put out fades (30 - 50 ms); the flame burning when the run
  starts (the SOURCE property) is there at once.
* The panels show what your sketch reads: the ADC count is the UNO's own
  conversion (round(1024 x A0 / 5 V)) and the IR LEVEL readout is the demo
  sketch's formula (map(adc, 1020, 20, 0, 100), constrained) on that count.
* A D0 pin log (every change with the time and A0) and a 10 s A0 history.
* Four test tools (Advance, Test page) - every number measured at the A0 and D0
  pins of the running circuit.
* The demo: ONE project with two UNOs - UNO 1 with Flame Simple, UNO 2 with
  Flame Advance - each with the TEP Serial Monitor Advance instead of the
  Virtual Terminal (U3 = UNO 1, U4 = UNO 2, quick buttons) and a green alarm
  LED.
* The demo sketch (v2.0) keeps every line of the first version ("IR level: 73 %
  ADC: 284   D0: LOW    FIRE! Flame detected" twice a second) and adds the
  commands HELP, STATUS, READ, EVERY ms, ALARM adc and AVG n; the alarm LEDs
  blink without delay() so the commands stay responsive.
* Version 2.0 everywhere; the C++ source code is not included (and neither is
  the Arduino AVR core archive - its GitHub link is below).
TEP published earlier versions of a flame sensor library for Proteus; v2.0 is a
new model with its own parts and files (TEPFLAME.LIB / TEPFLAME.DLL).

TEST STATUS
V2.0: verified in Proteus 8.5 on 9 Oct 2026 (this package, the last of three
Proteus checks that day). The demo project loads, both devices draw, U2's
pop-up opens without a Windows title bar, Settings and Help work.
  Serial Monitors: "IR level: 73 %   ADC: 289   D0: LOW    FIRE! Flame
  detected" with the candle at 30 cm (278 - 291 while it flickers; ADC 284
  with flicker OFF), the PWR / D0 / alarm LEDs lit. No flame in a dark room:
  ADC 1021, D0 HIGH. SUNLIGHT with no flame: "IR level: 75 %   ADC: 270   D0:
  LOW    FIRE!" and the banner "SUNLIGHT - POSSIBLE FALSE ALARM".
  Sheet panel (Simple): every caption readable, no outline left around a
  button after another one is picked, the panel's border unbroken, the red X
  and the PANEL button work; LIGHTER at 30 cm 87 % / ADC 144; LIGHTER at 80 cm
  60 deg off axis in a dark room "FLAME OUTSIDE THE 60 DEG VIEW - D0 HIGH",
  0 % / ADC 1021.
  Pop-up (Advance): Scene page ADC 277, 74 %, the live A0 chart and the D0 pin
  log; every tool shows "-" until it has run.
  Range sweep (candle): D0 LOW up to 50 cm, HIGH from 60 cm, A0 crosses the
  pot (2.54 V) at 50.3 cm; ADC 34 / 45 / 58 / 102 / 157 / 219 / 284 / 408 /
  518 / 606 / 677 / 731 / 774 / 807 from 6 to 100 cm.
  D0 threshold: D0 switches at 2.541 V (ADC 520) both ways - no hysteresis;
  23 edges in 2.0 s with flicker at 37.3 deg.
  Step response (candle x 3): D0 LOW 491 ms after lighting, A0 at 90 % after
  790 ms, settled after 886 ms, D0 HIGH 20 ms after the flame goes out.
  Sunlight test: dark 1021, indoor 1001, sunlight 270 - a FALSE ALARM at the
  middle pot; the trip level 80 % ignores the sun, then a candle in the sun
  trips D0 at 50 cm; a candle's ripple 35 counts (about 3 Hz), the sun's 0.
  1825 automatic checks on a PC, 0 failed:
  91 on the model (the 52 checks of the first build unchanged: the A0 line,
  the detection ranges, the D0 rule for 19 trip levels x 48 distances x 4
  flames, the angle response, the ambient light, gliding, flicker, power; v2.0:
  ignition / going out, the UNO's ADC and the demo's IR level, the four tools on
  an ideal circuit, including a 3-step and a 5-step response with readings in
  every step); 306 on the complete Proteus model in a small SPICE (the 227
  checks of the first build plus both devices, the board's live parts, a candle
  lit through the panel, the D0 pin log, ASCII-only sheet text in 24 states, the
  pop-up's commands, links and diagnostics, the four tools measured at the
  nodes, every sheet text inside or clear of the buttons as Proteus draws
  them, no rim of the symbol around a repainted button); 24 with the real
  v2.0 demo sketch on TWO UNOs against the complete model (every line of the
  first version, the panel showing the sketch's numbers, sunlight, a candle
  growing, every command, the tools while the sketch reads, every line at most
  80 characters); 1404 on the rendered boards and
  pop-up windows (every page fits in TEP Dark and Light, at Large text and 150 %
  DPI; no table cell cut; no empty band over 12 % on a Test page; every tool's
  hint lines fit; every header state fits; before a run every result tile
  shows -).

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" (TEPFLAME.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 TEPFLAME.DLL and TEPSERIALMON.DLL from "Proteus Model Files" to the
   MODELS folder (...\Proteus 8 Professional\MODELS).
4. If a TEPFLAME.IDX is in the LIBRARY folder, delete it.
5. Start Proteus. In Pick Devices (P) search "Flame": you get the Simple and the
   Advance device (Pick Devices category Sensors, sub-category Temperature).

RUN THE DEMO
"Proteus Simulation\Flame-Sensor-ArduinoUnoV3.pdsprj" - keep the .hex file and
the two DLLs beside the project.
  UNO 1 (ARD1): Flame Simple (U1), Serial Monitor U3.
  UNO 2 (ARD2): Flame Advance (U2), Serial Monitor U4.
  Both run Flame_Alarm.hex. A green LED (LED-GREEN D1 / D2) with 220 ohm on A3
  of each UNO: the alarm (the UNO's own LED on D13 blinks too).
  1. Press Run. Both monitor windows open (9600 baud) and so does U2's pop-up.
     U3 shows "Flame Sensor Fire Alarm - The Engineering Projects", "Reading A0
     and D0 every 0.5 s...", "TEP Flame Sensor demo v2.0 - type HELP for the
     commands", then "IR level: 73 %   ADC: 285   D0: LOW    FIRE! Flame
     detected" twice a second (the candle at 30 cm flickers: the numbers move a
     little); U4 the same. The PWR and D0 LEDs are lit, the receivers glow, the
     arcs ripple, the windows show the candle, the alarm LEDs blink.
  2. U1: click on the panel - NONE (the flame fades out: "IR level: 1 %   ADC:
     1001   D0: HIGH   No flame", the alarm LED stops), CANDLE (it grows: the
     readings fall for about a second, then FIRE! again), FLICKER OFF (a steady
     "ADC: 284"), the distances (a candle trips D0 up to 50 cm at the middle pot
     setting), 30 / 60 / 90 DEG (60 deg and more: outside the receiver's view),
     SUNLIGHT with NONE (a false alarm: "ADC: 270   D0: LOW    FIRE!"), the pot
     - LESS / + MORE (the trip level in 5 % steps). Close the panel with its red
     X and open it with PANEL on the board.
  3. U3 / U4 quick buttons: U3 STATUS, AVG 32 (the last 32 A0 samples averaged:
     the flicker almost disappears from the ADC), ALARM 600 (an analog alarm:
     also FIRE! when the ADC is below 600 - try the candle at 50 cm with the pot
     at 60 %), ALARM 0; U4 STATUS, READ, EVERY 1000, EVERY 500. Type HELP.
  4. U2 (Advance): Scene page - every control, the live A0 chart, the D0 pin
     log. Test page: run the four tools (see THE TEST TOOLS) while the sketch
     keeps reading - U4 shows how your sketch sees the same changes.
  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 demo)
Sensor VCC -> 5 V supply, GND -> GND, A0 -> the UNO's A0, D0 -> the UNO's A1
(used as a digital input - in the demo the sensor sits left of the UNO and A0
and A1 are both on the UNO's left edge; on your own board D2 or any digital pin
works the same, change SENSOR_D0 in the sketch).
The alarm LED + 220 ohm from A3 to GND on both UNOs (and the UNO's LED on D13).
Serial Monitor RXD <- Arduino D1 (TX), Serial Monitor TXD -> Arduino D0 (RX),
Serial Monitor GND -> ground. RXD2 is not needed: the sensor has no serial line
to watch.
Pin order in Proteus: VCC GND D0 A0 (as most boards print it on the header).
REAL HARDWARE:
 * Supply 3.3 - 5 V; A0 and the pot's reference follow VCC (ratiometric).
 * D0 is LOW on a flame on almost every board (a few clones invert it - check
   the D0 LED) and A0 is LOWER with more infrared (a few tutorials say the
   opposite; check yours with a lighter).
 * The receiver sees about 60 deg; a lighter is seen at about 80 cm, a bigger
   flame further (the pot sets it). A candle's range in the model is 50 cm at
   the middle pot setting (sources quote 50 - 100 cm).
 * Sunlight, halogen / incandescent lamps, IR heaters and TV remotes can trigger
   it - LED and fluorescent room light hardly do. A real flame flickers (1 - 20
   Hz), sunlight does not: a sketch can use that (see the Sunlight test).
 * The board has no hysteresis: with a flame right at the trip level D0
   chatters - debounce D0 or average A0 before you sound an alarm.
 * This is a hobby module, not a certified fire detector - never use it as the
   only fire protection.

THE SCENE
  FLAME SOURCE   NONE, CANDLE, LIGHTER, GAS BURNER (lit at run time: it grows;
                 NONE: it fades out)
  FLICKER        ON (A0 ripples like a real flame, 3 - 13 Hz) / OFF (exact values)
  DISTANCE       10 - 100 cm presets, FINE -/+ 2 cm (the pop-up: a slider 6 - 100
                 cm); the flame glides there at 80 cm/s
  ANGLE          0 / 30 / 60 / 90 deg the sensor is turned away from the flame
                 (half the infrared at 30 deg, none from 60 deg)
  AMBIENT LIGHT  DARK ROOM, INDOOR LIGHT (a little infrared), SUNLIGHT (a lot -
                 about 75 % IR level: a false alarm at the middle pot setting)
  SENSITIVITY    the pot: D0 goes LOW above the trip level (5 - 95 % IR level,
  POT            default 50 % = A0 below 2.54 V at 5 V); - LESS / + MORE in 5 %
                 steps (clockwise on the real board = more sensitive)
The IR level is the receiver's response, 0 - 100 %: I / (I + 1) of the infrared
intensity I (the flame's power / distance squared x the angle response + the
ambient light); A0 = VCC x (1020 - 10 x level) / 1023.

THE TEST TOOLS (Flame Advance, Test tab) - what they really measure
Every tool runs on the live model: it takes the scene over (and puts it back when
it ends) and measures the A0 and D0 node voltages of the running circuit at every
simulation timepoint - so every number is what the circuit really did, measured
with the simulation clock. Each tool shows one "Good for:" line and one line on
how it measures.
  Range sweep     Good for: knowing how far your sensor sees a candle, a lighter
                  or a burner - and how wide it looks. Steps the flame over 14
                  distances (6 - 100 cm) or 10 angles (0 - 90 deg) with the
                  scene's flame, light and pot; at each point it waits 0.12 s and
                  measures for 0.5 s: the mean / min / max A0, the ADC count, the
                  demo's IR level, how much of the time D0 was LOW; where D0
                  changes and where A0 crosses the pot's reference; a chart and a
                  table. On the PC (candle, flicker off, pot 50 %): D0 LOW up to
                  50 cm, HIGH from 60 cm, A0 crosses the pot (2.54 V) at about
                  50.6 cm; angle sweep at 30 cm: LOW up to 30 deg, HIGH from 40
                  deg.
  D0 threshold    Good for: setting the pot and seeing exactly where D0 switches
                  - and why it chatters at the edge. A candle in a dark room
                  turns into the view at 20 deg/s and out again (flicker off):
                  the A0 voltage at which D0 went LOW and back HIGH (the LM393's
                  switching point - there is no hysteresis on this board), the
                  pot's reference, the D0 LOW / HIGH levels, then 2 s with flicker
                  at the switching angle: the D0 edges (chatter). On the PC (pot
                  50 %): LOW at 2.544 V, HIGH at 2.540 V (pot 2.542 V; the two
                  points overlap within one 4 ms simulation step - no
                  hysteresis), D0 0.015 V / 5.00 V, about 20 edges in 2 s.
  Step response   Good for: seeing how fast D0 and A0 follow a flame that is lit
                  and put out - your alarm's reaction time. Waits until A0 is
                  flat with no flame (at least 0.5 s), then lights the flame (the
                  scene's, or a candle / lighter / burner) and puts it out 3, 5
                  or 10 times, keeping every sample: per step the delay to D0
                  LOW, the A0 90 % time, the settling time (within 5 % of the
                  step or the flicker), the delay to D0 HIGH after it went out;
                  a chart of the whole run. On the PC (candle at 30 cm): D0 LOW
                  about 480 ms after lighting, A0 at 90 % after about 780 ms,
                  settled after about 0.9 s, D0 HIGH 22 ms after putting it out.
  Sunlight test   Good for: checking whether daylight would set off your fire
                  alarm - and the pot setting that stops it. With no flame: A0,
                  its ripple and D0 in a dark room, indoor light and sunlight;
                  then the trip level is raised 5 % at a time in the sun until D0
                  stays HIGH with A0 at least 50 mV above the reference (a real
                  board's noise); a candle's flicker (ripple, about how fast)
                  against the sun's (none); and in the sun at that pot setting,
                  how close a candle must come before D0 trips. On the PC: 1021 /
                  1001 / 270, the sun trips D0 at 50 % (a false alarm), the pot
                  at 80 % ignores it, then a candle trips D0 from about 50 cm; a
                  candle's ripple about 37 counts (about 3 Hz), the sun's 0.
  The tools refuse to start, with the reason, when the sensor has no power or
  another test runs. While a tool runs it owns the scene (the panel's buttons
  wait); Stop ends it and puts the scene back.

THE DEMO SKETCH ON THE SERIAL MONITOR (Flame_Alarm v2.0)
  HELP          the command list
  STATUS        the reading interval, AVG, ALARM, the last reading, the alarm
  READ          one reading now
  EVERY ms      the reading interval 100 - 10000 ms (0 = pause)
  ALARM adc     an analog alarm: also FIRE! when the ADC is below adc (0 = D0
                only)
  AVG n         the reading = the mean of the last n A0 samples (taken every 10
                ms, 1 - 32): smooths the flicker
Monitor quick buttons in the demo: U3 STATUS, AVG 32, ALARM 600, ALARM 0; U4
STATUS, READ, EVERY 1000, EVERY 500.
Every line the demo prints is shorter than 80 characters (the TEP Serial
Monitor's Simple interface shows about 80); it prints nothing periodically but
the readings.

EXPECTED MONITOR OUTPUT (U3 and U4)
  Flame Sensor Fire Alarm - The Engineering Projects
  Reading A0 and D0 every 0.5 s...
  TEP Flame Sensor demo v2.0 - type HELP for the commands
  IR level: 73 %   ADC: 285   D0: LOW    FIRE! Flame detected
  IR level: 74 %   ADC: 275   D0: LOW    FIRE! Flame detected
Then NONE on U1 and STATUS on U3 - e.g.:
  IR level: 1 %   ADC: 1001   D0: HIGH   No flame
  Status: every 500 ms, AVG 1, ALARM on D0 LOW only
    last: IR 1 %, ADC 1001, D0 HIGH, alarm off after 24 readings

PROPERTIES (double-click the sensor > Edit Properties)
  SOURCE      the flame at the start: NONE, CANDLE, LIGHTER, GAS BURNER (CANDLE)
  DISTANCE    cm, 6 - 100 (30)
  ANGLE       deg the sensor is turned away from the flame, 0 - 90 (0)
  AMBIENT     DARK, INDOOR, SUNLIGHT (INDOOR)
  FLICKER     ON or OFF (ON)
  THRESHOLD   the pot's trip level, IR level % 5 - 95, lower = more sensitive (50)
  PANEL       Simple only: the panel at the start, OPEN or CLOSED (OPEN)
Every run starts from the properties; the panel's clicks last until the
simulation stops. 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.

LINKS.INI (OPTIONAL)
The Help page cards of
…
Advertisement

Development1 release

  1. V2.0Flame 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 flame-sensor-tep-v2-0-a839b9b64f8a4ffb892306276c917939.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (FLAME-TEP-v2.0) as it is.

  2. 2

    Copy the library files into Proteus

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

  7. 7

    Open the example simulation

    Open Flame-Sensor-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

    Flame Sensor Library for Proteus V2.0 (IR Flame 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

FAQs9 questionsContact TEP

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

Flame 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, c73a52aa11e4831a9a7c22a22e9ce11cbc803e81fb9d1d869a9fae0fcfd993ba. In PowerShell run Get-FileHash "flame-sensor-tep-v2-0-a839b9b64f8a4ffb892306276c917939.zip"; on macOS or Linux run shasum -a 256 "flame-sensor-tep-v2-0-a839b9b64f8a4ffb892306276c917939.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 · flame-sensor-tep-v2-0-a839b9b64f8a4ffb892306276c917939.zip
Rating
Your download will be ready shortly
Preparing your download…

Members skip the wait. Log in or join TEP.

  • 21Total downloads
  • 4%Popularity
  • ProteusCategory
  • 0Comments
  • ssyedzainnasirUploaded by
  • 8 Oct 2026Uploaded at
Last 14 days17 downloads
SHA-256 c73a52aa11e4831a9a7c22a22e9ce11cbc803e81fb9d1d869a9fae0fcfd993ba
DocumentationFlame Sensor Library for Proteus V2.0 (IR Flame Sensor + 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.