Sounds good, I've tried your code and can confirm that it's a continuous rotation servo. That's no good for what I need but I'd already bought myself a smaller servo that is a standard positional model.
I'm going to write a review here on element14 today.
It's going to include a test bed where you can enter the speed in the Serial Monitor of Arduino IDE, between 0 (fast counter clock) and 180 (fast clowkwise). It will run at that speed for 5 seconds then stop.
I've been digging a bit further in the howabouts of this type of servo,
and my code above is more complex than it should be.
There's no need to keep telling it the speed in the loop.
#include <Servo.h>
Servo myservo; // create servo object to control a servo
void setup()
{
myservo.attach(9); // attaches the servo on pin 9 to the servo object
myservo.write(100);
}
void loop()
{
// this space intentionally left blank
}
Top Comments