INTRODUCTION
Road accidents are one of the major causes of death worldwide, mainly due to delay in providing medical assistance. In many cases, victims are unable to call for help because of unconsciousness or severe injury.
The IoT Accident Detection & Emergency Alert System is designed to automatically detect vehicle accidents using sensors and instantly send emergency alerts with live GPS location to predefined contacts such as ambulance services, police, or family members.
This system uses IoT, embedded systems, GPS, and GSM technologies to ensure fast response time, reduce human intervention, and increase the chances of saving lives. It is a low-cost, reliable, and scalable solution suitable for smart transportation systems.
PART NAME & CONNECTION PIN DETAILS
1️⃣ Microcontroller – ESP32 Dev Module
Function: Controls all sensors and modules
| ESP32 Pin | Connected To |
|---|---|
| 3.3V | MPU6050 VCC |
| GND | All module GND |
| GPIO21 | MPU6050 SDA |
| GPIO22 | MPU6050 SCL |
| GPIO16 | GPS RX |
| GPIO17 | GPS TX |
| GPIO26 | GSM TX |
| GPIO27 | GSM RX |
| GPIO25 | Buzzer |
| GPIO33 | SOS Button |
2️⃣ Accelerometer – MPU6050
Function: Detects accident by sudden acceleration
| MPU6050 Pin | Connected To |
|---|---|
| VCC | ESP32 3.3V |
| GND | ESP32 GND |
| SDA | ESP32 GPIO21 |
| SCL | ESP32 GPIO22 |
3️⃣ GPS Module – NEO-6M
Function: Provides real-time location
| GPS Pin | Connected To |
|---|---|
| VCC | ESP32 5V |
| GND | ESP32 GND |
| TX | ESP32 GPIO16 |
| RX | ESP32 GPIO17 |
4️⃣ GSM Module – SIM800L
Function: Sends emergency SMS
⚠️ Power Warning: Use 3.7V–4.2V battery only
| SIM800L Pin | Connected To |
|---|---|
| VCC | 3.7V Battery |
| GND | ESP32 GND |
| TXD | ESP32 GPIO26 |
| RXD | ESP32 GPIO27 |
5️⃣ Buzzer
Function: Gives sound alert
| Buzzer Pin | Connected To |
|---|---|
| + (Positive) | ESP32 GPIO25 |
| – (Negative) | ESP32 GND |
6️⃣ SOS / Cancel Button
Function: Cancels false alert
| Button Pin | Connected To |
|---|---|
| One Side | ESP32 GPIO33 |
| Other Side | GND |
📌 Internal pull-up resistor used
7️⃣ Power Supply
| Module | Voltage |
|---|---|
| ESP32 | 5V (USB) |
| MPU6050 | 3.3V |
| GPS | 5V |
| SIM800L | 3.7V Battery |
FULL ARDUINO CODE
Controller: ESP32
Sensors: MPU6050 + GPS (NEO-6M) + GSM (SIM800L)
🔧 Before upload:
Install libraries:
MPU6050,TinyGPS++Replace mobile number in code
Use 3.7V battery for SIM800L
📌 COMPLETE CODE
📌 OUTPUT (REAL)
🏁 CONCLUSION (FOR PROJECT FILE)
🔹 Conclusion
The IoT Accident Detection & Emergency Alert System successfully demonstrates an automated and reliable solution for detecting road accidents and providing immediate emergency assistance. The system continuously monitors vehicle movement using an accelerometer sensor and detects sudden impacts that indicate an accident.
Once an accident is detected, the system automatically fetches the live GPS location and sends an emergency SMS alert through the GSM module to predefined contacts such as ambulance services, police, or family members. This significantly reduces response time and minimizes human intervention, which is critical in saving lives.
The proposed system is cost-effective, scalable, and efficient, making it suitable for real-time implementation in vehicles. With further enhancements such as AI-based accident severity detection and cloud integration, the system can play a vital role in smart transportation and road safety management.






0 comments:
Post a Comment