View Single Post
  #9   Spotlight this post!  
Unread 10-04-2013, 08:15
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: Question about encoders to control motor

Quote:
Originally Posted by gluxon View Post
Either way, that code is stopping and starting the motor at what I would guess to be a very high rate. I'd imagine some mechanical stress depending on the motor used, no?
You are already bang-bang controlling the motor anyway. That's how pulse width modulation works.

If your bang-bang controller is running fast enough and your sensor input is sufficiently noisy (enough to cause many on-off transitions), then the bang-bang control method is no different on the motor than running it by PWM.
__________________
-
An ounce of perception is worth a pound of obscure.