Log in

View Full Version : RobotOpen Spike problems


augusto.sk
17-01-2013, 14:58
Hello, my name is Augusto and im a programming student from the team 383,

Im using an Arduino with Robot Open shield and im trying to control a spike. I turn it foward and stop, but i can`t turn backwards




if (estadoBtnA == true)
{
roleteOn = 1;
roleteOff = 0;

}

if (estadoBtnB == true)
{
roleteOn = 0;
roleteOff = 1;

}




if (roleteOn == 1)
{
analogWrite(SIDECAR_DIGITAL1, 255);
}


if (roleteOff == 1)
{
analogWrite(SIDECAR_DIGITAL1, 127);
}



Best regards!
Augusto

nathan.chupp
13-02-2013, 09:43
Can you post all of your code and i can try and debug it for you ?

tr6scott
14-02-2013, 12:34
I think the problem is the analog write data, please review the documentation.

I think the values are...

255 == full forward
127 == off no output
1 == full reverse

I don't think you ever tell it to go reverse, only stop and forward.