Skip to content

Arduino-based GPS and GSM accident detection system using an FSR sensor to detect impacts and automatically send real-time SMS alerts with live location coordinates.

License

Notifications You must be signed in to change notification settings

lamerock/GPS-Impact-Detection-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

🚨 GPS Impact Detection System

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.


🧠 Overview

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.


⚙️ Hardware Components Required

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

🔌 Circuit Connections

🛰️ GPS Module

GPS Pin Arduino Pin
RX D2 (TX)
TX D3 (RX)
VCC 5V
GND GND

📱 GSM Module

GSM Pin Arduino Pin
RX D9 (TX)
TX D10 (RX)
VCC 5V
GND GND

⚙️ Force-Sensitive Resistor (FSR)

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.


🧩 Code Summary

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

Key Features

  • 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).

🧰 Software Setup

  1. Install Arduino IDE
  2. Install required libraries:
    • SoftwareSerial
    • TinyGPS++
  3. Open the sketch file: GPS-Impact-Detection-System.ino
  4. Update the following line with your target phone number:
    const char* phoneNumber = "09XXXXXXXXX";
  5. Select the correct Board and Port in Arduino IDE.
  6. Upload the code to your Arduino.

🛰️ Example Output

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.

⚙️ Adjustable Parameters

Variable Description Default Value
FSR_THRESHOLD Impact sensitivity threshold 500
phoneNumber Recipient mobile number (set manually)
GPSBaud GPS baud rate 9600

🧪 Future Enhancements

  • 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

👨‍💻 Author

Gerard James B. Paglingayen
DICT Trainer | IoT & Embedded Systems Developer
📍 Philippines


🪪 License

This project is licensed under the MIT License.
Feel free to use, modify, and share it for educational or research purposes.

About

Arduino-based GPS and GSM accident detection system using an FSR sensor to detect impacts and automatically send real-time SMS alerts with live location coordinates.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages