Hello,
I have a big problem with my studies project. I have to control a robot hand (the mechate robot hand) with an arduino and the pololu ssc03A.
Actually, I’m just making tests with one servo, the used mode is the mini ssc 2. My problem is that when I’m using the servo futuba s3314, after few seconds of working the red led start flashing with a fixe yellow led. But When I’m using another servo (proto-pic.co.uk/servo-small/) it works good.
I tried with 2400 or 9600 bauds, but the problem is still the same.
I have an other little problem, when I used a loop to travel all the servo’s position (with the servo wich work good), it finally travel only 90°
My code in the arduino is next.
[code]
void sendPosition(int servo, int pos);
void setup (){
Serial.begin (9600);
sendPosition(1,0);
}
void loop (){
for(int i=0;i<=254;i++)
{
sendPosition(0,i);
delay(10);
}
for(int j=254;j>=0;j–)
{
sendPosition(0,j);
delay(10);
}
}
void sendPosition(int servo, int pos)
{
Serial.write(255); // Send the start bit
Serial.write(servo); // Send the servo number
Serial.write(pos); // Send the new servo’s position
}[/code]
And I’m sorry for any error in my langage, I’m an exchange student
Best Regards,
Romain