Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

How to build a smart system using Arduino that alerts drivers of fatigue

By Ayush Jain November 11, 2024

Road safety is a critical concern, with driver fatigue and distractions among the leading causes of accidents.

In this project, we’ll devise a smart system using Arduino UNO and a blink-eye sensor to monitor driver alertness. If the driver shows signs of drowsiness, the system takes proactive measures to prevent a potential accident. This includes alerting the driver and, if necessary, controlling the vehicle to ensure safety.

By leveraging modern electronic technologies, this solution aims to enhance road safety and reduce the frequency of accidents.

Figure 1. The demonstration.

The working principle

The eye-blink sensor continuously monitors the driver’s eye movements. It triggers an immediate response if it detects irregular blinking patterns, as this may signify possible drowsiness or inattention.

The Arduino processes this sensor data and activates a buzzer to alert the driver. At the same time, the relay module controls a dc motor to simulate the vehicle slowing down and stopping.

Components

  • Arduino UNO
  • Eye-blink sensor
  • Dc motor
  • Buzzer
  • Relay module
  • Jumper wires
  • A 9-V battery with cap
  • A 4-V re-chargeable battery
  • Two switches

Circuit diagram

Figure 2. The circuit diagram.

How it works

  1. Connect the eye-blink sensor:
    • Connect the sensor’s VCC and GND pins to Arduino’s 5V and GND pins.
    • Connect the sensor’s output pin to Arduino’s pin 10.
  2. Connect the buzzer:
    • Connect the buzzer’s positive terminal of to Arduino’s pin 13.
    • Connect the buzzer’s negative terminal of its GND pin.
  3. Connect the dc motor via the relay:
    • Connect the relay module’s input pin to Arduino’s pin 7.
    • Connect the relay’s VCC and GND pins to Arduino’s 5V and GND pins.
    • Connect the motor to the relay module via the switch, which is powered by the 4-V rechargeable battery.
  4. Power-up Arduino:
    • Connect the 9-V battery to Arduino’s power jack using the battery cap.

The code

Connect Arduino UNO to your computer and select the correct board and port from Arduino IDE’s Tools menu. Then, click the upload button.

Testing the system

  • Turn on Arduino’s power supply and ensure all connections are secure.
  • Place the eye-blink sensor in a position where it can accurately monitor a driver’s eyes for the amount they blink.
  • Simulate normal and abnormal blink patterns to test the system’s response.
  • When the abnormal blinks are detected, the buzzer should sound and the motor should stop.

Conclusion

By continuously monitoring a driver’s eye movements, this smart system provides timely alerts and can take corrective action, alerting a driver to prevent accidents. This prototype lays the groundwork for more advanced safety systems that could be integrated directly into vehicles, contributing to safer roads and improved driver protection.

Video

https://www.engineersgarage.com/wp-content/uploads/2024/10/Accident-Prevention-system-Using-Eye-Blinking-1.mp4

 

 

You may also like:


  • How to build a smart clock that measures temperature and…

  • What is a vehicle infotainment system?

  • How to build your own smart home

  • How to build an alcohol detector with the MQ3 gas…

  • How to select brushless dc motors for robotic vehicles

  • How to design an automatic streetlight system using Arduino

  • How to build a real-time vehicle tracking system

Filed Under: Circuit Design, Video
Tagged With: alert, Arduino, circuit, circuitdesign, drivers, fatigue, sensor, video
 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on EDAboard.com and Electro-Tech-Online.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: Internet of Things
Explore practical strategies for minimizing attack surfaces, managing memory efficiently, and securing firmware. Download now to ensure your IoT implementations remain secure, efficient, and future-ready.

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

  • Reducing "shoot-through" in offline Full Bridge SMPS?
  • Checking line impedance
  • Why do I hear whistling sounds in my vents?
  • What is the purpose of using a VCVS?
  • Mains inverter with switching node going out on the mains cable!?

RSS Electro-Tech-Online.com Discussions

  • Failure of polypropylene motor-run capacitors
  • a point I can't understand about the sinc expression
  • Quick advice on remote car starter?
  • Wideband matching an electrically short bowtie antenna; 50 ohm, 434 MHz
  • how can we detect a stack overflow

Featured – RPi Python Programming (27 Part)

  • RPi Python Programming 21: The SIM900A AT commands
  • RPi Python Programming 22: Calls & SMS using a SIM900A GSM-GPRS modem
  • RPi Python Programming 23: Interfacing a NEO-6MV2 GPS module with Raspberry Pi
  • RPi Python Programming 24: I2C explained
  • RPi Python Programming 25 – Synchronous serial communication in Raspberry Pi using I2C protocol
  • RPi Python Programming 26 – Interfacing ADXL345 accelerometer sensor with Raspberry Pi

Recent Articles

  • AC-DC power supply extends voltage range to 800 V DC
  • Infineon’s inductive sensor integrates coil system driver, signal conditioning circuits and DSP
  • Arm Cortex-M23 MCU delivers 87.5 µA/MHz active mode
  • STMicroelectronics releases automotive amplifiers with in-play open-load detection
  • Convection-cooled power controller integrates EtherCat connectivity

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe