Object Avoiding Arduino Robot

Introduction: Object Avoiding Arduino Robot

This is a project I made for my computer technology class. This is an alteration of a similar project that can be found here. All credit goes to the original instructable.

Step 1: What You Will Need:

To make the robot you will need:

  • 3D Printer
  • Arduino Nano board
  • 2 Continuous rotation servo FS90R
  • HC-SR04 Ultrasonic sensor
  • Buzzer
  • Micro On/Off switch
  • Wire to make connections
  • 3.7 volt flexible battery

Step 2: Printing the Parts

The files for the printed parts can be found here


Parts may need to be adjusted in printing software before printing to print properly.

Step 3: The Circuit

Locate the D12 and D13 pins on the Arduino Nano. Connect the Trig pin to D12 and the Echo pin to D13 the Trig and Echo can be found on the ultrasonic sensor. Now locate the D7 and D8 pins on the Nano board. Connect the pulse wire of the continuous servos to these pins. (The left wheel is D8 and the right is D7) Connect the buzzer to D6. Solder all the power connections and ground connections and solder a wire from the ground pin next to D2 to the bundle of ground wires.

Step 4: The Code

The code here is altered from the original to work for the Arduino Nano board.

Step 5: Putting It All Togather

Make sure that there is enough room for everything. Make sure the battery will fit. It is ok to glue the servos to the inside of the bot. Use screws to secure the case close (Make holes with a small drill if they do not get printed in. the hole for the on/off switch should be facing up. the tail can be superglued to the back at whatever angle necessary.

Be the First to Share


    • Metalworking Contest

      Metalworking Contest
    • Maps Challenge

      Maps Challenge
    • Tinkercad Student Design Contest

      Tinkercad Student Design Contest