Driving while incapacitated due to drunkenness is dangerous for the drivers who happens to have high blood alcohol content in their system as it leads to fatal car accidents, vehicular death, and Highway injuries. The purpose of the project is to come up with vehicle accident prevention by developing alcohol detector to reduce traffic accident cases built on driving under the influence of alcohol. This project is founded by linking alcohol sensor with a microcontroller. The alcohol sensor that is going to be used in this project is MQ-2 which is used to detect alcohol content in human breath. An ignition is built as a prototype to act like fire starter over vehicles engine. The primary purpose of this ignition system is to produce spark plug which ignites the targeted vehicle’s engine. This system work based on the amount or level of alcohol content in human breath detected by alcohol sensor. Today most of the families are affected by many accidents caused by drunk driving drivers or the person who is driving the vehicle. Alcohol detectors project is aimed to reduce the traffic accidents occurring of all over the world.
Indians earned dubious distinction due to its high number of facilities leading to more accidents in the world.
Road safety has emerged as a major concern around the world especial in countries like India. Drinking and driving are becoming a major issue in the world today as it leads to more accidents and affecting public health. Today it is emerging as a one among the many significant problems being faced by humankind. The system underway is aiming at reducing road accident resulting from drunken driving. The system is designed to detect alcohol within the vehicle and lock the engine immediately. Once the alcohol has been detected in the vehicle, an SMS is sent to preselected contacts alongside the location of the vehicle. Hence this system minimizes the road accidents resulting from drinking and driving.
In a related work survey, the software and hardware of GSM network and GPS were established. The projected GSM and GPS based system had two parts controlling station and the mobile unit. Then interfaces, data transmission, system processes, connections amongst the mobile unit while the power plant is working successfully.
There is an electronic device which is mounted in a vehicle to allow the holder or the company concerned with the tracking to know whereas about of the vehicle.
The diagram below shows how GSM and GPS technology work together towards locking the engine of the vehicle. It consists of GMS, keyboard, microcontroller, GPS, LCD, door locker, IR transmitter, MAX232 driver, relay driver and IR receiver. On the GSM board, there is an active sim with enough amount to allow outgoing calls. +5V Dc powers the circuit.
Figure 1 Hardware Modules.
This system is adapted from the Arduino Uno Microcontroller board as shown in the chart above. The major function modules are made up of Alcohol sensor, Arduino Uno, GSM module, GPS module, DC motor, and LCD.
Its primary purpose is to detect the alcohol. It has an analog output which is built in Arduino board.
This is the central unit of the whole system. All components are constructed of the Arduino board and programmed in a way that their functionality is synchronized.
It is defined as Global System for Mobile (GSM). It is accepted globally as standard digital cellular communication. The name GSM is a standardization group founded in 1982 to establish common standard mobile telephone in Europe which would formulate better specifications for the mobile cellular operating system at 900 MHz for European countries and their partners. It was projected that many countries in the world would join GSM partnership.
The cellular system originated from the United States of America with the release of advanced mobile phone service (AMPS) system in 1983. This system was later adopted by Latin America, Asia, and Oceanic countries, forming one of the largest markets in the cellular world.
Most cellular mobile telephones had an analog system in the early 1980s unlike today’s newer digital system. The primary challenge analog system is facing is the inability to coup with the growing needs in cost efficiency hence the welcoming of digital technology.
Some of the advantages digital systems have over the analog system are;
The chart below shows the worldwide evolution of mobile phone system
Year |
Mobile system |
1981 |
Nordic Mobile Telephone (NMT) 450 |
1983 |
American Mobile Phone System (AMPS) |
1985 |
Total Access Communication System (TACS) |
1986 |
Nordic Mobile Telephony (NMT) 900 |
1991 |
American Digital Cellular (ADC) |
1991 |
Global System for Mobile Communication (GSM) |
1992 |
Digital Cellular System (DCS) 1800 |
1994 |
Personal Digital Cellular (PDC) |
1995 |
PCS 1900 – Canada |
1996 |
PCS – United States |
Over the years through the development of cellular satellites, many systems have come up without any benefit of homogenous specifications. The GSM customary is intended to discourse these snags.
Talks have been held over the previous years (1982 – 1985) to decide on which system should be built between digital and analog system GSM. After numerous field tests, the digital structure was accepted for GSM. The next step was to choose between the broadband solution and a narrow. In 1985 May, the narrowband time division multiple access (TDMA) was selected.
Year |
Milestone |
1982 |
GSM formed |
1986 |
Field test |
1987 |
TDMA was chosen as access method |
1988 |
Signing of memorandum of understanding |
1989 |
GSM system validated |
1990 |
Pre-operation |
1991 |
Startup of commercial system |
1992 |
Coverage of airports and larger cities |
1993 |
Main road coverage |
1995 |
Rural areas coverage |
SMS is sent to the contacts from the GSM about the where about of the vehicle.
The First Global Positioning System (GPS) premeditated in 1983 by Honda. The developer claims having possessed the first GPS- based
It is designed to locate the user and send SMS via GMS module to the Pre-selected contacts.
DC MOTOR: It is designed to lock the engine facility whenever alcohol is detected in the vehicle.
LCD: It is used to display the information whenever alcohol is detected.
Arduino board microcontroller
This is the brain of the system.
The Arduino is the microcontroller board built on ATmega328. It is programmed in a way that it can photocopy electromechanical devices. It enables you to connect both analog and digital electronic signals:
The Arduino board microcontroller has 14 digital input and output pins, USB connection, power jack, 16 MHz Ceramic Resonator, six analog inputs, ICSP header and resets button. The microcontroller board contains everything that is needed for microcontroller support. For it to work, it is connected to a computer with USB or power cable from AC to DC adapter or fully charged battery.
Features
Flash memory
Analog input
SRAM
Clock speed
DC current
Digital input and output pins
EEPROM
Operating voltage
Input voltage
Microcontroller
3.3 v pin DC
The Arduino has several facilities which are used for communicating with a computer, other microcontrollers, and another Arduino. Serial communication UART TTL 5V is provided by the ATmega328, which is found on digital pins. Serial communication is channeled Over USB and presented as virtual com port in the computer software by the ATmega16U2 on the board. External drivers are not needed as the ATmega16U2 firmware is designed in such a way that it uses standard USB COM drivers, but the .inf file is required on the window. Software in the Arduino which consist of the serial motor that enables textual data to be transmitted to and from Arduino board. As data is sent via USB serial chip, TX LED an RX flash on the Arduino board.
The resistance value from MQ-3 differ regarding gasses concentration and various kinds, but when working with these components, it is necessary for sensitivity adjustment. The detector is supposed to be calibrated by alcohol concentration of about 0.4mgl in the air the value of load resistance about 200K? to 470K?. While considering humidity and temperature, proper alarming point for gas detector must be regarded with accurate measurements.
The GSM net is used by cellular phones since it provides long range, a low cost, a wireless communication network for applications which require connectivity instead of using higher data rates to connect to the internet. Machines such as HVAC, vehicle services industrial refrigerators, vending machines, freezers, etc. benefits from being attached to a GSM arrangement. Another good example is a garage where special packages are offered to clients. Based on Technicians know how to given vehicles as tailored service intermission can be indicated. Part of the service is to install the GSM modem to the vehicle. This will help to notify the garage upon the vehicle approaching its service intermission. The customer will be later told by the garage mechanics.
The procedure used by the GSM setup and control is built on the Hayes AT_ command set. The GSM specific commands are adapted to the packages rendered by GSM modem such as: calling specified phone number, erasing memory location, text messaging, etc. Since the key objective for the application note is to indicate how to send and receive a text message, the only subject of the AT- Command set is essentials to be executed.
The European Telecommunication Standard Institute (ETSI) GSM 07.05 defines the AT Command interface for GSM well-matched modems. From this file, some chosen commands are selected and presented temporarily in this section. This control subset will allow the modem to launch and obtain SMS messages.
The table below describes the AT- Command set. The commands can be tried out by connecting a GSM modem to be tested by linking a GSM modem to one of the computer COM ports
Command |
Description |
AT |
Oversee if serial interface and GSM modem is functioning |
ATE0 |
Turns the echo off. |
AT+CNMI |
Displays new messages |
AT +CPMS |
Selects SMS memory |
AT+CMGF |
conveys message string format, how they are compressed |
AT+CMGR |
Reads given instructions from a given memory location. |
AT + CMGS |
Convey message to a given recipient |
AT+CMGD |
Delete messages |
Message setup (AT+CMGF)
This command is used to establish input and output structure of SMS messages. The command has two modes:
PDU mode setup saves message payload, and it is default in most modems. The PDU mode is implemented in the source code for this application note. Therefore it is possible to use text mode to reduce code footprint if the connected modem supports this.
In text field header fields like sender address, validation period, message length, etc. can be read out together in text plain with the message.
Read message (AT+CMGR)
This command (AT+CMGR) is used to read messages from selected memory location. The execution of AT+CMGR returns messages at index from chosen memory. The compressed messages and the entire status messages (PDU) are returned. Therefore for one to obtain useful information out of the compressed messages, decompression is supposed to be done.
Send message (AT+CMGS)
This command allows the user to send SMS messages. The user then set the fields for the messages which can be compressed and conveyed using the AT+CMGS command.
The GSM net is used by cellular phones since it provides long range, a low cost, a wireless communication network for applications which require connectivity instead of using higher data rates to connect to the internet. Machines such as HVAC, vehicle services industrial refrigerators, vending machines, freezers, etc. benefits from being attached to a GSM arrangement. Another good example is a garage where special packages are offered to clients. Based on Technicians know how to given vehicles as tailored service intermission can be indicated. Part of the service is to install the GSM modem to the vehicle. This will help to notify the garage upon the vehicle approaching its service intermission. The garage mechanics will later inform the customer.
The Global Positioning System (GPS) is a satellite navigation based on the space to provide time information and location in all-weather conditions in where on or near this planet (earth) where there is a unobstructed line of sight to four or more satellites. Due to GPS setup, it is essential to military, commercial users and civil around the world. The GPS is under the maintenance of the United of America, but it is accessible to everyone provided the user has a GPS receiver.
There is some other GPS device which needs to be connected to a computer for them to work. This machine can be PDA, digital camera, home computer, laptop or smartphones depending on the equipment and readily available connectors. The connection can be made through various channels such USB cables, serial, Bluetooth, SD, compact flash, PCMCIA and new express cards. Express cards / PCMCIA GPS units also include a wireless modem.
A liquid crystal display has some uses for its screen showing ability. The primary display module is the 16 *2 screen display often applied in many electronic devices and circuitry. This invention provides more than seven segments not to mention the multi-segment LED ability it possesses. Given its numerous characteristics, the LCD pose some advantages such as being economical, having secure programming knowledge, lacks limitation in a display of unique to custom features.
The LCD can display 16 characters in one line. The number of lines present is two for each device. In all these characters, every character is being revealed by 5*7 pixel matrix. More to that, the liquid crystal display has two registers. These records include; command register and data register.
The control register is made t store command instructions provided to the LCD. What is a command? These are directions given to the LCD to redefine the task. Predefinition entails initialization, screen clearing, cursor position setting, display control and much more. The second register is the data register that stores data that needs showing on the screen. These data are ASCII value of each character that needs posting.
In a direct current motor, it works on a principle that current flowing in a magnetic field in a current carrying conductor will be exposed to a torque that makes it move. The act is known as motoring action. Any reversal in the current direction will cause the rotational movement to be reversed. The principle on which this engine works is the ability of present and magnetic fields interacting to develop a mechanical force thereby establishing the principle. More to it the need to determine the direction of rotation. Fleming’s left-hand rule helps in this prediction. The law states that when all the index, middle fingers and thumb held and put perpendicular to one another. The index finger is representing the predetermined magnetic field direction. The middle finger will point out the direction of flowing current, and the thumb points out the direction on which the force moves the dc motor shaft.
There exists a similarity in the construction of and structure of a DC motor and a DC generator. Electrically, the two devices have different functions. In a DC motor, the input comprises of electric energy used to produce mechanical energy from the output of the engine. In a block diagram, the electrical function of a motor is represented below.
There is a voltage to its input port at a value of E, and a current I is also supplied to the port, and the two are converted into mechanical energy that outputs through the output port. A parameter K relates the input port and the output port variables.
T = KI and E = K?
Taking note of the picture drawn above, there is the conclusion that the working of a DC electrical generator is only opposite to the working of DC motor. Also, the operation of both equipment can be derived easily by port reversing.
330 0hm 3
220 0hm 3
7812 1
Systems entrench this application. An entrenched system is a combination of computers software and hardware fixed together regarding their capabilities or programs designed to carry out a particular function. Keil C51 C is the most popular compiler for the C 8051 microcontroller compiler in the world. There is no any other compiler with more features than it has. The C51 compiler is capable of translating C source file into reloadable object modules which are full of characteristic information for debugging with the µ Vision debugger or a circuit emulator. In addition to the above features, the compiler has listing files which may optionally include symbols, table and cross reference information.
Entrenched C is an extension of the programming language C to support established processor, enabling portable, efficient application programming for the entrenched system. The AT89C51 high-performance CMOS 8-bit microcomputer with 4k bytes of Flash programmable and erasable read only memory (EPROM).An Atmel’s with high density and its none volatile memory technology which is compatible with the industry standard MCS – 5 is used to manufacture the device.
Mainly designed detective device is integrated
Inside the Navigation Wheel. One detail to be taken into
contemplation is that we are not worried about the amount
Of liquor intake of the other travelers in the carriage. Also the
detection system must not be pretentious due to other
inessential elements [example: in case the car passes
near a wine factory or shop].so the sensitivity of the system must be
limited to a tiny distance
What Occurs When the Car owner is Not Drunk?
line level source
1 #include <reg51.h>
2
3 void delay (unsigned int del)
4 {
5 1
6 1 unsigned int i,j ;
7 1
8 1 for (i=0;i<deli++)
9 1 for (j=0; j<1275;j++);
10 1
11 1}
12
13
14 #define LCD_PORT P2
15
16 sbit RS = P2^0;
17 sbit RW = P2^1;
18 sbit EN = P2^2;
19
20 sbit SENSE = P1^0;
21 sbit SW = P1^1;
22 sbit RLY = P1^2;
23
24 void lcd_ command (unsigned int cmd)
25 {
26 1 LCD_PORT = (cmd & 0xF0);
27 1 RS = 0;
28 1 RW = 0;
29 1 EN = 1;
30 1 delay(1);
31 1 EN = 0;
32 1
33 1 LCD_PORT = ((cmd<<4) & 0xF0);
34 1 RS = 0;
35 1 RW = 0;
36 1 EN = 1;
37 1 delay(1);
38 1 EN = 0;
39 1 }
40
41 void lcd_data(unsigned int dat)
42 {
43 1 LCD_PORT = (dat & 0xF0);
44 1 RS = 1;
45 1 RW = 0;
46 1 EN = 1;
47 1 delay(1);
48 1 EN = 0;
49 1
50 1 LCD_PORT = ((dat<<4) & 0xF0);
51 1 RS = 1;
52 1 RW = 0;
53 1 EN = 1;
54 1 delay(1);
C51 COMPILER V9.56.0.0 MAIN
55 1 EN = 0;
56 1
57 1 }
58
59 void lcd_string(unsigned char *str)
60 {
61 1
62 1 unsigned char i = 0;
63 1
64 1 while (str[i] != ‘0’)
65 1 {
66 2
67 2 lcd_data(str[i]);
68 2 i++;
69 2
70 2
71 1 }
72
73 void lcd_init()
74 {
75 1
76 1 lcd_command(0x02);
77 1 lcd_command(0x28);
78 1 lcd_command(0x06);
79 1 lcd_command(0x0C);
80 1
81 1
82 1 }
83 void lcd_num(unsigned int num)
84 {
85 1
86 1 unsigned int d = 0;
87 1
88 1 lcd_command(0x04);
89 1
90 1 if(num==0)
91 1 {
92 2
93 2 lcd_data(48);
94 2
95 2 }
96 1
97 1 while(num>0)
98 1 {
99 2 d = num%10;
100 2
101 2 lcd_data(d+48);
102 2
103 2 num = num/10;
104 2
105 2 }
106 1
107 1 lcd_command(0x06);
108 1
109 1 }
110
111 void main()
112 {
113 1 unsigned char flag = 0;
114 1 P2 = 0;
115 1 SW = 1;
C51 COMPILER V9.56.0.0 MAIN
117 1 RLY = 0;
118 1
119 1 lcd_init();
120 1 lcd_command(0x80);
121 1 lcd_string(“ALCOHOL DETECT”);
122 1
123 1 delay(400);
124 1
125 1 while(1)
126 1 {
127 2
128 2 lcd_command(0x01);
129 2 lcd_command(0x80);
130 2 lcd_string(“ALCOHOL DETECT”);
131 2
132 2 lcd_command(0xC0);
133 2 lcd_string(“SENSING……”);
134 2 135 2 delay(300);
136 2
137 2 if(SENSE==0)
138 2
{ 139 3
140 3 lcd_command(0xC0);
141 3 lcd_string(” “);
142 3
143 3 lcd_command(0xC0);
144 3
145 3 lcd_string(“DETECTED !!!!!”);
146 3
147 3 delay(500);
148 3
149 3
150 3 flag=1;
151 3
152 3 }
153 2
154 2 else
155 2 {
156 3
157 3 lcd_command(0xC0);
158 3 lcd_string(” “);
159 3
160 3 lcd_command(0xC0);
161 3
162 3 lcd_string(“CHECK OK !!!”);
163 3
164 3 delay(500);
165 3
166 3
167 3 flag=0;
168 3
169 3
170 3 }
171 2
172 2 lcd_command(0x01);
173 2 lcd_command(0x80);
174 2 lcd_string(“ENGINE START”);
175 2
176 2 delay(100);
177 2
178 2 while(SW==1);
C51 COMPILER V9.56.0.0 MAIN
179 2
180 2
181 2 if(flag==0)
182 2 {
183 3 RLY = 1;
184 3
185 3 delay(800);
186 3
187 3 RLY = 0;
188 3
189 3 flag=0;
190 3 }
191 2
192 2 delay(800);
193 2
194 2 }
195 1
196 1
197 1
198 1 }
199
200
201
202
203
204
205
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 472 —-
CONSTANT SIZE = 89 —-
XDATA SIZE = —- —-
PDATA SIZE = —- —-
DATA SIZE = —- 9
IDATA SIZE = —- —-
BIT SIZE = —- —-
END OF MODULE INFORMATION. C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
Conclusion
An operational solution is given to develop the intellectual system for cars which will be used to observe various parameters of means of transportation in-between constant period and will conduct this data to the base unit as clarified in this paper, by by means of hardware platform who’s Fundamental is Arduino, Liquor sensor mq3, GPS & GSM module. The considered system would finish the purpose of connecting with the base station via GPS, GSM and control of various strictures. The whole Controller system has the benefit of small volume and high dependability. Forthcoming scope of this system is to manage the accidents and providing useful information about the fortuitous automobile, thereby decreasing the rate at which accidents are taking place due to drunken driving. This system takes along innovation to the current technology in the automobiles and also advances the safety features, hence evidencing to be an operational development in the motor industry.
Essay Writing Service Features
Our Experience
No matter how complex your assignment is, we can find the right professional for your specific task. Contact Essay is an essay writing company that hires only the smartest minds to help you with your projects. Our expertise allows us to provide students with high-quality academic writing, editing & proofreading services.Free Features
Free revision policy
$10Free bibliography & reference
$8Free title page
$8Free formatting
$8How Our Essay Writing Service Works
First, you will need to complete an order form. It's not difficult but, in case there is anything you find not to be clear, you may always call us so that we can guide you through it. On the order form, you will need to include some basic information concerning your order: subject, topic, number of pages, etc. We also encourage our clients to upload any relevant information or sources that will help.
Complete the order formOnce we have all the information and instructions that we need, we select the most suitable writer for your assignment. While everything seems to be clear, the writer, who has complete knowledge of the subject, may need clarification from you. It is at that point that you would receive a call or email from us.
Writer’s assignmentAs soon as the writer has finished, it will be delivered both to the website and to your email address so that you will not miss it. If your deadline is close at hand, we will place a call to you to make sure that you receive the paper on time.
Completing the order and download