Combating Dashing And Drunk Driving With RF And Alcohol Detection Expertise

[ad_1]

Remark errors or corrections discovered for this circuit, and get the possibility to win massive!

This proposed system goals to handle the shortcomings of the prevailing system by  using cutting-edge expertise to cut back highway accidents attributable to over-speeding  and drunk driving. The system consists of an RF module, an MQ3 alcohol sensor,  and a microcontroller to measure the automobile’s pace and the motive force’s blood alcohol  content material. The info collected is then processed, and if the motive force is discovered to be beneath  the affect of alcohol, the system prevents ignition, and if the automobile is discovered to be over-speeding, the pace is robotically managed to adjust to the posted  pace restrict. 

Parts Required

1. RF Module: The RF module is used to wirelessly transmit information between the  automobile and the management heart. It’s able to sending and receiving information  over a distance of as much as 100 meters. 

2. MQ3 Alcohol Sensor: The MQ3 sensor is used to measure the motive force’s  blood alcohol content material. It’s a fuel sensor that detects ethanol, the first  element of alcoholic drinks. 

3. Microcontroller: The Atmega 328 microcontroller is used to regulate the  system’s total performance. It processes the info collected by the RF  module and the MQ3 sensor and makes use of it to regulate the automobile’s pace and  stop ignition if crucial.

Working 

The proposed system works by first measuring the automobile’s pace utilizing the RF  module. This information is then in comparison with the posted pace restrict, and if the automobile is  discovered to be over-speeding, the system robotically controls the pace to conform  with the restrict. 

Concurrently, the MQ3 sensor measures the motive force’s blood alcohol content material. If the  degree is above the authorized restrict, the system prevents ignition, and the automobile can’t  be began till the motive force’s alcohol degree drops under the authorized restrict. 

If the motive force’s alcohol degree is under the authorized restrict, the system permits ignition, and  the automobile could be began. Nevertheless, if the motive force’s alcohol degree exceeds the authorized  restrict whereas driving, the system will alert the motive force and robotically management the  pace to forestall accidents. 

Connection Diagram

Coding 
#embrace <LiquidCrystal.h> #outline set off 8 
#outline echo 7 
#outline motor 6 
#outline buzzer 13 
#outline bm2 10 
#outline rf0 A0 
#outline rf1 A1 
#outline rf2 A2 
#outline rf3 A3 
#outline al A4 
LiquidCrystal liquid crystal display(12, 11, 2, 3, 4, 5); float time = 0, distance = 0; int studying; 
int pace=0; 
int temp = 0; 
void setup() 
{ 
liquid crystal display.start(16, 2); 
pinMode(set off, OUTPUT); pinMode(echo, INPUT); 
pinMode(buzzer, OUTPUT); pinMode(bm2, OUTPUT); 
pinMode(rf0, INPUT); 
pinMode(rf1, INPUT); 
pinMode(rf2, INPUT); 
pinMode(rf3, INPUT); 
pinMode(al, INPUT); 
liquid crystal display.print("SPEED COTROL AT"); liquid crystal display.setCursor(0, 1); 
liquid crystal display.print("SENSITIVE ZONES"); delay(3000);
studying = digitalRead(al); 
if (studying==LOW) 
{ 
digitalWrite(buzzer,1); 
analogWrite(motor,0); 
liquid crystal display.clear(); 
liquid crystal display.print("ALCOHOL DETECTED"); liquid crystal display.setCursor(0, 1); 
liquid crystal display.print("VEHICLE STOPPED"); delay(1000); 
whereas(digitalRead(al) == 0){} } 
} 
void loop() 
{ 
digitalWrite(rf0, HIGH); 
digitalWrite(rf1, HIGH); 
digitalWrite(rf2, HIGH); 
digitalWrite(rf3, HIGH); 
liquid crystal display.clear(); 
liquid crystal display.print("SPEED COTROL AT"); liquid crystal display.setCursor(0, 1); 
liquid crystal display.print("SENSITIVE ZONES"); delay(200); 
digitalWrite(bm2, LOW); 
digitalWrite(buzzer, LOW); 
delayMicroseconds(2); 
digitalWrite(motor,1); 
temp = 0; 
studying = digitalRead(rf0); 
if (studying==LOW) 
{ 
 pace=150;// 
digitalWrite(buzzer,1);
analogWrite(motor,pace);// 
liquid crystal display.clear(); 
liquid crystal display.print("SCHOOL ZONE"); 
liquid crystal display.setCursor(0, 1); 
liquid crystal display.print("60KM SPEED PLEASE"); delay(1000); 
whereas(digitalRead(rf0) == 0){} } 
analogWrite(motor,pace);// 
studying = digitalRead(rf1); 
if (studying==LOW) 
{ 
 pace=120; 
digitalWrite(buzzer,1); 
analogWrite(motor,pace); 
liquid crystal display.clear(); 
liquid crystal display.print("HAIR PIN BEND"); liquid crystal display.setCursor(0, 1); 
liquid crystal display.print("30KMS SPEED"); 
delay(1000); 
whereas(digitalRead(rf1) == 0){}//modified } 
analogWrite(motor,pace); 
studying = digitalRead(rf2); 
if (studying==LOW) 
{ 
 pace=75; 
digitalWrite(buzzer,1); 
analogWrite(motor,pace); 
liquid crystal display.clear(); 
liquid crystal display.print("OVER BRIDGE"); 
liquid crystal display.setCursor(0, 1); 
liquid crystal display.print("10KMS SPEED"); 
delay(1000);
whereas(digitalRead(rf2) == 0){} 
} 
analogWrite(motor,pace); 
studying = digitalRead(rf3); 
if (studying==LOW) 
{ 
digitalWrite(buzzer,1); 
analogWrite(motor,0); 
liquid crystal display.clear(); 
liquid crystal display.print("Hazard"); 
liquid crystal display.setCursor(0, 1); 
liquid crystal display.print("ZONE DETECTED"); 
delay(1000); 
whereas(digitalRead(rf3) == 0){} 
} 
studying = digitalRead(al); 
if (studying==LOW) 
{ 
digitalWrite(buzzer,1); 
analogWrite(motor,75); 
liquid crystal display.clear(); 
liquid crystal display.print("ALCOHOL DETECTED"); 
liquid crystal display.setCursor(0, 1); 
liquid crystal display.print("SPEED REDUCED.."); 
delay(1000); 
whereas(digitalRead(al) == 0){} 
} 
} 

This code makes use of an Arduino board related to a number of sensors and actuators. The  board is related to a LiquidCrystal show and an ultrasonic sensor with a  set off and echo pin, in addition to a buzzer, a motor, and a number of enter sensors  together with 4 pins of RF modules (rf0-rf3) and an alcohol sensor (al). The code  makes use of these sensors to regulate the pace of the motor based mostly on the readings from the proximity sensors, show messages on the LCD, and detect alcohol within the  surroundings. 

Conclusion 

The proposed system affords a dependable and efficient option to scale back highway accidents  attributable to over-speeding and drunk driving. By using superior expertise, the  system can precisely measure the automobile’s pace and the motive force’s blood alcohol  content material and robotically management the pace to adjust to the posted pace restrict  and stop ignition if crucial. This method has the potential to make a  important influence on highway security and save numerous lives, and we hope that it’ll  be carried out on a wider scale sooner or later.

[ad_2]

Leave a comment