Motors in opposite directions


#1

I am finally getting around to playing with my GoPiGo.
All is well, except that the motors don’t go in the same direction. And yes, my cables are alternating, black, white, black, white.

I switched them to white,black,black,white, and now they’re going in the same direction. However they don’t seem to get the same amount of power. At least not consistently. My GoPiGo goes in a sinuous pattern instead of going straight.


#2

More.

I’m using basic_test_all.py to test.

Going backwards is more or less straight. Going forward is not straight.


#3

Hmm, a reboot seems to have taken care of the issue.

Weird… The GoPiGo still wobbles but manages to go in a straight line, more or less.


#4

Ok, the reboot didn’t fix anything after all. It just reset the power to high.
If I lower the power, then one wheel stops working, while the other one is still happy.
I double checked everything and I don’t see anywhere where friction would be a problem. I just seem to have a defective motor :frowning:


#5

CleoQc, do you have the encoders attached to your motors?


#6

Yes they are attached. (That’s the black circles, right?)


#7

Yeah, is the the circular thing with slots cut out http://www.dexterindustries.com/wp-content/uploads/2014/10/60-1.jpg . Just make sure that the tape in there on top of them.

Also, can you make sure that batteries have more than 9V.

Try this. Put the GoPiGo on the ground and run the forward command in the basic_test program. It should wobble a bit when it starts and then start moving forward.

You have updated to the latest software and firmware, right?

-Karan


#8

Also curious CleoQc: are you seeing wobbling at very low speeds, or at all speeds?


#9

Batteries are brand new Duracell Quantum.

Yes I’ve updated to the latest software and firmware, as per instructions here: http://www.dexterindustries.com/GoPiGo/getting-started-with-your-gopigo-raspberry-pi-robot-kit/5-using-your-gopigo-for-the-first-time/

(yes I disconnected the motors before updating)


#10

Hi,
If you open GoPiGo/Software/Python folder, there’s a basic_test_all.py file. Run that program and give commands ‘i’ to move forward and ‘k’ to move back and ‘x’ to stop. Can you try this and tell us if the GoPiGo behaves any better.

-Karan