|
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
|