View Single Post
  #13   Spotlight this post!  
Unread 02-04-2014, 23:06
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,112
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: Potentiometer issues

Quote:
Originally Posted by Qbot2640 View Post
Can I install a potentiometer in the manner discussed here without any significant code changes (except perhaps the multiplier and the desired "set point") and read the value just like we're reading the encoder value?
Yes, it should be that simple. The one difference between the sensors that you need to worry about is that potentiometers typically have physical limits on how far they travel. If you do get a continuous-travel pot, the "dead zone" at the transition from maximum directly to minimum is usually a significant angle. For your purposes, just make sure the pot is rotated so the normal range of travel is not exceeded.
Reply With Quote