Project Files of Line Follower Robot using ESP32 and IR Sensors - Proteus Simulation
69e8ba6212814da09b79e2ceb0712140.zip

Line Follower Robot using ESP32 and IR Sensors - Proteus Simulation V1.0
Line Follower Robot using ESP32 and IR Sensors - Proteus Simulation V1.0 comes as a ZIP archive of 18 files (3.7 MB, 8.0 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware.
- LIBProteus library
- DLLProteus model
- DSNProteus simulation
- INOArduino sketch
- HEXHEX firmware
Description
Line-Follower-Robot-ESP32-IR-Sensors-Proteus-Simulation-v1.0.zip: the complete Proteus simulation project (an ESP32 DevKit V1, a 5-channel IR line tracker, an L298N motor driver, two TT gear motors, the Laptop and Mobile WiFi Monitors), the Arduino sketch ESP32_Line_Follower.ino and its HEX, every LIB and DLL and a README.
File Structure
8.6 KB36.6 KB21.4 KB39.5 KB13.1 KB19.6 KB17 KB319 KB3.0 MB301.5 KB278.5 KB31 KB67.2 KB319 KB3.0 MB301.5 KB278.5 KB10.1 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in Line Follower Robot using ESP32 and IR Sensors - Proteus Simulation. Open an image for its full size.












README
===============================================================================================================
Line Follower Robot using ESP32 and IR Sensors - Proteus Simulation - Project V1.0
The Engineering Projects - www.TheEngineeringProjects.com
===============================================================================================================
IMPORTANT LINKS
The project tutorial (circuit, code, simulation results):
https://www.theengineeringprojects.com/2026/12/line-follower-robot-esp32-ir-sensors-proteus-simulation.html
The libraries this project is built from (each post has its own full download and tutorial):
ESP32 DevKit V1 board:
https://www.theengineeringprojects.com/2026/10/esp32-devkit-v1-library-for-proteus-v2-0.html
5-channel line tracker:
https://www.theengineeringprojects.com/2026/12/5-channel-line-tracker-library-for-proteus.html
L298N motor driver:
https://www.theengineeringprojects.com/2026/11/l298n-motor-driver-library-for-proteus.html
TT gear motor:
https://www.theengineeringprojects.com/2026/10/tt-gear-motor-library-for-proteus-v1-0.html
Laptop WiFi Monitor:
https://www.theengineeringprojects.com/2026/10/laptop-wifi-monitor-library-for-proteus.html
Mobile WiFi Monitor:
https://www.theengineeringprojects.com/2026/10/mobile-wifi-monitor-library-for-proteus.html
Support our free work: https://www.theengineeringprojects.com/donate
FILE STRUCTURE
ESP32-Line-Follower-TEP-v1.0/
|-- Proteus Library Files/
| |-- TEPESP32V1.LIB 36.6 KB a part of the project -> LIBRARY folder
| |-- TEPL298N.LIB 21.4 KB a part of the project -> LIBRARY folder
| |-- TEPLAPTOP.LIB 39.5 KB a part of the project -> LIBRARY folder
| |-- TEPMOBILE.LIB 13.1 KB a part of the project -> LIBRARY folder
| |-- TEPTRACKER5.LIB 19.6 KB a part of the project -> LIBRARY folder
| |-- TEPTTGEAR.LIB 17.0 KB a part of the project -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEPL298N.DLL 319.0 KB a model -> MODELS folder
| |-- TEPNET.DLL 3.01 MB a model -> MODELS folder
| |-- TEPTRACKER5.DLL 301.5 KB a model -> MODELS folder
| |-- TEPTTGEAR.DLL 278.5 KB a model -> MODELS folder
|-- Proteus Simulation/
| |-- ESP32_Line_Follower.hex 67.2 KB the firmware U1 runs
| |-- ESP32-Line-Follower.pdsprj 31.0 KB the project simulation
| |-- TEPL298N.DLL 319.0 KB copy of the model
| |-- TEPNET.DLL 3.01 MB copy of the model
| |-- TEPTRACKER5.DLL 301.5 KB copy of the model
| |-- TEPTTGEAR.DLL 278.5 KB copy of the model
|-- Arduino Code/
| |-- ESP32_Line_Follower/ESP32_Line_Follower.ino 8.6 KB the sketch (source of the .hex)
|-- README.txt ~10.6 KB this file
Total: 8.04 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
The robot every robotics class builds: a two-wheel car that follows a black line on a white floor. Five IR sensors
under the front see where the line is, and a PID controller in the ESP32 turns that into the two wheel speeds -
gentle on the straights, hard into the curves. It drives straight across junctions, finds the line again when it
loses it, waits for an obstacle and stops when it bumps into something. It starts following at power-on, like a
competition robot; a dashboard stops it, starts it again and sets its speed from a laptop or a phone.
* U1 ESP32 DEVKIT V1 runs ESP32_Line_Follower.hex on TEP-WiFi at 192.168.1.101.
* U2 a 5-channel line tracker bar (LINETRACKER5TEP, PROFILE DEMO, HEIGHT 8 mm): S1 - S5 (LOW over black) on D4,
D16 (RX2), D17 (TX2), D18, D19; NEAR (an obstacle within its range) on D21; CLP (the bump switch) on D22; VCC on
the 5 V rail. DEMO is a recorded course in the first seconds of the run: curves, a cross line, a gap, an
obstacle and a bump. Its pop-up's chips then move the line (Line centre / left / right), put an obstacle in
front or press the bump switch.
* U3 an L298N driver (L298NDRIVERTEP, REG5V YES, ENAJUMPER / ENBJUMPER NO): the left motor on ENA D32, IN1 D33,
IN2 D25; the right one on ENB D14, IN3 D26, IN4 D27; 12V on +7.4 V (a 2S Li-ion pack).
* M1 / M2 TT gear motors (TTGEARMOTORTEP): LEFT on OUT1 / OUT2, RIGHT on OUT3 / OUT4.
* Laptop WiFi Monitor (PC1) and Mobile WiFi Monitor (MOB1) open http://192.168.1.101/.
What the sketch does:
the position every 10 ms: the weighted average of the black sensors - 0 under S1, 1000 under S2, 2000 under S3 (the
centre), 3000, 4000 under S5; the error = the position - 2000
the PD correction = 0.035 x the error + 0.25 x the error's change since the last loop; left = base +
correction, right = base - correction, each kept within -30 .. 100 %; a 500 Hz PWM on ENA / ENB
the junction all five sensors black = a cross line: straight on at the base speed, counted
lost all five white = the line lost: a search turn towards the side it was last seen (45 % / -22 %); no
line for 1.5 s = STOP
obstacle NEAR high: both wheels stop until it is gone; bump switch: STOP until START
the speed SLOW 40 %, NORMAL 60 %, FAST 80 % (the base speed)
Its pages:
/ the dashboard with the links Refresh, START, STOP / SLOW, NORMAL, FAST; the mode, the sensors, the
position, the motors, the junctions, the losses and the obstacles
/data JSON: the same
Libraries: WiFi and WebServer (part of the ESP32 core).
TEST STATUS
Tested in Proteus 8 Professional on Windows 11, the run that made the tutorial's screenshots (the times are the
sketch's clock; the tracker's pop-up gives the line and the five channels, the L298N's each bridge):
- 0.00 s READY - following from power-on on the tracker's DEMO course; the WiFi joined about 2.2 s later.
- A curve to the right: the line +19.9 mm, under S4 (11101) - the L298N: A forward 95 % (5.60 V, 0.15 A), B 25 %
(1.41 V).
- 2.00 s JUNCTION 1 - all five sensors black: straight on at the base speed; 2.15 s FOLLOWING.
- A sharp curve to the left: the line -25.7 mm, under S1 (01111) - A reverse 3 % (-0.13 V), B forward 100 %
(5.90 V).
- 3.39 s SEARCHING - a gap, all five white, the line last seen on the right: A forward 45 % (2.66 V), B in reverse;
3.80 s FOLLOWING - the line found again (-6.3 mm): both wheels at 60 % (3.46 / 3.49 V).
- 5.35 s OBSTACLE - WAITING: NEAR high, 3.0 cm ahead (range 5 cm), both bridges coast; 5.55 s BUMPED: the bump
switch pressed, both motors at 0 RPM.
- Line centre, then START from the laptop at 11.98 s: both wheels at 60 % (3.51 V, 0.14 A each).
- The line under S5 (+30 mm): position 4000, left 100 % / right -10 % (5.90 V / -0.53 V); under S1: the mirror
image.
- 21.98 s FAST 80 %; 26.78 s STOP from the phone. The dashboard: 1 junction, 1 time lost, 1 obstacle, 20 s driving.
INSTALLATION
1. Close Proteus. Extract the WHOLE zip file, for example to your Desktop.
2. Copy the files from "Proteus Library Files" into the LIBRARY folder of Proteus, for example
C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY
3. Copy the files from "Proteus Model Files" into the MODELS folder (next to LIBRARY).
4. Start Proteus. Press P in the schematic and search for ESP32 DEVKIT V1 or TRACKER to check that the parts are
there.
RUN THE SIMULATION
1. Open "Proteus Simulation\ESP32-Line-Follower.pdsprj". Keep ESP32_Line_Follower.hex and the DLL files beside it.
2. Press Play: the robot follows the recorded course at once - curves, a cross line, a gap, an obstacle - until
the bump switch stops it (about 6 s).
3. Click U2 for the tracker's pop-up and press Line centre; open the Laptop or the Mobile WiFi Monitor (Go) and
press START. Line left / Line right make the robot steer. (The pop-up's Demo run replays the recording on the
simulation's clock, so pressed later it shows the recording's end.)
PROPERTIES USED IN THIS PROJECT
U1 ESP32 DEVKIT V1 PROGRAM=ESP32_Line_Follower.hex
U2 LINETRACKER5TEP PROFILE=DEMO (the recorded course from the start), OFFSET=0, HEIGHT=8, RANGE=5
U3 L298NDRIVERTEP REG5V=YES, ENAJUMPER=NO, ENBJUMPER=NO (the PWM reaches the bridges)
M1, M2 TTGEARMOTORTEP (no properties)
PC1, MOB1 HOMEPAGE=http://192.168.1.101/
TROUBLESHOOTING
* The robot steers the wrong way: S1 is the far left sensor; if your bar is mounted turned round, swap S1 - S5.
* It weaves left and right: lower KP or raise KD; a faster base speed needs more KD.
* It overshoots the curves: lower the base speed or raise KP.
* Every sensor reads black: the bar is too high above the floor - mount it 3 - 10 mm above.
* Real hardware: the tracker's outputs are 5 V - use a 3.3 V module or dividers before the ESP32 pins; strong
sunlight blinds IR sensors; tune KP / KD on your own track.
LICENCES
* The project, the sketch, the parts (LIB files) and the models (DLL files) are made by The Engineering Projects
and are free for learning and for your own projects. The models use only standard Windows libraries.
The C++ source code of the models is not included; the source code is not included for any model.
* The .hex file is built with the TEP Boards for Proteus.
* Proteus is a product of Labcenter Electronics and is not included. ESP32 is a product of Espressif Systems. This
project is not made or endorsed by them.
VERSION
V1.0 - the first release of the project.
===============================================================================================================Development1 release
-
V1.0Line Follower Robot using ESP32 and IR Sensors - Proteus Simulation V1.0this page
V1.0 is the only release in the Download Center so far. When a newer version is published, it appears above with its own download page.
Installation8 steps
From the download to a working project, in order. The steps follow what the package contains.
You will need
- Proteus Design SuiteProteus 8 or newer (Labcenter), on Windows
- Arduino IDE1.8 or 2.x, with the board of the tutorial chosen under Tools → Board
- Any archive toolWindows, macOS and Linux extract ZIP files on their own
Steps
- 1
Extract the archive
Right-click 69e8ba6212814da09b79e2ceb0712140.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (ESP32-Line-Follower-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move TEPESP32V1.LIB, TEPL298N.LIB and TEPLAPTOP.LIB and 3 more and the files into the LIBRARY folder of your Proteus installation: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY for Proteus 8, or the matching Proteus 7 folder. Older versions keep it under ProgramData\Labcenter Electronics. If Proteus is open, close it first.
- 3
Add the simulation model
Copy TEPL298N.DLL, TEPNET.DLL and TEPTRACKER5.DLL and 1 more into the MODELS folder next to LIBRARY, so the component can run, not only be drawn.
- 4
Restart Proteus and place the component
Start Proteus, open a schematic, press P (Pick Devices) and search for the component by the name used in the tutorial. It appears with its pins ready to wire.
- 5
Open the sketch in the Arduino IDE
Open ESP32_Line_Follower.ino, select your board and port under Tools, then Verify. Sketch → Export Compiled Binary writes the HEX file a simulation needs.
- 6
Load the HEX file
In Proteus double-click the microcontroller, set Program File to ESP32_Line_Follower.hex and run the simulation. For real hardware, flash the same file with your programmer.
- 7
Open the example simulation
Open ESP32-Line-Follower.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.
- 8
Follow the tutorial
Line Follower Robot using ESP32 and IR Sensors - Proteus Simulation explains every connection and setting in order; keep it open beside the files while you build.
FAQs9 questionsContact TEP
How do I download Line Follower Robot using ESP32 and IR Sensors - Proteus Simulation V1.0?
Wait for the 30-second guest countdown on this page, then press the download button; the file comes straight from our storage. Members who are logged in skip the wait. If the browser opens the file instead of saving it, use its Save as option. The download link is made for you when the countdown ends and works for 15 minutes; a saved or shared link stops working, so share this page instead.
What is inside the archive?
Line Follower Robot using ESP32 and IR Sensors - Proteus Simulation V1.0 comes as a ZIP archive of 18 files (3.7 MB, 8.0 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 18 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, 70ebb8b7e2e8c7189c3f1be82838797d8493750108d2d7bab2d7fcf5ba67ca6d. In PowerShell run Get-FileHash "69e8ba6212814da09b79e2ceb0712140.zip"; on macOS or Linux run shasum -a 256 "69e8ba6212814da09b79e2ceb0712140.zip". The same value means the file is exactly the one in our storage; a different one means the download broke off, so download it again.
Do I need WinRAR to open the ZIP file?
No. Windows, macOS and Linux open ZIP archives on their own (Extract All, or double-click). WinRAR and 7-Zip work too. Extract the whole archive before using the files.
Where do I put the LIB and IDX files?
Both files go into the LIBRARY folder of your Proteus installation (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY; Proteus 7 has the same folder under its own name). Restart Proteus afterwards and search for the component with P.
Which Proteus version does the library need?
The tutorial names the Proteus version the library was made and tested with. Most TEP libraries work in Proteus 7 and Proteus 8; if the component does not appear after a restart, check that both the LIB and the IDX file were copied and that Proteus was fully closed while copying.
How do I get the HEX file into the simulation?
Compile the sketch in the Arduino IDE (Sketch → Export Compiled Binary gives you the HEX next to the sketch), then in Proteus double-click the board, set Program File to that HEX and run.
Members skip the wait. Log in or join TEP.
- 0Total downloads
- 4%Popularity
- ESP32 ProjectsCategory
- 0Comments
- ssyedzainnasirUploaded by
- 5 Dec 2026Uploaded at
70ebb8b7e2e8c7189c3f1be82838797d8493750108d2d7bab2d7fcf5ba67ca6d






















Comments
0