Hello everyone, I just bought a Braccio kit, assambled and tried it with the example testBraccio90 but the shoulder and elbow do not move. It's like they do not have power either because if I remove the movement in the loop the other servos remain in position, while 2 an 3 (shoulder and elbow) can be moved easily. I tried every servo attaching them to connector one in a loop movement and they all move just fine, it's like the board arrived with the Braccio is faulty. Any suggestion?
Thank you very much for your time.
Fabio.
Have you tried running the Servo library sweep sketch on those servos by themselves? Did they work?
Something like this (untested):
#include <Servo.h>
Servo shoulder;
Servo elbow;
void setup()
{
Serial.begin(115200);
shoulder.attach(10);
elbow.attach(9);
}
void loop()
{
for (pos = 30; pos <= 120; pos += 1) // goes from 0 degrees to 180 degrees
{
// in steps of 1 degree
shoulder.write(pos); // tell servo to go to position in variable 'pos'
elbow.write(pos);
delay(15); // waits 15 ms for the servo to reach the position
}
for (pos = 120; pos >= 30; pos -= 1) // goes from 180 degrees to 0 degrees
{
shoulder.write(pos); // tell servo to go to position in variable 'pos'
elbow.write(pos);
delay(15); // waits 15 ms for the servo to reach the position
}
}
Thank you. Nothing changed, nothing moved. Either my arduino Uno is faulty or the servo board is apparently. I ordered a new Arduino Uno board just to be sure.
I am unfamiliar with that arm. Can you move the connectors from the shoulder and elbow servos connectors to 2 different pins that you know work and try the sweep using those pin numbers? That would tell you if it the servo or the pin.
Ok, It was my arduino board's fault. Apparently pin 9 and 10 are not working. I bought a new arduino uno board and the program is working just fine. Thank you for your help.