|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
Re: RobotOpen Spike problems
Can you post all of your code and i can try and debug it for you ?
|
|
#3
|
||||
|
||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|