|
Re: Potentiometer issues
Thank you for the much needed lesson...
We are currently picking up the signal from our encoder and multiplying it by 72 to simulate degrees around the circle. The problem we're having is that the break point between 360 and 0 (between 5 volts and 0 volts from the encoder) is very close to the top of our travel, and there were times when we over drove the tilt and surpassed the maximum point on the circle. Then, our autonomous code read the current angle to be something like 3 degrees (rather than 355 degrees) and tried to raise rather than lower the shooter to reach the desired set point. We should have rotated the magnet as soon as we discovered this, but we thought we could handle it by adjusting the limit switch location...hind sight!
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?
__________________

2012 Palmetto Regional Winners (Thanks 2059, 2815, and 287).
2012 Newton 14th Seed
2013 Chesapeake Regional Imagery Award Winners
2014 North Carolina Regional Imagery Award Winners
2014 Greater DC Regional Team Spirit Award Winners
2015 North Carolina Regional Finalists (Thanks 3971 and 587)
|