Thread: Encoder Help.
View Single Post
  #2   Spotlight this post!  
Unread 13-02-2012, 12:58
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,065
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: Encoder Help.

Quote:
Originally Posted by mtnteam View Post
I have an encoder hooked up along with a motor. The encoder reads the motor fine. But, I'm stuck on how to use the the output of the encoder with the motor. So lets say i press button 10 on the joystick. Than it tells the motor to only spin 1/4 a rotation, or 90 degrees. I've been trying every possible idea that i had. Any help is greatly appreciated.
Use a PID (or any other feedback controller) with encoder signal as process variable, and the setpoint established as follows:

Every time the leading edge of a button press is detected, increment the setpoint by 90 degrees.

What are you using this for?

Reply With Quote