
It seems like it’s meant to allow you to drive FWD or RVS and then if you press LEFT or RIGHT at the same time, it will continue trying to drive FWD or RVS while also working in a LEFT or RIGHT.
#SERVO MOTOR ARDUINO STILL CODE#
So I’m guessing you didn’t code the rcCarControl(lastCommand) in then. So how are you connecting your servos? Can you tell me exactly what type of servo, wire colors and where they are plugged into? If on the shield, do you have a schematic for the shield? (I think I know which one it is, but this is kind of like your homework for troubleshooting Sorry if all of this is dribble…i just really want a robot that can fetch my slippers for me! (no pets allowed in the apartment…) are you saying i could simply take the Spark.function("rccar", rcCarControl) line and put it in loop? how would that really change anything? isn’t it just a function instructing the core to listen for api commands? as i grabbed the rc car example from spark though, i never got to fully understand how the. i’ve done enough arduino sketches to understand the roles of setup() and loop(). might be a wiring issue or issue with the motor shield…? anyway, i am going to pick up another battery holder to try powering servo independent of motor battery holder and spark battery holder, then see if turn left and right commands still effect i’m afraid i am still so new at all of this that your last few points are a bit greek to me. however, turn left and turn right commands make the arm move. Thanks to folks at spark for such an awesome product! have had lots of fun allowing my friends to control my robot from miles away and watching it move over skype/gchat !Įven with that fix, neither grab nor release work. If none of the commands were executed, return false * Description : Parses the incoming API commands and sets the motor control Myservo.attach(D0) // attaches the servo on pin 0 to the servo object

Int pos = 0 // variable to store the servo position Servo myservo // create servo object to control a servo cpp firmware (below) then issue commands through a.
#SERVO MOTOR ARDUINO STILL SOFTWARE#
I have one of the servos plugged into D0 at the moment, but can’t seem to control it with my current software setup.įor the rc-car, I upload the. I have installed a robot arm and hand to my car, but haven’t quite gotten any servos to work.

And, would you mind taking a look at my code? I have the rc-car example code working well with my spark and motor shield.
