How to make an Obstacle Avoiding robot using arduino & L293d IC- – Link Updated

How to make an Obstacle Avoiding robot using arduino  & L293d IC

How to make a Obstacle Avoiding robot using arduino & L293d IC- - Andro Root
                 
Obstacle Avoiding robot is a simple robot which is operated by an arduino and what it does is that it just roams around and avoids obstacles. It detects the obstacles with a HC-SR04 ultrasonic sensor in other words if the robot senses object near to it, it takes diversion and moves to
the safe place(Left or Right) and avoiding colliding to any objects around the robot. It is a simple project which anyone can build. .So If You Ever thought about building a robot but thinking that it`s too difficult and costly , well try this, it`s not.This robot uses very simple code and can accomplish the task with ease.

Watch it in action Here

 And Now Lets get start

Components Required to make an Obstacle Avoiding robot using arduino:-

How to make a Obstacle Avoiding robot using arduino & L293d IC- - Andro Root

1xArduino Uno R3
1xHC SR- 04 (ultrasonic sensor)
1xL293D Motor driver IC
1xRobot chassis

2xWheels
2x Gear Motor
1x Castor wheel
1xPower bank or 5v battery
1xBreadBoard
connecting wires
Double sided foam tape 
Links for all Components
1.Chassis
2.Geared Motor

3. Arduino Uno R3

4.HC SR- 04 (ultrasonic sensor)

5.L293D Motor driver IC

        Andro Root
        androroot
        Sourabh Kumar
        SK Yuvraj

          DESCRIPTION OF Component Used-

        How to make a Obstacle Avoiding robot using arduino & L293d IC- - Andro Root

         

        1.L293d IC

        How to make a Obstacle Avoiding robot using arduino & L293d IC- - Andro Root
        L293D is a dual H-bridge motor driver integrated circuit (IC). Motor drivers act as current amplifiers since they take a low-current control signal and provide a higher-current signal. This higher current signal is used to drive the motors.
        L293D contains two inbuilt H-bridge driver circuits. In its common mode of operation, two DC motors can be driven simultaneously, both in forward and reverse direction. The motor operations of two motors can be controlled by input logic at pins 2 & 7 and 10 & 15. Input logic 00 or 11 will stop the corresponding motor. Logic 01 and 10 will rotate it in clockwise and anticlockwise directions, respectively.
        Enable pins 1 and 9 (corresponding to the two motors) must be high for motors to start operating. When an enable input is high, the associated driver gets enabled. As a result, the outputs become active and work in phase with their inputs. Similarly, when the enable input is low, that driver is disabled, and their outputs are off and in the high-impedance state.
        How to make a Obstacle Avoiding robot using arduino & L293d IC- - Andro Root

        2.ARDUINO UNO R3

        The Uno R3 now uses an ATmega16U2 instead of the 8U2 found on the Uno (or the FTDI found on previous generations). This allows for faster transfer rates and more memory. No drivers needed for Linux or Mac (inf file for Windows is needed and included in the Arduino IDE), and the ability to have the Uno show up as a keyboard, mouse, joystick, etc.The Uno R3 also adds SDA and SCL pins next to the AREF. In addition, there are two new pins placed near the RESET pin. One is the IOREF that allow the shields to adapt to the voltage provided from the board. The other is a not connected and is reserved for future purposes. The Uno R3 works with all existing shields but can adapt to new shields which use these additional pins.Arduino is an open-source physical computing platform based on a simple i/o board and a development environment that implements the Processing/Wiring language. Arduino can be used to develop stand-alone interactive objects or can be connected to software on your computer (e.g. Flash, Processing, Max MSP). The open-source IDE can be downloaded for free (currently for Mac OS X, Windows, and Linux).
        Note:The Arduino Uno R3 requires the Arduino 1.0 drivers folder in order to install properly on some computers.

         Features of Arduino UNO R3:

        #ATmega328 microcontroller
        #Input voltage – 7-12V
        #14 Digital I/O Pins (6 PWM outputs)
        #6 Analog Inputs
        #32k Flash Memory
        #16Mhz Clock Speed
        Andro Root
        androroot
        Sourabh Kumar
        SK Yuvraj

          Circuit Diagram to make an Obstacle Avoiding robot using arduino:-

        How to make a Obstacle Avoiding robot using arduino & L293d IC- - Andro Root


        How to make a Obstacle Avoiding robot using arduino & L293d IC- - Andro Root

         

          Steps to make an Obstacle Avoiding robot using arduino:-

        How to make a Obstacle Avoiding robot using arduino & L293d IC- - Andro Root


        Make the chassis ready and find a good place to fix arduino, bread board & Power Bank on the chassis with the help of Double sided tape . And arrange everything on it. Now Follow these steps:-
        ✔ HC SR-04 Ultrasonic Sensor
        1. Connect HC-SR04 Vcc pin to 5v of Arduino and Gnd to Gnd of Arduino
        2. Trig to Arduino ‘s digital pin 3 and Echo to Arduino ‘s digital pin 2 

        ✔ L293d IC

        1. Connect pin 1,8, 9 and 16 together and connect it to 5v of Arduino
        2. Connect pin 8 to Vin of Arduino
        3. Connect pin 4,5 & 12,13 together and connect it to Gnd of Arduino
        4. Connect your 1st motor to pin 3 and 6
        5. Connect your 2nd motor to pin 11 and 14
        6. Connect pin 15 to Arduino’s digital pin 8
        7. Connect pin 10 to Arduino’s digital pin 9
        8. Connect pin 2 to Arduino’s digital pin 10
        9. Connect pin 7 to Arduino’s digital pin 11
        10. After Programming the Arduino Use The Usb Cable of Arduino with PowerBank and No Extra Power is Needed for the Similar Motor.

          Arduino Program to make an Obstacle Avoiding robot using arduino:-

        How to make a Obstacle Avoiding robot using arduino & L293d IC- - Andro Root

         Obstacle Avoiding Robot by sk.ino


        The code is very easy. You can also change and Modify the code and try different things. You Can Download the attached Obstacle Avoiding Robot by sk.ino file and directly open it in Arduino IDE.

         Some More Pictures of Obstacle Avoiding robot using arduino & L293d IC

        How to make a Obstacle Avoiding robot using arduino & L293d IC- - Andro Root
        How to make a Obstacle Avoiding robot using arduino & L293d IC- - Andro Root
        So i hope after following all steps carefully you will make an Obstacle avoiding Robot using Arduino & L293d IC 
         Feel Free to comment & share & Have Fun !!
        Also Read

        About Sourabh Kumar

        Sourabh Kumar is a Tech savvy B.Tech(ECE) student living in Jaipur, India. He is a Blogger and fan of photography, technology, Robotics, and design. He is also interested in programming and innovation. He loves technology, gadgets and Spends lots of time with them.

        View all posts by Sourabh Kumar →

        8 Comments on “How to make an Obstacle Avoiding robot using arduino & L293d IC- – Link Updated”

        Leave a Reply

        Your email address will not be published. Required fields are marked *