Major Project
Major Project
Major Project
Submitted for the partial fulfilment of the requirements for the degree of
BACHELOR OF ENGINEERING
in
ELECTRICAL ENGINEERING
CERTIFICATE
This is to declare project report, entitled “Vehicle Safety with Embedded System”, being
submitted for the partial fulfilment of the requirements of the Degree of B.E. (Electrical
Engineering) from the Department of Electrical Engineering M.B.M. University, Jodhpur, is a
record of the project work carried out by us under the supervision of Ms. Santosh Kumari Meena
(Assistant Professor). To the best of our knowledge, this project report has not been submitted
earlier for the award of any degree / diploma by us or any other students.
This is to clarify that these students have put in the necessary effort to understand and learn the
topic under my supervision.
Counter signed by
We are highly obliged towards all the lectures of department of Electrical Engineering for their
invaluable guidance, consistent helps & support throughout our project period.
We are also grateful to Dr. Akhil Ranjan Garg, Professor & Head, Department of Electrical
Engineering, M.B.M. University, Jodhpur for his kind cooperation and encouragement which
helped in completion of project.
Last but not the least: we would like to thank all those who helped us in completing the work.
ABSTRACT
This project aims to develop a vehicle safety system using an Arduino UNO, GPS, GSM,
vibration sensor, alcohol detector, and smoke detector. The system will monitor the vehicle for
accidents, alcohol intoxication, and smoke, and send an SMS alert with the vehicle's location to a
predefined phone number in case of an emergency.
The system works by monitoring the sensors for changes in their readings. If any of the sensors
detect an anomaly, the system will trigger the buzzer, send an SMS alert, and stop the engine.
The GPS module is used to track the vehicle's location so that the SMS alert can include the
vehicle's coordinates. The GSM module is used to send the SMS alert. The relay is used to stop
the engine.
The system was tested by triggering each sensor individually and verifying that the system
responded correctly. The system was also tested by driving the vehicle in different conditions to
ensure that it was able to detect anomalies accurately.
The vehicle safety system can help to prevent accidents and save lives by alerting the authorities
and loved ones in case of an emergency. It can also help to deter theft by stopping the engine if
the vehicle is tampered with.
The system is relatively easy to build and can be customized to meet the specific needs of the
user. It is also relatively inexpensive to build, making it a viable option for individuals and
businesses alike.
TABLE OF CONTENTS
REFERENCES
LIST OF FIGURES
1. Arduino Board
2. Components of Arduino
4. GPS Module
5. GSM Module
6. Vibration Sensor
7. Smoke Detector
8. Alcohol Detector
9. Relay Module
CHAPTER-1
INTRODUCTION
Vehicle safety is a major concern worldwide, with millions of accidents and fatalities occurring
each year. A significant number of these accidents are caused by human factors such as
intoxication, fatigue, and distracted driving. Vehicle safety systems can help to reduce the risk of
accidents by detecting and responding to hazards.
This project report describes the development and testing of a vehicle safety system using an
embedded system. The system is designed to monitor the vehicle for accidents, alcohol
intoxication, and smoke, and to send an SMS alert with the vehicle's location to a predefined
phone number in case of an emergency.
The system works by monitoring the sensors for changes in their readings. If any of the sensors
detect an anomaly, the system will trigger the buzzer, send an SMS alert, and stop the engine.
The GPS module is used to track the vehicle's location so that the SMS alert can include the
vehicle's coordinates. The GSM module is used to send the SMS alert. The relay is used to stop
the engine.
The system was tested by triggering each sensor individually and verifying that the system
responded correctly. The system was also tested by driving the vehicle in different conditions to
ensure that it was able to detect anomalies accurately.
The vehicle safety system can help to prevent accidents and save lives by alerting the authorities
and loved ones in case of an emergency. It can also help to deter theft by stopping the engine if
the vehicle is tampered with.
There are several benefits to using an embedded system for vehicle safety:
COMPONENTS USED
For the completion of this project, we need these following components-
1. Arduino Uno
2. GPS Module (e.g., Neo-6M)
3. GSM Module (e.g., SIM900A)
4. Vibration Sensor
5. Smoke Detector Module
6. Alcohol Detector Module
7. 5V Relay
8. Power Supply
9. Connecting Wires
Arduino UNO
The Arduino UNO is a standard board of Arduino. Here UNO means 'one' in Italian. It was named
as UNO to label the first release of Arduino Software. It was also the first USB board released by
Arduino. It is considered as the powerful board used in various projects. Arduino.cc developed the
Arduino UNO board.
Arduino UNO is based on an ATmega328P microcontroller. It is easy to use compared to other
boards, such as the Arduino Mega board, etc. The board consists of digital and analog Input/Output
pins (I/O), shields, and other circuits.
The Arduino UNO includes 6 analog pin inputs, 14 digital pins, a USB connector, a power jack,
and an ICSP (In-Circuit Serial Programming) header. It is programmed based on IDE, which
stands for Integrated Development Environment. It can run on both online and offline platforms.
The Arduino board is shown below:
Technical Specifications :
The technical specifications of the Arduino UNO are listed below:
There are 20 Input/Output pins present on the Arduino UNO board. These 20 pins
include 6 PWM pins, 6 analog pins, and 8 digital I/O pins.
The crystal oscillator present in Arduino UNO comes with a frequency of 16MHz.
It also has a Arduino integrated Wi-Fi module. Such Arduino UNO board is based on
the Integrated Wi-Fi ESP8266 Module and ATmega328P microcontroller.
Arduino UNO automatically draws power from the external power supply. It can also
draw power from the USB.
GPS Module (Neo-6M)
The Neo-6M GPS module is a popular and reliable Global Positioning System (GPS) receiver
widely used in various applications, from navigation devices to IoT (Internet of Things) projects.
Developed by u-blox, a leading provider of positioning and wireless communication
technologies, the Neo-6M module provides accurate positioning information to devices that
require location data. It can track up to 22 satellites over 50 channels and achieve the industry’s
highest level of tracking sensitivity i.e. -161 dB, while consuming only 45 mA current.
Unlike other GPS modules, it can perform 5 location updates in a second with 2.5m horizontal
position accuracy. The U-blox 6 positioning engine also has a Time-To-First-Fix (TTFF) of less
than 1 second.
Specification
SIM900A GSM Module is the smallest and cheapest module for GPRS/GSM communication. It
is common with Arduino and microcontroller in most of embedded application. The module
offers GPRS/GSM technology for communication with the uses of a mobile sim. It uses a 900
and 1800MHz frequency band and allows users to receive/send mobile calls and SMS. The
keypad and display interface allows the developers to make the customize application with it.
Furthermore, it also has modes, command mode and data mode. In every country the
GPRS/GSM and different protocols/frequencies to operate. Command mode helps the developers
to change the default setting according to their requirements.
The Module SIM900A looks like a single chip but it has a bunch of features that can help to
build almost many commercial applications. Although, there are a total of 68 pins on SIM900A
and using these pins helps to build the applications
The MQ-2 smoke sensor is sensitive to smoke and to the following flammable gases:
LPG, Butane, Propane, Methane, Alcohol, Hydrogen, etc
The resistance of the sensor is different depending on the type of the gas.The smoke sensor has a
built-in potentiometer that allows you to adjust the sensor sensitivity according to how accurate
you want to detect gas.
The voltage that the sensor outputs changes accordingly to the smoke/gas level that exists in the
atmosphere. The sensor outputs a voltage that is proportional to the concentration of smoke/gas.
In other words, the relationship between voltage and gas concentration is the following:
The greater the gas concentration, the greater the output voltage
The lower the gas concentration, the lower the output voltage
The output can be an analog signal (A0) that can be read with an analog input of the Arduino or a
digital output (D0) that can be read with a digital input of the Arduino.
Fig Smoke Detector
Features/Specs:
Operating Voltage: 5 VDC
Analog Output Voltage: 0V to 5V
Digital Output Voltage: 0V or 5V (TTL Logic)
Preheat Duration: 20 sec
Wide detecting scope
Fast response and High sensitivity
Stable and long life
Simple drive circuit
Circuit voltage: 5V±0.1
Heating voltage: 5V±0.1
Heater resistance: 33Ω±5%
Heating consumption: less than 800mw
Using Tem: -20℃-50℃
Length: 35 mm
Width: 20 mm
Height: 21 mm
Weight: 10 gm
Alcohol Detector Module (MQ-3)
The MQ-3 is Alcohol Sensitive Sensor that is often used in a breath analyzer.
The MQ-3 Gas Detection Sensor Module includes four pins that may be used to extract data
from the Sensor: VCC, GND, Aout, and Dout.
The MQ-3 Alcohol Sensor Module features four pins, two of which are for VCC and GND. The
other two may simultaneously output analog and digital data, much like the other basic sensor
modules. We're utilizing the Arduino's 5V pin to power the circuit since the module's working
voltage range is 5V with a 0.1 percent tolerance. The module features two inbuilt LEDs, as seen
in the figure above. When power is connected to the board, the power LED illuminates, and the
Dout LED illuminates when the potentiometer's trigger value is achieved. This board also has an
OP-Amp comparator that converts the incoming analog signal from the gas sensor to a digital
signal.
Relay is an electromechanical device that uses an electric current to open or close the contacts of
a switch. The single-channel relay module is much more than just a plain relay, it comprises of
components that make switching and connection easier and act as indicators to show if the module
is powered and if the relay is active or not.
2 Ground 0V reference
PROJECT WORK
The circuit diagram shows how the components are wired together on a breadboard. The Arduino
Uno board is powered by a 9V battery or an adapter. The vibration sensor, alcohol sensor and smoke
sensor are connected to analog pins A0, A1 and A2 respectively. The GPS module is connected to
digital pins 2 and 3 using software serial communication. The GSM module is connected to digital
pins 7 and 8 using software serial communication. The LCD display is connected to digital pins 4, 5,
6, 9, 10 and 11 using parallel communication. The buzzer is connected to digital pin 12. A 10k ohm
potentiometer is used to adjust the contrast of the LCD display.
Circuit Diagram
Project Implementation
The vehicle safety system works by monitoring the vibration sensor, alcohol detector, and smoke
detector. If any of the sensors are triggered, the system will sound the buzzer, send an SMS alert,
and stop the engine.
The GPS module is used to track the vehicle's location so that the SMS alert can include the
vehicle's coordinates. This information can be helpful to emergency responders if the vehicle is
involved in an accident.
The GSM module is used to send the SMS alert. The alert will be sent to the phone number that
is specified in the Arduino code.
The relay is used to stop the engine. If any of the sensors are triggered, the Arduino UNO will
send a low signal to the relay. This will turn off the relay, which will in turn stop the engine.
#include <SoftwareSerial.h>
CONCLUSION
In the realm of vehicle safety, embedded systems have emerged as transformative tools,
revolutionizing road safety. These technologies, showcased in our exploration of "Vehicle Safety
with Embedded Systems," are not just innovations but life-saving solutions. With their real-time
obstacle detection, collision prevention, and adaptive driving assistance capabilities, embedded
systems are shaping a safer and smarter future for transportation. Their adaptability across
various vehicles and potential for continuous advancement underline their significance. As we
move forward, embracing and implementing these technologies widely is crucial. They hold the
key to a future where accidents are minimized, lives are safeguarded, and mobility is
synonymous with safety
FUTURE SCOPE
The "Vehicle Safety with Embedded System" project has immense future potential. As
technology advances, integrating embedded systems in vehicles will redefine road safety. This
project, focusing on intelligent collision detection and adaptive cruise control, promises
enhanced safety for drivers and pedestrians alike. With the incorporation of machine learning
and real-time data analysis, it not only addresses current safety concerns but also lays the
foundation for smarter, more responsive vehicles. As the automotive industry moves towards
autonomous vehicles and sustainable transportation, this project stands at the forefront, shaping
the future of vehicular safety and smart transportation systems.
REFERENCES
Improved Water Supply Forecasts Using Soil Moisture Data / Bellingham, B. K.,
Lea, J. / Fourth International Symposium on Soil Water Measurements Using
Capacitance, Impedance and Time Domain, Montreal, Quebec, Canada
Review of research progress on soil moisture sensor technology, Limin Yu, Wanlin Gao,
Redmond R. Shamshir, Sha Tao, Yinzhou Ren, Yanjun Zhang, Guillain Su
https://en.wikipedia.org/wiki/Arduino_Uno
https://en.wikipedia.org/wiki/Soil_moisture_sensor
D. Gupta, “Capacitive v/s resistive soil moisture sensor,” 2018. [Online]. Available:
https://www.hackster.io/devashish-gupta/ capacitive-v-s-resistive-soil-moisture-sensor-
e241f2