|
Re: Rotation sensors?
You have an axle you want to measure. It is probably for an arm (the OP did not specify). Assuming its for an arm (which has a rotational limit), a potentiometer would measure the exact position at all times and output an analog signal to the cRio. No math necessary (Except to scale the 0-5v into a different range if you want, but you could use the voltage raw without issue). Whenever we have a rotational joint which software has control to adjust, it is standard practice for us to put a potentiometer on it and automate control of it. We always use potentiometers, because they are absolute (you know where you are even if you just booted up, something a quadrature encoder does not give you) and reliable.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor
"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
|