Go to Post I think we can all remember, no matter our age, that we are always responsible for our own actions and reactions. - JaneYoung [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 01-02-2011, 18:16
Wicked Wicked is offline
Registered User
FRC #0354 (G-House Pirates)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: New York
Posts: 46
Wicked is an unknown quantity at this point
Mounting magnetic encoder

We're trying to use the AS5304 encoder to return the absolute position of a motor. How would we go about mounting this encoder onto to the motor/gearbox?
  #2   Spotlight this post!  
Unread 01-02-2011, 20:29
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: Mounting magnetic encoder

The AS5304 is a linear encoder. It can detect motion along a straight line. Is that what you're trying to do?

If instead you want to measure the angle of a rotating shaft, the AS5030 rotary magnetic encoder is what you need.

Whatever the case, the place to go is the Kit of Parts page on the FIRST web site. You will find full documentation on each of the sensors provided in the Kit. The sensor you're asking about is in the Parts Data Sheets section, as is the one it sounds like you need instead.
  #3   Spotlight this post!  
Unread 01-02-2011, 22:55
keericks's Avatar
keericks keericks is offline
Registered User
AKA: Kent
FRC #1671 (Buchanan Bird Brains)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1998
Location: Clovis
Posts: 55
keericks is a glorious beacon of lightkeericks is a glorious beacon of lightkeericks is a glorious beacon of lightkeericks is a glorious beacon of lightkeericks is a glorious beacon of light
Re: Mounting magnetic encoder

Can the KOP magnetic rotary sensory measure more than 360 degrees of shaft rotation?
  #4   Spotlight this post!  
Unread 01-02-2011, 23:05
JCharlton's Avatar
JCharlton JCharlton is offline
Registered User
AKA: JC
no team
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Montreal
Posts: 123
JCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to behold
Re: Mounting magnetic encoder

Right off the bat, I'm not an electrical guy, but I think you'll have a problem reading a motor's orientation directly off a motor when its moving. You probably want an encoder (which will read a fast spinning motor) or you want the magnetic angle sensor somewhere closer to the end of your motor/gear system (on the final output shaft).

Can you be more specific about what you're trying to measure?
__________________
"There is no problem so bad that you can’t make it worse." - via Chris Hadfield
  #5   Spotlight this post!  
Unread 01-02-2011, 23:09
keericks's Avatar
keericks keericks is offline
Registered User
AKA: Kent
FRC #1671 (Buchanan Bird Brains)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1998
Location: Clovis
Posts: 55
keericks is a glorious beacon of lightkeericks is a glorious beacon of lightkeericks is a glorious beacon of lightkeericks is a glorious beacon of lightkeericks is a glorious beacon of light
Re: Mounting magnetic encoder

Bane bot shaft that's driving a larger gear for an arm. Dead shaft on arm joint, so I'm trying to measure the arm position by how much the bane shaft has turned which will be more than 360 degrees to move the arm up and down.
  #6   Spotlight this post!  
Unread 01-02-2011, 23:23
zbanks zbanks is offline
Registered User
AKA: Zach Banks
FRC #0529 (Mansfield Hornets)
Team Role: Leadership
 
Join Date: Feb 2010
Rookie Year: 2008
Location: MA
Posts: 37
zbanks is an unknown quantity at this point
Send a message via AIM to zbanks
Re: Mounting magnetic encoder

The rotary magnetic encoder would work pretty well in this case.

It only gives a position out of 360 degrees (actually in 1.4 degree increments), which isn't ideal, but with code you can keep track when it "crosses over" from 5V to 0V.

As long as its not spinning at >~1000RPM, you should be fine.

Alternatively, you could buy a multi-turn potentiometer, which would give you an absolute position of the shaft. For example, a 10-turn pot would give your position over 3600 degrees. However, they physically cannot turn more than this amount: so plan accordingly. Also, keep in mind that you will lose resolution if you use too many turns. (There are 10-bits of resolution, which means each detectable step is about 0.1% of the total value.)
  #7   Spotlight this post!  
Unread 01-02-2011, 23:49
JCharlton's Avatar
JCharlton JCharlton is offline
Registered User
AKA: JC
no team
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Montreal
Posts: 123
JCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to behold
Re: Mounting magnetic encoder

We haven't tried it yet, but our solution to the same issue is to use an accelerometer. Should read the absolute angle of the arm with respect to the floor. Some filtering for hits may be required.

Check your torques and all, my suspicion (as a mechanical guy) is that you'll need a larger gear reduction to move the arm with enough torque, control and to avoid stalling your motors at high amperage for too long. A very good PID might alleviate it, but lots of reduction will help.
__________________
"There is no problem so bad that you can’t make it worse." - via Chris Hadfield
  #8   Spotlight this post!  
Unread 02-02-2011, 00:29
KrazyCarl92's Avatar
KrazyCarl92 KrazyCarl92 is offline
Registered User
AKA: Carl Springli
FRC #5811 (The BONDS)(EWCP)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Dayton, OH
Posts: 521
KrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond repute
Re: Mounting magnetic encoder

When working with potentiometers as suggested, it may be helpful to mount the pot to a slower turning shaft or in some cases the slowest turning shaft because you can 'get the most' out of your ten turn pot.
__________________
[2017-present] FRC 0020 - The Rocketeers
[2016] FRC 5811 - BONDS Robotics
[2010-2015] FRC 0020 - The Rocketeers

Last edited by KrazyCarl92 : 02-02-2011 at 00:29. Reason: Spelling
  #9   Spotlight this post!  
Unread 03-02-2011, 16:24
Wicked Wicked is offline
Registered User
FRC #0354 (G-House Pirates)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: New York
Posts: 46
Wicked is an unknown quantity at this point
Re: Mounting magnetic encoder

Quote:
Originally Posted by Alan Anderson View Post
The AS5304 is a linear encoder. It can detect motion along a straight line. Is that what you're trying to do?

If instead you want to measure the angle of a rotating shaft, the AS5030 rotary magnetic encoder is what you need.

Whatever the case, the place to go is the Kit of Parts page on the FIRST web site. You will find full documentation on each of the sensors provided in the Kit. The sensor you're asking about is in the Parts Data Sheets section, as is the one it sounds like you need instead.
Alright, thanks.

Questions about the linear encoder: Where is the AS5304 mounted in order to get a reading. Does it have to be in contact with a motor, or does it simply have to be on the robot?

Can the Motor With Encoder example in LabVIEW work with the AS5304, without any modifications?
  #10   Spotlight this post!  
Unread 03-02-2011, 21:12
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: Mounting magnetic encoder

Quote:
Originally Posted by Wicked View Post
Questions about the linear encoder: Where is the AS5304 mounted in order to get a reading. Does it have to be in contact with a motor, or does it simply have to be on the robot?
Read the AS5304 data sheet to answer these and many other questions.
  #11   Spotlight this post!  
Unread 09-02-2011, 16:29
Wicked Wicked is offline
Registered User
FRC #0354 (G-House Pirates)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: New York
Posts: 46
Wicked is an unknown quantity at this point
Re: Mounting magnetic encoder

New question:

Where would we go to purchase the AS5304-AB encoder. I checked the link given by the PDF from FIRST, but it only has the AS5304-A and AS5304-B models for sale.
  #12   Spotlight this post!  
Unread 09-02-2011, 16:41
Gdeaver Gdeaver is offline
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,370
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
Re: Mounting magnetic encoder

The sensor you want to use may not be the best option. It requires very precise mounting to work. The cherry an8 series or a vishay version would be better. The cherry allows for some magnet misalignment and a variation of magnet to face much greater than the Austria micro chip. The vishay version has a shaft. CUI also has a version that has many features by SPI.
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 07:22.

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