Does anyone have an example for using a 9g servo with ServoTimer2? I'm able to get the servo to move, but it seems to have a very limited range of motion-- when I give it a range of 500 ms to 2200 ms it only moves about 50 degrees. Using servo.h I'm able to get it to move around 170 degrees. I'm very new to all this, so thanks very much for the help!
Strange. Are you using the exact same wiring and power supply in both cases?
Have you any other code in the Arduino sketch that might be interfering with ServoTimer2?
...R
Yes, I'm using the same wiring and power supply (just USB, which I assume is enough since it's just one small servo). The code is just a test to see if the library works, and there's nothing in it except sweeping the servo. I also tried using ms instead of degrees with servo.h, and that works fine, but it's like servolibrary 2 isn't producing the correct pulse widths.
Oops, I got it working! There was apparently something wrong with the example code I was using. Thanks for your help.