From this guide (https://www.arduino.cc/en/Guide/Braccio) I copied the code to disable Soft Start of Tinkerkit Braccio, which is:
pinMode(12, OUTPUT); you need to set HIGH the pin 12
digitalWrite(12, HIGH);
Braccio.begin(SOFT_START_DISABLED); and set a proper parameter to disable the soft start
I edited the testBraccio90 example from the library Braccio by Andrea Martino to implement the previous code:
#include
#include
Servo base;
Servo shoulder;
Servo elbow;
Servo wrist_rot;
Servo wrist_ver;
Servo gripper;
void setup() {
pinMode(12, OUTPUT);
digitalWrite(12, HIGH);
Braccio.begin(SOFT_START_DISABLED);
}
// The original example from Andrea Martino had more comments, and had the setup configured like this:
// void setup() {
// Braccio.begin();
// }
void loop() {
Braccio.ServoMovement(20, 90, 90, 90, 90, 90, 73);
}
Problem is it doesn't seem to successfully disable Soft Start: after the upload, Braccio does a different Soft Start then the previous (seems to cycle through different Soft Starts) before finishing with the pose specified in Braccio.ServoMovement()
My intent is to stop the robot in the position specified in Braccio.ServoMovement(), and then upload a slightly different value of a servo to facilitate the comparison between two different degrees.
Example:
// This is the void loop now, same of the above:
Braccio.ServoMovement(20, 90, 90, 90, 90, 90, 73);
// This is the only thing I'd like to see the robot arm do
Braccio.ServoMovement(20, 90, 90, 90, 90, 90, 72);
// I just decreased by one the value of the last servo
If I do this change now, it will still perform the Soft Start.
How can I make the robot only perform a one degree rotation of a servo, without performing the Soft Start?