Skip to content

Divyansh-yecho/Arduino-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🚨 SHADAS β€” Smart Helmet Accident Detection & Alert System


🧠 Overview

SHADAS is a real-time embedded system designed to detect road accidents and automatically alert emergency contacts.
It integrates motion sensing, GPS tracking, GSM communication, and Bluetooth to provide rapid response during critical events.


βš™οΈ Hardware Components

  • Arduino UNO
  • MPU6050 (Accelerometer + Gyroscope)
  • NEO-6M GPS Module
  • SIM800L GSM Module
  • HC-05 Bluetooth Module
  • LED (status indicator)

πŸ”Œ Pin Configuration

Component Arduino Pin
MPU6050 I2C (A4 SDA, A5 SCL)
GPS RX β†’ D4, TX β†’ D3
SIM800L RX β†’ D7, TX β†’ D8
HC-05 RX β†’ D10, TX β†’ D11
GPS Power D2
LED D13

πŸš€ Features

  • πŸ“‘ Real-time accident detection using:

    • Acceleration threshold
    • Jerk (rate of change of acceleration)
    • Gyroscope spikes
  • πŸ“ GPS location retrieval with fallback handling

  • πŸ“© Automatic SMS alert with coordinates

  • πŸ“ž Emergency call triggering

  • πŸ”΅ Bluetooth transmission of alert message

  • ⏱️ Cooldown system to avoid repeated triggers


πŸ§ͺ Detection Logic

An accident is detected if any of the following exceed thresholds:

  • Acceleration β‰₯ 3g
  • Jerk β‰₯ 2g
  • Gyroscope β‰₯ 250 deg/s

This multi-condition approach improves robustness and reduces false positives.


πŸ› οΈ Libraries Used

  • Wire.h
  • I2Cdev.h
  • MPU6050.h (Jeff Rowberg)
  • TinyGPSPlus.h
  • SoftwareSerial.h

⚑ How It Works

  1. Continuously reads sensor data from MPU6050
  2. Computes acceleration magnitude, jerk, and angular velocity
  3. Detects abnormal spikes β†’ triggers emergency routine
  4. Powers GPS module and retrieves location
  5. Sends:
    • SMS via SIM800L
    • Phone call
    • Bluetooth message
  6. Enters cooldown period

🧩 System Architecture

MPU6050 β†’ Arduino β†’ Decision Logic
↓
GPS β†’ Location Fetch
↓
SIM800L β†’ SMS + Call
HC-05 β†’ Bluetooth Output

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages