Alcohol Detection System for Drunken Drivers with Engine Locking using Arduino

Introduction to Alcohol Detection System for Drunken Drivers with Engine Locking using Arduino

Background: The project Alcohol Detection System for Drunken Drivers with Engine Locking using Arduino is for drunk driving as it can be very dangerous. People will become slow in reacting and can’t control their actions. Drunk drivers’ aren’t able to deal with the emergency situations when they are driving. The investigation done by the World Health Organization in 2008 shows that about 50%-60% of traffic accidents are related to drunk driving. The drunk driving has been listed as the main reason for the fatal car accident.

Motivation

These years, the cases of a traffic accident caused by drunk driving have increased rapidly. More and more people have realized that the drunk driving does great harm to public security. It’s time to develop a kind of system which can stop the drunk driving effectively. Our project Alcohol Detection System for Drunken Drivers with Engine Locking system hasn’t been popularized, we try to develop this system which is available on every car. This system won’t cost much, but it will bring much for it concentrates on human’s safety. This system has a preventative effect which can stop accidents from the beginning.

Objective and various hardware parts of Alcohol Detection System for Drunken Drivers with Engine Locking

We want to design a kind of system which can detect the alcohol concentration in the cars to prevent the behavior of drunk driving.
The system consists of these parts:
Sensor Part—used to detect the concentration of alcohol in the air and send the concentration in the form of voltage signals to the following part.
Processing Part—used to receive the voltage signals and process the signal to analog signals that can be standard for the concentration of alcohol.
Display Part—used to get the processed signal and show the data to users in the form of diagrams.

The sensor will be fixed near the driver’s seat. The driver should breathe to the system before he (she) starting the car. If the concentration of alcohol detected is below the allowable standard, the car can be started normally. If the concentration of alcohol is above the allowable standard, the system will send the alarm to the driver. The concentration of the alcohol will be showen in diagrams which can be seen on the driver’s cell phone.

The system should be safe, sensitive, accurate, convenient and cheap. This kind of system can be fixed on every car to ensure the driver’s driving safety and can protect the passengers’ walking safety.

HARDWARE MODULES

The entire system adopted the Arduino Uno Microcontroller Board (based on ATMEGA 328), the principle of the hardware chart as shown in figure 1. The core functions modules are Arduino Uno, Alcohol Sensor module (MQ-3), GPS Module GSM Module, 16×2 LCD Display and DC Motor.

Alcohol Detection System for Drunken Drivers with Engine Locking

ARDUINO:

The Arduino board is the central unit of the system. All the components are interfaced to the board and programmed as per their functionality to operate in synchronization.

ALCOHOL MODULE:

It is used to sense the alcohol. The analog output of which is applied to the Arduino board.

GSM:

It is used to send an SMS to the contacts of the user about the location of the vehicle. It is beneficial in emergency situations.

LCD:

If alcohol is detected it displays the message indicating “ALCOHOL DETECTED”.

LED:

It is used as an indication for passengers that are present in the vehicle

DC MOTOR:

It is used as a dummy for indicating the engine locking facility whenever alcohol is detected.

Arduino Microcontroller Board:

The Arduino board is the central unit of the system.

WORKING OF OUR PROJECT DESIGN

Alcohol Detector project has GSM technology and Alcohol detection system with vehicle controlling technique. Whenever alcohol percentage crosses a threshold level, project sends SMS to the owner of the vehicle or to his/her family members. At the same time vehicle controlling is done by stopping the vehicle engine or any other factory. Alcohol detection system in an automobile increases the safety of persons traveling through the vehicle. We have provided a Relay and a DC motor to show the demo of vehicle controlling system.

When the alcohol level sensed by the sensor is below the thrush hold level, then no message is transferred to the owner. And the message is displayed at the Display ”NORMAL DRIVING DRIVER ALERT” in our project. Also, the indicating LED is kept off during the absence of the alcohol and the motor keeps running.

When the alcohol level sensed by the sensor is above the thrush hold level, then the message will be is transferred to the owner. And the message is displayed at the Display ”DRIVER DRUNK SHUT ENGINE” in our project. Also, the indicating LED will glow in presence of the alcohol and the motor will stop.

BLOCK DIAGRAM OF Alcohol Detection System for Drunken Drivers with Engine Locking project

Description
In our project, the LCD (16*2) is connected according to the following configuration

MOTOR

ARDUINO Pins Display pins
7 RS
6 Enable
2 D7 (14 pin)
3 D6 (13 pin)
4 D5 (12 pin)
5 D4 (11pin)
• Note: In Proteus software designs connect supply to VDD (pin no.2 of display).
• In simulation leave the rest pins open, But in practical case connect potentiometer to pin no. 3 (VEE). Now connect pin no. 15 of a display to input power supply and pin no.16 to ground and connect rest of the pins of the display to ground supply. we have used the display in 4 bit addressing mode, in order to save other Arduino pins for another use.
• The Alcohol sensor is connected at PIN A0 of Arduino Board
• The motor is connected is connected at PIN 13 of Arduino Board Via a Relay circuit.
• The LED is connected at PIN 8 of Arduino Board as an indication for inside passengers or for inside workers in a factor.

 

Alcohol Detection System for Drunken Drivers with Engine Locking

PROTEUS BASED DIAGRAM OF OUR PROJECT

FLOWCHART OF THE PROJECT CODE

 

Alcohol detection and remote engine shutdown

Alcohol Detection System for Drunken Drivers with Engine Locking

ARDUINO BASED CODE OF OUR PROJECT Alcohol Detection System for Drunken Drivers with Engine Locking

#include <SoftwareSerial.h>
SoftwareSerial cell (10, 11); // pin 10=Rx ,pin11=Trx (Arduino pins used for transmission and Reception of Data)
#include <LiquidCrystal.h>
int alcohol_pin = A0; // select the input pin for the potentiometer
int alcohol_value = 0; // variable to store the value coming from the sensor
const int indication = 8; // declaring pin 8 of arduino as “indication” pin(LED is connected at this pin)
const int motorpin = 13; //declaring pin 13 of arduino as “indication” pin(motor is connected at this pin)
int count = 0; // setting count for messeage
const int rs = 7, en = 6, d4 = 5, d5 = 4, d6 = 3, d7 = 2; // declaring pins for display configuration
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
void setup() {
lcd.begin(16, 2); // selecting display
lcd.setCursor(0,0); // selecting ist row of display
lcd.print(“ALCOHOL DETECTOR”); // message on ist row of dispaly
lcd.setCursor(0,1); // selecting second row of display
lcd.print(“MACHINE SHUTDOWN”); // message on second row of dispaly
delay(4000);
cell.begin(9600); // setting baud rate
Serial.begin(9600);
pinMode(indication, OUTPUT); // declaring indication pin as output
pinMode(motorpin, OUTPUT); // declaring motor pin as output
digitalWrite(motorpin, HIGH); //setting motor pin high initially( machine is running)
66
}
void loop() {
// read the value from the sensor:
alcohol_value =analogRead(alcohol_pin); // reading level of alcohol from alcohol sensor through analog pin A0
alcohol_value = map(alcohol_value, 0,1023,1023,0); // mapping alcohol sensor & setting thrushold
delay(500); // delaying
if (alcohol_value>500) // checking alcohol level
{
count = count +1; // incrementing count for sending SMS
lcd.clear(); // Clearing displaying
lcd.setCursor(0,0); // selecting first row of lcd
lcd.print(“DRIVER DRUNK”); // message displayed on ist row
lcd.setCursor(0,1);
lcd.print(“SHUT ENGINE”);
delay(4000);
if (count == 1)
{
digitalWrite(indication, HIGH); // if alcohol is dectected indication pin is high
digitalWrite(motorpin, LOW); // if alcohol detected motor( machine ) willo be turned off
cell.println(“AT+CMGF=1”); //Sets the GSM Module in Text Mode
delay(1000); // Delay of 1000 milli seconds or 1 second
cell.println(“AT+CMGS=\”+919697851686\”\r”); // Replace x with mobile number
delay(1000);
cell.println(“DRIVER DRUNK TAKE NECESSARY ACTION”); // The SMS text you want to send
delay(1000);
cell.println((char)26); // ASCII code of CTRL+Z (stopping character)
delay(1000);
67
}
}
else
{
lcd.clear(); // clearing previous message of display
lcd.setCursor(0,0); // selecting ist row of display
lcd.print(“DRIVER ALERT”); // displaying messaghe on ist row of display
lcd.setCursor(0,1); // selecting secind roow of display
lcd.print(“NORMAL DRIVING”); // displayin message at second row of display
delay(4000);
digitalWrite(indication, LOW); // set indication low if no alcohol is detected
digitalWrite(motorpin, HIGH); // set motor pin high
count = 0; // no message is transmitted becoz count is not incremented
}
}

PROTEUS BASED SIMULATION

When the alcohol level sensed by the sensor is below the thrush hold level ,then no message is transferred to the owner .And the message is displayed at the Display ”NORMAL DRIVING DRIVER ALERT” in our project. Also the indicating LED is kept off during the absence of the alcohol and the motor keeps running. There will no message on the virtual terminal.

 

Alcohol Detection System for Drunken Drivers with Engine Locking

Alcohol Detection System for Drunken Drivers with Engine Locking

When the alcohol level sensed by the sensor is above the thrush hold level, then message will be is transferred to the owner. And the message is displayed at the Display ”DRIVER DRUNK SHUT ENGINE” in our project. Also, the indicating LED will glow in presence of the alcohol and the motor will stop, also the virtual terminal displays the message as shown below.

 

Alcohol Detection System for Drunken Drivers with Engine Locking

Alcohol Detection System for Drunken Drivers with Engine Locking

NOTE: in apractical case, the message will be transmitted to the owner, whose number is mentioned the programming code.

Project Image

 

Alcohol detection and remote engine shutdown

 

ADVANTAGES

1. To prevent an accident due to drunk and driving.

2. Easy and efficient to test the alcohol content in the body.

3. Quick and accurate results.

4. Helpful for police and provides and automatic safety systems for cars and other vehicles as well.

APPLICATIONS

1. “Alcohol detector project” can be used in the various vehicles for detecting whether the driver as consumed alcohol or not.
2. This project can also be used in various companies or organizations to detect alcohol consumptions of employees.

FUTURE ENHANCEMENT

i) We can implement GSM technology to remotely control the factory or vehicle

ii) We can implement GPS technology to find out the location of the vehicle OR factor.

CONCLUSION

We have provided a very effective solution to develop an intelligent system for vehicles for alcohol detection whose core is Arduino. Since the sensor has a fine sensitivity range around 2 meters, it can suit to any vehicle and can easily be hidden from the suspects. The whole system has also an advantage of small volume and more reliability. As the growing public perception is that vehicle safety is more important, advances in public safety are gaining acceptance than in the past. Future scope of this system is to control the causes of the accidents due to alcohol consumption. This system improves the safety of a human being. And hence providing the effective development in the automobile industry regarding to reduce the accidents caused due to alcohol.

If you are facing any problem regarding this project feel free to relay your comments below, we are here to help you. For more information contact and subscribe us. This is the first website which is ecspacially meant to make ECE projects for Kashmiri students.

Click here to view orginal source from TECHNOGIANTS INNOVATIONS LAB.

Read also –

Whatsapp hack online in seconds | 2018

Best Android apps for students 2018

11 Best Ways to Reduce Data Usage On Android

Published by: Ecstatic Trends

Ecstatic Trends

Ecstatic Trends is India's best online portals for the latest trends, tricks, art & culture to connect with the world. To improve this soapbox every day, we do everything possible to raise the voice of young people and implement new ideas.

Leave a Reply