|
Re: How do I use the AS5304 sensor?
The AD5304 is a magnetic linear encoder, which requires a magnetic strip to work. Assuming you have the magnetic strip, you then place the sensor <1.0mm away from the strip and slide it along the strip. This produces quadrature pulses which can be read using the Encoder class (or VI) in WPILib.
As for wiring, connect the 5V supply and ground to the corresponding pins on the roboRIO, and the A and B channels to two digital inputs. The channel numbers of the digital inputs are what should be supplied to the Encoder constructor/open VI.
__________________
2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
|