Thread: potentiometer
View Single Post
  #6   Spotlight this post!  
Unread 16-01-2013, 12:12
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
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: potentiometer

Quote:
Originally Posted by luanrookie View Post
Yes, but when we run the program, the motor does not stop when the joystick and potentiometer are equal, he keeps turning and stopping and going back to spinning the opposite side.
Do some debugging. Look at the error term when "the joystick and potentiometer are equal". If the error is not zero, you've got a scaling or offset problem between your setpoint and your process variable.