only PWM 9 and 10 work, the rest don't. wtf.

I've got a Duemilanove and i use the example program called sweep. i just change myservo.attach(11); to the appropriate pin and move the signal wire accordingly but for some insane reason only the 9th and 10th pins actually work. I've tested 3,5,6,and 11 and get nothing. same code, same wiring. wtf. if this doen't get resolved i'm going to have to use a Pololu controller.

RTFM - the Arduino Servo library only works on pins 9 and 10 : Servo - Arduino Reference

I posted a library in this thread that supports up to 8 servos on any of the digital pins

Servos don't use PWM. They use PPM (pulse position modulation).

The included servo library only supports ping 9 & 10. Have a look in the Playgound for a number of other servo libraries with more capabilities (scroll down to the servo section).

Thanks.

no wait, it won't compile with the new library. found the new servo library you were referring to, replaced the one that came with arduino14 with the new one. now all programs that include Servo.h fail with this error:

In file included from C:\Documents and Settings\Administrator\Desktop\arduino-0014\hardware\cores\arduino/WProgram.h:4,

c:/documents and settings/administrator/desktop/arduino-0014/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:111: error: expected unqualified-id before 'int'

c:/documents and settings/administrator/desktop/arduino-0014/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:111: error: expected `)' before 'int'

c:/documents and settings/administrator/desktop/arduino-0014/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:111: error: expected `)' before 'int'

In file included from C:\Documents and Settings\Administrator\Desktop\arduino-0014\hardware\cores\arduino/WProgram.h:6,

no matter what the code is, if the code includes Servo.h, the program fails with those errors.

Not sure which library you tried. I neglected to post the link to the thread about the the library that drives 8 servos, its here: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1230479947

You can download the code from here: Arduino Playground - HomePage

yea, the ServoTimer2 library works. thx.