Project Files of Closed-Loop Camera Slider on Raspberry Pi 5 - Proteus Simulation
18f50fe81c2e43e78ec075d76e83e433.zip

Closed-Loop Camera Slider on Raspberry Pi 5 - Proteus Simulation V1.0
Closed-Loop Camera Slider on Raspberry Pi 5 - Proteus Simulation V1.0 comes as a ZIP archive of 144 files (14.5 MB, 28.6 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, source code and a nested archive.
- LIBProteus library
- DLLProteus model
- DSNProteus simulation
- SRCSource code
- ZIPNested archive
Description
Closed-Loop-Camera-Slider-Raspberry-Pi-5-Proteus-Simulation-v1.0.zip: the complete Proteus simulation project (a Raspberry Pi 5, two NEMA 17 closed-loop steppers - one in closed loop, one in open loop -, a PC817 shutter output with a LED, an I2C LCD 16x2, the Laptop and Mobile WiFi Monitors), the Python program slider.py, every LIB and DLL, the TEP Pi runtime and a README.
File Structure
181.4 KB39.5 KB21.8 KB13.1 KB16.8 KB30 KB306.9 KB60.5 KB3.3 MB34.3 KB620.8 KB36 KB169.8 KB628.1 KB99.3 KB65.3 KB4.8 MB4.1 MB80 B97.8 KB26.8 KB1.2 MB1.1 MB88.9 KB27.3 KB55.8 KB79.8 KB105.8 KB193.8 KB113.8 KB48.8 KB145.8 KB36.8 KB29.3 KB42.3 KB28.8 KB67.3 KB89.3 KB153.8 KB22.8 KB38.8 KB2.1 KB9.9 KB4.1 KB1.3 KB4.7 KB431 B2.5 KB17.5 KB283 B6.5 KB37.9 KB11.1 KB5.5 KB885 B13.6 KB9 KB878 B1.5 KB4 KB1004 B10 B110 B2.6 KB1.1 KB8.9 KB58.5 KB12.4 KB6.6 KB18.5 KB20.7 KB27.8 KB21.1 KB7.1 KB7.7 KB2.7 KB51.2 KB100.9 KB1.2 KB24.3 KB7.4 KB53.6 KB26.1 KB20.5 KB60.5 KB19.6 KB1.6 KB8.4 KB20.9 KB2.6 KB539 B1.4 KB9.7 KB2.8 KB21 B92 B7.9 KB264 B3.4 KB3.8 KB17.5 KB55.2 KB3.3 KB10.8 KB1.5 KB4.2 KB7.3 KB2.5 KB32.6 KB14.5 KB283 B17.4 KB257 B691 B14.5 KB12.8 KB3.6 KB1.7 KB37 KB418 B6.2 KB7 KB37.3 KB10.6 KB23.7 KB28.7 KB8.8 KB16.9 KB409 KB289.5 KB315 KB3.0 MB306 KB311 KB37.8 KB11.8 KB409 KB289.5 KB315 KB3.0 MB306 KB311 KB11.8 KB11 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in Closed-Loop Camera Slider on Raspberry Pi 5 - Proteus Simulation. Open an image for its full size.












README
===============================================================================================================
Closed-Loop Camera Slider on Raspberry Pi 5 - 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/closed-loop-camera-slider-raspberry-pi-5-proteus-simulation.html
The libraries this project is built from (each post has its own full download and tutorial):
Raspberry Pi 5 board:
https://www.theengineeringprojects.com/2026/10/raspberry-pi-5-library-for-proteus.html
NEMA 17 closed-loop stepper:
https://www.theengineeringprojects.com/2026/11/nema-17-closed-loop-stepper-library-for-proteus.html
PC817 optocoupler:
https://www.theengineeringprojects.com/2026/11/pc817-optocoupler-library-for-proteus.html
5mm LED:
https://www.theengineeringprojects.com/2026/11/5mm-led-library-for-proteus.html
Resistor:
https://www.theengineeringprojects.com/2026/11/resistor-library-for-proteus.html
I2C LCD 16x2:
https://www.theengineeringprojects.com/2026/10/i2c-lcd-16x2-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
Pi-5-Camera-Slider-TEP-v1.0/
|-- Proteus Library Files/
| |-- TEPI2CLCD16X2.LIB 181.4 KB a part of the project -> LIBRARY folder
| |-- TEPLAPTOP.LIB 39.5 KB a part of the project -> LIBRARY folder
| |-- TEPLED5MM.LIB 21.8 KB a part of the project -> LIBRARY folder
| |-- TEPMOBILE.LIB 13.1 KB a part of the project -> LIBRARY folder
| |-- TEPNEMA17CL.LIB 16.8 KB a part of the project -> LIBRARY folder
| |-- TEPOPTO.LIB 30.0 KB a part of the project -> LIBRARY folder
| |-- TEPRESISTOR.LIB 306.9 KB a part of the project -> LIBRARY folder
| |-- TEPRPI5.LIB 60.5 KB a part of the project -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEPLCD.DLL 409.0 KB a model -> MODELS folder
| |-- TEPLED5MM.DLL 289.5 KB a model -> MODELS folder
| |-- TEPNEMA17CL.DLL 315.0 KB a model -> MODELS folder
| |-- TEPNET.DLL 3.01 MB a model -> MODELS folder
| |-- TEPOPTO.DLL 306.0 KB a model -> MODELS folder
| |-- TEPRESISTOR.DLL 311.0 KB a model -> MODELS folder
| |-- TEPPi/python/ 17.54 MB Python 3.11 embeddable -> MODELS\TEPPi (33 files)
| |-- TEPPi/runtime/ 1.11 MB TEP Pi runtime, gpiozero -> MODELS\TEPPi (87 files)
|-- Proteus Simulation/
| |-- Pi-5-Camera-Slider.pdsprj 37.8 KB the project simulation
| |-- slider.py 11.8 KB the program PI1 runs
| |-- TEPLCD.DLL 409.0 KB copy of the model
| |-- TEPLED5MM.DLL 289.5 KB copy of the model
| |-- TEPNEMA17CL.DLL 315.0 KB copy of the model
| |-- TEPNET.DLL 3.01 MB copy of the model
| |-- TEPOPTO.DLL 306.0 KB copy of the model
| |-- TEPRESISTOR.DLL 311.0 KB copy of the model
|-- Python Code/
| |-- slider.py 11.8 KB the program (the same file)
|-- README.txt ~10.7 KB this file
Total: 28.59 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
A motorised camera slider run by a Raspberry Pi 5: a carriage on a 600 mm rail, pulled by a GT2 belt on a 20-tooth
pulley (40 mm a motor turn). Every move eases in and out along a cosine, so the camera never jerks, and the Pi runs
the two classic slider jobs: a TIMELAPSE (move, settle, shoot, wait) and a VIDEO glide. The motor is a NEMA 17
closed-loop stepper: its driver reads the shaft with a magnetic encoder and cannot lose a step. M2, an ordinary
open-loop stepper on the same three wires, shows why that matters on a slider with a heavy camera.
* PI1 RASPBERRY PI 5 runs slider.py on Ethernet at 192.168.1.51 (port 8000).
* M1 a NEMA 17 closed-loop stepper (NEMA17CLTEP, MODE CR_vFOC, MSTEP 8, INERTIA 200 - a 0.5 kg carriage and
camera through the belt) and M2 the same in open loop (CR_OPEN, MA 1500): one bus - EN = GPIO5 (pin 29, low
enables), STP = GPIO6 (pin 31), DIR = GPIO13 (pin 33); V+ on +12V, GND and COM to ground. 8 microsteps = 1600
pulses a turn = 40 pulses a mm.
* GPIO16 (pin 36) on the STP wire: the Pi counts every step pulse it really sent.
* U1 a PC817 (PC817TEP): SHUT (GPIO26, pin 37) through R1 470 ohm into its LED; its transistor is the camera's
shutter input - here it lights D1 (LED5MMREDTEP) from 5 V through R2 330 ohm.
* LCD1 an I2C LCD 16x2 (I2CLCD16X2BLUEADVTEP, 0x27) on I2C1 (SDA GPIO2, SCL GPIO3), VCC 5 V.
* Laptop WiFi Monitor (PC1) and Mobile WiFi Monitor (MOB1) open http://192.168.1.51:8000/.
What the program does:
the moves x(t) = x0 + D (1 - cos(pi t / T)) / 2: the speed rises and falls along a sine; T from the distance
(at most 5 kHz = 125 mm/s = 187 RPM at the middle) or given (the video)
the pulses a continuous PWM on STP (lgpio.tx_pwm) whose frequency is set every 50 ms from the profile and the
pulses REALLY sent - counted on GPIO16 (an lgpio callback tally); the last pulses are counted out
slowly; the Pi's count is the motors' count
TIMELAPSE 7 shots from 0 to 600 mm (6 steps of 100 mm): each step an eased move, 0.3 s to settle, a 0.4 s
shutter pulse, 1 s between shots
VIDEO one 12 s glide to the far end of the rail
Its pages:
/ the dashboard with the links Refresh, STOP, HOME, MIDDLE, END, TIMELAPSE and VIDEO
/data JSON: the position (pulses, mm), the target, the job, the shot, the speed, the moves, the events
Python libraries: lgpio (in the TEPPi runtime; on Raspberry Pi OS: python3-lgpio); threading, http.server.
TEST STATUS
Tested in Proteus 8 Professional on Windows 11, the run that made the tutorial's screenshots (the program's clock; the
motors' pop-ups give the shaft from the encoder, the pulses received and the error):
- 1.0 s START: an eased move to 300 mm - 5.7 s done, 12001 pulses (the Pi's count = both motors'): M1 2700.2 deg,
error 0.00 deg on 0.12 A; M2 (open loop) 2700.2 deg, error 0.05 deg on its full 1.50 A.
- TIMELAPSE: 7 shots at -0.1, 100.2, 200.2, 300.1, 400.1, 500.1 and 600.1 mm (15.3 - 32.4 s); at shot 3 the PC817
switched on (8.2 mA in its LED, 9.1 mA through D1); both motors at 5401 deg, 24006 pulses, none lost.
- 0.3 N.m on both (a heavy camera on a tilted rail), then VIDEO, a 12 s glide back to 0: M1 kept moving at -118 RPM
with 0.19 deg of error on 1.89 A, and stopped at 0.0 deg (holding the load on 1.82 A); M2 SLIPPED: it never moved -
3000 full steps lost, still at the 600 mm end while the Pi counted it home.
- 55.3 s of simulation in 455 s.
- Our first runs: chained bursts of tx_pwm pulses stopped late (13035 pulses for 12000) - now GPIO16 counts what
really went out; at 262 RPM and 600 g.cm2 the open-loop motor slipped with no load - 187 RPM and 200 g.cm2.
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 everything in "Proteus Model Files" - the DLL files and the TEPPi folder - into the MODELS folder (next
to LIBRARY).
4. Start Proteus. Press P in the schematic and search for RASPBERRY PI 5 or NEMA17CLTEP to check that the parts
are there.
RUN THE SIMULATION
1. Open "Proteus Simulation\Pi-5-Camera-Slider.pdsprj". Keep slider.py and the DLL files beside it.
2. Press Play. The carriage glides to the middle (300 mm = 12000 pulses). Click M1 and M2 for their pop-ups: the
shaft, the target (the pulses received) and the error.
3. Open the Laptop or the Mobile WiFi Monitor (Go): HOME / MIDDLE / END, TIMELAPSE, VIDEO, STOP. Choose 0.3 N.m on
both motors' pop-ups and run VIDEO: the closed loop holds, the open loop slips.
PROPERTIES USED IN THIS PROJECT
PI1 RASPBERRY PI 5 PROGRAM=slider.py, ETHERNET=IN (192.168.1.51)
M1 NEMA17CLTEP MODE=CR_vFOC, MSTEP=8, INERTIA=200
M2 NEMA17CLTEP MODE=CR_OPEN, MA=1500, MSTEP=8, INERTIA=200
U1 PC817TEP; D1 LED5MMREDTEP; R1 470 ohm, R2 330 ohm; LCD1 I2CLCD16X2BLUEADVTEP
PC1, MOB1 HOMEPAGE=http://192.168.1.51:8000/
TROUBLESHOOTING
* The motors do not move: EN low enables (EN=L); V+ on 12 V, COM on ground (the opto inputs' common).
* The position drifts from the Pi's count: GPIO16 must be on the STP wire - chained bursts of pulses stop a little
late in the TEP runtime (our first run: 13035 pulses for 12000); the count on GPIO16 is what really went out.
* The open-loop motor loses steps with no load: too fast for its torque (keep under about 200 RPM at 1.5 A) or too
much inertia; the closed-loop one raises its current instead.
* No shutter: SHUT through R1 to the PC817's anode, its cathode to ground.
LICENCES
* The project, the program, 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.
* TEPPi\python is the Python 3.11 Windows embeddable package (Python Software Foundation License); TEPPi\runtime
holds our TEP Pi runtime with gpiozero and colorzero (BSD licences) - their licence files are inside the folders.
* Proteus is a product of Labcenter Electronics and is not included. Raspberry Pi is a trademark of Raspberry Pi
Ltd. This project is not made or endorsed by them.
VERSION
V1.0 - the first release of the project.
===============================================================================================================Development1 release
-
V1.0Closed-Loop Camera Slider on Raspberry Pi 5 - 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.
Installation7 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
- Pythonto build the source files into firmware
- Any archive toolWindows, macOS and Linux extract ZIP files on their own
Steps
- 1
Extract the archive
Right-click 18f50fe81c2e43e78ec075d76e83e433.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (Pi-5-Camera-Slider-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move TEPI2CLCD16X2.LIB, TEPLAPTOP.LIB and TEPLED5MM.LIB and 5 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 TEPLCD.DLL, TEPLED5MM.DLL and TEPNEMA17CL.DLL and 10 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
Build the source code
Open slider.py, attr.py and color.py and 28 more in the compiler named in the tutorial (MikroC, Keil, MPLAB, Code Composer or the Arduino IDE) and build it to get the firmware.
- 6
Open the example simulation
Open Pi-5-Camera-Slider.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.
- 7
Follow the tutorial
Closed-Loop Camera Slider on Raspberry Pi 5 - Proteus Simulation explains every connection and setting in order; keep it open beside the files while you build.
FAQs8 questionsContact TEP
How do I download Closed-Loop Camera Slider on Raspberry Pi 5 - 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?
Closed-Loop Camera Slider on Raspberry Pi 5 - Proteus Simulation V1.0 comes as a ZIP archive of 144 files (14.5 MB, 28.6 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, source code and a nested archive. Open the File Structure tab for the full list of 144 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, 36ffff9c0863b2afe7489c15aa230a27504ad034e76d918ebff85b8e200ba235. In PowerShell run Get-FileHash "18f50fe81c2e43e78ec075d76e83e433.zip"; on macOS or Linux run shasum -a 256 "18f50fe81c2e43e78ec075d76e83e433.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.
Members skip the wait. Log in or join TEP.
- 0Total downloads
- 4%Popularity
- Raspberry PiCategory
- 0Comments
- ssyedzainnasirUploaded by
- 2 Dec 2026Uploaded at
36ffff9c0863b2afe7489c15aa230a27504ad034e76d918ebff85b8e200ba235






















Comments
0