9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
obstacle avoiding robot project
1. 1
Department Of Electrical Engineering
INSTRUMENTATION & MEASURMENTATION(LAB)
OBSTACLE AVOIDING ROBOT
Group Members
Aisha Naeem Khan 02-133182-075
Moosa Naeem Khan 02-133182-074
BEE-7C
FALL 2021
Submitted to
Engr. Ayesha Waris
2. 2
Table of Contents
1. Abstract.................................................................................................................3
2. Introduction..........................................................................................................3
3. Literature Review................................................................................................ 4
4. Components and Tools Description....................................................................5
5. Block Diagram/Flow Chart.................................................................................6
6. Methodology......................................................................................................... 6
6.1. ProposedModel………………………………………………………6
6.2 Circuit/ Simulation Diagram......................................................…...7
6.3 Code and Description……………………………………..10
7. Results and Discussions..................................................................................... 11
8. Conclusion and Future Work........................................................................... 11
9. Project Summary............................................................................................... 11
10. Project Pictures.................................................................................................. 12
11. References...........................................................................................................12
3. 3
1. ABSTRACT
We are designing an obstacle avoiding robot that will change trajectory when it senses
objects in its path.
The results of the distance calculation used to control the movement of the robot, hanse
the robot is able to avoid unknown obstacles. This obstacle robot divided into 3 parts,
namely Arduino Uno as a controller, L298N driver as a motor/wheel controller and
ultrasonic sensor(s) HC-SR04 as a sending and receiving device for ultrasonic signals.
The ultrasonic sensor design on the obstacle robot placed at the front of the robot with
the obstacle position in front. From the data analysis, the obstacle robot can determine
the accuracy level of the detected distance and can stop according to the detected
obstacle distance.
The test results show that the obstacle robot is less accurate in detecting the obstacles
in front of it, as evidenced by the test results that there is an average error of 0.118.
However there are still many applications for the work done that can be used in
vaccums , goombas(cleaners), self driving cars etc.
2. INTRODUCTION
A Robot is a set of mechanical devices that can perform physical tasks, either human
supervision and control, or using predefined programs. The robot that is the topic of
this research is a type of obstacle robot or in other words a robot that can move from
place to place. Obstacle robots are robotic constructions whose characteristics are
having actuators in the form of wheels to move the entire robot body, so that the robot
can move positions from one point to another.
In this work, we have presented a robot,which is compact, autonomous and fully
functional.This robot/smartcar is built to sense any obstacle in its path, to avoid it and
resume its running involving the pre-computation of an obstacle free path.Ultrasonic
sensors were adapted to implement a real-time obstacle avoidance system for wheeled
robots, so that the robot can continually detect surroundings,avoid obstacles, and move
toward the target area. Of course we have not given it a predefined path , which makes
things considerably easier to implement.
We use an Arduino UNO with a Motor Shield along with Stepper Motors to make the
car, and for sensing we incorporate an Ultrasonic Sensor which accurately and
4. 4
efficiently detects any obstacles in the robot’s path. The Arduino is coded such that the
robot moves backward when an obstacle arises in front of it with a maximum limit of
50cms in ideal testing conditions.
Throughout the construction of this model, we educated ourselves to the Arduino
coding language, the Motor Shield functionality, and comprehensively, with the
working of an ultrasonic sensor and its features.
3. LITERATURE REVIEW
From the industrial side, robots have achieved great success, such as manipulator
robots, humanoid robots, and android robots that used by large companies. But
despite all the success that has been achieved, this robotic robot has one fundamental
drawback, namely limited mobility, therefore obstacle robots are present and able to
travel around the entire automotive company without using a steering wheel,
performing their abilities wherever as effectively as possible.
The application of ultrasonic signals has been widely carried out, especially in the
robot industry. The following are some previous studies in the application of ultrasonic
signals:
In the thesis entitled "Design of a Fire Extinguishing Car Robot Based on the
ATmega 252 Microcontroller", which discusses the use of light sensors and ultrasonic
sensors in controlling car robots for the purpose of finding points. fire and extinguish it;
5. 5
In the thesis entitled "Design of a Moving Object Tracking Car Robot Based on PA
(Proportional - Derivative) Controller Using the ATmega 8535 Microcontroller".
which uses fuzzy- PID logic and ultrasonic sensors to chart a path for itself.
Inspired by this, this research will develop a obstacle robot that controlled using
Arduino Uno as its control, L298N driver as a motor controller and ultrasonic sensor
HC-SR04 as a distance sensor to detect the distance to the surrounding obstructions.
The results of the distance reading will used as information to control the movement of
the robot obstacle such as stopping based on the distance of the detected obstacle
4. COMPONENTS AND TOOLS DESCRIPTION
We are using :
4.1. Batteries
9Vs approx for both motor and arduino
4.2. Chasis
For mounting wheels, arduino and other components on.
4.3. L298N H-brige motor driver .
Its IC consists of logical transistors (TTL) with NAND gates that function to make
it easier to determine the direction of rotation of a dc motor or stepper motor. The
advantage of this L298N motor driver module is in terms of precision in controlling
the motor so that the motor is easier to control.
4.4. Arduino UNO
Which is our microcontroller of choice here as it is open source and
easy to use.
4.5. Sensor HC-SR04
The HC-SR04 is an ultrasonic sensor that used to measure the
distance between an obstacle and the sensor.The U
ng it takes for the echo of the sound to reflect back
4.6. Motors & castor wheel
They are of 5Vs and are the wheels running this operation.
6. 6
5. BLOCK / FLOW DIAGRAM
6. METHODOLOGY
6.1. Proposed Model/Circuit
The proposed model has 3
sensors mounted at the front.
7. 7
6.2. Code
int trigPin1 = 3; // Trigger
int echoPin1 = 4; // Echo
int trigPin2 = 12; // Trigger
int echoPin2 = 13; // Echo
int trigPin3 = A0; // Trigger
int echoPin3 = A1; // Echo
int revleft4 = 10; // Motor Pins
int fwdleft5 =11; // High
int revright6 = 8;
int fwdright7 = 9; // High
int enright = 6;
int enleft = 5;
long duration, cm, inches,duration2,
cm2,duration3, cm3;
void setup() {
//Serial Port begin
Serial.begin (9600);
//Define inputs and outputs
pinMode(trigPin1, OUTPUT);
pinMode(echoPin1, INPUT);
pinMode(trigPin2, OUTPUT);
pinMode(echoPin2, INPUT);
pinMode(trigPin3, OUTPUT);
pinMode(echoPin3, INPUT);
pinMode(revleft4, OUTPUT); // Set
Motor Pins As O/P
pinMode(fwdleft5, OUTPUT);
pinMode(revright6, OUTPUT);
pinMode(fwdright7, OUTPUT);
pinMode(enright, OUTPUT);
pinMode(enleft, OUTPUT);
}
void loop() {
// The sensor is triggered by a HIGH
pulse of 10 or more microseconds.
// Give a short LOW pulse beforehand
to ensure a clean HIGH pulse:
digitalWrite(trigPin1, LOW);
delayMicroseconds(5);
digitalWrite(trigPin1, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin1, LOW);
// Read the signal from the sensors: a
HIGH pulse whose
// duration is the time (in microseconds)
from the sending
// of the ping to the reception of its
echo off of an object.
pinMode(echoPin1, INPUT);
duration = pulseIn(echoPin1, HIGH);
// Convert the time into a distance
cm = (duration/2) / 29.1; // Divide by
29.1 or multiply by 0.0343
inches = (duration/2) / 74; // Divide
by 74 or multiply by 0.0135
delay(50);
if (cm > 20) // Condition For Absence
Of Obstacle
{
digitalWrite(fwdright7, HIGH); //
Move Forward
10. 10
6.3. Code/Circuit Description
The robot is switched on by giving it 9V DC power from an external battery.The
motors starts rotating and thus the robot starts moving forward.
However we need to know how the ultrasonic sensor work to explain further.
The ultrasonic sensor uses sonar to determine the distance to an object. What
happens it that:
The ultrasound transmitter (trig pin) emits a high-frequency sound (40 kHz).
The sound travels through the air. If it finds an object, it bounces back to the module.
The ultrasound receiver (echo pin) receives the reflected sound (echo).
The time between the transmission and reception of the signal allows us to
calculate the distance to an object. This is possible because we know the sound’s
velocity in the air. The formula:
distance to an object = ((speed of sound in the air)*time)/2
During this time, the center ultrasonic sensor keeps checking to see if anything is in
front of it.
So we can now explain that the central ulltrasonic sensor keeps checking to see if
anything is in front of it within a 20cm distance. If there isnt, it will keep going in a
straight line.
However, if there is something in front of it, the robot will stop and back up a little,
as the sensor senses distance less than 20cm. It will then use the sensors to the left
11. 11
and the right and calculate where there is more distance from an object. And it
move in that direction.
This code will keep running in a loop.
7. RESULTS AND DISCUSSIONS
As we have seen, the robot will detect obstacles and change its trajectory accordingly.
It will sense with ultrasonic sensors if anything is in front within 20 cm of it and
change direction accordingly. There is an error margin in the ultrasonic sensor.
It will send maximum distance if object in question is touching it i.e. 0cm.
However the robot still works well enough and demonstrates the concept of obstacle
avoidance well.
8. CONCLUSION AND FUTURE WORK
This technique can also be used as a vision belt for blind people by changing the
ultrasonic sensor by a kinetic sensor ,which is a type of microwave sensor whose
sensing range is very high and the output of this sensor vary in according to the object
position changes. This technique enables blind people to navigate obstacles easily by
placing three vibratos in left, right and the centre of a belt named as Vision Belt.
On top of obstacle avoiding robot temperature/ pressure sensors can be added to
monitor the atmospheric conditions around. This is useful in places where the
environment is not suitable for humans. Same technology can be used in various
applications by modifying the program for example Line / Path finder Robot ,
automatic vacuum cleaner etc.
They can be used as services robots, for the Low Cost Obstacle Avoidance Robot,
purpose of household work and so many other indoor applications.
9. PROJECT SUMMARY
The goal of our project is to create an autonomous robot which intelligently detects any
obstacle in its path and navigates it according the actions we set for it.