Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   How do I use the AS5304 sensor? (http://www.chiefdelphi.com/forums/showthread.php?t=133871)

Pike3543 02-02-2015 14:18

How do I use the AS5304 sensor?
 
I am trying to find out how to use the AS5304 sensor and how to get a signal out of it. I'll like to know how to wire it and to get a signal.

Ben Wolsieffer 02-02-2015 14:34

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.

Alan Anderson 02-02-2015 14:56

Re: How do I use the AS5304 sensor?
 
Do you have a bare AS5304 chip, or are you using the adapter board that was supplied for FRC teams in the 2011 Kit of Parts?

If it's the AS5304-AB-2.0 board, with JP1 labeled "Ind AO B A GND 5V", then connect it exactly the way you would connect a quadrature encoder. Because that's exactly what it is. +5 and GND go to the +5 and GND pins of a DIO port on the roboRIO, A goes to the SIG pin, and B goes to the SIG pin of a second DIO port.

http://www.usfirst.org/uploadedFiles...r%20Manual.pdf

Pike3543 02-02-2015 15:00

Re: How do I use the AS5304 sensor?
 
Ok thanks. I'm starting to wire it now. How do I get a signal from the Rio. Is their any additional code or anything like that for it to work. Or do I plug it in and it works.

GeeTwo 02-02-2015 17:11

Re: How do I use the AS5304 sensor?
 
Note - programming info is followed up in another thread.


All times are GMT -5. The time now is 11:32.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi