Introduction:
Are you Still believe in controlling your Robot Via Remote ???This is the era of Robotics, intligenceToday's robot has intelligence self-ability to learn their environment.Here is a small effort of our to enter the Artificial intelligence.Hereby we are promising you that in the near feature we will do this same obstacle avoiding robot with various types of procedure and upgrading this robot. So Lets Start.
What do you mean by Obstacle Avoiding Robot??
A: This robot has the ability to make their own way if some types of obstacle came in their path. BMW i8 is using the same concept but in a wider range.
Theory Behind This Project:
This Robot has two IR sensors it will provide a signal to the Arduino Uno when some obstacle comes in front of it.
Parts Required:
1.100rpm Dc Motor
2.Arduino Uno
3.Lm 298 Motor Driver
4.IR Sensor *2
5.Small Bread Board
6. Dual Side Tape
7.12V power supply
8.Robot Chasis
9.Wheel
10.Caster Wheel.
11.Jumper wire
12.Tools
13.Bread Board
Procedure:
- First of all, fit the caster wheel on the robot chassis.
- insert the motors in the robot chassis and fit the wheel on them.
- Now by using dual side tape fix all the hardware parts.
- Connect the Motor wire to the motor input of the Lm298 Motor Driver
- Now connect the 12v VCC to the 12v input of the Lm298 motor driver, then connect the ground of the 12v Dc power supply here it is the 12v battery.
- Now connect the 5v power output of the lm298 motor driver to a breadboard and the common ground of the lm298 to another point of the breadboard.
- Now connect both IR Sensor's Vcc and GND to the Vcc And Gnd Pin in the bread Board.
- Now connect the 4 data line of the Motor driver Lm298 to Arduino to A0, A1, A2, A3 of the Arduino Uno
- Now connect the signal pin of left and right IR sensor pin 7 and pin 6 of Arduino Respectively.
- Now Upload the Arduino Code:
void setup() {
///wwww.beginnertopro.in////
//left sensor output to arduno input
 pinMode(7,INPUT);
//Right Sensor output to arduino input
 pinMode(6,INPUT);
//output from audrino to motor drive
//Right motor audrino to motor Drive
pinMode(0,OUTPUT);
pinMode(1,OUTPUT);
//left Motor Arduino motor Drive
pinMode(2,OUTPUT);
pinMode(3,OUTPUT);
}
void loop() {
 //left sensor input
 int l1=digitalRead(7);
//Right Sensor Input
 int r1=digitalRead(6);
if((l1==HIGH)&&(r1==HIGH))
{
 //Stay still
 digitalWrite(0,LOW);
 digitalWrite(1,LOW);
 digitalWrite(2,LOW);
 digitalWrite(3,LOW);
} else if((l1==LOW)&&(r1==HIGH)) {
//turns right
 digitalWrite(0,HIGH);
digitalWrite(1,LOW);
digitalWrite(2,LOW);
digitalWrite(3,HIGH);
} else if((l1==HIGH)&&(r1==LOW)) {
//turns left
 digitalWrite(0,LOW);
digitalWrite(1,HIGH);
digitalWrite(2,HIGH);
digitalWrite(3,LOW);
} else if((l1==LOW)&&(r1==LOW)) {
 //Stop the Boot
 digitalWrite(0,LOW);
 digitalWrite(1,HIGH);
 digitalWrite(2,LOW);
 digitalWrite(3,HIGH);
}
 }
For Making watch this video...
Thanks For watching. please like, share and subscribe...have a good day....
Recent Comments
Nigamasis Padhi
2017-03-13Nice project.....
sai
2017-03-13Thanks Nigamais...
Arjun
2017-04-03I have a problem one of my motors is rotating slowly while other fast resulting in circulatory motion can u please help me.....
Sai Tat Sat Mishra
2017-04-09Arjun , This May be the Problem with Your Motor / Motor Driver So Please Check Them...
Arjun mehtani
2017-05-04Thank you so much...... Awesome project...
Sai Tat Sat Mishra
2017-07-15You are Most Welcome Arjun
Shipra
2017-05-08Where is the code for this
Sai Tat Sat Mishra
2017-05-09sipra here is the Code:Obstacle Avoiding robot Arduino Code
where it is
2017-08-05please send me the coding for this bcoz i brought all the parts please replay me with in two days please{5-8-17}
Sai Tat Sat Mishra
2017-08-05Sipra Look in the Procedure section you will get the link like: "Obstacle Avoiding robot Arduino Code" click on that then you will get the code.
Shipra
2017-05-10Ty
Sai Tat Sat Mishra
2017-07-15You are Most Wellcome Sipra
hari
2017-09-11hello mr. code and diagram was changed plz correct that
Sai Tat Sat Mishra
2017-09-19Thanks For Your Comment We will change it. Once Again Thank You So much
Ganesh Shetty
2017-10-26Sit the code you have given hear is incorrect for the circuit show please verify that and please give the write code
Sai Tat Sat Mishra
2017-10-26Sir, we are very sry for the inconvenience, Now we have verified the Code, So you can have a look on that Thanks Sir For your Comment.
Mahesh
2018-05-30What is the rating of battery?
Saurabh
2018-08-12void setup() { ///wwww.beginnertopro.in//// //left sensor output to arduno input pinMode(7,INPUT); //Right Sensor output to arduino input pinMode(6,INPUT); //output from audrino to motor drive //Right motor audrino to motor Drive pinMode(0,OUTPUT); pinMode(1,OUTPUT); //left Motor Arduino motor Drive pinMode(2,OUTPUT); pinMode(3,OUTPUT); } void loop() { //left sensor input int l1=digitalRead(7); //Right Sensor Input int r1=digitalRead(6); if((l1==HIGH)&&(r1==HIGH)) { //Stay still digitalWrite(0,LOW); digitalWrite(1,LOW); digitalWrite(2,LOW); digitalWrite(3,LOW); } else if((l1==LOW)&&(r1==HIGH)) { //turns right digitalWrite(0,HIGH); digitalWrite(1,LOW); digitalWrite(2,LOW); digitalWrite(3,HIGH); } else if((l1==HIGH)&&(r1==LOW)) { //turns left digitalWrite(0,LOW); digitalWrite(1,HIGH); digitalWrite(2,HIGH); digitalWrite(3,LOW); } else if((l1==LOW)&&(r1==LOW)) { //Stop the Boot digitalWrite(0,LOW); digitalWrite(1,HIGH); digitalWrite(2,LOW); digitalWrite(3,HIGH); } }
carlosmiguel
2018-11-03Is this the right code for this project? Please reply ASAP. Thanks.
Jay more
2018-12-19This code is right?
joker6211
2018-11-07nice project, but what happen when the robot car reach to the edge of the floor and below are the stairs, it will fall down. can we prevent from from falling down, please advise a code to prevent it. thanks
Peter
2018-12-18I have done same as the procedure but car is not moving in forward direction what I have to do plss upload the program code
veman reddy
2019-01-10we want project book for this
Mahesh S
2019-04-27Code is completely wrong. It will not work for the above code. Because motor control pins are assigned analog port but in program, they are using digital Write which is not correct.
Ayush
2019-11-10Code not working