Quote:
Originally Posted by gluxon
that code is stopping and starting the motor at what I would guess to be a very high rate.
|
The higher the rate, the better. The inertia of the wheel keeps the wheel speed steady in between command updates.
It's not starting and stopping. It's starting and
coasting. One of the requirements of using bang-bang is that the motor controller jumper must be in the "coast" position.
Quote:
|
I'd imagine some mechanical stress depending on the motor used, no?
|
It might, if there is excessive mechanical free play between the motor shaft and the wheel. That's why I asked all those questions. Bang-bang works remarkably well,
if you have the right mechanical design for it.