SparkFun JetBot : Motors working in reverse

Hello,

I recently purchased a SparkFun JetBot Kit (https://www.sparkfun.com/products/16417) and I have a little issue with it.

I followed the assembly guide and once finished I started the robot, set the wifi up and logged in the online Jupyter notebook to start using the first example. Everything went fine to this point.

My problem appened when I wanted to use the first notebook, the basic_motions. When I launch the exemple code who’s supposed to make the robot turn to the left (counter-clockwise) he turns to the right (clockwise) and when I send the command to make the robot go forward he goes backward, I have to set negative values for the motors speed to make the JetBot go forward :?

I thought that it was because the motors where badly connected to the Qwiic Motor but after verification they look like they are fine, as shown in the SparkFun assembly documentation.

Does maybe someone encoutered a similar problem with their kit ? What have you done to fix this ?

I may have missed something in the assembly documentation but I looked at my wires connection many times and I believe that my build is correct…

Thanks in advance for your help !

r0bin

You have a couple options…

Somewhere the wires are likely flipped (likely the power +/-, or ENA and ENB, etc…but something is probably reversed…though: Using negative values is fine; the JetBot interprets positive and negative values similarly - Altering the code to suit your experimental results is great! Our advice would be to rename Right/Left/Forward/Reverse or leave negative values, etc…you’ve already fixed the problem, so now you can decide how to proceed!

Hope this helped!