View Single Post
  #2   Spotlight this post!  
Unread 06-02-2011, 22:33
mjbrauck mjbrauck is offline
Registered User
FRC #0768 (Techno Warriors )
 
Join Date: Jan 2006
Rookie Year: 2005
Location: maryland
Posts: 23
mjbrauck has a spectacular aura aboutmjbrauck has a spectacular aura about
Re: Can you use a potentiometer to control motor position?

Sure. but you will need some way of measuring the arm's position ie an encoder or if its rotation is limited another potentiometer on the robots arm wired to a analog input on the CRIO. Then in code you can compare the value of the potentiometer with the position of the arm and figuer out what direction to move. a simple way to do this is to subtract the two potentiometers (desired position - actual position) the result is how far off you are and the sign represtent the direction you need to go.
Reply With Quote