Introduction: How to Run Servo Motors Using Arduino

Picture of How to Run Servo Motors Using Arduino

This tutorial is to guide you to run one or multiple servos through an Arduino.

Step 1: Materials

Picture of Materials

To have correctly Running Servo Motors these are the Materials you will need (Describing from left to right, you will need a Arduino board, USB Arduino connection cord, a simple positive-negative breadboard, double sided wires, potentiometer knobs, and lastly Servo Motors. Depending on how many servo motors you are running the amount of materials you need may vary.

Step 2: Starting Arduino

The screen capture video is getting the program up and running and ready to write your code. The system I use to run Arduino is through a Mac Book. Note that the code that comes up with you start the application is not the correct one for you.

Step 3: Connection

Picture of Connection

The first piece of work to ensure your Servos run correctly is the connection from the Arduino board onto the computer application. Once the USB end is plugged into the computer and the other end is plugged into the board you then go to the top of your computer screen.


1. Tools

2. Scroll down to "Port:"

3. Select the "USB" option

Trouble shooting.... If there is no USB option then try unplugging and re connecting, pushing the reset button on the Arduino board, and exiting and reopening the Arduino application.

Step 4: Breadboard Componets

Picture of Breadboard Componets

After successfully connecting the Arduino to your computer next you must get two specific items ready for it to all be put together which is putting the Knob on the bread board evenly in the same row. Also connecting wires to the Arduino cord so it is compatible with the bread board.

Step 5: Servo Connection

Picture of Servo Connection

These pictures are a guide of where your wires specifically need to be on the bread board and Arduino board to have it function properly.

Step 6: Knob Connection

Picture of Knob Connection

These pictures are the next step you need to take by connecting the knob you should be left with three wires coming from the bread board. One from the middle connection of the knob, one from the negative side of the bread board, and one from the positive side.

Step 7: Arduino Connection

Picture of Arduino Connection

This shows what needs to be connected to what on the Arduino board. When using multiple knobs and servos each will have to be wired like this with the exception of wires going to ground and 5 V because that is for the entirety of the positive and negative sides. After connecting all of this you will have completed all of the wiring for one servo connected to one knob.

Step 8: Starting Code

Picture of Starting Code

These two pictures navigate you to the correct choice for the knob code on Arduino once set on the page you can run only one servo with the base code. If you are wanting to run multiple servos the next three steps are for you.

Step 9: Mulitple Servo Code

Picture of Mulitple Servo Code

This video shows you how to write additional code to what the base gives you. For each servo you add the code should be copied but written with different names like it was in the tutorial. There is also pictures of what I did if the video was to fast.

Step 10: End Result

Picture of End Result

These are some examples of what you end result can look like.


seamster (author)2017-06-05

Good info, thank you for sharing!

About This Instructable



More by NathanI9:How to Run Servo Motors Using Arduino
Add instructable to: