A real-time accident detection system using Arduino, GPS, GSM, and a Force-Sensitive Resistor (FSR).
When an impact is detected, the system automatically retrieves the GPS coordinates and sends an SMS alert containing the accident location.
This project integrates:
- A Force-Sensitive Resistor (FSR) to detect impact or force.
- A GPS module to obtain location data.
- A GSM module to send SMS notifications.
When an accident occurs (FSR detects an impact beyond a defined threshold), the system automatically sends a message and location link via SMS to a predefined mobile number.
| Component | Description |
|---|---|
| Arduino board | e.g., Arduino Uno |
| GPS Module | NEO-6M GPS module |
| GSM Module | SIM800L GSM module |
| Force-Sensitive Resistor (FSR) | Detects pressure or impact |
| 10kΩ Resistor | Used in the voltage divider circuit |
| Jumper Wires | For connections |
| USB Cable | Power supply for Arduino |
| GPS Pin | Arduino Pin |
|---|---|
| RX | D2 (TX) |
| TX | D3 (RX) |
| VCC | 5V |
| GND | GND |
| GSM Pin | Arduino Pin |
|---|---|
| RX | D9 (TX) |
| TX | D10 (RX) |
| VCC | 5V |
| GND | GND |
| FSR Pin | Arduino Pin |
|---|---|
| One leg | A0 |
| Other leg | 5V |
| 10kΩ resistor | Between A0 and GND |
⚠️ Note: Ensure the GSM module has a stable power source. Some modules may require 2A peak current during SMS transmission.
Sketch Name: GPS-Impact-Detection-System
Version: 1.0.0
Author: Gerard James B. Paglingayen
Created: June 5, 2023
License: MIT License
Repository: GPS-Impact-Detection-System
- Detects impact using an FSR sensor.
- Retrieves GPS coordinates using the NEO-6M module.
- Sends an SMS alert with a Google Maps location link.
- Adjustable impact sensitivity (
FSR_THRESHOLD).
- Install Arduino IDE
- Install required libraries:
SoftwareSerialTinyGPS++
- Open the sketch file:
GPS-Impact-Detection-System.ino - Update the following line with your target phone number:
const char* phoneNumber = "09XXXXXXXXX";
- Select the correct Board and Port in Arduino IDE.
- Upload the code to your Arduino.
When an impact is detected:
My Name is Juan Dela Cruz. I got into an accident.
LOCATION:
https://www.google.com/maps/place/11.234567,122.345678
Message sent
If GPS data is unavailable:
No GPS data received. Check wiring.
| Variable | Description | Default Value |
|---|---|---|
FSR_THRESHOLD |
Impact sensitivity threshold | 500 |
phoneNumber |
Recipient mobile number | (set manually) |
GPSBaud |
GPS baud rate | 9600 |
- Automatic call alert after severe impact
- Integration with IoT dashboard for live monitoring
- Data logging (impact time, speed, location)
- Battery backup and solar charging options
Gerard James B. Paglingayen
DICT Trainer | IoT & Embedded Systems Developer
📍 Philippines
This project is licensed under the MIT License.
Feel free to use, modify, and share it for educational or research purposes.