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

Buy Now

 

2.Arduino Uno

Buy Now

 

3.Lm 298 Motor Driver

Buy Now

 

4.IR Sensor *2 

Buy Now

 

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....