Hi Guys!
At first: The Arduino is awesome. I just love it! I got mine yesterday. I bought a servo too, it's a SpringRC SM-S430R.
I Can't get it to work.
I saw a topic here in this forum, but I can't find it anymore.
Well - The Servo stops at 1500. 0-1500 is CCW, 1500+ is CW.
I found this script in the post:
#include <Servo.h>
Servo myservo;
void setup()
{
myservo.attach(9); //set up the servo as usual
Serial.begin(9600); //for watching the speeds in the serial monitor
}
void loop() {
// on this servo 1500 is stopped, above 1500 is clockwise, below is counter clockwise
for (int i=1500; i >= 1300; i=i-20) //start from a stop and slowly increase to get the motor turning
{
myservo.writeMicroseconds(i);
Serial.print("Running motor at: ");
Serial.println(i, DEC);
delay(5000);
}
for (int i=1300; i <= 1500; i=i+50)
{
myservo.writeMicroseconds(i);
Serial.print("Running motor at: ");
Serial.println(i, DEC);
delay(5000);
}
delay(5000); //wait for five seconds and then spin it the other way, counting up again.
for (int i=1500; i <= 1700; i=i+20)
{
myservo.writeMicroseconds(i);
Serial.print("Running motor at: ");
Serial.println(i, DEC);
delay(5000);
}
}
But when I connect my servo and upload this script to my Arduino Uno (rev3), I just hear a buzzing noise coming from the Servo.
I made some adjustments yesterday, I changed some values - then the servo worked fine. But today, I can't remember these adjustments, and it doesn't matter what I do (changing the power Value from 1500 to 3000 for an example), the servo just doesn't move and its just this annoying buzzing noise. As I said, the servo worked fine yesterday.
Any suggestions?
Im very confused.
Thanks