Proj Sample Final Chandu Fuul Completed
Proj Sample Final Chandu Fuul Completed
CHAPTER 1
INTRODUCTION
1.1 Introduction
The Internet Of Things (IoT) is a network of interconnected computing devices
which are embedded in everyday objects, enabling them to send and receive data.For ex,
a motion sensor can be installed inside a room and program it to Switch On/Off the lights
once a person enters or leaves the room. Few applications of IoT are: Smart Watches,
Smart Air Conditioners, Automatic Street Lights.
The vehicle moving through hairpin bends are very much susceptible to accidents
due to lack of communication and zero visibility over the hairpin curves .Another major
drawback of driving in hairpin bends are Traffic Congestion which are due to
unorganized movement of vehicles. There are already numerous methodologies and
concepts which provides solution to the problem but they do have their own
disadvantages which makes them limited to use in real time. In order to provide an
optimal solution for both the above problems, we have designed a sophisticated system.
1.3 OBJECTIVES
conditions, obstacles, and potential landslide risks. Ensure compatibility with existing
vehicle systems and navigation devices, making it easy to retrofit vehicles with this
system.
1.4 SCOPE
The scope of the conflict avoidance and landslide update system for vehicles
navigating deep curves encompasses various aspects related to enhancing road safety,
mitigating potential hazards, and improving navigation efficiency in challenging terrain
conditions. The system aims to address the following key areas:
Conflict Avoidance: The primary objective of the system is to prevent collisions and
conflicts between vehicles traversing deep curves, especially in narrow or winding roads
where visibility is limited. By deploying sensors and intelligent algorithms, the system
detects the presence of vehicles approaching curves and alerts drivers to adjust their speed
or lane position to avoid potential collisions.
Landslide Detection and Prevention: Another crucial aspect of the system is the early
detection and mitigation of landslides along roadways, particularly in hilly or
mountainous regions prone to geological instability. Through the integration of landslide
detection sensors and real-time monitoring techniques, the system can identify signs of
impending landslides and activate preventive measures such as road closures, traffic
diversions, or landslide barriers to ensure driver safety.
Real-time Updates and Communication: The system provides real-time updates and
alerts to drivers regarding road conditions, hazards, and potential conflicts ahead.
presence of oncoming vehicles, and landslide risks, enabling drivers to make informed
decisions and adapt their driving behavior accordingly.
Scalability and Flexibility: The scope of the system encompasses scalability and
flexibility to accommodate varying road configurations, environmental conditions, and
traffic volumes. Whether deployed on rural mountain roads or urban streets with sharp
curves, the system can adapt its functionalities and algorithms to suit different scenarios
and user requirements.
Data Analytics and Performance Evaluation: Finally, the system includes provisions
for data analytics and performance evaluation to assess its effectiveness in reducing
conflicts, minimizing landslide-related incidents, and improving overall road safety. By
analyzing historical data and incident reports, stakeholders can identify areas for
improvement and refine the system's algorithms and functionalities over time .
1.4 APPLICATIONS
Road Safety Enhancement: The primary application of the system is to enhance road
safety by minimizing the risk of collisions and conflicts between vehicles navigating deep
curves. By providing real-time alerts and adaptive control mechanisms, the system helps
drivers avoid dangerous situations and navigate curves safely.
Navigation Assistance: The system serves as a valuable navigation aid for drivers by
providing real-time updates and recommendations regarding road conditions, hazards,
and optimal routes.
Transportation Planning and Management: The data collected by the system can be
used for transportation planning and management purposes, such as identifying high-risk
areas for road improvements, optimizing traffic flow in deep curves, and prioritizing
Tourism and Recreation: In regions with scenic mountain roads and winding highways,
the system enhances the driving experience for tourists and recreational travelers by
ensuring safer and more enjoyable journeys.
CHAPTER 2
LITERATURE SURVEY
Paper 1
In study titled "Advanced Road Safety for Ghat Roads at Hairpin Bend,"
Harshada Targe, Anushka Mahajan, Mohit Patil, Yogesh Lilake, and Vijay Sonawane
proposed a novel approach utilizing CCTV and LCD screens instead of traditional
mirrors. The methodology involved installing CCTV cameras at strategic points along
hairpin bends and displaying the live feed on LCD screens placed at crucial locations for
drivers to monitor. This innovative system aimed to provide enhanced visibility,
especially in challenging road conditions. However, the authors noted limitations,
particularly regarding nighttime visibility, where drivers could only discern the headlights
of vehicles on the LCD screen, making it difficult to determine the type and size of the
approaching vehicle. Despite this drawback, their approach signifies a step forward in
improving road safety on ghat roads, offering potential solutions for better navigation
through hazardous bends.
Paper 2
warnings, the system aimed to mitigate potential collisions, especially in challenging road
conditions. However, the authors noted several limitations. Firstly, there was a longer
waiting time for small vehicles approaching the curve, which could potentially affect
traffic flow and driver experience. Additionally, the system triggered signals even for
non-vehicle objects, potentially leading to unnecessary alerts and diminishing its
effectiveness. Despite these challenges, their sensor-based approach represents a
significant step towards accident prevention on winding roads. Further refinement and
optimization may be necessary to address the identified limitations and enhance the
system's efficiency and reliability.
Paper 3
3.
Implementation of IJSTE - Anuradha A High initial setup costs
Critical Intimation International Kasangottuwar, and reliability issues in
System for Journal of Science Trupthi Tagare, adverse weather
Avoiding Accidents Technology & Vibha T G, conditions. Additionally,
in Hairpin Curves EngineeringVOLU Priyanka N, and ensuring effective
& Foggy Areas, ME 05NOV 2018 Chaithra A communication and
timely response
mechanisms could pose
significant hurdles.
CHAPTER 3
REQURIMENT SPECIFICATION
Requirement specification, also known as documentation, is a process of jotting
down all the system and user requirements in the form of a document. These requirements
must be clear, complete, comprehensive, and consistent. A requirements specification is
consistent if no subsetof requirements within the specification conflict with each other. If
there are inconsistencies in the requirements specification, it is likely that unless detected
and corrected, the design of the product will itself contain inconsistencies.
IR Sensor
ADXL Sensor
Rain Sensor
LCD Display
Zigbee Communicator
Buzzer
Motor Gates
Arduino UNO
IR SENSOR :Infrared (IR) sensors are electronic devices that detect infrared radiation
emitted by objects. They operate based on the principle that all objects emit some level of
infrared radiation. IR sensors can be categorized into different types, including passive
infrared (PIR) sensors, active infrared (AIR) sensors, and infrared temperature sensors.
systems for motion detection. On the other hand, active infrared sensors emit infrared
radiation and measure the reflection or absorption of this radiation to detect objects. They
find applications in proximity sensing, distance measurement, and object detection.
Infrared temperature sensors measure the temperature of objects by detecting the infrared
radiation they emit. These sensors are used in industrial processes, medical devices, and
consumer electronics for non-contact temperature measurement.
IR sensors have various applications across industries. They are widely used in
security systems for motion detection, automatic lighting, and surveillance cameras. In
industrial automation, IR sensors are employed for object detection on conveyor belts and
in proximity sensing applications. Additionally, they are used in traffic monitoring
systems, retail for people counting, and in medical devices for temperature measurement.
Despite their versatility, IR sensors have some limitations. They typically have a
limited range compared to other sensing technologies. PIR sensors may be susceptible to
interference from environmental factors such as changes in temperature or sunlight.
Moreover, the accuracy of IR temperature sensors can be affected by factors like ambient
temperature and humidity.
ADXL SENSOR:
The ADXL sensor, also known as an accelerometer, is a type of sensor commonly
used to measure acceleration forces. It operates based on the principle of capacitance
change due to motion. The ADXL sensor is manufactured by Analog Devices, Inc. and
comes in various models with different features and specifications.
consumer electronics, aerospace, and healthcare. In automotive systems, they are used for
crash detection, airbag deployment, and stability control. In consumer electronics, they
are integrated into smartphones, tablets, and wearable devices for functions like screen
rotation, gaming, and activity tracking. In aerospace, ADXL sensors are utilized for
inertial navigation and vibration monitoring in aircraft. They are also used in medical
devices for monitoring patient movement and activity4.
While ADXL sensors offer many advantages such as small size, low power
consumption, and high accuracy, they also have limitations. These include sensitivity to
temperature variations, cross-axis sensitivity, and susceptibility to mechanical shock or
vibration. Despite these limitations, ADXL sensors remain essential components in
various systems where accurate measurement of acceleration is critical. Continued
advancements in MEMS technology are expected to further improve the performance and
reliability of ADXL sensors in the future.
RAIN SENSOR:
A rain sensor is a device designed to detect the presence of rain and automatically
trigger certain actions or systems in response. These sensors typically work by measuring
the conductivity of the water on their surface or by detecting changes in capacitance
caused by the presence of water.
In addition to automotive use, rain sensors have various other applications. They
are often integrated into irrigation systems to prevent unnecessary watering during
rainfall, conserving water and reducing water bills.
Rain sensors come in different types, including optical sensors, conductive sensors,
and capacitive sensors. Optical sensors use infrared light to detect the presence of water
droplets, while conductive sensors measure the conductivity of the water on their surface.
While rain sensors offer convenience and efficiency, they may have limitations
depending on their design and application. For example, some sensors may struggle to
differentiate between raindrops and other sources of moisture, leading to false activations.
Additionally, sensor accuracy can be affected by factors such as dirt, debris, or ice
accumulation on the sensor surface
LCD DISPLAY:
An LCD (Liquid Crystal Display) screen is an electronic display module and has a
wide range of applications. A 16x2 LCD display is very basic module and is very
commonly used in various devices and circuits. A 16x2 LCD means it can display 16
characters per line and there are 2 such lines. In this LCD each character is displayed in
5x7 pixel matrix. The 16 x 2 intelligent alphanumeric dot matrix display is capable of
displaying 224 different characters and symbols. This LCD has two registers, namely,
Command and Data.
Command register stores various commands given to the display. Data register
stores data to be displayed. The process of controlling the display involvesputting the data
that form the image of what you want to display into the data registers, then putting
instructions in the instruction register. In your Arduino project Liquid Crystal Library
simplifies this for you so you don't need to knowlow-level instructions. Contrast of the
display can be adjusted by adjusting the potentiometer to be connected across VEE pin.
BUZZER:
A buzzer is an electro-acoustic device that produces sound when an electrical
current passes through it. It typically consists of a coil of wire (an electromagnet), a
diaphragm, and a housing. When a current is applied to the coil, it creates a magnetic field
that attracts the diaphragm, causing it to move. This movement creates vibrations in the
FIG3.4 BUZZER
ZIGBEE COMMUNICATOR:
A Zigbee communicator is a device that enables communication using Zigbee, a
wireless communication protocol commonly used in smart home, industrial, and
commercial applications. Zigbee communicators are often used in systems that require
low-power, short-range wireless communication between devices.
Zigbee is based on the IEEE 802.15.4 standard and operates on the 2.4 GHz
frequency band. It is known for its low power consumption, low data rate, and mesh
networking capabilities, which allow devices to form self-organizing networks and relay
data over long distances by hopping through intermediate nodes.
MOTAR GATES:
Motorized gates, often referred to as motor gates or automatic gates, are gates that are
operated by an electric motor. These gates offer convenience, security, and ease of access control
for residential, commercial, and industrial properties.
EMBEDDED C:
Embedded C is a variant of the C programming language tailored for programming
embedded systems, which are microcontroller-based devices with limited resources. It
offers features like low-level access to hardware, efficient memory utilization, and
deterministic execution. Embedded C facilitates interfacing with peripherals, such as
sensors, actuators, and communication modules, while ensuringeal-time responsiveness
and reliability. Programmers use it to develop firmware for embedded systems in diverse
applications, including automotive, consumer electronics, medical devices, and industrial
automation. Its concise syntax and portability make it a preferred choice for embedded
software development, enabling efficient and robust code for resource-constrained
environments.
PYTHON:
Our project utilizes Python as the primary programming language, and to facilitate
its development, several software components are required. First and foremost, we need
the Python interpreter, which serves as the core runtime environment for executing
Python code. This can be obtained from the official Python website or through
distributions such as Anaconda, which provides additional libraries and tools. For
effective coding, we rely on an Integrated Development Environment (IDE) like
PyCharm, Visual Studio Code with Python extension, or Spyder, offering features such as
code completion, debugging, and project management.
Additionally, we utilize package management tools like pip, the standard Python
package manager, for installing and managing project dependencies. Virtual
environments, created with tools like virtualenv or venv, are crucial for isolating project
environments and managing dependencies separately. Version control is facilitated by Git,
with hosting services like GitHub or GitLab for collaborative development and version
history tracking. Testing is integral to our project, and we employ testing frameworks
such as unittest, pytest, or nose for writing and executing automated tests. Continuous
Integration/Continuous Deployment (CI/CD) tools like Jenkins or Travis CI automate the
build, test, and deployment processes. To maintain code quality, we use code analysis
tools like Flake8, Pylint, and mypy for enforcing coding standards, identifying issues, and
performing static analysis. Dependency management is handled by tools like pip-tools,
pipenv, or poetry to manage project dependencies and ensure compatibility.Lastly,
documentation is generated using tools like Sphinx or MkDocs to create clear and
1. ARDUINO UNO:
CHAPTER 4
METHODOLOGY
A methodology refers to a systematic approach or framework that outlines the
steps, procedures, and guidelines to be followed during the project's execution. It provides
a structured and organized way to plan, conduct, and complete the project successfully.
A methodology serves as a roadmap for the project, guiding the project team
through various phases, tasks, and activities. It helps ensure that the project is executed in a
disciplined and efficient manner, taking into account factors such as time constraints,
available resources, and project objectives.
HUB MODEL
IR Sensors
Accelerom
eter Zigbee
Arduino UNO
VEHICLE MODEL
LCD Display
Buzzer Zigbee
ARDUINO UNO
4.2EXISTING SYSTEM :
• Sensor-based Collision Avoidance:
Two Ultrasonic sensors are place data known distance on both side of the curve.
Ultrasonic sensors are used to determine the vehicle position. Sensor placed at two
distinct point, outputs high pulse when the vehicle passes near to them. The vehicle speed
is calculated by knowing the distance between those two points and time required by
vehicle to cover those points. When two vehicles approach the curve
simultaneously ,speed of both vehicles are calculated and vehicle with higher speed is
made to pass through the curve.
Convex Mirrors: Convex mirror is a mirror whose reflective surface is bulged so that
the incident light rays gets reflected back at a different angle. This set up is widely
used in hilly regions which reflects the image of opposite vehicle approaching the
hairpin curve.
Headlights and Horns: Both Headlight sand Horns are extensively used while driving
in hairpin curves. Headlights can be used only during nighttime by flashing on high
beams.
Limitations of Existing Systems
• Sensor based Collision Avoidance: This method offers high disadvantages to the
vehicles, climbing uphill. Priority is always given to high speeding vehicles which
will not only results in traffic congestion but, also lacks in Effective traffic
management.
• Convex Mirrors: The major drawback of this system is reflective surface gets faded as
time passes and also it is seasonal. hence, it is not compatible during night time,
foggy environment and rainy season.
• Headlights: Headlights may not be efficient method during day time.
4.3 PROPOSED SYSTEM
• Develop a real-time conflict avoidance system using Arduino Uno and IR sensors to
identify obstacles and potential conflicts on the road, especially in deep curves.
• Implement an ADXL sensor to monitor Land slides and provide drivers with
information on vehicle tilt and lateral acceleration in real-time.
• Detection of vehicles in curves and automating the vehicle operations
• Utilize an LCD display to present visual warnings and updates to the driver regarding
road conditions and potential conflicts.
• Establish a Zigbee communication network between vehicles to exchange critical
information about road conditions, obstacles, and potential landslide risks.
CHAPTER 5
DESIGN
5.1 DATA FLOW :
Flow Diagram:
1. The DFD is also called as bubble chart. It is a simple graphical formalism that can
be used to represent a system in terms of input data to the system, various processing
carried out on this data, and the output data is generated by this system.
2. The data flow diagram (DFD) is one of the most important modeling tools. It is used
to model the system components. These components are the system process, the data used
by the process, an external entity that interacts with the system and the information flows
in the system.
3. DFD shows how the information moves through the system and how it is modified
by a series of transformations. It is a graphical technique that depicts information flow
and the transformations that are applied as data moves from input to output.
4. DFD is also known as bubble chart. A DFD may be used to represent a system at
any level of abstraction. DFD may be partitioned into levels that represent increasing
information flow and functional detail.
Level 0
Level 1:
Level 2:
▶This diagram illustrates the data flow between various components of the system:
▶Sensors: Gather data about the surroundings such as distance, speed, etc.
▶ Arduino: The central processing unit which receives data from sensors, processes it,
and sends commands to signaling system and landslide detection system.
▶ Signaling System: Receives collision detection signals from Arduino and activates
signaling mechanisms accordingly.
▶ Landslide Detection System: Receives landslide detection signals from Arduino and
initiates appropriate actions.
▶Data Logger: Logs data for further analysis and monitoring.
5.3Sequence Diagram:
Sequence diagrams are sometimes referred to as descriptions of actions or activities. It
shows the messages shared between them in the order in which they occur as parallel
vertical lines (lifelines), different processes or objects that exist continuously as horizontal
arrows.
transmission.
▶ Each module has methods to detect specific events (detectCollision(), detectCurve(),
detect Landslide()), and take actions accordingly (sendWarning(), signalCurve(), notify
Authorities()).
CHAPTER 6
IMPLEMENTATION
6.1 Yolo – Object Detection Algorithm:
Deep Learning consists of a very enormous number of neural networks that use the
multiple cores of a process of a computer and video processing cards to manage the
neuranetwork’s neuron which is categorized as a single node. Deep learning is used in
numerous applications because of its popularity especially in the field of medicine and
agriculture. Here YOLO deep learning technique is used to identify persons wearing and
not wearing face masks. Joseph Redmon et al. introduced You look only once also known
as YOLO in 2015. YOLO is a convolutional neural network (CNN) for doing object
detection in real-time.
The algorithm applies a single neural net5 work to the full image, and then divides
the image into regions and predicts bounding boxes and probabilities for each region.
These bounding boxes are weighted by the predicted probabilities. Some improvements
were done over years and YOLOv2 and YOLOv3 , v5 versions were introduced
respectively in 2016 , 2018.Our model uses YOLOv5 and it provides good results
regarding object classification and detection. In the previous version of Yolov3 Darknet-
19 is used. Yolov3 uses darknet-53. Darknet is a framework used for training neural
networks written in C language
Benefits
YOLO is a popular object detection algorithm because it achieves high accuracy
while it is also able to run in real-time. The algorithm “only looks once” at the image
means that it requires only one forward propagation pass through the neural network to
make predictions. After non-max suppression it then gives the recognized objects along
with the bounding boxes. In YOLO, a single CNN simultaneously predicts multiple
bounding boxes and class probabilities for those boxes. YOLO directly optimizes
detection performance since it trains on full images. YOLO has a number of benefits over
other object detection methods they are
We use the IPs stored in the database as input for object detection module and we
use OpenCV for any image processing related tasks. For object detection we are using
pretrained YOLOv5 model trained on COCO dataset because of its high accuracy. As
showed by [8] YOLOv5 is better than previous proposed algorithms hence it is our
preferred choice of object detection model. YOLO recognizes objects more precisely and
faster than other recognition systems. It can predict up to 80 classes. It can be easily
trained and deployed in a production system. YOLO is based on a single Convolutional
Neural Network (CNN). The CNN divides an image into regions and then it predicts the
boundary boxes and probabilities for each region.
It simultaneously predicts multiple bounding boxes and probabilities for those classes.
YOLO sees the entire image during training and test time so it implicitly encodes
contextual information about classes as well as their appearance. The real-time
recognition system will recognize multiple objects from an image. The backbone of
YOLOv5 is CSPDarknet-53.
Darknet is an open-source neural network framework written in C and CUDA and it
is used to train new YOLO models and run the existing ones. After the training is done the
results are stored in a .weights file. We have converted this darknet model which is
in .weights format to a TensorFlow model in .pb format. We use this saved model for
object detection. YOLOv5 sends us the coordinates of detections along with confidence
score which we then use as input for OpenCV to draw bounding boxes on the detections
and count these detections. We count detections on every frame and the process repeated
for each frame. We also able to selective counting with help of detection boundary which
discussed below.
6.4 Data Annotation
To train YOLO we need to annotate images for object detection models. Our dataset
should be well annotated. There are different types of annotations available. Here a
bounding boxes method is used. It creates a rectangle area over images that are present in
our dataset. Since Annotation needs more time we are using a tool called LabelIMG to
annotate our data. 3.3.3 YOLOv5 Configuration The YOLOv5 configuration involved the
creation of two files and a custom Yolov5 cfg file.
Step 4: Vehicle Detected and marked by means of object detection algorithm. Step step 5:
published. We used this as reference and built a YOLOv5 social distancing model which
is capable of working on multiple architectures used in the YOLOv5 model as well on our
custom architecture (modified backbone CSP). By doing this, we have successfully
implemented the first working social distancing model based on YOLOv5 and other
supporting architectures based on YOLOv5.
Modules:
Capture the image
Classify
Else, detect vehicle in each frame and get the bounding boxes around them
with the help ofYOLOv5.
Create a results board on top of the image and display the results.
Landslide Hub :
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
#include<SoftwareSerial.h>
SoftwareSerial Serial1(6,7);
int m1=2;
int m2=3;
int m3=14;
int m4=15;
int ir1=4;
int ir2=5;
int a=0;
int k=1;
int red1=8;
int red2=10;
int green1=9;
int green2=11;
//int buzzer=17;
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_ADXL345_U.h>
Adafruit_ADXL345_Unified accel = Adafruit_ADXL345_Unified();
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial1.begin(9600);
lcd.init();
lcd.backlight();
lcd.clear();
pinMode(ir1,INPUT);
pinMode(ir2,INPUT);
pinMode(m1,OUTPUT);
pinMode(m2,OUTPUT);
pinMode(m3,OUTPUT);
pinMode(m4,OUTPUT);
pinMode(red1,OUTPUT);
pinMode(red2,OUTPUT);
pinMode(green1,OUTPUT);
pinMode(green2,OUTPUT);
// pinMode(buzzer,OUTPUT);
Serial.println("LANDSLIDE MONITORING");
lcd.clear();
lcd.setCursor(0,0);
lcd.print(" LANDSLIDE ");
lcd.setCursor(0,1);
lcd.print(" MONITORING ");
delay(500);
if(!accel.begin())
{
while(1);
}
digitalWrite(m1,LOW);
digitalWrite(m2,LOW);
digitalWrite(m3,LOW);
digitalWrite(m4,LOW);
GREEN();
}
void loop() {
// put your main code here, to run repeatedly:
ADXL();
RAIN_CHECK();
IR_CHECK();
serial_read();
}
void ADXL()
{
sensors_event_t event;
accel.getEvent(&event);
float X_val=event.acceleration.x;
float Y_val=event.acceleration.y;
float Z_val=event.acceleration.z;
Serial.print("X: "); Serial.print(event.acceleration.x); Serial.print(" ");
//
Serial.print("Y: "); Serial.print(event.acceleration.y); Serial.print(" ");
//
Serial.print("Z: "); Serial.print(event.acceleration.z); Serial.print(" ");
//((X_val>0.5 && X_val<2.0))
delay(500);
if(k==1 && (X_val>-1.5&&X_val<2))
{
a=1;
digitalWrite(m1,LOW);
digitalWrite(m2,LOW);
digitalWrite(m3,LOW);
digitalWrite(m4,LOW);
}
else if(a==1 && ((X_val<-7.50)||(X_val>7.5)||(Y_val<-7.50)||(Y_val>7.5)))
{
k=0;
a=0;
Serial1.println('L');
Serial.println("$LANDSLIDE DETECTED#");
lcd.clear();
lcd.setCursor(0,0);
lcd.print(" LANDSLIDE ");
lcd.setCursor(0,1);
lcd.print(" DETECTED ");
// digitalWrite(buzzer,HIGH);
delay(1000);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("GATES CLOSING");
Serial.println("$GATES CLOSING#");
// digitalWrite(buzzer,LOW);
digitalWrite(m1,HIGH);
digitalWrite(m2,LOW);
digitalWrite(m3,HIGH);
digitalWrite(m4,LOW);
delay(500);
digitalWrite(m1,LOW);
digitalWrite(m2,LOW);
digitalWrite(m3,LOW);
digitalWrite(m4,LOW);
delay(1000);
RED();
// lcd.clear();
// lcd.setCursor(0,0);
// lcd.print("GATES OPENING");
// digitalWrite(m1,LOW);
// digitalWrite(m2,HIGH);
// digitalWrite(m3,LOW);
// digitalWrite(m4,HIGH);
// delay(500);
// digitalWrite(m1,LOW);
// digitalWrite(m2,LOW);
// digitalWrite(m3,LOW);
// digitalWrite(m4,LOW);
// delay(1000);
}
else if(k==0&&(X_val>-1.5&&X_val<2))
{
k=1;
a=1;
lcd.clear();
lcd.setCursor(0,0);
lcd.print("GATES OPENING");
Serial.println("$GATES OPENING#");
digitalWrite(m1,LOW);
digitalWrite(m2,HIGH);
digitalWrite(m3,LOW);
digitalWrite(m4,HIGH);
delay(500);
digitalWrite(m1,LOW);
digitalWrite(m2,LOW);
digitalWrite(m3,LOW);
digitalWrite(m4,LOW);
delay(1000);
GREEN();
}
}
void RAIN_CHECK()
{
int rainval=analogRead(A2);
Serial.print("Rain:");
Serial.println(rainval);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Rain:");
lcd.setCursor(6,0);
lcd.print(rainval);
delay(500);
if(rainval<700)
{
lcd.clear();
lcd.setCursor(0,0);
lcd.print("RAINFALL IS MORE");
Serial.println("RAINFALL IS MORE");
Serial1.println('R');
delay(1000);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("GATES CLOSING");
// digitalWrite(buzzer,LOW);
digitalWrite(m1,HIGH);
digitalWrite(m2,LOW);
digitalWrite(m3,HIGH);
digitalWrite(m4,LOW);
delay(500);
digitalWrite(m1,LOW);
digitalWrite(m2,LOW);
digitalWrite(m3,LOW);
digitalWrite(m4,LOW);
RED();
delay(5000);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("GATES OPENING");
digitalWrite(m1,LOW);
digitalWrite(m2,HIGH);
digitalWrite(m3,LOW);
digitalWrite(m4,HIGH);
delay(500);
digitalWrite(m1,LOW);
digitalWrite(m2,LOW);
digitalWrite(m3,LOW);
digitalWrite(m4,LOW);
delay(1000);
GREEN();
}
else
{
digitalWrite(m1,LOW);
digitalWrite(m2,LOW);
digitalWrite(m1,LOW);
digitalWrite(m4,LOW);
delay(1000);
}
}
void IR_CHECK()
{
int irval=digitalRead(ir1);
int ir2val=digitalRead(ir2);
if((irval==LOW))
{
Serial.println("ROAD1 CLEAR");
lcd.clear();
lcd.setCursor(0,0);
lcd.print("ROAD1 CLEAR");
ROAD1();
delay(1000);
GREEN();
delay(1000);
}
else if((ir2val==LOW))
{
Serial.println("ROAD2 CLEAR");
lcd.clear();
lcd.setCursor(0,0);
lcd.print("ROAD2 CLEAR");
ROAD2();
delay(1000);
GREEN();
delay(1000);
}
serial_read();
}
void ROAD1()
{
digitalWrite(red1,LOW);
digitalWrite(red2,HIGH);
digitalWrite(green1,HIGH);
digitalWrite(green2,LOW);
delay(2500);
}
void ROAD2()
{
digitalWrite(red1,HIGH);
digitalWrite(red2,LOW);
digitalWrite(green1,LOW);
digitalWrite(green2,HIGH);
delay(2500);
}
void RED()
{
digitalWrite(red1,HIGH);
digitalWrite(red2,HIGH);
digitalWrite(green1,LOW);
digitalWrite(green2,LOW);
}
void GREEN()
{
digitalWrite(red1,LOW);
digitalWrite(red2,LOW);
digitalWrite(green1,HIGH);
digitalWrite(green2,HIGH);
}
void serial_read()
{
if(Serial.available()>0)
{
char ch=Serial.read();
Serial.println(ch);
delay(500);
if(ch=='A')
{
Serial.println("GIVEN PRIORITY FOR TRUCK");
lcd.clear();
lcd.setCursor(0,0);
lcd.print("PRIORITY FOR");
lcd.setCursor(0,1);
lcd.print("TRUCK GIVEN");
delay(1000);
lcd.clear();
lcd.setCursor(0,0);
lcd.print(" TRUCK CAN ");
lcd.setCursor(0,1);
lcd.print(" MOVE AHEAD ");
delay(1000);
if(ch=='B')
{
}
void loop() {
// put your main code here, to run repeatedly:
if(Serial.available()>0)
{
char ch=Serial.read();
Serial.println(ch);
delay(500);
if(ch=='L')
{
Serial.println("Landslide Detected");
digitalWrite(buzzer,HIGH);
lcd.clear();
lcd.setCursor(0,0);
lcd.print(" LANDSLIDE ");
lcd.setCursor(0,1);
lcd.print(" DETECTED ");
delay(2000);
digitalWrite(buzzer,LOW);
delay(500);
}
if(ch=='R')
{
Serial.println("MORE RAINFALL");
digitalWrite(buzzer,HIGH);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("MORE RAINFALL");
delay(2000);
digitalWrite(buzzer,LOW);
delay(500);
}
}
}
CHAPTER 7
PROJECT MANAGEMENT
7.1Challenges and Decision Making:
During the implementation and the execution of the proposed work, we had faced a
number
of challenges that were overcome with time. The list of all these challenges are outlined
below:
Sensor Reliability: One of the primary challenges is ensuring the reliability and accuracy
of sensors deployed for conflict detection and landslide monitoring. Decision-making
processes must account for potential sensor failures or inaccuracies to prevent false
alarms or missed events.
Data Fusion: Integrating data from multiple sensors and sources poses challenges in
terms of data fusion and synchronization. Decision-making algorithms need to effectively
combine heterogeneous data streams while minimizing latency and computational
overhead. Dynamic Environment: The dynamic nature of road environments, including
varying traffic conditions, weather patterns, and geological factors, presents challenges
for decision-making algorithms. Adaptability and robustness are essential to address
changing conditions in real time.
Uncertainty and Noise: Uncertainty and noise in sensor data can affect the reliability of
conflict and landslide detection algorithms. Decision-making processes must incorporate
mechanisms to handle uncertainty, filter out noise, and provide probabilistic assessments
of risks.
Human Factors: Incorporating human factors such as driver behavior, preferences, and
situational awareness into decision-making processes adds complexity. Decision support
systems need to account for human factors to provide context-aware recommendations
and alerts.
Scalability and Maintenance: Ensuring scalability and ease of maintenance for decision-
making systems deployed across large-scale road networks is a significant challenge.
Decision- making algorithms should be scalable, modular, and resilient to facilitate
seamless expansion and maintenance.
Risk Assessment: Identify potential risks and uncertainties associated with the project,
including technical challenges, regulatory compliance issues, and stakeholder acceptance.
Assess the likelihood and impact of these risks and develop mitigation strategies to
address them proactively.
Operational Impact: Evaluate the operational impact of the conflict avoidance and
landslide update system on existing transportation infrastructure, traffic management
procedures, and emergency response protocols. Assess how the system enhances
operational efficiency, resilience, and safety in real-world scenarios.
Scalability and Expansion: Assess the system's scalability and potential for expansion to
accommodate future growth in road networks, traffic volumes, and technological
Social and Ethical Implications: Examine the social and ethical implications of
deploying the system, including concerns related to privacy, data security, and equitable
access to transportation services. Address ethical dilemmas and social equity issues to
ensure the system benefits all members of society.By conducting a comprehensive project
analysis, stakeholders can gain valuable insights into the system's performance, viability,
and impact, enabling informed decision-making and continuous improvement throughout
the project lifecycle.
Legal and Regulatory Compliance: Ensure compliance with relevant laws, regulations,
and standards governing road safety, hazard mitigation, and data privacy. Evaluate the
system's adherence to regulatory requirements and its ability to facilitate compliance
through transparent data handling and reporting practices.
Safety Enhancement: The implementation of the conflict avoidance and landslide update
system significantly improves road safety by minimizing the risk of accidents and
collisions in deep curves. By providing real-time alerts and adaptive control mechanisms,
the system enables drivers to navigate challenging road conditions more safely and
confidently.
Reduced Traffic Congestion: The proactive measures taken by the system to prevent
conflicts and hazards in deep curves contribute to smoother traffic flow and reduced
congestion on roadways. By minimizing the occurrence of accidents and delays, the system
helps optimize traffic movement and enhance overall transportation efficiency.
Optimized Transportation Planning: Data collected by the system can be utilized for
transportation planning and infrastructure development initiatives. Insights gained from
the analysis of traffic patterns, road conditions, and safety hazards help inform decision-
making processes related to road design, maintenance prioritization, and future
infrastructure investments.
Cost Savings: While the initial investment in deploying the conflict avoidance and
landslide update system may be significant, the long-term cost savings associated with
accident prevention, reduced traffic congestion, and infrastructure preservation outweigh
the upfront costs. By minimizing the occurrence of accidents and their associated costs,
the system delivers substantial economic benefits over time.
Road Safety: The conflict avoidance and landslide update system directly addresses
contemporary concerns related to road safety by proactively identifying and mitigating
hazards such as collisions and landslides in deep curves. By leveraging advanced sensing
technologies and real-time data analysis, the system helps minimize the risk of accidents
and enhance overall road safety for motorists and pedestrians.
Traffic Management: In urban and rural areas alike, effective traffic management is a
pressing issue exacerbated by increasing vehicle volumes and limited infrastructure
capacity. The system contributes to contemporary traffic management challenges by
optimizing traffic flow, reducing congestion, and preventing accidents in critical road
segments, thereby improving overall transportation efficiency.
Natural Disaster Preparedness: With the rise in extreme weather events and geological
hazards, the need for effective natural disaster preparedness measures has become
paramount. The system's ability to monitor geological conditions and detect signs of
landslides enables proactive measures to mitigate the impact of natural disasters on
roadways, infrastructure, and public safety.
Data-driven Decision Making: In the era of big data and analytics, leveraging data-
driven decision-making processes is essential for optimizing transportation systems and
improving safety outcomes. The system exemplifies contemporary efforts to harness real-
time sensor data and advanced analytics to inform proactive decision-making in managing
road hazards and mitigating risks effectively.
CHAPTER 8
SNAPSHOTS
HUB MODEL:May face limitations regarding real-time data accuracy and
RAINFALL UPDATION :When there is a heavy rainfall, it sends data to a central hub
for analysis. The hub then updates vehicles with real-time information on areas prone to
landslides or increased risk, enabling drivers to adjust their routes accordingly.
LAND SLIDE DETECTED AND GATES CLOSED: This action aims to prevent
vehicles from entering or exiting the landslide-prone zones, mitigating the risk of accidents
or further damage
CHAPTER 9
CONCLUSION
The "Conflict Avoidance and Landslide Update System for Vehicles in Deep Curves"
project utilizes Arduino Uno, IR sensors, ADXL sensors, LCD displays, and Zigbee
communication to provide real-time assistance and updates to drivers navigating
challenging terrains. This system aims to prevent accidents, improve road safety, and save
lives while optimizing traffic flow in areas prone to deep curves and landslides.
For the driver to easily observe a vehicle approaching from the opposite direction,
convex mirrors are utilised in the existing system at curves.
This system functions fine during the day but fails miserably at night. The suggested
method makes advantage of sensors at hairpin turns, which function incredibly well at
night.
We will be able to remedy the issue by placing the sensors on either side of the curves.
The sensor sends a signal that looks like this if the vehicle is 10 metres from the bend.
The various hazardous impact of landslides on environment where studied.An efficient
environment for analyzing and displaying results with powerful set of tools.
This project aims at avoiding collision in hair pin curves as much as possible.
The system is robust in nature which includes advanced cameras and complex
calculation switch provides realtime solution for collision avoidance and traffic
congestion.
REFERENCES
[1] Harshada Targe, Anushka Mahajan, Mohit Patil, Yogesh Lilake and Vijay Sonawane,
“Advance Road Safety For Ghat Road’s At Hairpin Bend”, International Research
Journal of Engineering and Technology, Volume: 05, Issue: 01, January 2018.
[3] R. Anusha, K. Sonia, V.M.K. Vamsi Prasad and J.Raj Kumar, “ Collision Avoidance
At Hairpin Curves Using Sensors”, Journal of Emerging Technologies and Innovative
Research, Volume: 06, Issue: 04, April 2019
[6] Avinash Shetty, Bhavish Bhat, RameshaKarantha and Srinivasa Hebbar, “Smart
Transport System Signalling Sensor System Near Hairpin Bends”, International Journal
of Scientific & Engineering Research, Volume: 09, Issue: 04, April 2018
[8] P Sudarshan Duth, M Mary Deepa, “Color Detection in RGBmodeled images using
MATLAB”, International Journal of Engineering & Technology, Volume: 07, Issue: 02,
June 2018