Arduino Nano clone and Driving Servo with Servo library

Hi,

I am working on the Small project which has 4 continuous rotating Servo
To drive the servos I am using Arduino Nano clone and the ServoLibrary

The PWM pins I am using is D5,D6,D9 and D10

To use the Servo Library the above Pins Map to pin 8,9,12, 13 (from the Diagram shown on http://kiwitricopter.blogspot.com/2012/10/arduino-xbee-receiver-arduino-nano-v30.html)

When I Use Servo.writeMillisecond function nothing happened to the Servo.
Also when I connect to D9 the servo automatically starts rotating even when I haven't attached them in the program.

I want to confirm if the pins i am using are correct, or if the servo lib does not work with Arduino nano.

#include <Servo.h>

servo myServo

void setup()
{
  myServo.attach(9)
  myServo.writeMiliseconds(1600)
}

void loop
{
}

Regards
Saurabh

The Servo library uses any pins, not just PWM.

Connect the ground first, maybe you have it floating?

THanks MarkT,

I was confused about the pin Number now all sorted, Thanks for the Reply.

Regards
Saurabh