Hi
I have been trying to get control over the movement of my 2 legged robot. I did the assembly and centering of servos as per instructions.Whenever i turn on;all the servos seem to move to a particular direction and stay there unless i power it back and realign it again.I am attaching a link of video of the robot movement here.
I am trying first to get an understanding of the magnitude of the movement of the servos with my code.I have just downloaded a sample code as given here.Once i understand the servos movement in line with the code i am planning to get my Robot to move with my own code.
#include <Servo.h> // The ALLBOT library needs the servo.h library
#include <SerialALLBOT.h> // Do not forget to include the ALLBOT library, download it from the manuals.velleman.eu website
SerialALLBOT BOT(4); // Create a SerialALLBOT
enum MotorName {
hipLeft,
hipRight,
ankleRight,
ankleLeft,
};
int sounderPin = 13; // Declaring what pin the sounder on the VRSSM is connected to
void setup()
{
BOT.attach(hipLeft, 12,0,0, 0);
BOT.attach(hipRight, 3,0, 0, 0);
BOT.attach(ankleLeft, 11,0,0,0);
BOT.attach(ankleRight, 2,0, 0, 0);
}
void loop()
{
BOT.update();
}