View Single Post
  #9   Spotlight this post!  
Unread 07-05-2013, 12:10
Jon Stratis's Avatar
Jon Stratis Jon Stratis is online now
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,747
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: How can I get an angle from a potentiometer?

We had 3 pots on our robot this year, all connected to our climbing arm. For us, it wasn't a question of developing an equation that would convert between voltage and angle... it was figuring out what values matched the specific angles we wanted. For that, we had a "test" mode, where the pot values were spit out on the console. We simply manually moved the arm to where we wanted and read the values at that point! It took a little fine tuning, but those values could then be fed directly into our PID loop to get the arm to perform exactly the same for every climb.
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
Reply With Quote