I’ve put together a GoPiGo with a Rasbperry Pi B+ and two (possibly related) things I’m struggling with is 1.) inconsistent movement from the robot and 2.) turning left causes the wheel to turn indefinitely. I’ve only tried using the python interface so far.
Issuing commands fwd(), bwd(), right(), motor_fwd(), etc, all cause the robot to move in the expected direction, but for varying and seemingly random durations. Sometimes I get 10 centimeters, sometimes it looks like it stalls and moves only a fraction of a centimeter.
One strange exception is the left() command, which sets the wheel in motion and doesn’t stop at all until I issue a stop() command.
I’ve tried firmware version 1.2 and 1.3. With 1.3 installed, I’ve monitored the enc_read() output and it looks like the encoders are counting correctly (even with the left() command). However, setting a very large target (i.e. enc_tgt(1,1,1000)) doesn’t seem to have any effect when issuing fwd() – the wheels turn for some random amount and stop.
I noticed that when running the enc_val_read.py script that it’ll print out “IOError” when the wheels stop…so maybe that gives a hint?
Any help is appreciated. Thanks!