Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   RobotOpen Spike problems (http://www.chiefdelphi.com/forums/showthread.php?t=111458)

augusto.sk 17-01-2013 14:58

RobotOpen Spike problems
 
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

Re: RobotOpen Spike problems
 
Can you post all of your code and i can try and debug it for you ?

tr6scott 14-02-2013 12:34

Re: RobotOpen Spike problems
 
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.


All times are GMT -5. The time now is 02:14.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi