Professional Documents
Culture Documents
Major Project Phase 1 Report-Template
Major Project Phase 1 Report-Template
BACHELOR OF ENGINEERING
in
Ayesha Mariyam
1
MUFFAKHAM JAH COLLEGE OF ENGINEERING AND
TECHNOLOGY
Mount Pleasant, 8-2-249 to 267, Road No. 3, Banjara Hills, Hyderabad - 500 034,
Telangana, State, India
CERTIFICATE
This is to certify that the Major Project Phase 2 Report on Obstacle Avoiding Robot
done by them and submitted during 2023-2024 academic year, in partial fulfilment of the
requirement for the Award of the Degree, Bachelor of Engineering in Artificial Intelligence
2
DECLARATION
This is to certify that the work reported in the Major project Phase1 entitled Obstacle Avoiding
Robot is a record of work done by MAAZ KHAN 1604-20-747-037 & ABUZAR AHMED 1604-
20-747-059 in the Department of Computer Science and Artificial Intelligence, Muffakham Jah
College of Engineering and Technology, Osmania University, the report is based on the major
project phase 2 work done entirely by our team and not copied from any other source.
By
MAAZ KHAN
(160420747037)
ABUZAR AHMED
(160420747059)
3
ACKNOWLEDGEMENT
It is indeed with a great sense of pleasure and immense sense of gratitude that, I
Firstly, I would like to thank my Head of the Department & Major Project
Coordinator, Prof. Uma. N. Dulhare for her constructive criticism throughout my Major
Project Phase 2.
Computer Science and Artificial Intelligence for his/her support in accomplishing the
Finally, I would like to take this opportunity to thank my family for their support
throughout the Major Project Phase 2. I sincerely acknowledge and thank all those who
have directly or indirectly supported me in the completion of this Major Project Phase 2.
ABUZAR AHMED
{160420747059}
4
TABLE OF CONTENTS
CONTENT PAGE NOS
ABSTRACT
LIST OF FIGURES
LIST OF TABLES
ACRONYMS
CHAPTERS
1. INTRODUCTION
1.1 Introduction
1.2 Aim & Objectives
1.3 Reason for Project
1.4 Problem Statement
1.5 Scope
1.6 Summary
2. LITERATURE SURVEY
2.1 Survey of related work (At least 7- 8 pages, discussion & table)
2.2 Benefits of Project
3. EXISTING SYSTEM
3.1 Introduction
3.2 Problem Statement
4. PROPOSED SYSTEM
4.1 Introduction
4.2 Advantages
4.3 Specifications of the Proposed System
5. REQUIREMENT ANALYSIS
5.1 Introduction
5.2 Feasibility Study
5.2.1 Technical Feasibility
5.2.2 Operational Feasibility
5.2.3 Economical Feasibility
5.2.4 Legal Feasibility
5.3 System Implementation
5.4 Functional Requirements
5.5 Non-Functional Requirements
5.6 Hardware & Software Requirements
7. DISCUSSION/CONCLUDING REMARKS
5
8. REFERENCES
ABSTRACT
Obstacle detection and avoidance can be considered as the central issue in designing mobile robots.
This technology provides the robots with senses which it can use to traverse in unfamiliar
environments without damaging itself. In this paper an Obstacle Avoiding Robot is designed which
can detect obstacles in its path and maneuver around them without making any collision. It is a robot
vehicle that works on Arduino Microcontroller and employs ultrasonic sensor to detect obstacles. The
Arduino Uno was selected as the microcontroller platform and its software counterpart, Arduino
Software, was used to carry out the programming. The integration of ultrasonic sensor provides higher
accuracy in detecting surrounding obstacles. Being a fully autonomous robot, it successfully
maneuvered in unknown environments without any collision. The hardware used in this project is
widely available and inexpensive which makes the robot easily replicable . The robot must be able to
navigate hazards and get where it is going. This study aims to examine the robot's navigational
behaviors in order to avoid obstacles.
Keywords: : Arduino Uno, Motor driver shield, Ultrasonic sensor, Servo motor, 18650 rechargable
batteries, 3cell holder, Bo motor, Yellow wheel, Hylum sheet
6
LIST OF FIGURES
7
LIST OF TABLES
8
1.INTRODUCTION
1.1 Introduction
Robot navigates using various methods which are wall-following, line following. One
of the commercial systems uses the method of wall following for a floor cleaning
robot for long hallways. A more general and commonly employed method for
avoidance of obstacle is based on edge detection. There is one disadvantage of
obstacle avoiding by using the method of edge detection which is that the robot has
to stop in front of an obstacle in order to provide a more accurate measurement.
Obstacle avoiding robot senses obstacles in front of it using sensors. A variety of
sensors are available for this purpose which includes Infrared sensor, Ultrasonic
sensors etc. Ultrasonic sensor is used to detect an obstacle ahead of it, and then it
sends information to the Arduino (microcontroller). Its cost is low. If we use IR
sensors, it detects the object’s distance with infrared radiation. When the beam
detects an object, the beam returns to the receiver. However, infrared sensors are
sensitive to external light conditions. Their detection range is short.
9
1.2 Aim & Objectives
Aim:
In mobile robotics, the goal of obstacle avoidance is generally to navigate from one location to
another while avoiding collisions with obstacles in the environment.
Objectives:
1. The objective of this project is to implement a robot car, which while moving should have the
ability to detect obstacles in its path and change direction where obstacles are present without
any form of external influence.
2. To design and make low cost & test the prototype robotic vehicle using Arduino application.
5. The goal of obstacle avoidance is generally to navigate from one location to another while
avoiding collisions with obstacles in the environment.
6. Can sense slow-moving or stationary objects when driving at low speeds. Some may even
brake for you to avoid obstacles. This feature activates at slow speeds and will provide
warnings of impending collisions.
7. An obstacle avoiding robot is a fully autonomous robot which can be able to avoid any
obstacle which it face when it move. Simply, when it met an obstacle while it moving
forward, automatically stop moving forward and makes a step back.
10. To interface the robot with a real-time system that will enables it perform assigned
tasks.
11. To achieve optimal performance from the robot and distinct quality in contrast to
other obstacle avoidance robot’s known
10
1.3 Reason for project
1) The intelligent device known as the Obstacle Avoiding Robot can detect impediments in its
path automatically and steer clear of them by turning in a different direction. The essential
necessity for any autonomous mobile robot is the ability to avoid collisions, which is made
possible by this design.
2) In smart cars it can be used to detect obstacles in front of it and turn in different directions.
3) Almost all mobile robot navigation systems can make use of obstacle avoiding robots.
5) Additionally they can be employed in hazardous conditions where human penetration might be
lethal.
6) An obstacle detection system uses ultrasonic sensors mounted on the front and/or rear
bumpers. These sensors can measure the distance between your car and nearby obstacles
directly around the front or rear bumper. The driver is alerted by beeps or the dashboard
display.
In Summary , Obstacle avoiding robot was designed, constructed and programmed which
may be potentially used for educational and research purposes. The developed robot will
move in a particular direction once the infrared (IR) and the PIR passive infrared (PIR)
sensors sense a signal while avoiding the obstacles in its path
11
1.4 Problem Statement
In the past, the rate of accidents on a typical Indian road has increased as many year passes
by and it is still rising. The major cause of these accident cases is as a result of lack of
awareness of obstacles bumps), whether it is a coming vehicle or a pedestrian or even a
domestic animal on the road and in some cases brake failure.
The study is an attempt towards developing a robotic car that would be able to detect and
avoid obstacle (bumps) in the robot’s path using a sensor to achieve the target point in an
optimized manner. With the use of an obstacle avoidance technology in the car, it will
automatically alert the driver (or even the car itself) of the obstacle ahead with a possible
means of avoiding the obstacle depending on the advancement of the technology, thus,
effectively reducing the rate of mortality on the road.
When the robot gets to an environment that it is not use to, it will stop scan through it
environment, thereby processed it to recognize any obstacle. With the use of state of art of
necessary equipment, the robot can avoid obstacle and finds a secured path thereby causing
reduction in accidents and non-avoidance of obstacles. Once the robotic car performs a task,
it will store the task which will then make it perform better when another task is given which
would be based on the updated percept (a combination on the current percept with the
information that exist in it knowledge base with an internal state).
12
1.5 Scope
This research is centred around designing an autonomous obstacle avoidance robot that would be able
to sense any obstacle in its paths, with the use of the ultrasonic sensor and then make 90˚or 180 ˚turn
to look for a free space to avoid the obstacle and resume its normal direction which is control by the
microcontroller. The research work would be limited to obstacle avoidance using robotics
The scope for an obstacle avoiding robot is broad , with applications in various fields such as
industrial automation,surveillance,and even household chores. It can be utilized for tasks like
navigating through environments,detecting obstacles using sensors, and autonomously avoiding
collisions. Aditionally , advancements in robotics and AI open up possibilities for more sophisticated
functionalities in the future.
13
1.6 Summary
* An obstacle-avoiding robot is designed to navigate its environment while avoiding obstacles .It
typically uses sensors, like ultrasonic or infrared, to detect obstacles in its path. When an obstacle is
detected, the robot adjusts its direction to avoid collisions, ensuring smooth and obstacle free
movement. This technology finds applications in various fields, including automation, robotics and
surveillance.
* Obstacle avoiding robot was designed, constructed and programmed which may be potentially used
for educational and research purposes. The developed robot will move in a particular direction once
the infrared (IR) and the PIR passive infrared (PIR) sensors sense a signal while avoiding the
obstacles in its path.
* An Obstacle Avoidance Robot is an intelligent robot, which can automatically sense and overcome
obstacles on its path. It contains of a Microcontroller to process the data, and Ultrasonic sensors to
detect the obstacles on its path.
* Obstacle avoidance is one of the most important aspects of mobile robotics. Without it robot
movement would be very restrictive and fragile. This tutorial explains obstacle avoidance using
ultrasonics sensors. This project also presents a dynamic steering algorithm which ensures that the
robot does n’t have to stop in front of an obstacle which allows robot to navigate smoothly in an
unknown environment, avoiding collisions
14
LITERATURE SURVEY
15
1. Moravec (1977) "A Robotic Vehicle that Follows Terrain.”:
Terrain-following robotic vehicle with sensor-based navigation.Real-world
terrain data for vehicle navigation.Pioneering work in terrain-based robotic
navigation.Limited details on specific datasets used.
2. Beard & McLain (1999) "A Real-Time Obstacle Avoidance Maneuver for
an Autonomous Vehicle.":
Real-time obstacle avoidance for autonomous vehicles.Simulation and real-
world scenarios for algorithm validation.Effective real-time maneuvering
around obstacles.Limited discussion on diverse environmental conditions.
Obstacle-avoiding robots offer a myriad of benefits across various sectors due to their advanced
capabilities. These robots are designed to navigate through environments by detecting and
circumventing obstacles in their path, leading to several significant advantages. The key benefits of
obstacle-avoiding robots include:
16
1. Safety Enhancement: Obstacle-avoiding robots contribute to enhanced workplace safety by
autonomously avoiding hazards and preventing potential damage to both the robot and its
surroundings. By reducing the risk of collisions and accidents in dynamic work environments, these
robots play a crucial role in ensuring the safety of both humans and equipment.
2. Efficiency Optimization: These robots offer a range of efficiency benefits by minimizing
downtime through autonomous navigation around barriers and finding the most efficient route to their
destination. Their ability to optimize work processes and reduce the risk of collisions contributes to
increased productivity and improved operational safety in diverse applications.
3. Versatile Applications: Obstacle-avoiding robots are utilized in a variety of practical
applications, including search and rescue operations, automated guided vehicles (AGVs) in
warehouses and manufacturing facilities, home cleaning robots, autonomous vehicles, agricultural
robots for field management, and even in medical applications for assisting with surgeries and patient
care. Their versatility makes them valuable across multiple industries.
4. Technological Advancements: These robots leverage advanced technologies such as ultrasonic
sensors, reactive obstacle avoidance algorithms, and machine learning to operate safely and efficiently
in dynamic and complex environments. This technological prowess enables them to interact with their
surroundings flexibly and adapt their avoidance strategies, making them suitable for diverse
applications.
17
3. EXISTING SYSTEM
3.1. Introduction
Obstacle-avoiding robot systems are designed with various features to facilitate efficient and safe
navigation in dynamic environments while preventing collisions. These systems incorporate a range
of technologies to achieve their objectives, making them ideal for applications in mobile robot
navigation systems and beyond.
2. Autonomy
Fully Autonomous Operation: Obstacle-avoiding robot systems are capable of autonomously
evading encountered obstacles and navigating towards their operational goal without human
intervention.
3. Chassis Structure
Support for Drive Motors and Sensors: These systems incorporate chassis structures that
support both drive motors and sensors, ensuring stability and optimal functionality.
18
3.2. Problem Statement
Introduction
The concept of an obstacle-avoiding robot involves the use of sensors to detect obstacles in the robot's
environment and navigate around them autonomously. These robots utilize sensors such as ultrasonic,
infrared, or laser sensors to detect obstacles and adjust their path to avoid collisions, allowing them to
move through dynamic environments without human intervention.
Key Components
19
Arduino board (e.g., Uno or Nano)
DC gear motors
Wheels
Servo motors
Chassis Additional components such as battery holders, wires, and sensor stands are also utilized in
the construction of obstacle-avoiding robots.
Functionality
Obstacle-avoiding robots operate by using sensors to detect obstacles and then adjusting their path to
avoid collisions. This autonomous navigation allows these robots to move through dynamic
environments without human intervention, making them suitable for various applications.
Potential Applications
Robotics competitions
Mobile robots for industrial or domestic tasks These robots are commonly employed in various
robotics and engineering applications due to their ability to navigate through dynamic environments
without user intervention.
The study is an attempt towards developing a robotic car that would be able to detect and avoid
obstacle (bumps) in the robot’s path using a sensor to achieve the target point in an optimized manner.
With the use of an obstacle avoidance technology in the car, it will automatically alert the driver (or
even the car itself) of the obstacle ahead with a possible means of avoiding the obstacle depending on
the advancement of the technology, thus, effectively reducing the rate of mortality on the road.
4. Proposed System
4.1. Introduction
20
The obstacle-avoiding robot system is comprised of several key components, including the Arduino
Board (UNO), motor driver, ultrasonic sensor, gear motor, servo motor, 9V battery, wheels, jumper
wires, mini breadboard, and mounting brackets. In addition to these, the system also necessitates the
inclusion of the L298N motor driver module, HC-SR04 Ultrasonic Sensor, 5V DC Motors, battery,
chassis, and wires to ensure optimal functionality.
The specific technologies employed in this proposed system encompass the Arduino microcontroller
for programming and control, ultrasonic sensors for obstacle detection, infrared (IR) sensors for
proximity detection, and the L298N motor driver module for precise motor control .
Furthermore, the system may integrate passive sensing through multiple cameras, stereo vision, and
infrared cameras, alongside active sensor technologies to facilitate comprehensive obstacle detection
and avoidance. These technologies collectively ensure the safe and efficient operation of the robot in
complex and dynamic environments, empowering it to effectively detect obstacles and navigate
around them. For more comprehensive insights into this proposed system, further details can be found
in related documents from techatronic, electronicsHub, and Instructables .
4.2. Advantages
Obstacle avoiding robots have several advantages. They are able to move autonomously while
automatically detecting and avoiding obstacles, enabling them to operate safely and efficiently in
dynamic and complex environments. These robots have the ability to read directions from QR codes,
calculate quick and accurate mapping, and navigate toward a given target. Additionally, they are more
maneuverable, have better access capabilities, and can transit energy over long distances. Obstacle
21
avoiding robots can detect impediments in their path automatically and steer clear of them, reducing
the risk of collisions and damage. Overall, they offer safe navigation, energy efficiency, and reliable
obstacle evasion, enhancing their utility in various applications.
The proposed obstacle-avoiding robot system is designed to autonomously detect obstacles and
navigate around them in dynamic and unstructured environments. The system encompasses key
components and methods for obstacle avoidance to ensure safe and efficient operation .
Key Components
The key components of the proposed system include an Arduino board, ultrasonic sensor,
motor driver module, servo motor, wheels, DC motors, chassis, jumper wires, and batteries.
These components are essential for enabling the robot to detect obstacles and autonomously
navigate around them.
The obstacle detection system in the robot works by using sensors, data structures, and algorithms to
detect objects or terrain types that impede motion. Utilizing ultrasonic sensors, LiDAR, and cameras,
the robot's perception system can detect obstacles and redirect the robot's movement away from them .
22
Methods for Obstacle Avoidance
The proposed system employs various methods for obstacle avoidance, including conventional
methods such as path planning method, navigation function method, optimal methods, as well as
reactive methods that do not require planning or mapping of the environment. Additionally, obstacle
avoidance algorithms such as the potential fields method and collision-avoidance approach are
utilized to ensure effective navigation and reaching the robot's destination.
The system incorporates proximity sensors, ultrasonic sensors, infrared (IR) sensors, LiDAR, and
cameras as typical sensors for detecting obstacles and ensuring safe navigation. Actuators such as
motor driver modules and servo motors are utilized to maneuver the robot and enable it to
autonomously navigate around obstacles.
To address the common challenges in designing obstacle-avoiding robots, the proposed system
leverages sensors and algorithms, implements coordinated obstacle-avoidance behavior, and
incorporates reactive methods for navigating around obstacles. This ensures safe and efficient
operation in dynamic and complex environments.
In conclusion, the proposed obstacle-avoiding robot system integrates essential components, obstacle
avoidance methods, sensors, and actuators to enable effective and autonomous navigation in complex
environments, addressing the challenges associated with obstacle avoidance and navigation.
--- Considering the context of obstacle-avoiding robots, the report outlines the proposed system's key
components, obstacle detection system, methods for obstacle avoidance, sensors and actuators, and
the approach to addressing common challenges in designing such robots.
23
5. REQUIREMENT ANALYSIS
5.1. Introduction
2. Key Features
Ultrasonic Sensors: These are used for detecting obstacles by emitting high-frequency sound
waves and analyzing the reflected waves to determine the presence of objects in the robot's path .
Microcontroller: Responsible for processing the sensor data and making decisions to navigate
around the obstacles.
Motor Control: Enables adjustments to the robot's direction based on the feedback received from
the sensors.
The obstacle detection system consists of sensors, including ultrasonic sensors, IR sensors, and PIR
sensors, which emit signals and measure the time for the signals to bounce back. The microcontroller
24
processes this data to determine the best course of action, while the motor control system facilitates
adjustments in the robot's direction based on the sensor feedback.
Various methods are employed for obstacle avoidance, such as reactive methods, sensor-based
approaches, path planning, motion planning, potential fields, coordination-based obstacle avoidance,
and combinations of different techniques. These methods enable effective obstacle detection and safe
navigation in diverse environments.
The typical sensor used in obstacle-avoiding robots is the ultrasonic sensor. It plays a crucial role in
enabling the robot to navigate around obstacles by detecting objects in its path.
Challenges in implementing obstacle-avoiding robots include accurate obstacle detection and distance
measurement, limitations in the field of view of sensors, efficient decision-making by the
microcontroller, optimization of robot maneuverability, sensor calibration, algorithm development for
data processing, and power management.
7. Conclusion
25
5.2. Feasibility Study
Obstacle-avoiding robots are designed to navigate through environments while minimizing collisions
and safely avoiding obstacles. These robots have the potential to find applications in various
industries, including manufacturing, agriculture, and military operations. However, before investing in
the development of obstacle-avoiding robots, it is essential to conduct a comprehensive feasibility
study to assess the technical requirements, economic considerations, practical challenges, existing
technologies, and potential applications of these robots.
Technical Requirements
The technical requirements for obstacle-avoiding robots include components such as Arduino, HC-
SR04 Ultrasonic Sensor, LM298N Motor Driver Module, 5V DC Motors, battery, and servo motors.
These robots must navigate in unknown environments by avoiding collisions through sensors and
algorithms. Additionally, the robot should be capable of balancing continuously for a certain duration,
and the choice of sensors and algorithms is crucial for effective obstacle avoidance.
Economic Considerations
The economic considerations for developing obstacle-avoiding robots involve minimizing the cost of
hardware systems like robots by avoiding "trial and error" training for obstacle avoidance, to save
time and resources. Affordable components such as Arduino, HC-SR04 Ultrasonic Sensor, LM298N
Motor Driver Module, and 5V DC Motors can contribute to cost-effectiveness. Implementing low-
cost solutions for obstacle avoidance, as well as efficiently managing the energy expenditure of the
robots, are crucial economic aspects to consider in the development process.
Practical Challenges
26
Existing Technologies for Obstacle Detection and Avoidance
The existing technologies for obstacle detection and avoidance in robotics encompass a range of
methods and sensors, including ultrasonic sensors, cameras, LiDAR, millimeter-wave radar, and
infrared cameras. Additionally, obstacle avoidance technologies can be based on global maps or
sensors, with applications of techniques like the artificial potential field (APF) method. Moreover,
these robots typically utilize modified artificial potential field (APF) methods, multi-sensor intelligent
robot technologies, and object detection and avoidance applications .
Potential Applications
The potential applications of obstacle-avoiding robots span across various industries, including
manufacturing, agriculture, military operations, and domestic chores. These robots can enhance
navigation systems in mobile robot applications, ensuring safety near machinery, performing
automated picking processes in agriculture, and assisting in various military operations.
When designing an obstacle-avoiding robot, the primary functional requirement is the ability to
navigate in an unknown environment by avoiding collisions. This entails integrating multiple sensors
to detect obstacles and ensuring the robot can find its way to move without collision. Additionally, the
robot should be capable of continuous balancing and executing commands effectively.89It is essential
27
for the robot to automatically sense and overcome obstacles on its path, making it an intelligent and
autonomous system.
The power and energy requirements for obstacle-avoiding robots are influenced by factors such as the
robot's size, the complexity of its obstacle avoidance system, and the duration of its operation. The
power supply module needs to provide the energy required for accurate obstacle avoidance, with an
average efficiency of 99.625%. Research has also indicated that energy-minimizing path planning
methods can reduce energy consumption during operation, potentially extending battery life. It is
crucial for obstacle-avoiding robots to meet these non-functional requirements to ensure the ability to
detect obstacles, navigate hazards without collision, and operate autonomously.
Obstacle-avoiding robots handle different types of obstacles by utilizing sensors like ultrasonic,
infrared, and motion sensors, along with appropriate algorithms to detect impediments and maneuver
around them without collision. Additionally, reactive methods are commonly used for obstacle
avoidance, as they do not require planning or mapping of the environment, allowing robots to
navigate dynamically changing obstacles effectively. Moreover, obstacle-avoiding robots learn from
experience, enabling them to improve their obstacle avoidance over time .
28
5.5. Hardware and Software Requirements
Hardware Requirements
The hardware requirements for an obstacle-avoiding robot typically include an Arduino board (such
as NANO or Uno), an ultrasonic sensor (HC-SR04), a motor driver module (such as LM298N), DC
motors, a servo motor (like Tower Pro SG90), and a battery to power the system. Additionally, wheels
are essential for mobility and control of the robot. These components are essential for building and
controlling the robot to enable it to detect and avoid obstacles effectively .
Software Requirements
The key software requirements for an obstacle-avoiding robot include programming for controlling
the Arduino board, interfacing with the ultrasonic sensor and servo motor, and implementing the
obstacle detection and avoidance algorithm. Additionally, the software should enable communication
between the various hardware components to ensure effective functioning of the robot.
29
In summary, the successful creation of an obstacle-avoiding robot relies heavily on the effective
integration of both the hardware and software components. Both are crucial in ensuring the robot's
capability to detect and navigate around obstacles.
Ultrasonic sensor
5V DC motors
Car chassis
Wheels
Battery
Software Components
30
Arduino to process the data
Algorithm for obstacle avoidance to enable the robot to process sensor data and make decisions to
change direction and avoid obstacles
Suitable Sensors
Ultrasonic sensors
Laser rangefinder
Lidar sensors These sensors use methods such as measuring distance using infrared light, emitting
sound waves and detecting their reflections, and using laser or light to measure distances. They are
commonly used in obstacle detection systems for robots and drones.
Bug1 algorithm
A* algorithm
Dijkstra's algorithm
Probabilistic roadmap
Cell decomposition
Rapidly-exploring Random Trees (RRT) These algorithms enable robots to navigate complex
environments, process sensor data, and make decisions to avoid collisions with obstacles .
31
Testing Procedures
For testing and evaluating the obstacle-avoiding robot's system, the following methods are
recommended:
Using ultrasonic sensors and visual information to aid obstacle avoidance These methods ensure
rigorous testing and evaluation of the robot's obstacle avoidance capabilities.
32
7. Methodology
BUG ALGORITHMS
The most basic form of Bug algorithm (Bug 1) is as follows:
33
BUG2 ALGORITHMS
34
THE POTENTIAL FIELD ALGORITHM
35
can be concluded that the APF needs to be modified in its algorithm
to pass all of the local minima problems.
36
DATASET DESCRIPTION
37
MODULE IMPLEMENTATION
CODE:-
//sensor pins
38
int distance = 100;
void setup(){
pinMode(RightMotorForward, OUTPUT);
pinMode(LeftMotorForward, OUTPUT);
pinMode(LeftMotorBackward, OUTPUT);
pinMode(RightMotorBackward, OUTPUT);
servo_motor.write(115);
delay(2000);
distance = readPing();
delay(100);
distance = readPing();
delay(100);
distance = readPing();
39
delay(100);
distance = readPing();
delay(100);
void loop(){
int distanceRight = 0;
int distanceLeft = 0;
delay(50);
moveStop();
delay(300);
moveBackward();
delay(400);
moveStop();
delay(300);
distanceRight = lookRight();
delay(300);
distanceLeft = lookLeft();
delay(300);
40
if (distance >= distanceLeft){
turnRight();
moveStop();
else{
turnLeft();
moveStop();
else{
moveForward();
distance = readPing();
int lookRight(){
servo_motor.write(50);
delay(500);
delay(100);
servo_motor.write(115);
41
return distance;
int lookLeft(){
servo_motor.write(170);
delay(500);
delay(100);
servo_motor.write(115);
return distance;
delay(100);
int readPing(){
delay(70);
int cm = sonar.ping_cm();
if (cm==0){
cm=250;
return cm;
42
void moveStop(){
digitalWrite(RightMotorForward, LOW);
digitalWrite(LeftMotorForward, LOW);
digitalWrite(RightMotorBackward, LOW);
digitalWrite(LeftMotorBackward, LOW);
void moveForward(){
if(!goesForward){
goesForward=true;
digitalWrite(LeftMotorForward, HIGH);
digitalWrite(RightMotorForward, HIGH);
digitalWrite(LeftMotorBackward, LOW);
digitalWrite(RightMotorBackward, LOW);
43
void moveBackward(){
goesForward=false;
digitalWrite(LeftMotorBackward, HIGH);
digitalWrite(RightMotorBackward, HIGH);
digitalWrite(LeftMotorForward, LOW);
digitalWrite(RightMotorForward, LOW);
void turnRight(){
digitalWrite(LeftMotorForward, HIGH);
digitalWrite(RightMotorBackward, HIGH);
digitalWrite(LeftMotorBackward, LOW);
digitalWrite(RightMotorForward, LOW);
delay(500);
44
digitalWrite(LeftMotorForward, HIGH);
digitalWrite(RightMotorForward, HIGH);
digitalWrite(LeftMotorBackward, LOW);
digitalWrite(RightMotorBackward, LOW);
void turnLeft(){
digitalWrite(LeftMotorBackward, HIGH);
digitalWrite(RightMotorForward, HIGH);
digitalWrite(LeftMotorForward, LOW);
digitalWrite(RightMotorBackward, LOW);
delay(500);
digitalWrite(LeftMotorForward, HIGH);
digitalWrite(RightMotorForward, HIGH);
45
digitalWrite(LeftMotorBackward, LOW);
digitalWrite(RightMotorBackward, LOW);
46
Obstacle-avoiding robots are undoubtedly at the forefront of automation and intelligent robotics, with
a primary focus on navigating unknown environments while autonomously making real-time
decisions to avoid collisions. These robots are equipped with features such as automatic obstacle
detection, advanced sensors, and microcontroller technologies, enabling them to detect impediments
and navigate smoothly.
The key features of obstacle-avoiding robots include automatic obstacle detection, autonomous
decision making to avoid collisions, and the ability to navigate in unknown environments. To achieve
this, they utilize a variety of sensors such as infrared sensors for obstacle detection, ultrasonic sensors
for both obstacle detection and avoidance, as well as more advanced tools like LiDAR and cameras
for enhanced navigation capabilities.
Despite their advancements, obstacle-avoiding robots face certain challenges and limitations,
particularly in navigating unpredictable environments and dealing with moving obstacles, particularly
humans. The current limitations of sensors and the need to avoid collisions with fixed obstacles
present further challenges in developing these robots.
Looking ahead, the future for obstacle-avoiding robot technology seems promising. Potential
advancements lie in the integration of advanced AI algorithms for more efficient path planning and
real-time adjustments, as well as the use of fog-based edge AI for augmenting robotic systems.
Furthermore, continuous developments in obstacle detection sensors and machine learning algorithms
are anticipated to further enhance the capabilities of obstacle-avoiding robots.
9. REFERENCES:
4. Calinon, S., Guenter, F., & Billard, A. (2007). "A Survey on Robot Learning
from Demonstrations." Robotics and Autonomous Systems.
48