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.
- Parts
- ₹4,085
- Build
- 14 weeks
- Board
- ESP32
- Objectives
- 5
Block diagram
- MPU6050 IMUDetects impact and fall
- Helmet switchConfirms the helmet is worn
- GPS NEO-6MGives the location
- ESP32Runs crash logic
- 18650 batteryPowers modem and board
- Solar power unitPanel, charger and cell that keep the node running+
- 4G modemSends the SMS with a map link
- Buzzer and cancel buttonLets the rider cancel a false alarm
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.
- To power the system from a solar-charged battery and measure its energy budget.
Parts and specifications
- ESP32 DevKit V1Dual-core 240 MHz, 520 KB SRAM, Wi-Fi + Bluetooth, 3.3 V logic, 12-bit ADC (use ADC1 pins when Wi-Fi is on)₹450Buy
- MPU6050 accelerometer and gyro3-axis ±2 to ±16 g and ±250 to ±2000 °/s, 16-bit, I²C 0x68, motion interrupt pin₹150Buy
- NEO-6M GPS module2.5 m CEP accuracy, 1 Hz NMEA on UART 9600, cold start about 27 s, needs open sky₹450Buy
- A7670C 4G LTE module4G Cat-1 with 2G fallback, SMS, calls and data, works with any Indian SIM including Jio; 3.4 to 4.2 V, 2 A peaks₹1,500Buy
- TP4056 charger with protection1 A CC/CV Li-ion charging to 4.2 V, DW01 protection cuts at about 2.5 V₹40Buy
- MT3608 boost (3.7 V to 5 V for the ESP32)2 to 24 V in, up to 28 V out, 2 A switch, for 3.7 V to 5 V₹50Buy
- Helmet (old or low-cost)₹500
- TP4056 charger with protection1 A CC/CV Li-ion charging to 4.2 V, DW01 protection cuts at about 2.5 V₹40Buy
- MT3608 boost converter (3.7 V to 5 V)2 to 24 V in, up to 28 V out, 2 A switch, for 3.7 V to 5 V₹50Buy
Total about ₹4,085 at typical online prices. Tap a part for its pinout and datasheet notes.
Design calculations
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.
Roll = atan2(ay, az). A helmet lying on its side reads about 90°.
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.
Idle about 60 mA (GPS 45 mA + ESP32 light sleep + modem idle). 2600 mAh × 0.8 / 60 mA ≈ 35 hours.
Pin map
| Signal | Pin or connection |
|---|---|
| MPU6050 SDA / SCL | GPIO 21 / 22 |
| MPU6050 INT | GPIO 19 (motion interrupt) |
| GPS TX → RX1 | GPIO 4 |
| A7670C TX/RX | GPIO 16 / 17 (UART2) |
| Helmet switch | GPIO 27 (pull-up) |
| Cancel button / buzzer | GPIO 25 / GPIO 26 |
| Power | 18650 → A7670C VBAT directly; MT3608 5 V → ESP32 VIN |
Firmware outline
- Wake on the MPU6050 motion interrupt; read at 200 Hz while riding.
- Detect impact over 4 g, then check orientation for 3 s.
- If the helmet switch shows it is worn and the tilt persists, start a 15 s beeping countdown.
- If cancel is pressed, log a false alarm and return to riding.
- Read the last GPS fix and send an SMS with https://maps.google.com/?q=lat,lon to two numbers with AT+CMGS.
- Repeat the location every 2 minutes until cancelled.
Test plan
| Test | Expected result |
|---|---|
| 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 |
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.
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.
