This guide shows you how to quickly and easily build an Arduino-based robot. Robotics is an exciting and fun hobby that has become very affordable in recent years. What would have required a lot of money and experience to do a few decades ago is now affordable, easy, and most of all, FUN!

Simple Arduino Robot

The parts used in this guide can all be purchased together in the Funduino UNO Robotics Kit, but you can follow along with a different kit just as easily as long as you have similar components.

Keep in mind that this tutorial shows just one way to make a robot — you’re limited only by your budget and imagination. If you want to buy more sensors, or a nicer chassis, go for it! The entire process may take an hour or two, so get ready to have some fun!


Step #1: Making the Chassis

Building a Simple Arduino RobotBuilding a Simple Arduino RobotBuilding a Simple Arduino RobotBuilding a Simple Arduino Robot
  • Place the battery pack face down and orient it so that its cable is facing you.
  • Take two pieces of double sided tape and adhere them on the long sides of each servo. Ensure servo alignment at the bottom.
  • Peel the backing off the tape and firmly press the servos onto the battery pack.

    Note: Make sure to apply the servos on the end where the wire is coming out, oriented so that the shafts are towards the end of the battery pack.

    Note: Ensure that the servos are pressed firmly together and that they are centered on the battery pack.

    The easiest way to do this is to peel the back off the tape, hold one servo in each hand while pressing the backs of them against each other, and then pressing them down onto the battery pack at the same time.

Step #2: Breadboard & Arduino

Building a Simple Arduino RobotBuilding a Simple Arduino RobotBuilding a Simple Arduino RobotBuilding a Simple Arduino Robot
  • Attach the breadboard to the top of the battery pack. You can peal the backing off the adhesive foam-tape already on the breadboard, or you can use your own double-sided tape --I recommend the latter.
  • The Arduino will ride atop the servos in this robot design. Cut a piece of tape slightly less than the width of the Arduino and place the tape on the servos.
  • Peel the backing off the double-sided tape and press the Arduino onto the tape.

    Note: Avoid overhanging the Arduino above the breadboard too much.

Step #3: Wheels & Caster

Building a Simple Arduino RobotBuilding a Simple Arduino RobotBuilding a Simple Arduino RobotBuilding a Simple Arduino Robot
  • Take the wheels and firmly press them onto the servos. The wheels fit very tightly, so it takes a lot of force to get them on!
  • The last step in the assembly process is putting a caster on the front of the robot. As you can see in the picture, the caster is about 1/4" too short, so we need to find something to put between it and the breadboard.
  • Using scrap wood and tape, build up a spacer to increase the clearance of the caster. Once the spacer is the correct size, use double-sided tape and secure the breadboard to the spacer, and the spacer to the caster.

Step #4: Wiring the Servos

Building a Simple Arduino RobotBuilding a Simple Arduino RobotBuilding a Simple Arduino RobotBuilding a Simple Arduino Robot
  • Cut two 3-pin segments off of the long break away header.

    The header pins' black plastic piece may have shifted off-center. Using pliers, carefully reposition the black plastic piece so it's at the midpoint of the metal pin.
  • Press the headers into the breadboard, then attach the servo cables into the headers, with the black wire on the cables on the left-hand side.
  • Connect the red wires on the servos to the breadboard's positive (red) rail, the black wires to the GND (blue) rail, and the white wires to pins 12 and 13 on the Arduino.

    Note: Keep your circuit layout tidy by using the power and ground rails of the breadboard closest to the Arduino (see image three).

Step #5: Adding a Sensor

Building a Simple Arduino RobotBuilding a Simple Arduino RobotBuilding a Simple Arduino Robot
  • Insert the ultrasonic sensor so it's facing towards the front of the robot, and overhanging the unused power and ground rails.
  • Note: The sensor is not plugged into a power or ground rails, it's in the body of the breadboard.

    Also, zip-ties help to keep your robot's cabling tidy.
  • Connect the ultrasonic sensor so that it's VCC pin is wired to front power (red) rail on the breadboard (not the back one!).

    Connect a black wire to the GND pin of the sensor and to the GND (blue) power rail.

    Finally, connect a white wire to the Trig and Echo to pins 8 and 9 on the Arduino, respectively.

Step #6: Connecting the Power (pt. 1)

Building a Simple Arduino Robot
  • The servos shouldn't be powered through the 5V pin on the Arduino because they can draw more current then the Arduino can provide. The correct way is to power the servos is directly from a battery pack (either the same battery pack powering the Arduino or, even better, a separate battery pack).
  • Four AA batteries will supply the motors with somewhere between 4.8V and 6V depending on the battery type, which what our servos need. The easiest way I've found to do this is to stick a red wire into the second spring from the left and a black wire into the last spring on the right in the battery pack.
  • Note: Pay close attention to the orientation of the battery pack in the above picture. Make sure when you put the red wire into the "second spring from the left" that the battery pack cable is on the bottom left. If you have a multimeter, this would be a great time to use it to verify you're plugging in the wires to the right places.

Step #7: Connecting the Power (pt. 2)

Building a Simple Arduino RobotBuilding a Simple Arduino RobotBuilding a Simple Arduino RobotBuilding a Simple Arduino Robot
  • Run the red and black wires we just put in the battery pack springs to the power rails at the back of the breadboard (the one the servos are plugged into).
  • Use a black wire to connect the GND pin on the Arduino to the GND rail at the back of the breadboard, then use another one to connect the two GND rails on the breadboard together (do not connect the positive rails together!).
  • Now, take a red wire and connect the 5V pin on the Arduino to the FRONT power (red) rail on the breadboard (not the back power rail!).

Step #8: Adding a Kill Switch

Building a Simple Arduino Robot
  • Finally add a kill switch to the robot so that it can be stop it without having to unplug the power.
  • Take a push button switch and put it across the gap in the breadboard. Then use a red wire to connect one side of the switch to the front power rail, a 10kΩ resistor to connect the other side of the switch to GND, and a white wire to connect the side of the switch with the resistor to pin 2 on the Arduino.

Step #9: Programming your Robot

Building a Simple Arduino Robot

Now that the robot is finished, you'll want to program it's behavior.

Check out the code for this robot and my

tutorial for how you can write your own sketches.

Nathan House

Nathan House

I'm a junior in college majoring in electrical engineering. My passion for teaching others about electronics and robotics led me to start a small hobby electronics company called FoxyTronics.

  • Virginia PHillips

    we made this project as designed with the exception of the fact we had no break away headers, so we used a series of male male wires. When we connected the power as described, the leftmost battery made a small pop sound followed by smoke…. We were wondering if it was because the instructions call for negative to positive instead of negative to negative

    • Virginia PHillips

      Nevermind -figured it ou!

  • intibeer

    Simple well laid out instructions, it’s worth having a look at projects by

    • wtf

      FUck man, this shit is nasty

  • devansh

    Where can i find the parts for this project?
    Especially the wheels?
    A prompt help would be highly appreciated. Thanks :)

  • Kush

    I’m 15 years old, but I don’t have alot of background knowledge on the wires, so is it possible to connect different colored wires because I ran out of red wires and I only need one more, so can I use a different colored wire for this, such as orange or green or etc.?

    • daveb83

      The colour of the wire is there just to help us identify what we’ve put it there for. The wires have the same conductive material inside. So, you can use any colour wire, just be careful no to become confused with what the wire is there for later.

      • Kush

        Thanks for your help!

        • daveb83

          You’re welcome. In a project like this it is fine, but it’s important to know that the current ratings for wires are important. If something specifically calls for a higher rated wire (a thicker wire) you should always use the correctly rated wire. Also, the colour of wire used is important when replacing wires that have to meet specific standards.

          As I said, it makes no difference on this and most other arduino projects, but I didn’t want to leave anybody with the impression that you could replace mains power cabling with speaker wire!

  • Greg Lafrance

    In the end the robot didn’t work for me, but I’ll probably try again. I think there may be something wrong with my battery pack. The sensors work, as seen by the debug output. But the wheels don’t turn, though they did earlier in the project.

    One question, when I connect the arduino to my computer the red light goes on, but when I only power from the battery, no red light. Is something wrong?

  • Christin Thomas

    What will be the exact size of the caster. if possible a link of it on ebay .. please :)
    and a link for the mini push button too

  • Mick Malkemus

    Nice. I’m going to make a power chair into a robot into a sentry that threatens to call the police. :)

  • matt Cavallaro

    i am making this for a class and was wondering what kind of battery pack is needed

  • wtf

    you are gay

  • sdfsdf

    No parts list Genius!!

  • matt Cavallaro

    what is schematic for this robot

  • Natest3r

    HUGE SALE at FoxyTronics right now! 25% off everything!

  • Gibbs

    My main problem is power source! 4 AAs are nit okwerful enough for l293d! (I think that ic needs 220v to work :D it wastes insane amount of power!) So i bkught an 3s lipo, but im too scared to use it :S specially with wires connected to a pcb!