Skip to content

This project implements a Smart Helmet Safety System designed to improve rider safety by detecting alcohol consumption and drowsiness in real time. It integrates an MQ-series alcohol sensor for breath analysis and an MPU6050 accelerometer & gyroscope to monitor head movements, ensuring a safer riding experience.

Notifications You must be signed in to change notification settings

Lavi-hk/SmartHelmet-Alcohol_and_Drowsiness_Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ Smart Helmet – Alcohol & Drowsiness Detection System

Arduino License Sensors

πŸ“Œ Overview

The Smart Helmet Safety System is designed to improve rider safety by detecting alcohol consumption and drowsiness in real time.
It uses an MQ-series alcohol sensor and an MPU6050 accelerometer + gyroscope to monitor the rider’s condition.
If unsafe riding behavior is detected, the system triggers both visual and audible alerts, helping prevent accidents.


✨ Features

  • 🍺 Alcohol Detection: Monitors breath alcohol levels; triggers Red LED & buzzer if unsafe.
  • 😴 Drowsiness Detection: Tracks helmet tilt angle using MPU6050; prolonged unsafe tilt triggers Yellow LED & buzzer.
  • πŸ“Ÿ Real-time Monitoring: Alcohol, tilt, accelerometer, gyroscope, and temperature data via Serial Monitor.
  • ⚠️ Dual Alerts: Visual (LED indicators) and audible (buzzer) for quick rider awareness.

πŸ›  Hardware Components

  • Arduino Uno / Nano or compatible board
  • MQ-series Alcohol/Gas Sensor
  • MPU6050 Accelerometer + Gyroscope
  • Red & Yellow LEDs + 220Ξ© resistors
  • Buzzer
  • Jumper wires, breadboard or helmet mounting setup

πŸ“Š Wiring Diagram

Wiring Diagram

Connections:

  • MQ Sensor OUT β†’ A0
  • MPU6050 SDA β†’ A4, SCL β†’ A5
  • Red LED β†’ D3, Yellow LED β†’ D4
  • Buzzer β†’ D5
  • Common GND for all components

βš™οΈ How It Works

  1. Alcohol Monitoring: Continuously measures breath alcohol concentration. Above threshold β†’ Red LED + buzzer alert.
  2. Tilt/Drowsiness Monitoring: Calculates helmet tilt angle. If tilt exceeds safe range for >3s β†’ Yellow LED + buzzer alert.
  3. Alerts: Rider receives immediate visual & audible warnings.

πŸš€ Applications

  • Motorcycle rider safety enhancement
  • Long-distance travel fatigue prevention
  • Accident prevention systems

πŸ“· Demo

Project Demo

About

This project implements a Smart Helmet Safety System designed to improve rider safety by detecting alcohol consumption and drowsiness in real time. It integrates an MQ-series alcohol sensor for breath analysis and an MPU6050 accelerometer & gyroscope to monitor head movements, ensuring a safer riding experience.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages