Welcome to the Robolink Community forum!
My Zumi going reverse
-
Hi My Zumi got a problem. It moves backwards when I code forward and vice versa. What could be the problem. How can I get through this ?
-
@krishna Please share a screenshot of the output when you run the following:
from zumi.zumi import Zumi zumi = Zumi() zumi.mpu.calibrate_MPU() zumi.forward(duration=2)
If Zumi is still not going straight, take a video of Zumi driving as well as a video clip of Zumi as you gently turn the motors with your hand. If anything feels stuck or dislodged, then please let us know!
-
@robolink_leila
Hi.. I did as u suggested. But still no improvement. The zumi doesnt get recalibrated and still doesnt go in a straight line. Is there any problem with device itself ? -
@krishna Please create a new cell and run the following code:
!sudo rm /home/pi/offsets.txt
This will remove the offset file. When you rerun the calibrate code it should generate a new file for you. If you are still having the same issue, please update Zumi as this was an issue with an earlier version. Let me know if you have any more questions.
-
@robolink_leila 
-
Thanks. yes i swapped the motor connections. Better now. But the directions are not entirely correct. How do I recalibrate. The Recalibration code in example shows permission error.
-
@krishna It sounds like your motors are connected backward. Switch the motor ports and let me know if this helps!