Final-year projects / Road safety

Smart helmet with accident alert

Two-wheeler riders form the largest share of road deaths in India, and many die waiting for help. A helmet that detects a crash, waits for the rider to cancel, then sends the location to family can save that time.

ESP32Major projectECE, EIE, MECH, Diploma
ESP32MPU605GPStilt 18°Featured
Parts
₹4,085
Build
14 weeks
Board
ESP32
Objectives
5
Test crash detection by dropping the helmet on a mattress, never by staging a fall on a vehicle.

Block diagram

Inputs
  • MPU605
    MPU6050 IMUDetects impact and fall
  • Helmet switchConfirms the helmet is worn
  • GPS
    GPS NEO-6MGives the location
Controller
  • ESP32
    ESP32Runs crash logic
Power
  • +
    18650 batteryPowers modem and board
  • SOLAR
    Solar power unitPanel, charger and cell that keep the node running+
Outputs
  • 4G
    4G modemSends the SMS with a map link
  • Buzzer and cancel buttonLets the rider cancel a false alarm

Objectives

  1. To detect a crash from acceleration and tilt, with a threshold chosen from recorded drop and riding data.
  2. To give the rider 15 seconds to cancel a false alarm.
  3. To send an SMS with a Google Maps link to two contacts within 30 seconds.
  4. To measure false alarms over a week of normal riding.
  5. To power the system from a solar-charged battery and measure its energy budget.

Parts and specifications

Total about ₹4,085 at typical online prices. Tap a part for its pinout and datasheet notes.

Design calculations

Impact threshold

Resultant a = √(ax² + ay² + az²). Normal riding stays below 2 g; a helmet dropped 1 m onto foam peaks at about 6 to 10 g. Trigger above 4 g followed by tilt over 60° for 3 s.

Tilt angle

Roll = atan2(ay, az). A helmet lying on its side reads about 90°.

Modem supply

The 4G modem draws up to 2 A in bursts, so feed it from the cell directly with a 1000 µF capacitor close to its pins, not from the ESP32 regulator.

Battery life

Idle about 60 mA (GPS 45 mA + ESP32 light sleep + modem idle). 2600 mAh × 0.8 / 60 mA ≈ 35 hours.

Pin map

SignalPin or connection
MPU6050 SDA / SCLGPIO 21 / 22
MPU6050 INTGPIO 19 (motion interrupt)
GPS TX → RX1GPIO 4
A7670C TX/RXGPIO 16 / 17 (UART2)
Helmet switchGPIO 27 (pull-up)
Cancel button / buzzerGPIO 25 / GPIO 26
Power18650 → A7670C VBAT directly; MT3608 5 V → ESP32 VIN

Firmware outline

  1. Wake on the MPU6050 motion interrupt; read at 200 Hz while riding.
  2. Detect impact over 4 g, then check orientation for 3 s.
  3. If the helmet switch shows it is worn and the tilt persists, start a 15 s beeping countdown.
  4. If cancel is pressed, log a false alarm and return to riding.
  5. Read the last GPS fix and send an SMS with https://maps.google.com/?q=lat,lon to two numbers with AT+CMGS.
  6. Repeat the location every 2 minutes until cancelled.

Test plan

TestExpected result
Helmet dropped on a mattress from 1 mCountdown starts
Cancel pressedNo SMS, false alarm logged
Countdown not cancelledSMS with correct map link in under 30 s
One week of normal ridingFalse alarms counted
Indoors without GPS fixSMS says 'last known location' with its age

These rows start your results table when you plan the project.

Viva practice

Say your answer out loud first, then check. The first 2 answers are free; Maker opens all 6.

1. Why not use acceleration alone?
2. What does the MPU6050 measure?
3. Why 4G and not SIM800L?
4. How does GPS find position?
5. Why a cancel window?
6. How would you improve detection?

Make it yours

One or two upgrades for a mini project, two to four for a major one.

Build these first

Datasheets and sources to cite

  • InvenSense MPU-6000/6050 datasheet
  • u-blox NEO-6 datasheet
  • SIMCom A7670 series hardware design
  • MoRTH Road Accidents in India report

About this project

How much does the smart helmet with accident alert project cost?

About ₹3,475 for the parts in the base list: ESP32 DevKit V1, MPU6050 accelerometer and gyro, NEO-6M GPS module, A7670C 4G LTE module, Limit switch with lever, Active buzzer 5 V, Push button 12 mm, 18650 cell 2600 mAh (branded), TP4056 charger with protection, MT3608 boost (3.7 V to 5 V for the ESP32), Helmet (old or low-cost).

How long does it take?

About 12 weeks for the base project, built on an ESP32. Each upgrade adds time.

Which branches is it suitable for?

Electronics and Communication, Instrumentation, Mechanical / Mechatronics, Diploma (any electronics branch), as a major project.

Which pins and design calculations does it use?

MPU6050 SDA / SCL on GPIO 21 / 22; MPU6050 INT on GPIO 19 (motion interrupt); GPS TX → RX1 on GPIO 4. Worked calculations on this page: impact threshold, tilt angle, modem supply, battery life.

How do I test it?

Helmet dropped on a mattress from 1 m: Countdown starts. Cancel pressed: No SMS, false alarm logged. Countdown not cancelled: SMS with correct map link in under 30 s. One week of normal riding: False alarms counted. Indoors without GPS fix: SMS says 'last known location' with its age.

What are the objectives?

To detect a crash from acceleration and tilt, with a threshold chosen from recorded drop and riding data. To give the rider 15 seconds to cancel a false alarm. To send an SMS with a Google Maps link to two contacts within 30 seconds. To measure false alarms over a week of normal riding.