Obstacle Avoiding Robot - Motor Shield

6,409

8

9

About: I am a 14 year old boy interested in every single thing related to computer...... I love Robotics.....

Hi guys! This is an easy and basic tutorial for making a Obstacle Avoiding Robot... Read on ...

Step 1: Materials Required

To build the Obstacle Avoiding Robot you will require-

  1. Arduino Uno R3 (we recommend using Arduino Uno r3 but you can also use other boards such as Mega or Nano...)
  2. Arduino Motor Shield(We can also use a Motor Driver instead of it)
  3. Ultrasonic Sensor
  4. Jumper Wires
  5. 9V Battery
  6. Power bank(It is not nessecary that you use a power bank to power the Arduino but we reccommend using it but your robot would run perfectly even if you don't use a power bank)
  7. USB Cable (To connect the Arduino to the power bank if you are using one)

Step 2: Wiring

1. Attach the Trig pin to 8 and the echo to the no.7 (Tip: make sure the wire is naked at the end because it has to be crunched inside the motor shield).The GND pin to the ground supply in the Arduino & VCC to the 5V

2. Then attach the motor shield on the Arduino.

3. Connect the Motors and the 9V power supply to the shield

Step 3: Code

The download link is giving down below download & upload it.....

https://www.mediafire.com/?o3ouga2abw13wy6

Step 4: You're Done

Once you done all this make sure you send a image of the robot....

Share

    Recommendations

    • Fandom Contest

      Fandom Contest
    • Arduino Contest 2019

      Arduino Contest 2019
    • IoT Challenge

      IoT Challenge

    9 Discussions

    0
    None
    rramesh68

    2 years ago

    Very neat! Came across your page as I was hunting for some stuff for the next project I am currently working on.

    Good work. Keep it up guys !

    1 reply
    0
    None
    DIY Roboticsrramesh68

    Reply 2 years ago

    Thank you for your support we will continue to upload new tutorials!

    0
    None
    kr18

    3 years ago

    i make this as same as you but it not working please help

    0
    None
    MaxM14

    3 years ago

    Would you mind explaining what a motor shield is and how this whole thing works? Pretty new to this arduino thing ;)

    3 replies
    0
    None
    DIY RoboticsMaxM14

    Reply 3 years ago

    What is a Motor Shield? In the case if we dont have servos or we dont want to use servo we can use dc or atepper motor .For for using them we need motor driver shield.Motor driver shield the ic L239D which is the most used IC for usingVhe motors .Hope you undesrtand now.

    0
    None
    MaxM14DIY Robotics

    Reply 3 years ago

    So if I want to use a DC motor, I wont need a motor shield?

    0
    None
    DIY RoboticsMaxM14

    Reply 3 years ago

    What is a Motor Shield? In the case if we dont have servos or we dont want to use servo we can use dc or atepper motor .For for using them we need motor driver shield.Motor driver shield the ic L239D which is the most used IC for usingVhe motors .Hope you undesrtand now.

    Yup why not ! These are some more of it! I have video of it in action too of it here's the link - https://www.youtube.com/watch?v=JXEivVXzFtw .

    FYT8UP8II7RH2SX.jpeg567289064936d402760007fb.jpegDSC02221.JPGObstacle Avoiding Robot with Motor ShieldDSC02219.JPGDSC02222.JPG