Car Accident Prevention System

Alcohol Detection and Vehicle Immobilization with Real-time Alert and Cloud Database Logging 🚗🛑

IoT-based system preventing drunk driving by detecting alcohol levels, automatically immobilizing the vehicle, and sending real-time alerts

Alcohol Detection

MQ-3 sensor continuously monitors alcohol levels near the driver

Vehicle Immobilization

Automatic motor speed reduction to simulate safe braking when alcohol detected

Real-time Alerts

Instant email notifications sent to traffic authorities

Cloud Logging

Incident data logged to ThingSpeak with vehicle and owner details

🔧 Hardware Components

ESP32 Dev Board

Wi-Fi-enabled microcontroller

MQ-3 Sensor

Alcohol gas sensor (analog + digital)

L293D Driver

Motor control

DC Motor

Vehicle movement simulation

Push Button

Manual motor ON/OFF switch

12V Power Supply

Powers motor & ESP32

📡 Working Principle

1.

User starts the vehicle using a push button

2.

MQ-3 sensor continuously monitors alcohol levels

3.

If alcohol is detected:

  • Motor speed reduces gradually to simulate safe braking
  • An alert email is sent to traffic authorities
  • Incident is logged to ThingSpeak with timestamp, vehicle registration, owner name, license number, system ID and IMEI
4.

If no alcohol is detected, motor runs normally

Project Prototype & Output

Hardware Setup

Hardware Setup

Serial Monitor Output

Serial Monitor

Email Alert

Email Alert

Serial Output - Analog Values

Analog Values

💻 Technologies Used

ESP32
MQ-3 Alcohol Sensor
SMTP Email
ThingSpeak API
IoT Connectivity

"Ensuring Safe Roads with Smart Technology!"