View Single Post
  #8   Spotlight this post!  
Unread 09-04-2013, 23:34
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,153
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Question about encoders to control motor

Quote:
Originally Posted by gluxon View Post
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.