Professional Documents
Culture Documents
PROJECT REPORT ON
“Alcohol detection and engine locking system
using Arduino UNO and MQ3 sensor”
Submitted By:
Aditya Rangari 0160
Aadya Madankar 0159
Vedant Godi 0152
Rohan Karmarkar 0147
Atharva sonwane 0134
Arduino Uno
MQ-3 Alcohol Sensor
Relay
Jumper wires
LED
Buzzer
Power supply for the Arduino
Motor
Battery
Switch
220 ohm Resistor
Circuit:
1. MQ-3 Alcohol Sensor to Arduino Uno:
Connect the MQ-3 VCC pin to Arduino 5V.
Connect the MQ-3 GND pin to Arduino GND.
Connect the MQ-3 AOUT pin to Arduino A0 (analog input for sensor data).
Connect the MQ-3 DOUT pin to a digital pin on the Arduino (for digital output, you can use
D2, for example).
2. Relay Module to Arduino Uno:
Connect the Relay VCC to Arduino 5V.
Connect the Relay GND to Arduino GND.
Connect one side of the relay coil (COM and NO) to the vehicle's ignition system. Ensure this
connection is safe and secure, following your vehicle's wiring diagram.
Connect the other side of the relay coil (COM and NC) to the power supply that's normally
connected to the vehicle's ignition. This allows you to interrupt the ignition circuit when the
relay is activated by the Arduino.
3. Optional Components:
If you're using a buzzer or LEDs for alarms or warnings, connect them to the Arduino with
appropriate resistors to limit current.
For example, you can connect a buzzer to a digital pin and GND and configure it in your
code to sound when alcohol is detected.
4. Power Supply:
Power the Arduino Uno using a suitable power supply, such as a 9V battery or an external
power adapter.
Implementation:
Hardware Implementation:
1. Assemble the basic circuit as described earlier, connecting the MQ-3 sensor and the relay
module to the Arduino Uno.
2. Carefully connect the relay module to the vehicle's ignition system following your vehicle's
wiring diagram, ensuring safety and proper connections.
3. Power the Arduino Uno using a suitable power supply, and ensure that the circuit is
correctly connected.
Circuit diagram:
Program:
pinMode(sensorDigital, INPUT);
pinMode(Motor, OUTPUT);
pinMode(buzzer, OUTPUT);
pinMode(led, OUTPUT);
Serial.begin(9600);
void loop() {
Serial.print("t");
Serial.println(digital);
if (digital == 0) {
digitalWrite(Motor, HIGH);
digitalWrite(buzzer, HIGH);
digitalWrite(led, LOW);
} else {
digitalWrite(Motor, LOW);
digitalWrite(buzzer, LOW);
digitalWrite(led, LOW);
Results:
The result of the project is a functioning alcohol detection and engine locking system that uses an
Arduino Uno and an MQ-3 sensor. When alcohol vapor is detected above a predefined threshold,
the system locks the vehicle's engine to prevent drunk driving. It can also include optional alarms or
warning devices for immediate feedback. This project should be used responsibly and in
compliance with safety and legal regulations.
Conclusion:
The alcohol detection and engine locking system using an Arduino Uno and an MQ-3 sensor,is a
basic but effective project designed to prevent drunk driving. It operates by detecting alcohol vapor
in the surrounding air using the MQ-3 alcohol sensor and takes action to lock the vehicle's engine
when the alcohol concentration exceeds a predefined threshold.