Configuring wheel motions (CW, CCW)
Hey guys,
Started with building the Boe-Bot today. I have already center the motors and have made it to the testing stage. I have encountered a problem.
My RIGHT wheel works fine. It will spin clockwise, stop and then reverse counter clockwise.
However, my LEFT wheel spins counter clockwise first, then clock wise.
To my knowledge I do not have the motor installed "upside down" because the wires are both coming from the bottom of the motors before entering through the rubber grommet. Any help on what I could be doing wrong?
Thanks,
Chris
Started with building the Boe-Bot today. I have already center the motors and have made it to the testing stage. I have encountered a problem.
My RIGHT wheel works fine. It will spin clockwise, stop and then reverse counter clockwise.
However, my LEFT wheel spins counter clockwise first, then clock wise.
To my knowledge I do not have the motor installed "upside down" because the wires are both coming from the bottom of the motors before entering through the rubber grommet. Any help on what I could be doing wrong?
Thanks,
Chris
Comments
I have modified a few servos by reversing the two motor wires to make them operate in reverse. Using one of those with a standard servo will make the bot respond more intuitively with the same numbers (ie, 500/500 or 900/900 to drive straight). Arguably better, but then you have a non-standard servo. You can't swap & share code with other people without modifying your code.
Simple enough to do in a subroutine, certainly, if you want to adjust numbers on the fly. With only 2K of memory in a BS2, efficient code crunching is the name of the game. I prefer to experimentally determine the numbers for any given pair of servos and hard code them into the program for navigation routines.
But that wouldn't teach you what is supposed to be happening, just provide a further disconnect to understanding how robots work.
The issue is a simple one, and all vehicles, including cars, with wheels on both sides work the same way. When a wheel turns clockwise, the one on the other side turns opposite. It's just not something we think about until we need to. And for beginning robotics, we need to.