View Single Post
  #2   Spotlight this post!  
Unread 02-02-2015, 14:34
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
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