Arduino Servo Bot



Today I will show you how to control Servo motor with an Arduino microcontroller. It's pretty simple and super useful when you are building bigger robots.

Step 1: Parts

You need:

  • Arduino Uno
  • A Breadboard
  • 2 Continuous Rotation Servos
  • 2 wheels
  • 1 toggle switch
  • Jumpers

Step 2: The Code Breakdown

I'm assuming you already know what a Servo motor is so I will dive straight into the programming. Copy the code off of this page and paste it to the Arduino IDE. Once you have done that, upload it to your board. Remember to read the side notes! They are helpful and will help you do more cool stuff with servos and Arduino.

#include <Servo.h> //includes servo library
int servoPin1 = 3;//declares pin for servo1

Servo Servo1;// creates Servo1 object

int servoPin2 = 11;//declares pin for servo2

Servo Servo2;//creates Servo2 object

void setup() {

Servo1.attach(servoPin1);//attaches servo1 to servopin1

Servo2.attach(servoPin2);//attaches servo2 to servopin2


void loop() {

Servo1.write(180);//tells servo1 to go full speed clockwise

Servo2.write(180);//tells servo2 to go full speed clockwise


//you can substitute 180 for other numbers to make the continuous rotation servos //do different stuff. Like putting 90 in makes it go to a full stop and 0 makes it go full speed counter-clockwise.

Step 3: Assembly

Now that you know and understand the code, you can build the robot. I made a 123d circuit file you can use to wire the motors to the arduino. Here's the link Now, get a frame and attach your servo motors to it. Screw the wheel attachments into the servos next. Alright, that's all you need to do to build a cool servo robot. You can us the basic commands and code notes to make the bot do a bunch of different stuff... so enjoy!

Maker Olympics Contest 2016

Participated in the
Maker Olympics Contest 2016

Metal Contest 2016

Participated in the
Metal Contest 2016



    • Frozen Treats Challenge

      Frozen Treats Challenge
    • Colors of the Rainbow Contest

      Colors of the Rainbow Contest
    • Backyard Contest

      Backyard Contest