Let's Make Robots!

humming

Understanding servos...

Well, I'm trying to learn servos so I'm toying around a micro servo 9G.

I'm using an arduino one board and the following code:

 

#include <Servo.h>

Servo neckServo;            // Define the Servo object

void setup()

{  

  neckServo.attach(10);     // attach the servo on pin 10 to the servo object 

  neckServo.write(90);       // "favorite" default position

}  

 

void loop()

{

neckServo.write(0);