Project Files of Accident Detection with Raspberry Pi, GPS and GSM - Proteus Simulation
0e125ddd6c6f42158914c03591e39e26.zip

Accident Detection with Raspberry Pi, GPS and GSM - Proteus Simulation V1.0
Accident Detection with Raspberry Pi, GPS and GSM - Proteus Simulation V1.0 comes as a ZIP archive of 147 files (15.2 MB, 30.1 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
Accident-Detection-Raspberry-Pi-GPS-GSM-Proteus-Simulation-v1.0.zip: the complete Proteus simulation project (a Raspberry Pi 5, a SIM808 GSM GPS module, an MPU6050, a push button with its resistor, an active buzzer, an I2C LCD 16x2, the Laptop and Mobile WiFi Monitors), the Python program accident_alert.py, every LIB and DLL, the TEP Pi runtime and a README.
File Structure
20.7 KB9.9 KB181.4 KB39.5 KB13.1 KB130.9 KB60.5 KB125.7 KB171.9 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 KB274 KB276 KB409 KB537 KB3.0 MB542.5 KB305.5 KB14.7 KB42.7 KB274 KB276 KB409 KB537 KB3.0 MB542.5 KB305.5 KB14.7 KB11 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in Accident Detection with Raspberry Pi, GPS and GSM - Proteus Simulation. Open an image for its full size.












README
===============================================================================================================
Accident Detection with Raspberry Pi, GPS and GSM - 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/accident-detection-raspberry-pi-gps-gsm-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
SIM808 GSM + GPS module:
https://www.theengineeringprojects.com/2026/10/sim808-library-for-proteus.html
MPU6050 accelerometer:
https://www.theengineeringprojects.com/2026/09/mpu6050-proteus-library.html
Push button:
https://www.theengineeringprojects.com/2026/11/push-button-library-for-proteus.html
SMD resistor:
https://www.theengineeringprojects.com/2026/11/smd-resistor-library-for-proteus.html
Active buzzer:
https://www.theengineeringprojects.com/2026/11/active-buzzer-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-Accident-Alert-TEP-v1.0/
|-- Proteus Library Files/
| |-- TEPBUTTON.LIB 20.7 KB a part of the project -> LIBRARY folder
| |-- TEPBUZZER.LIB 9.9 KB a part of the project -> LIBRARY folder
| |-- TEPI2CLCD16X2.LIB 181.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
| |-- TEPMPU6050.LIB 130.9 KB a part of the project -> LIBRARY folder
| |-- TEPRPI5.LIB 60.5 KB a part of the project -> LIBRARY folder
| |-- TEPSIM808.LIB 125.7 KB a part of the project -> LIBRARY folder
| |-- TEPSMDRES.LIB 171.9 KB a part of the project -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEPBUTTON.DLL 274.0 KB a model -> MODELS folder
| |-- TEPBUZZER.DLL 276.0 KB a model -> MODELS folder
| |-- TEPLCD.DLL 409.0 KB a model -> MODELS folder
| |-- TEPMPU6050.DLL 537.0 KB a model -> MODELS folder
| |-- TEPNET.DLL 3.01 MB a model -> MODELS folder
| |-- TEPSIM808.DLL 542.5 KB a model -> MODELS folder
| |-- TEPSMDRES.DLL 305.5 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/
| |-- accident_alert.py 14.7 KB the program PI1 runs
| |-- Pi-5-Accident-Alert.pdsprj 42.7 KB the project simulation
| |-- TEPBUTTON.DLL 274.0 KB copy of the model
| |-- TEPBUZZER.DLL 276.0 KB copy of the model
| |-- TEPLCD.DLL 409.0 KB copy of the model
| |-- TEPMPU6050.DLL 537.0 KB copy of the model
| |-- TEPNET.DLL 3.01 MB copy of the model
| |-- TEPSIM808.DLL 542.5 KB copy of the model
| |-- TEPSMDRES.DLL 305.5 KB copy of the model
|-- Python Code/
| |-- accident_alert.py 14.7 KB the program (the same file)
|-- README.txt ~10.5 KB this file
Total: 30.07 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
A vehicle accident detection and alert system on a Raspberry Pi 5: an accelerometer sees the vehicle overturn or
crash, a buzzer and the LCD give the driver 10 seconds to cancel a false alarm, and then the SIM808 texts the
emergency contact a Google Maps link to the place, from its own GPS.
* PI1 RASPBERRY PI 5 runs accident_alert.py on Ethernet at 192.168.1.51 (port 8000); 3V3 (pin 1), 5V (pin 2), GND.
* U1 SIM808 GSM + GPS (SIM808ADVTEP, POWERON=AUTO) on the Pi's UART (/dev/serial0, 9600 baud): its RXD on the
Pi's TXD (GPIO14, pin 8), its TXD on the Pi's RXD (GPIO15, pin 10); VCC on a +4V supply.
* U2 MPU6050 (MPU6050ADVTEP, address 0x68 - AD0 to ground) on I2C1: SDA GPIO2 (pin 3), SCL GPIO3 (pin 5).
* SW1 CANCEL (BUTTONGREENTEP) from 3V3 to GPIO17 (pin 11) with R1 10k (RESISTORSMD1206TEP) to ground.
* BZ1 the alarm (BUZZERACTIVETEP) on GPIO18 (pin 12).
* LCD1 I2C LCD 16x2 (I2CLCD16X2BLUEADVTEP, 0x27) on the same I2C bus, VCC on the 5V pin.
* Laptop WiFi Monitor (PC1) and Mobile WiFi Monitor (MOB1) open http://192.168.1.51:8000/.
What the program does:
sensing the MPU6050 50 times a second at +-8 g: the total acceleration and the tilt from upright
ACCIDENT a tilt over 60 degrees for 1 s (a rollover) or a jolt over 3 g (a crash)
COUNTDOWN 10 s: the buzzer beeps, the LCD shows ACCIDENT! and PRESS CANCEL
CANCELLED SW1 (or CANCEL on the dashboard) during the countdown = a false alarm; upright again = NORMAL
ALERT SENT no cancel: an SMS (ROLLOVER! or CRASH! and a Google Maps link) to +15555550192
LOCATION an SMS LOCATION (or WHERE) from that phone is answered with the position and the speed
RESET the dashboard's RESET, or SW1 held 2 s, after an alert
Its pages:
/ the dashboard: Refresh, CANCEL, RESET; the state, the tilt and g, the GPS, the counts, the events
/cancel cancel the countdown /reset back to NORMAL after an alert
/data JSON: everything, with the map link
TEST STATUS
Tested in Proteus 8 Professional on Windows 11, the run that made the tutorial's screenshots (the times are the
program's clock; the MPU6050's pop-up turned the vehicle UPSIDE DOWN and back FLAT):
- 0.0 s READY; 8.5 s SIM808 READY (text mode, the GPS on, registered); 18.9 s GPS FIX - 51.47785, -0.00149.
- A rollover cancelled with the button: 27.1 s ACCIDENT (tilted 180 deg), the LCD counting down, the buzzer
beeping (29.2 mA at 4.97 V, 2 beeps a second); SW1 at 33.2 s - CANCELLED; upright - 38.4 s NORMAL.
- A rollover left to run out: 40.6 s ACCIDENT; 52.7 s SMS ALERT SENT to +15555550192 - the phone on the SIM808's
pop-up shows ROLLOVER! maps.google.com/?q=51.47790,-0.00147.
- 67.3 s an SMS LOCATION from that phone - answered with HERE and the map link; 74.0 s RESET from the laptop.
- A rollover cancelled from the phone's dashboard: 79.0 s ACCIDENT, 79.7 s CANCELLED; 83.6 s NORMAL.
- The buzzer's 29.2 mA is more than a Pi pin should give (the simulation's GPIO HIGH is Proteus's 5 V logic
level) - drive a real buzzer through a transistor. 91.6 s of simulation in 619 s.
- Our first run: the dashboard's CANCEL page still said COUNTDOWN (it was built before the sensor thread acted);
the page now waits up to 0.4 s for the CANCELLED state. The LCD shows CANCELLED / FALSE ALARM in full.
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 SIM808 to check that the parts are there.
RUN THE SIMULATION
1. Open "Proteus Simulation\Pi-5-Accident-Alert.pdsprj". Keep accident_alert.py and the DLL files beside it.
2. Press Play: READY; about 8 s later the SIM808 is on the network and then the GPS has a fix (the LCD shows it).
3. An accident: UPSIDE DOWN on the MPU6050 pop-up. Press SW1 (the push button's pop-up) within 10 s to cancel,
FLAT to put the vehicle upright. Leave it to run out and the SIM808 pop-up's phone shows the SMS.
4. LOCATION on the SIM808's phone asks the Pi where it is. Open the Laptop or the Mobile WiFi Monitor (Go) for
the dashboard: CANCEL, RESET.
PROPERTIES USED IN THIS PROJECT
PI1 RASPBERRY PI 5 PROGRAM=accident_alert.py, ETHERNET=IN (192.168.1.51)
U1 SIM808ADVTEP POWERON=AUTO (the module starts without a PWRKEY pulse); the GPS place = Greenwich
U2 MPU6050ADVTEP, SW1 BUTTONGREENTEP, BZ1 BUZZERACTIVETEP, LCD1 I2CLCD16X2BLUEADVTEP (no properties)
R1 RESISTORSMD1206TEP 10k
PC1, MOB1 HOMEPAGE=http://192.168.1.51:8000/
TROUBLESHOOTING
* SIM808 READY never comes: the TXD / RXD wires must cross (the module's TXD to the Pi's RXD); 9600 baud.
* No SMS: the module must be on the network (AT+CREG? 0,1) - the LCD shows the state, the terminal every step.
* Every bump is an accident: raise IMPACT_G, or TILT_DEG / TILT_S, at the top of accident_alert.py.
* Real hardware: the SIM808 needs 3.4 - 4.4 V and up to 2 A in bursts - a separate supply, never the Pi's pins;
a real vehicle also needs a tested mounting, a backup battery and a real SIM with credit.
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.0Accident Detection with Raspberry Pi, GPS and GSM - 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 0e125ddd6c6f42158914c03591e39e26.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-Accident-Alert-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move TEPBUTTON.LIB, TEPBUZZER.LIB and TEPI2CLCD16X2.LIB and 6 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 TEPBUTTON.DLL, TEPBUZZER.DLL and TEPLCD.DLL and 11 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 accident_alert.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-Accident-Alert.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
Accident Detection with Raspberry Pi, GPS and GSM - 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 Accident Detection with Raspberry Pi, GPS and GSM - 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?
Accident Detection with Raspberry Pi, GPS and GSM - Proteus Simulation V1.0 comes as a ZIP archive of 147 files (15.2 MB, 30.1 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 147 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, ff0786ee50a01e2bb61b8403539989d92cd6b00857435633cb2353ddb9a36107. In PowerShell run Get-FileHash "0e125ddd6c6f42158914c03591e39e26.zip"; on macOS or Linux run shasum -a 256 "0e125ddd6c6f42158914c03591e39e26.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
- 6 Dec 2026Uploaded at
ff0786ee50a01e2bb61b8403539989d92cd6b00857435633cb2353ddb9a36107






















Comments
0