Arduino Servo Control for Beginners

arduino-servo-setup-1.jpgI managed to get my servo working with Arduino today using this tutorial. Nothing to special. The first time I tried nothing happened because I had the min/max pulse time setup wrong for the hitec servo. With the hitec servos the min pulse is 900µsec and the max is 2100µsec. Once I changed that it worked and should work for all hitec servos. I have looked at the Arduino servo libraries and they all seem unfinished or limited in one way or another. I am currently working on a sketch that will allow the control of up to 11 servos with analog inputs or serial commands. Also in the works is an Aduino servo shield.

Arduino Servo Sketch for analog control of a hitec servo

9 Responses to “Arduino Servo Control for Beginners”

  1. The Stem » Blog Archive » Arduino Servo Control… Screw It, I am Going To Learn Some Assembly Says:

    [...] a servo with Arduino is easy, as shown in a previous post. What I have found difficult is getting multiple servos and serial data processing to play nice [...]

  2. Blog de Daniel Bernat » Conociendo Arduino (II) Says:

    [...] MOTOR: blog post including code for the HItec brand of [...]

  3. stan Says:

    Hi I have a question. I am trying to get the arduino servo control to work but im still having issues. Is there anything else that needs to be added at the end of the script. ? if not what kind of results are expected, so far i have no results in my hitec servo. Im assuming im supposed to modify the script somehow.

    any help would be tremendously appreciated.

  4. Brettf Says:

    Well there are a couple of things i need to know first. Do you have a potentiometer hooked up to your arduino? What pins do you have it connected to and what pins do you have connected to your servo?

  5. alice Says:

    Hi. I am new, on the arduino.cc website there is different code to make my servo works. but now I would like to use a sound sensor as a switch for the servo. I am having a lot of difficulties to write a code. does someone has ideas?

  6. Brettf Says:

    Well depends on what you mean by a sound sensor? I need more info before I could comment.

  7. Au Pair Says:

    very nice web site. My English is not so good, so I do not understandt it well, but it seems very good. Thanks

  8. marc Says:

    i will like to build a small robot…

    i would like to have 2 wheels…

    surely i need one servo by wheel?

    somebody can explain me how to connect 2 servo on the arduino?

  9. lsi Says:

    it would be better with other languages support, but thanks..

Leave a Reply