Major Project Rectified
Major Project Rectified
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:
1
CHAPTER-2
COMPONENTS USED
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
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.
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:
2
Fig. 2.1 – Arduino Board
3
Components of Arduino Board:
ICSP pin - The In-Circuit Serial Programming pin allows the user to program using the
firmware of the Arduino board.
Power LED Indicator- The ON status of LED shows the power is activated. When the
power is OFF, the LED will not light up.
Digital I/O pins- The digital pins have the value HIGH or LOW. The pins numbered from
D0 to D13 are digital pins.
TX and RX LED's- The successful flow of data is represented by the lighting of these
LED's.
AREF- The Analog Reference (AREF) pin is used to feed a reference voltage to the Arduino
UNO board from the external power supply.
Reset button- It is used to add a Reset button to the connection.
USB- It allows the board to connect to the computer. It is essential for the programming of
the Arduino UNO board.
Crystal Oscillator- The Crystal oscillator has a frequency of 16MHz, which makes the
Arduino UNO a powerful board.
Voltage Regulator- The voltage regulator converts the input voltage to 5V.
GND- Ground pins. The ground pin acts as a pin with zero voltage.
Vin- It is the input voltage.
Analog Pins- The pins numbered from A0 to A5 are analog pins. The function of Analog
pins is to read the analog sensor used in the connection. It can also act as GPIO (General
Purpose Input Output) pins.
4
Fig.2.3- Pins Configuration of Arduino
Technical Specifications:
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 PWM pins are Pulse Width Modulation capable pins.
The crystal oscillator present in Arduino UNO comes with a frequency of 16MHz.
It also has an Arduino integrated Wi-Fi module. Such Arduino UNO board is based on the
Integrated Wi-Fi ESP8266 Module and ATmega328P microcontroller.
The input voltage of the UNO board varies from 7V to 20V.
Arduino UNO automatically draws power from the external power supply. It can also draw
power from the USB.
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
5
(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.
The NEO-6M GPS module has five major parts on the board, the first major part is the NEO-6M
GPS chip in the heart of the PCB. Next, we have a rechargeable battery and a serial EEPROM
module. An EEPROM together with a battery helps retain the clock data, latest position data (GNSS
orbit data), and module configuration but it’s not meant for permanent data storage. Without the
battery, the GPS always cold-starts so the initial GPS lock takes more time. The battery is
automatically charged when power is applied and maintains data for up to two weeks without power.
Next, we have our LDO, because of the onboard LDO, the module can be powered from a 5V
supply. Finally, we have our UFL connector where we need to connect an external antenna for the
GPS to properly work.
6
Specifications:
Receiver Type 50 channels, GPS L1(1575.42Mhz)
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.
7
Fig. 2.5- GSM Module
Specifications:
The vibration sensor module based on the vibration sensor SW-420 and Comparator LM393 is
used to detect vibrations. The threshold can adjust using an on-board potentiometer. During no
vibration, the sensor provides Logic Low and when the vibration is detected, the sensor provides
Logic High.
8
Fig. 2.6- Vibration Sensor
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 change 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:
9
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.
Specifications:
• 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
10
• Weight: 10 gm
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.
11
illuminates when it exceeds a particular threshold (which may be controlled using the
potentiometer).
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.
The Single Channel Relay Module is a convenient board which can be used to control high
voltage, high current load such as motor, solenoid valves, lamps and AC load. It is designed to
interface with microcontroller such as Arduino, PIC and etc. The relays terminal (COM, NO and
NC) is being brought out with screw terminal. It also comes with a LED to indicate the status of
relay.
12
Single-Channel Relay Module Pin Description:
2 Ground 0V reference
13
CHAPTER-3
The circuit diagram shows how the components are wired together on a breadboard. The Arduino
UNO board is powdered 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 2 and 3 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.
14
3.2 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>
15
SoftwareSerial gsmSerial(10, 11);
16
// Read the vibration sensor int
vibrationSensorValue =
digitalRead(vibrationSensorPin);
17
// Trigger the buzzer
digitalWrite(buzzerPin,
HIGH);
HIGH);
// Delay for 1
second
delay(1000);
18
}
19
CHAPTER-4
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.
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 system
20
REFERENCES
1. https://www.academia.edu/36767244/Vehicle_Security_System_using_Em
bedded_and_GSM_Technology
Vehicle Security System using Embedded and GSM Technology, April 2018
2. https://partheniumprojects.com/embedded-based-vehicle-safety-system-
using-gsm-technology/
Embedded based vehicle safety system using GSM technology, January 10,
2019
3. https://arxiv.org/abs/2101.00496
Smart Car Features using Embedded Systems and IoT, January 2, 2021
4. https://www.mdpi.com/1424-8220/22/5/1907
A Novel Prototype for Safe Driving Using Embedded Smart Box System,
March 1, 2022
5. https://ieeexplore.ieee.org/document/9038294
Improved Embedded Vehicle Safety System with STM32, March 19, 2020
21