Final-year projects / Road safety

Driver drowsiness and alcohol detection with ignition lock

Drowsy and drunk driving cause a large share of highway crashes in India, especially among truck drivers on night runs. A unit that watches eye closure and breath alcohol, warns the driver and blocks the ignition can prevent them.

Arduino NanoMini or Major projectECE, EIE, MECH, Diploma
NANOMQON869 ppmFeatured
Parts
₹4,240
Build
12 weeks
Board
Arduino Nano
Objectives
6
Never wire this into a real vehicle's ignition. Demonstrate on the model only, and test alcohol with a hand sanitiser swab, not by drinking.

Block diagram

Inputs
  • IR
    IR eye-blink sensor on glassesMeasures how long the eyes stay closed
  • MQ
    MQ-3 alcohol sensorChecks the driver's breath
  • ESP32
    CameraCaptures a photo when the event happens+
Controller
  • NANO
    Arduino NanoRuns the warning and lock logic
Outputs
  • Buzzer and vibrationWake the driver
  • ON
    RelayBlocks the ignition (motor in the model)
  • 23.4°CLCD
    LCDShows the reason
  • 4G
    4G modemSends SMS alerts and calls over the mobile network+

Objectives

  1. To detect eye closure longer than 1.5 s and raise an alarm.
  2. To count blinks per minute and flag rising fatigue.
  3. To block the ignition when breath alcohol is above a set level at start-up.
  4. To measure detection and false alarm rates with five volunteers.
  5. To send SMS alerts through a 4G modem where no Wi-Fi is available.
  6. To capture and store an image automatically when an event is detected.

Parts and specifications

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

Design calculations

Eye closure

A normal blink lasts 100 to 400 ms. Closure over 1500 ms is treated as a microsleep and triggers the alarm.

Blink rate

Normal is about 15 to 20 blinks a minute; a rise with longer closures (PERCLOS, the percent of time eyes are closed) shows fatigue. PERCLOS over 15% in a minute = warning.

Alcohol threshold

Breath to blood ratio is about 1:2100. The legal limit of 30 mg/100 mL blood is about 0.14 mg/L in breath. Set the MQ-3 threshold from a calibration with a known ethanol vapour, and treat the result as indicative only.

Pin map

SignalPin or connection
Eye-blink sensor OUTD2 (interrupt)
MQ-3 AOA0
Buzzer (via relay or transistor)D8
Vibration motor (transistor)D5
Ignition relayD7
LCD SDA / SCLA4 / A5

Firmware outline

  1. At start-up show 'Blow for 5 s' after the MQ-3 warms up; read the peak.
  2. If above the threshold, keep the ignition relay off and show 'Alcohol detected'.
  3. Else turn the relay on and start watching the blink sensor.
  4. Time each closure with the interrupt; above 1.5 s sound the buzzer and vibrate until the eyes open.
  5. Every minute compute blink rate and PERCLOS; show a 'Take a break' warning if high.

Test plan

TestExpected result
Eyes closed for 2 sAlarm within 0.2 s of the 1.5 s mark
Normal blinking for 5 minutesNo alarm
Sanitiser swab near the sensor at startIgnition blocked
Clean air at startIgnition allowed
Five volunteersDetection and false alarm rate

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 5.

1. How does the IR eye-blink sensor work?
2. What is PERCLOS?
3. Can MQ-3 give legal alcohol readings?
4. Why not a camera?
5. Why only block at start, not while driving?

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

  • Hanwei MQ-3 datasheet
  • Motor Vehicles Act 1988, section 185 (30 mg per 100 mL blood limit)
  • MoRTH Road Accidents in India report

About this project

How much does the driver drowsiness and alcohol detection with ignition lock project cost?

About ₹1,950 for the parts in the base list: Arduino Nano (CH340, Type-C), IR eye-blink sensor on a spectacle frame, MQ-3 alcohol sensor, 12 V piezo alarm, Coin vibration motor, 5 V relay module (1 channel), 16×2 LCD with I²C backpack, 12 V geared motor (engine in the model), 12 V 2 A DC adapter, LM2596 buck converter.

How long does it take?

About 8 weeks for the base project, built on an Arduino Nano. Each upgrade adds time.

Which branches is it suitable for?

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

Which pins and design calculations does it use?

Eye-blink sensor OUT on D2 (interrupt); MQ-3 AO on A0; Buzzer (via relay or transistor) on D8. Worked calculations on this page: eye closure, blink rate, alcohol threshold.

How do I test it?

Eyes closed for 2 s: Alarm within 0.2 s of the 1.5 s mark. Normal blinking for 5 minutes: No alarm. Sanitiser swab near the sensor at start: Ignition blocked. Clean air at start: Ignition allowed. Five volunteers: Detection and false alarm rate.

What are the objectives?

To detect eye closure longer than 1.5 s and raise an alarm. To count blinks per minute and flag rising fatigue. To block the ignition when breath alcohol is above a set level at start-up. To measure detection and false alarm rates with five volunteers.