View Single Post
  #5   Spotlight this post!  
Unread 05-02-2013, 08:24
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Equation for converting potentiometer voltage into angle?

Quote:
Originally Posted by DELurker View Post
We are looking at doing something like the illustration attached. The fixed resistor is there for the zero resistance case of the pot.
If you were using a simple variable resistor, that diagram might be appropriate. But a properly-wired potentiometer always puts the maximum resistance across the power input, and the wiper provides a voltage proportional to its travel from one end to the other.

Just wire one end of the pot to +5, the other end to 0, and the wiper to the analog signal input. All three of those are conveniently provided on the analog input pins.