Go to Post Let's just say that I am old enough to... - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-02-2015, 14:18
Pike3543's Avatar
Pike3543 Pike3543 is offline
Coder
AKA: Connor
FRC #3543 (C4 Robotics)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2014
Location: Arnprior, ON
Posts: 9
Pike3543 is an unknown quantity at this point
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.
  #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
  #3   Spotlight this post!  
Unread 02-02-2015, 15:00
Pike3543's Avatar
Pike3543 Pike3543 is offline
Coder
AKA: Connor
FRC #3543 (C4 Robotics)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2014
Location: Arnprior, ON
Posts: 9
Pike3543 is an unknown quantity at this point
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.
  #4   Spotlight this post!  
Unread 02-02-2015, 17:11
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,606
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: How do I use the AS5304 sensor?

Note - programming info is followed up in another thread.
  #5   Spotlight this post!  
Unread 02-02-2015, 14:56
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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