Report Chapter Wise 1
Report Chapter Wise 1
INTRODUCTION
1.1.VEHICLE AUTOMATION
In recent decades, India has grown at such a rate that many companies have
settled here. These companies carry an enormous amount of labor. Organizing
transport on such a large mass is a heavy and complex task. Generally, this
transport is organized by contract with local transport providers on a contractual
basis. Accidents such as burglaries, rape cases, etc. recently took place. The
development of satellite communication technology facilitates the identification of
vehicle positions. Vehicle tracking systems have brought this technology into the
everyday life of ordinary people. Nowadays, the GPS used in cars, ambulances,
fleets and police vehicles are common points of view on the roads of developed
countries. All existing technology supports vehicle position and condition
detection.
The GPS GSM based system is one of the most important systems,
integrating GSM and GPS technologies. This is necessary due to the numerous
applications of GSM and GPS systems and their use by millions of people around
the world. This system, designed for users in the construction and land transport
sectors, provides real-time information such as the location, speed and estimated
time of arrival of the user who moves their vehicles in a concise and easy to use
format to read. This system can also be useful for the communication process
between the two points. This can help reduce the number of alcohol-related
accidents, identify the exact location of an accident and ensure vehicle safety.
1
1.2. IOT
The versatility of the IoT has become very popular in recent years. Having
an IoT based device has many advantages. According to the Mckinsey Global
Institute, IoT sales will reach $ 6.2 billion by 2025. Many applications are
available on the market in various fields.
1) Personal home automation system: the home automation system is the main
example in this field. Wemo Switch Smart Plug: these are the most useful devices
for connecting home devices in the switch, an intelligent socket. It connects to a
power outlet, accepts the power cord from any device and can be used to turn it on
and off by pressing a button on the smart phone.
2) Company: in the field of business, there are many applications, such as an
environmental monitoring system, an intelligent environment, etc. Nest Smart
Thermostat: is connected to the Internet. Nest automatically learns your family's
2
routines and automatically adjusts the temperature of your activities to make your
home more efficient. There is also a mobile app that allows the user to change the
temperature and times.
3) Utilities: Smart metering, smart grid and water monitoring are the most useful
applications in the various utilities.
4) Energy management: the advanced measurement infrastructure is the main
example in this sector.
5) Medical and health care: remote health monitoring and the emergency
notification system are examples of IE in the medical field.
Health Patch Health Monitor: can be used in patients who cannot see a doctor,
allowing them to obtain ECG, heart rate, respiratory rate, skin temperature, body
posture, detection falls and read their activities remotely.
6) Transport: the electronic toll system is the most useful example in this sector.
7) Large scale implementation: there are several major projects in progress in the
world. Songdo (South Korea), the first of its kind, Smart City, fully wired, is
nearing completion. Everything in this city is expected to be wired, connected and
transformed into a data stream that would be monitored by a set of computers
without any human interaction.
Another example is the Sino-Singaporean work in the city of knowledge of
Guangzhou on improving air and water quality. The French company Sigfox began
building an ultra-narrowband wireless data network in the San Francisco Bay Area
in 2014.
Another example is New York Waterways in New York to connect all their
ships and monitor those 24 hours a day, 7 days a week. These are great
applications on the market that rely on IoT. This world will become a better place
to live with more communication with everyone. In the near future, a large number
of devices connected to the Internet and provide large facilities to the world.
3
1.2.3 Future Scope of IOT
1.3. PIC
Table.no:1.3
4
In addition to the normal microcontrollers, the PIC family supports more functions.
So we chose PIC 16F877 as the main controller.
5
1.3.3 Peripheral Features:
6
CHAPTER 2
LITERATURE SURVEY
2.1. INTRODUCTION:
Title: Iot-Bas Accident Prevention And Monitoring System For Night Pilots
Author: Aishwarya S.R, Ashish Rai, Charitha, Prasanth M.A, Savitha S.C
Departure. ECE
Description: Fatal road accidents can be easily avoided by understanding the
psychological status of drivers. Most road accidents occur during night driving due
to the drowsiness of vehicle drivers (subject). This document provides. Blink Eye
Monitoring System (EBM) that warns the subject in case of drowsiness. An
integrated system based on the psychological state of the subject by monitoring the
movements of the eyes and head is useful to warn drivers during the initial phase
of the sleepiness cycle. The physiological analysis of the subject's sleep status can
be determined by monitoring the subject's intermittent speed using an infrared
sensor and head movement using an accelerometer. A normal flashing frequency
has no effect on the system output. However, if the subject is in an extreme sleep
cycle state, the IR will detect an abnormal heart rate and an alarm will be triggered
to reactivate the subject. The sensors activated by the Internet of Things (IOT) are
used to transmit all the data collected by the sensors over an intelligent network so
that the rapid response team can intervene in the event of an emergency.
Published in: International journal of innovative research in computer engineering
and communication (ISO 3297: 2007 certified organization), Vol.3, Number 4,
April 2015
9
2.6. BIBLIOGRAPHIC SURVEY - 5
10
CHAPTER 3
EXISTING SYSTEM
3.1 INTRODUCTION
Deaths due to motor vehicle accidents due to driving drowsiness and failure
to fasten the seat belt increase significantly. In this system, the NeuroSky Mind-
wave helmet is used to capture different levels of electroencephalogram (EEG)
where the car does not work unless the driver fastens the belt and the driver is in
alarm if drowsiness is detected. In addition to this, an electrical limit circuit is
designed and fixed between the seat belt and the ignition system to control engine
start. Finally, Ardium microcontroller with its software is used as a signal
processing unit to control the car security system. The experimental results show
that the system is able to improve driver safety with precision.
The car's safety system has been designed with an accuracy of 90%. It is expected
that this system will significantly reduce traffic accidents and fatal accidents. The
system also ensures that drivers comply with safety regulations, for example,
11
fasten seat belts and stay awake while driving.Although many systems have been
designed to detect drowsiness, the advantages of the proposed system are:
• The system is compact, so it can be installed on any type of vehicle.
• Inexpensive because the complete system will not cost more than $ 300.
• Superior accuracy, since the system depends on the signal of the mental wave
rather than the movement of the head or eyes.
• More security in which the system will alert drivers who are sleeping and the
surrounding driver.
Easy to solve when the system is simple and composed of a few components
Simple sensors can be installed inside vehicles with various features such as
automatic collision notification, vehicle safety, speed control, which can boost an
effective road safety system. The features proposed in this work are the automatic
collision notification that informs the victim's relative, the traffic control at the red
light ensures that the vehicle will not break the signal, the speed control changes
the speed in different zones, the control of the horn prevents the horn in the
forbidden area, alcohol detection detects impaired driving and vehicle safety is
used to prevent theft.
The requirement for embedded systems is the need of the moment in developing
countries and, especially with the obscure statistics of our country, the need is
imminent. Therefore, the integration of these features should be mandatory in all
cars in the near future, without affecting the pockets of the customer or the
manufacturer.
12
The features added in this work are:
Vehicle speed control in variable areas- in this function, the vehicle speed is
controlled in different areas, such as air bridges, highways, schools, cities
and inland areas.
Checking the vehicle horn in a forbidden area - Check for unwanted noise in
forbidden areas such as hospitals, public libraries, courts, schools, etc.
Red light traffic control - In this function, the vehicle is controlled by traffic
lights; when the signal is red, the vehicle stops automatically.
Automatic collision notification - In this function, when a vehicle encounters
an accident, the system of this project sends messages (SMS) via a GSM
modem to the control center and to the victim's closest relative.
Vehicle safety - In this function, if the vehicle is stolen or someone tries to
enter, the theft sensor is activated and a message is sent to the police control
room and to the owner, if the vehicle is connected via a GSM modem
Alcohol control: the alcohol sensor prevents the ignition key from working if
the driver breathes and detects a significant amount of alcohol. Therefore,
the message is sent to the RTO.
1. Environment:
In fact, it is not possible to show the demonstration of this project on the roads.
Motorways that use a real vehicle because the actual internal circuit of a car cannot
be modified except by the company. Therefore, the decision is taken to prove in
the college corridor. A miniature car is used with the receiver circuit placed on it
and the transmitter with a range of 10 feet to implement various features of the
project.
13
2. Collision detection:
For collision detection, the bumper switch is used. The bumper switch is set
to "ON" and "OFF". The voltage that activates the bumper switch is around 144 g.
When activated, i.e. in the event of a collision, it sends a binary 1 signal to the
microcontroller, stopping the car and displaying "Collision detected" on the screen.
The SMS is sent to the pre-fed number. In real life, text messages would be sent to
the person closest to the person and to the control room with the vehicle's GPS
position.
On the transmitter circuit, a red LED is used to indicate a red road sign.
When switched on, i.e. when the switch is turned on to display the red light status,
the signal is transmitted to the receiver which is transmitted to the microcontroller
on the receiver circuit. The car remains in the off position as long as the red light is
on.
To control the speed of the miniature car, the relays were used to control the
engine. In a normally closed state, the car is driven by all 12 V of the engine. In the
normally open state, the car is stopped because the engine is brought to 0. The
engine will run at 6 V if the speed limit condition is transmitted. The transmitter
sends a signal that warns that the speed limit of this zone is 40 km / h, for example.
The car initially rolls at full speed. When this condition is transmitted, the receiver
receives the signal, transmits it to the microcontroller which then commands the
relay to reduce the motor speed. Therefore, the small machine rolls at a speed
significantly lower than the initial speed. In the code written to run the
14
microcontroller, to test this function, 40 km / h and 20 km / h were used as an
example.
6. Detection of alcohol:
To test this function, the MQ3 alcohol sensor is exposed to a liquid solution
containing at least 30% alcohol. If the buzzer sounds, the buzzer sounds, the car
stops and "SMS to R.T.O" appear on the LCD display. The SMS is sent to the pre-
powered number for this function via GSM. The "Alcohol Sensed" message also
appears on L.C.D.
The encoder will be informed that this is a forbidden zone, so that the
transmitter transmits the RF signal without any indication condition, such as speed
limitation, etc. The RF receiver will receive the signal that the decoder will decode
and give to the microcontroller. A car horn will be installed in the miniature car to
replace the horn. If the buzzer is active and the horn inhibit condition is
transmitted, the sound will not be emitted. Latitudes, fainting can persist for hours
15
3.2.3. Detection of Alcohol for the Car Blocking System
In this prototype project, we will try to develop a locking system for cars so
that it cannot start without an alcohol control mechanism. The system will use an
existing alcohol sensor. This is aimed at ongoing efforts to develop accident
prevention systems, hoping to apply them in real life to increase road safety.
16
CHAPTER 4
PROPOSED SYSTEM
17
4.3. BLOCK DIAGRAM
18
4.4. FACTORS OF OUR CONSTRAINTS
A. Accident prevention
B. Information on the accident
This system includes various automatic sensors that can accurately predict
the planned structure. The list of sensors used for this purpose is followed below,
1. Acceleration sensor
2. Panic switch
3. RFID reader
4. Alcohol sensor
5. LDR
19
4.4.2. Panic Switch
A button that is used with the desired operation, for example by pressing it,
disconnects the power supply or activates the power supply. Here we use this type
of buttons that will be used to create a panic alarm using the ringtone. So with this
feature, we could protect people from emergencies like robbery, attempted rape in
the case of women, pedophilia, etc.
The function of an RFID reader is to query the RFID tags. The interrogation
medium is wireless and because the distance is relatively short; a line of sight
between the reader and the headlights is not necessary. A reader contains an RF
module that serves as both a transmitter and a receiver of radio-frequency signals.
The transmitter consists of an oscillator to create the carrier frequency; a modulator
for imposing data commands on this carrier signal and an amplifier for amplifying
the signal sufficiently to reactivate the tag. The receiver has a demodulator to
extract the returned data and an amplifier to increase the signal to be processed. A
microprocessor is the control unit that uses an operating system and a memory to
filter and store data. The data is now ready to be sent to the network.
The MQ-4 gas sensor is designed with a sensitive material, sno2, which has
a lower conductivity in clean air. When the target fuel gas exists, the signal
conditioning circuit is used to convert the conductivity variation to match the
output signal to the input gas concentration. The MQ-4 gas sensor has a high
sensitivity to LPG, propane and hydrogen. It can also be used for methane and
other combustible vapors. It is economical and suitable for different applications.
20
The MQ-4gas module is mounted on a printed circuit with an operating voltage of
5 VDC. The sensor output values can be obtained both analogue and digital. Here,
we use this sensor to detect the presence of alcohol inside the car knowing the
people in front of it.
4.4.5. LDR
At the end, placing a sensor applicable to the vibration that could generate
pulses if the vibrations are applicable Cesenaicians rays. And they, the information
are transmitted by the emergency team composed of the police, the ambulance and
their relatives, as well as the GPS position.
1. Vibration Sensor
2. GPS and GSM
21
4.4.1. Vibration Sensor
The GSM and GPS module is used for the information purpose that to detect
and communicate the vehicle own geographical position. The GPS helps to track
the location of the vehicle and GSM to send SMS acknowledgement to the nearby
emergency services such as hospitals, police stations and also for relatives if any
collision occurs.
22
CHAPTER 5
HARDWARE DESCRIPTION
The PIC 1650 is a card based on the PIC 16F887A microcontroller the
PIC16F887 has 256 bytes of data EEPROM memory, auto-programming, an ICD,
2 comparators, 14 ADC (A / D) 10-bit channels, an acquisition / functions of
comparison / PWM and an improved acquisition / comparison functions / PWM, a
synchronous serial port that can be configured as a peripheral 3 device (SPI ™) or
2-wire IC bus interface (I²C ™) and an advanced asynchronous universal
transceiver ( EUSART). All these features make it ideal for more advanced A / D
applications in automotive, industrial, domestic or consumer applications.
23
5.1.1. Programmation
On Rev2 or later boards: there is a resistance that draws the HWB 8U2 /
16U2 line to the ground, facilitating the insertion of the DFU mode.
You can then use Atmel's FLIP software (Windows) or the DFU programmer (Mac
OS X and Linux) to load the new firmware. Or you can use the ISP header with an
external programmer (overwriting the DFU boot loader). Check out this user-
provided tutorial for more information.
5.1.2. Attention
The PIC 1650 is equipped with a resettable octopus that protects the
computer's USB ports from short circuits and over current’s. Although most
computers offer their own internal protection, the fuse offers an additional level of
protection. If more than 500 m A is applied to the USB port, the fuse automatically
interrupts the connection until the short circuit or overload is eliminated.
24
5.2. LIQUID CRYSTAL DISPLAY (LCD)
The LCD used in this project is 16x2. A liquid crystal display (LCD) is a flat
screen, an electronic display or a video display that uses the light modulation
properties of the liquid crystal. Here we will use an alphanumeric 16x2
monochrome LCD, shown in Figure 5.2 (a). 16x2 means that it is possible to
display 16 characters in each of the 2 rows of the 16x2 LCD display, so it is
possible to display a total of 32 characters at any time.
25
Material Required
• 16x2 LCD
• PIC MICROCONTROLLER
Vibration sensor
• RFID
• MQ4 sensor
• Transformer
In recent years, the LCD display has been widely used to replace LEDs
(seven-segment LEDs or other multi-segment LEDs). This is due to the following
reasons:
The LCD screen described in this section has 14 pins. The function of each
spindle is shown in the following table.
R / W read / write:
The R / W input allow the user to write information on the LCD screen or
read the information from it. R / W = 1 during playback; R / W = 0 during writing.
Is active:
The activation pin is used by the LCD display to block the information
presented to its data pins. When data is supplied to the data pins, a downward pulse
must be applied to this pin so that the LCD displays data on the data pins. This
pulse must have a minimum width of 450ns.
D0-D7:
The 8-bit data pins, D0-D7, are used to send information to the LCD screen
or to read the contents of the LCD's internal registers.
To display letters and numbers, we send ASCII codes for the letters AZ and
numbers from 0 to 9 to these pins by taking RS = 1. There are also instruction
codes that can be sent to the LCD screen. to clear the display, to force the cursor to
move to the initial position or to make the cursor blink. The table lists the
command codes.
We also use RS = 0 to check the busy indicator bit to see if the LCD screen
27
is ready to receive information. The busy indicator is D7 and can be read when R /
W = 1 and RS = 0, as follows: if R / W = 1, RS = 0. When D7 = 1 (occupancy
indicator = 1), the screen The LCD is handling internal operations and will not
accept new information.
STEP 1: Identify
Determine what you want. LCDs are available in many types and are
specified as 16x1, 16x2, and 20x2 in AxB format where A is the number of
columns (chatter) and B the number of lines (lines). You can also reactivate an
LCD screen.
STEP 2: Connect
STEP 3: Interface
Now connect the RS, RW, E, and D0 - D7 pins to the microcontroller pins.
Suppose we connect the data bus to port A and to the RS, RW, E connectors on
port B. (It is possible to save the pins using the LCD display with Nibble mode (4-
pin data) and ground permanently on the RW line in write mode) We will now see
how to switch from simple activation to graphics on the LCD screen.
1. Sharpness: the image is perfectly sharp at the native resolution of the panel.
2. Geometric distortion - No geometric distortion at the native resolution of the
28
panel.
3. Brightness: a high maximum intensity produces very bright images.
4. Screen shape - The screens are perfectly flat.
5. Thin physics, with a small footprint. Consume little electricity and little heat.
Peripheral Features:
Core Features:
29
5.3. CIRCUIT DIAGRAM
30
Thus the Fig.5.1. Shows the circuit diagram for IOT based accident information
and precaution system which performs with the pre-programmed structure which
will reduce the complexity and safeguard people from short span of time.
As the GPS system which gets tracking over a latitude and longitude of the
system where the device gets fixed over it. Here the GPS gets utilized over the
same purpose of gathering the live locations which could predict the current
location and GSM system which interlinked over a GPS which could send the
requested draft to the respective which is feeder over the embedded program.
This system gets connected over the PORT C-C6 pin where these data could be
managed in case of this purpose needed by the PIC Microcontroller then signal
given to it and message to them along with the GPS locations.
31
5.3.3. DC Motor Drive
This is application oriented with car driving system where the speed of the
car gets varied with acceleration potentiometer called POT, which gets
connected to the solid state drive through which the motor connected. Now the
POT gets varied which gets sensed over the solid state drive where the signal
gets monitor by the PIC microcontroller interlinked over the PORT C-C1 pin.
Like DC motors which draw 12v DC with speed of 100rpm gets feeder by
the PCB board output pins. When speed goes beyond 75kms (i.e. Speed >
75kms), then the buzzer with annoying sound alarms the driver to control the
speed limit.
As the LCD Display used to act as an output system which indicates the
performance and operation of the system. As the LCD screen shows the status
of each sensors and driver or a person could see the results by his/her naked
eyes. Where PORT D-D0 to D7 pins are connected to the data input pins of the
display and the power supply gets fetched from the PCB itself.
32
a grand output of (=>0.15v) measured value over the sensor to show that the
accident has been happen.
This is connected over A1 pin, which could detect when the RFID access
gets activated. As it is placed over two various places. At the driver seat, if the
alcohol sensor senses (>750ppm) then the person might be banned to drive the
car and signal sensed by the PIC microcontroller unit turn off the ignition
permissions with the message displayed over the LCD that “you have consumed
alcohol. Please come back after”. At the passenger seat, if the alcohol sensor
senses (>750ppm) then the alert the driver with the message “please drive
carefully”.
As the light dependent resistor gets connected over the A7 pin which could
proceed the low/high the source which gets connected to it. When the light rays
fall on the sensor, then the signal sends to the PIC microcontroller then by
means of relay it gets lower the source by varying the resistance. It gets
operates over 3.5v DC which performed over flow of process.
5.3.8.SOS Switch
This sensor gets connected over the A6 pin which when pressed digital
signal gets flow through the PIC microcontroller which will send an alert
message along with the GPS location. As this switch operates at 5v DC supply
which get fed by PCB output pins supply, which ensures the safety to the car
system.
33
5.4. FLOWCHART
START
If Access No
granted car door cannot be unlocked
Yes
Yes
If the driver
consumed The engine cannot be turn on
alcohol
No
34
A
If the No
passenger LCD display alert message
consumed
alcohol
Yes
No
If the vehicle
exist its speed
limit The buzzer will not activate
Yes
Accident detection of
vehicle
35
B
Yes
Accident Message to their respectives with
occured the GPS location
No
SOS Operation
Yes
If SOS Buzzer activate and SOS
switch message sent to respective GPS
pressed location
No
Stop
36
CHAPTER – 6
6.1 RESULT
In this project RFID Reader, Speed, Light dependent resistor, Panic switch
and the Alcoholic detection 1(driver) & 2(passenger) are measure and monitored
continuously by a processor through appropriate sensors by the processor is shown
in the figure6.1
Thus the above fig.6.1 shows the system gets ready with the sensing
applications which gathers data by means of signals get controlled and operated
based on the programs fed to the PIC microcontroller.
37
6.1.1. Radio Frequency Identification Detection
38
6.1.2. Dc Motor Setup
A speed vary knob or POT gets connected to dc motor through solid state
drives which controls by using relay value.
A speed can be monitored on LCD display it can be shown in figure 6.3.
6.1.3. Buzzer
It operates when their speed reaches above 75km and produce annoying
sound.
A speed can be decreased than 75km the annoying sound can be stopped.
39
Sensor 2 is placed in nearer seat, if person consumes alcohol it can be
detect of alcohol consumption is shown in figure 6.4(c) and the setup will
stop 2 sec and retains to original state with alert message of drive
carefully is shown in figure 6.4(d).
40
Fig.6.4. (c) Alcohol sensor 2 detection
41
6.1.4. LDR Monitoring
42
6.1.5. Vibration Sensor
44
6.1.7 GSM Module
45
CHAPTER 7
CONCLUSION
Most cases of accidents area unit by car. The severities of those accidents
are increased because of the absence of high speed or by the usage of alcoholic
drinks or high beam of opposite vehicle at driving time and security for human
or vehicle. In our project we have a tendency to develop an electronic smart
accident information and precaution for vehicle that checks the RFID tag,
drunken driving, high speed at driving, car accident, high beam of opposite
vehicle and manual safety security switch.
The proposed approach makes it mandatory for the driver to use this
protective guard in order to drive a car and ensure the safety of the human or car
and therefore reduces the risks of injuries and deaths in case of an accident.
Most of the accidents occur outside the cities are due to drunken driving and
high speed is adopted to avoid these fatalities in highways. In Indian road
system, widening of the road is not an alternative solution to avoid traffic in
such a cities.
46
CHAPTER 8
REFERENCES
[3] Ying Xu, Dajun Yue, Yang Zhao. Research on Overtaking Safety in
Vehicle Assisting Determination System[J]. Agricultural Equipment &
Vehicle Engineering, 2010.
[6] M.P. Manser, P.A. Hancock. The influence of perceptual speed regulation
on speed perception, choice and control: tunnel wall characteristics and
influences. Accident Analysis and Prevention, Vol. 39, 2007, pp.69–78.
[7] http://articles.timesofindia.indiatimes.com/20-08-17/india/28181973_1
48