Projects 2
Projects 2
Abstract
This project is aimed at implementing an obstacle avoidance robot using
ultrasonic sensor mounted on a servo motor for its movement and
navigation without damaging itself. Atmega 328P microcontroller is
used to achieve the desired operation and Arduino software was used
to carry out the programming. The word “Robot” simply means any
man-made machine that can perform work or other actions normally
done by humans, either automatically or by remote control.
Robotics is the blend of computational intelligence and physical
machines (motors). In this project differential drive method will be
used as the obstacle avoidance algorithm and the algorithm is
implemented in the main microcontroller which is on the mobile robot.
The Algorithm implemented is used to avoid the obstacle and to drive
the robot to a locally generated goal. The use of servomotor provides
great precision rotation as a scanner mechanism for the ultrasonic
sensor. This autonomous robot, successfully maneuvered in
any given environment without collision, the hardware used in this
project is commonly available and inexpensive which makes the robot
easily replicable.
Historical Milestones: Advances like the mobile nursing robot (1988) and
sensor- driven navigation have revolutionized robotic capabilities.
Types of Robots:
3.Components of Obstacle Avoidance Robots
4. Motor Driver
The motor driver is based on the L298 motor shield, designed for
driving DC and
stepper motors. This module addresses the insufficient voltage and
current supply of the Arduino by amplifying its output to drive the
motors effectively. The Arduino
sends commands to the motor driver, which then controls the motors
to move in
the desired direction.
The microcontroller connects the ultrasonic sensor, servo motor, and
motor driver
in a coordinated system. It reads digital inputs from the
ultrasonic sensor, processes them, and sends signals to the motor
driver and servo motor. The
ultrasonic sensor emits sound waves, detects echoes from objects
within a specific
range, and calculates the time for the signal to return. Using this
data, the microcontroller determines the distance of obstacles,
enabling the robot to move right or left to avoid collisions.
5. Acrylic Sheet
Acrylic sheets are used to construct the robot's body due to their
excellent physical properties and performance characteristics.
Lightweight yet highly durable, acrylic sheets also provide excellent
insulation, protecting the robot's electronic and electrical
components from potential electrical hazards
.
6. Wheels
Wheels form the final stage of the drivetrain, providing the primary
means of propulsion for the robot. Larger-diameter wheels cover more
distance per motor
revolution compared to smaller ones, resulting in greater speed at the
same motor RPM. The choice of wheel size directly affects the
robot's speed and range,
Figure 5: Wheels
4. Methodology
This research focuses on the hardware and software
implementation for an obstacle-avoidance robot. The methodology
includes designing, assembling, and programming the robot using
specified components for efficient obstacle detection and avoidance.
1. Hardware Implementation
The hardware implementation is based on carefully selected
components to meet the requirements of the ultrasonic
sensor and robot specifications. These
components include the Arduino Uno microcontroller, ultrasonic
sensor, motor
driver, servo motor, lithium battery, acrylic sheets, and wheels.
5. Reading Digital Input: It processes the digital signals received from the
ultrasonic
sensor, which detects obstacles.
2. Sending Control Signals: It sends commands to the motor driver for the
correct
positioning of the servo motors, ensuring accurate robot navigation.
4.1.2 Motor Driver:
10 cm
For example, if the object is 10 cm away from the sensor as shown in figure 8, and the speed of the sound is
340 m/s or 0.034 cm/μs the sound wave will need to travel about 294μ seconds.
Distance =
294μs
Speed
That is, Time = =
10
0.034
Figure 9: The flow chart representation for an obstacle
avoidance robot.
9V
MOTOR 1
ULTRASONIC
SENSOR
MCU MOTOR
MOTOR 2
ATMEGA DRIVER
MOTOR 4
A Testing of Equipment
Electronic test equipment’s are used to create signals and capture responses from the device under test.
There are various types of test equipment used during for this research work. The following are the type of
test tools used to create stimulus for the circuit under test.
i. Power supply unit.
ii. Signal generator.
iii. Pulse generator.
While digital multi-meter was used to capture the responses from the test conducted.
6.0 Conclusion
The implementation of obstacle avoidance was constructed with the aid of an ultrasonic sensor that helps to
sense the environment and giving back report to microcontroller (Ardino-uno) with the help of the written
program language in the Microcontroller unit. The robot was able to produce the basic walking movements
using DC motors capable of sensing obstacle and perfectly maneuvering obstacles on its path at a distance
range of 30cm. the robot uses the left, right, forward and backward movement to avoid the obstacle
autonomously. The accuracy recorded from several testing trials showed that the robot performed well scoring
85% considering the scope under which it was examined.