You are on page 1of 5

OBSTACLE AVOIDING ROBOT USING

ARDUINO SENSOR
Amit.J. Patil1, Parth Patil2, Aniruddha Kaple3, Pratik Dhanawade4, Arvind Yadav5, Akash Shukla6
1
lecturer, 2,3,4,5,6 Students of Mechanical Engineering
BHARATI VIDYAPEETH INSTITUTE OF TECHNOLOGY, NAVI MUMBAI, MAHARASHTRA, INDIA

Abstract:
The Obstacle Avoiding Robot using Arduino
An obstacle-avoiding robot is an autonomous or semi- sensor is not only a practical demonstration of
autonomous robotic system designed to navigate its robotics but also serves as an educational project,
environment while avoiding obstacles. Equipped with providing enthusiasts and students with hands-on
sensors such as ultrasonic or infrared detectors, the experience in building and programming
robot detects obstacles in its path and employs autonomous robotic systems. The simplicity and
algorithms to adjust its trajectory or halt movement to versatility of Arduino make this project accessible
prevent collisions. The primary objective is to enable to a wide range of individuals interested in
the robot to navigate through diverse environments, exploring the exciting field of robotics. Some
including indoor and outdoor spaces, without human sophisticated algorithms enable the robot to detour
intervention. These robots find applications in various obstacles. The latter algorithms are more complex
fields, such as automation, surveillance, and since they involve detection of an obstacle as well
exploration, where the ability to maneuver around as some kind of quantitative measurements
obstacles is crucial for safe and efficient operation. concerning the obstacle's dimensions. Once these
have been determined, the obstacle avoidance
algorithm needs to steer the robot around the
Keywords: obstacle and resume motion toward the original
Arduino, Microcontroller, motor shield L293d, target. The steering algorithm ensures that the robot
ultrasonicsensor, Infrared Sensors, DC Motor, does not have to stop in front of an obstacle during
servo motor its navigation. An ultrasonic sensor is used to
detect any obstacle ahead of it and sends a
command to the microcontroller. Hence the robots
1. Introduction: may overcome some of the problems during
navigation, which are discussed above, and it can
navigate smoothly during its operation avoiding the
The Obstacle Avoiding Robot using Arduino collisions. If we were use the IR sensor Infrared
sensors is a robotic system designed for sensors detect the object's distance with infrared
autonomous navigation in environments with radiation. When the beam detects an object, the
obstacles. It leverages the Arduino platform, a light beam returns to the receiver with an angle
popular open-source microcontroller, along with after reflection there is a limitation in sensor those
sensors to detect obstacles and ensure safe limitations are Performance of IR sensors has been
traversal. The primary sensors employed in this limited by their poor tolerance to light reflections
system are often ultrasonic or infrared sensors, such as ambient light or bright object colors. No
which enable the robot to measure distances to object recognition at the dead zone area, for
nearby objects in its path. example Sharp GP2D12 IR distance sensor dead
zone between 0 to 4 cm. IR sensors also gives
Arduino serves as the brain of the robot, inaccurate detection result with transparent or
processing sensor data and executing control bright color materials. Detection results also
algorithms to make decisions on movement. depend on the weather conditions and the sensing
When an obstacle is detected, the robot's reliability of IR sensors decreases with moisture
algorithm triggers motor control mechanisms to and humidity.
adjust its course and avoid collisions. This
project showcases the integration of hardware
2. LITERATURE SURVEY
components, programming, and sensor
technology to create a cost-effective and “The collaborative efforts of various researchers
efficient obstacle-avoidance solution. have led to the development of innovative robotic
systems aimed at addressing specific challenges. actions for obstacle navigation, the robot enhances
"Line follower and obstacle avoidance bot using its adaptability and utility. The system's potential in
Arduino," authored by Khan, Dipashrisonawale, healthcare settings is highlighted, as it suggests a
focuses on creating an autonomous robot more efficient and cost-effective means of patient
capable of intelligently detecting obstacles and handling compared to traditional methods.
navigating based on user-defined actions. The
system offers an alternative approach to existing 3) COMPONENT:
methods, replacing skilled labor with robotic
machinery for enhanced efficiency, accuracy, The basic block diagram for the implementation of the
and reduced per capita cost in patient handling. project is as shown in figure1.

In the work presented by Aniket D. Adhvaryu et


al on "Obstacle-avoiding robot with IR and PIR
motion Sensors," a general wheeled autonomous
platform is proposed for educational, research,
or industrial implementation. The flexible
design allows students to learn microcontroller
programming, sensor characteristics, and circuit
design. The study emphasizes the educational
and collaborative aspects of research at the
polytechnic level, fostering the development of
communication, technical skills, and teamwork.

Vaghela et al's "Obstacle Avoidance Robotic


Vehicle Using Ultrasonic Sensor, Android, and
Bluetooth for Obstacle Detection" explores Fig 1: Block Diagram of the system
wireless gesture control of robots, highlighting
the user-friendly interface and portability of The HC-SR04 ultrasonic sensor utilizes a sonar system to
Android OS-based smartphones. The research measure distances similar to how bats navigate. This sensor is
emphasizes the ubiquity of wireless gesture capable of non-contact range detection from approximately 2
control and the need for further exploration in cm to 400 cm (1 foot to 13 feet), providing versatile
diverse applications such as home appliances, applications. Notably, its performance remains unaffected by
wheelchairs, and artificial nursing. external factors such as sunlight or the color of detected
objects. The sensor emits short, high-frequency signals, and
Lastly, Paul Kinsky and Quan Zhou, in their upon encountering an obstacle, it captures the echo signal
work on "Obstacle Avoidance Robot," introduce reflected back, interpreting it as input through the Echo pin.
additional functions to a robotic system,
incorporating a laptop holder and a camera To implement obstacle avoidance, the user initializes the
Trigger and Echo pins as low, setting the robot in forward
holder. The development board, AT89S52, is
motion. Upon detecting an obstacle, the Echo pin signals high
designed for smooth motor control, and cameras to the microcontroller. The Pulse In function is employed to
with a low cost are utilized for computer vision calculate the time taken for the signal to travel to the obstacle
calibration. The research demonstrates the and back. This function waits for the pin to go high, starts
integration of mechanical components to timing, and stops when the pin goes low, returning the pulse
enhance the robot's capabilities, including serial length in microseconds. The function considers pulses ranging
communication between the laptop and the from 10 microseconds to 3 minutes and addresses errors in
development board via USB port. shorter pulses.

After obtaining the time, it is converted into a distance.


Depending on the distance from the obstacle, the robot's speed
Collectively, these studies contribute to the is adjusted. If the distance is moderate, the robot slows down
advancement of robotics by addressing specific and takes a left turn if the obstacle is on the left side, or a right
challenges and providing insights for turn if on the right. In the case of a short distance, the robot
reduces speed, moves backward, and then turns either left or
educational The primary objective of this
right. The robot is built on an Arduino development board
project is to design an autonomous robot housing the microcontroller for effective control and execution
capable of following a line and avoiding of these operations. This design ensures an intelligent and
obstacles. The integration of Arduino as the adaptable obstacle avoidance system for the robot.
control platform allows for easy programming
and implementation. By providing user-defined
b) L298P Motor Driver Shield
Arduino board relates to DC Motor through Motor
driver board (pin10, pin11, pin12, pin13) which
provides power to the actuators. Actuators are used to
move robots in Forward, Backward, Left and Right
directions. A brief description of input pins for
movement of robot is given in above in table. The
movement of robot will stop whenever there is an
obstacle is present on its path which can be detected by
ultrasonic sensors. Ultrasonic sensors give time in
length to the microcontroller as an input for further
actions.

4) OTHER COMPONENT :

a) Ultrasonic Sensor:

Various sensors are available for obstacle detection,


with popular options being Infrared sensors (IR),
Ultrasonic sensors, Cameras for Computer Vision, and Fig: L298P Motor Driver Shield
Sonar. In the design of robots, ultrasonic sensors are
commonly employed for obstacle detection and The L298D Motor Driver Shield is an electronic
avoidance. These sensors continuously emit frequency module designed for Arduino projects, allowing the
signals, and when an obstacle is detected, the reflected control of DC motors through an H-bridge
signals are considered as input. configuration. It supports bidirectional control,
enabling motor direction and speed regulation. This
Ultrasonic sensors are versatile devices that utilize
shield is widely used in robotics and mechatronics for
ultrasonic waves for diverse applications such as
its compatibility with Arduino boards and ability to
distance measurement and obstacle detection.
handle relatively high currents..
Operating on the echolocation principle, akin to how
bats navigate, these sensors emit ultrasonic pulses and
measure the time taken for the echoes to return,
c) SG-90 Servo Motor
allowing for precise distance calculations.
Playing a pivotal role in automation, robotics, and
the gear assembly, and as the motor rotates, it turns the
various industrial applications, ultrasonic sensors offer
gear assembly, which in turn moves the servo motor shaft.
reliable and non-contact distance measurement
As the shaft moves, it changes the position of the
capabilities. As technology advances, addressing
potentiometer knob.
challenges and refining sensor designs is expected to
The potentiometer continuously generates an electrical
further enhance performance and broaden
signal based on the position of the knob. The error detector
applicability.
amplifier compares this signal with the input signal from
another source. The difference between these signals is
The core components of ultrasonic sensors include a processed in a feedback mechanism, generating an error
transducer for wave conversion and piezoelectric signal.This error signal is then fed back as input to the
crystals facilitating the transformation between motor. As a result, the motor adjusts its rotation to
electrical signals and ultrasonic waves. In practical minimize the error, causing the servo motor shaft to move
applications, these sensors are extensively used for until the desired position is reached. This closed-loop
non-contact distance measurement, obstacle detection, control system ensures precise and accurate positioning of
and industrial scenarios. Whether utilized for parking the servo motor shaft.
assistance in vehicles, measuring liquid levels in
tanks, or serving as a key element in robotics for In summary, the servo motor system utilizes a combination
obstacle avoidance, ultrasonic sensors demonstrate of a motor, potentiometer, gear assembly, and a controlling
versatility precision. circuit to achieve controlled and precise rotational
movements. The feedback mechanism involving the
potentiometer ensures that the motor continuously adjusts
its position to maintain accuracy in response to external
commands or changes in load conditions.
d) DC motor:

A Direct Current (DC) motor is a rotating electrical


device that converts direct current, of electrical
energy, into mechanical energy. An Inductor (coil)
inside the DC motor produces a magnetic field that
creates rotary motion as DC voltage is applied to
its terminal. Inside the motor is an iron shaft,
wrapped in a coil of wire. This shaft contains two
fixed, North and South, magnets on both sides
which causes both a repulsive and attractive force,
in turn, producing torque.

e) Arduino sensor: 5. RESULTS:

Arduino is an open-source electronics platform The result is obtained for obstacle avoidance robot
renowned for its integration of hardware and software using Arduino, if the robot moves forward if any
components. The hardware aspect encompasses a obstacle detect it check for other directions and
diverse array of microcontroller boards, while the moves where there is no obstacles it moves in
software provides an Integrated Development forward direction, to sense the obstacle ultrasonic
Environment (IDE) specifically tailored for sensor is used. We used servo motor to rotate the
programming these boards. What distinguishes ultrasonic sensor.
Arduino is its user-friendly interface, rendering it
accessible even for beginners and contributing to its
widespread utilization in numerous electronic
projects.

The platform empowers users to write and upload


code directly to the microcontroller, facilitating the
creation of interactive electronic devices, prototypes,
and robotics projects. This capability is particularly
advantageous for makers and hobbyists who seek an
efficient and versatile solution. Arduino's appeal
extends into educational settings, where its
accessibility and community support make it an ideal
tool for teaching programming and electronics.

In practical applications, ultrasonic sensors play a


pivotal role within the Arduino ecosystem. These
sensors, leveraging ultrasonic waves, are extensively
employed for non-contact distance measurement,
obstacle detection, and various industrial scenarios.
Whether aiding in parking assistance systems for
vehicles, measuring liquid levels in tanks, or serving
as a fundamental component in robotics for obstacle
avoidance, ultrasonic sensors demonstrate remarkable
versatility and precision.

In essence, Arduino's combination of user-friendly


features, extensive community support, and
compatibility with a wide range of sensors, such as
ultrasonic sensors, solidify its position as a go-to
platform for electronic enthusiasts, makers, educators.
6. Ming Chang, Descriptive Geometry and
6) CONCLUSION: Engineering Graphics 3 ed. Huazhong University
ofScience and Technology press, 2004.
In conclusion, the obstacle-avoiding robot represents a
successful integration of hardware and software 7. Shiquan Zhou, Fundamentals for Mechanical
components, showcasing the capabilities of Manufacturing Process in Huazhong University
of Science and Technology press, 2005
autonomous navigation in dynamic environments. By
8. Jiao Ni, Gouging Li, Qin Qian, Mechanical of
incorporating sensors such as ultrasonic or infrared Materials, Huazhong University of Science and
sensors and implementing obstacle avoidance Technology press, 2006
algorithms, the robot can detect and circumvent 9. Prajwalasimha S N, “Design And Development
obstacles effectively. The use of a microcontroller, Of Real Time Self Navigation Robot For
often Arduino, facilitates real-time decision-making Agricultural Activities”IJAREEIE,Vol 5 issue 5
based on sensor inputs, ensuring seamless and safe may 2016
navigation. 10. JETIR2106671 Journal of Emerging
Technologies and Innovative Research (JETIR)
This project not only demonstrates the practical www.jetir.org e768
application of robotics but also serves as an
educational tool for learning about sensor integration,
algorithm development, and motor control in a
tangible and interactive manner. The obstacle-
avoiding robot's adaptability to changing
environments makes it suitable for various
applications, including surveillance, cleaning, or
general-purpose autonomous navigation.

5. ACKNOWLEDGEMENT

We extend our sincere appreciation to the authors of


the diverse range of research papers that served as
valuable sources of knowledge during the preparation
of this paper. The insights gained from these papers
not only enriched the content of our work but also
provided a solid foundation for future research
endeavors.

REFERENCES:
1. Computational Engineering and Networking,
Aniket D. Adhvaryu et al “Obstacle-avoiding robot
with IR and PIR motion Sensors” IOP Conference
Series: Materials Science and Engineering, vol.
A247, pp. 529-551, April 2005.
2. Vaghela Ankit1, Patel Jigar2, Vaghela Savan3
“Obstacle Avoidance Robotic Vehicle Using
Ultrasonic Sensor, Android And Bluetooth For
Obstacle Detection” International Research Journal
of Engineering and Technology (IRJET), vol.
A247, pp. 29-32, 2005.
3. Paul Kinsky, Quan Zhou “Obstacle Avoidance
Robot” Worcester polytechnic institute.
4. Faiza Tabassum, SusmitaLopa, Muhammad
MasudTarek& Dr. Bilkis Jamal Ferdosi “obstacle
avoidance car”Global Journal of Researches in
Engineering: HRobotics & Nano-Tech.
5. Bhagya shree S R , Manoj kollam “Zigbee
Wireless Sensor Network For Better Interactive
Industrial Automation” , proc.of IEEE
ICoAC 2011,pp 304-308,2011.

You might also like