|
Re: Programming Potentiometer for Shooter
If you read one of the analog inputs from the I/O board, it will have a range of 0 volts to 3.3 volts. Your output to the motor should be in the range of 0 to 1 because you will be driving it in only one direction.
A simple division of the read analog voltage by 3.3 will yield an output in the range of 0 to 1. So, all you need to do then is feed that to the motor output.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
|