Anti-Sleep Alarm with Alcohol and Flame Detection
Purpose and Goal
The purpose of this project was to create a system aimed at reducing road accidents caused by drowsiness, alcohol consumption, and fire hazards. The system integrates sensors and modules to monitor the driver's state and surroundings, providing alerts and warnings as needed to ensure safety.
Main Goals
- Detect and alert when the driver is drowsy.
- Monitor and identify if the driver has consumed alcohol.
- Detect fire hazards inside the vehicle.
- Send alerts with location details to predefined contacts in case of emergencies.
- Provide real-time alerts through visual and auditory indicators.
Contributions (Raguraj S., 205080K)
Key Responsibilities
-
LED and Buzzer Alerts:
- Designed and coded the LED and buzzer components.
- These components alert the driver and nearby vehicles in critical situations.
-
Gyroscope Module:
- Programmed and tested the gyroscope module (MPU6050) to monitor the driver’s head position.
- Used X, Y, Z axis data to determine if the driver is falling asleep.
-
DC Motor and Potentiometer:
- Developed code for the DC motor (to simulate the vehicle's wheel).
- Used potentiometers to simulate vehicle acceleration during testing.
-
Push Button:
- Added a manual alert reset feature via a push button. This allows the driver to acknowledge alarms and stop alerts.
-
System Integration:
- Created full schematic diagrams and PCB designs using KiCad.
- Simulated the entire project using Proteus.
- Combined individual team contributions into a unified project using Atmel Studio.
Technical Details
Gyroscope Module (MPU6050)
- Purpose: Detect head movement to monitor driver drowsiness.
- Specifications:
- 3-axis accelerometer and gyroscope.
- I2C communication protocol.
- High-accuracy 16-bit ADC.
- Implementation: Used hard-coded values in Proteus simulation due to unavailability of the physical module.
LED
- Purpose: External hazard alert for nearby vehicles.
- Specifications:
- Voltage Range: 1.65V - 2.00V
- Operating Temperature: -55°C to +100°C
- Current: 20mA
Buzzer
- Purpose: Internal auditory alert for the driver.
- Specifications:
- Voltage Range: 4V - 8V DC
- Rated Current: ≤30mA
DC Motor and Potentiometer
- Purpose: Simulate vehicle wheel movement and acceleration.
- Specifications:
- DC Motor Input Voltage: 5V
- Potentiometer Resistance: 1K Ohm
Push Button
- Purpose: Allow driver to manually reset alerts.
- Specifications:
- Power Rating: MAX 50mA 24V DC
- Operating Temperature: -20°C to +70°C
Outcomes
- Successfully developed and tested the individual components of the system.
- Designed a comprehensive schematic and PCB layout.
- Simulated the project using Proteus, ensuring functional integration.
- Achieved the project's main goals of detecting and alerting for drowsiness, alcohol, and fire hazards.
Future Improvements
- Incorporate advanced microcontrollers for higher precision.
- Enhance simulation by integrating actual hardware modules like the gyroscope.
- Develop a more compact and efficient PCB layout for mass production.
- Explore additional features like AI-based driver monitoring and real-time cloud updates.
Acknowledgments
- Supervisor: Mr. B.H. Sudantha
- Examiner: Mr. S.M.U. Premasiri
- Faculty: Faculty of Information Technology, University of Moratuwa