Go to Post Are we really that close-minded that we have to insult other teams that deviate from what we percieve to be right? Giving an opinion and insulting someone are far from each other. - Amanda Morrison [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 14-01-2013, 12:54
lucybugg101's Avatar
lucybugg101 lucybugg101 is offline
Registered User
AKA: Lucy Arsenault
FRC #1517 (Lumberjacks)
Team Role: Electrical
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Concord, NH
Posts: 15
lucybugg101 is an unknown quantity at this point
Magnetic encoders? Anybody else having trouble?

My team has decided to use the new magnetic encoders on this years robot, however, we are having lots of trouble getting them to work. We are unsure if it is due to the position of the magnet over the motor or if it is something else. Is anyone else using these encoders and either are also having difficulties or have figured them out? Thanks
  #2   Spotlight this post!  
Unread 14-01-2013, 13:07
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,770
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Magnetic encoders? Anybody else having trouble?

Lucy,
You need to provide part number so we are sure we are on the same page.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #3   Spotlight this post!  
Unread 14-01-2013, 13:43
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,753
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Magnetic encoders? Anybody else having trouble?

Are you talking about the magnetic encoders from FIRST Choice?

http://www.andymark.com/FIRST-Choice-p/fc13-062.htm

We got a pair, but haven't tried them out yet.
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
  #4   Spotlight this post!  
Unread 15-01-2013, 12:26
Peter Randall Peter Randall is offline
Director of Technology
FRC #1218 (Vulcan Robotics)
Team Role: Teacher
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Philadelphia
Posts: 37
Peter Randall will become famous soon enoughPeter Randall will become famous soon enough
Re: Magnetic encoders? Anybody else having trouble?

We too are having difficulty with the AS5145B encoder. So far we can't get them to deliver any quadrature signal. We'll keep you posted if we find out why
__________________
Peter Randall
Chairman, Department of Engineering & Robotics
Springside Chestnut Hill Academy
TEAM 1218
  #5   Spotlight this post!  
Unread 15-01-2013, 14:41
Bryscus's Avatar
Bryscus Bryscus is offline
EE, CpE
AKA: Bryce B.
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 1999
Location: Jupiter, FL
Posts: 173
Bryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud of
Re: Magnetic encoders? Anybody else having trouble?

Quote:
Originally Posted by Peter Randall View Post
We too are having difficulty with the AS5145B encoder. So far we can't get them to deliver any quadrature signal. We'll keep you posted if we find out why
After looking at the data sheet it looks like these are a replacement for a potentiometer, not an encoder. One device returns absolute position, the other returns relative position.

It looks like there are a few different ways to communicate with this chip. One is a digital method much like a SPI device and the other is like it was a pot (a pwm signal through a filter which just gives an analog DC-like voltage out; not sure if the filter to do this is on the PCB though). I don't see connections for quadrature output.

- Bryce
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
  #6   Spotlight this post!  
Unread 15-01-2013, 15:03
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,770
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Magnetic encoders? Anybody else having trouble?

One fundamental to keep in mind is these devices are intended to give angular info over a 360 degree rotation. These do not replace rotational encoders they are a "rotational position sensor".
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #7   Spotlight this post!  
Unread 15-01-2013, 18:58
Nikhil Bajaj Nikhil Bajaj is offline
MATLAB Fan
FRC #0461 (Westside Boiler Invasion)
Team Role: Mentor
 
Join Date: Feb 2003
Rookie Year: 2002
Location: West Lafayette, Indiana
Posts: 101
Nikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond repute
Send a message via AIM to Nikhil Bajaj
Re: Magnetic encoders? Anybody else having trouble?

From what the data sheet says, they are supposed to have incremental outputs as well as absolute position output.

How have you wired it up? And have you picked the magnet size/spacing appropriately? Alignment is very important.
  #8   Spotlight this post!  
Unread 16-01-2013, 15:12
Bryscus's Avatar
Bryscus Bryscus is offline
EE, CpE
AKA: Bryce B.
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 1999
Location: Jupiter, FL
Posts: 173
Bryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud of
Quote:
Originally Posted by Nikhil Bajaj View Post
From what the data sheet says, they are supposed to have incremental outputs as well as absolute position output.

How have you wired it up? And have you picked the magnet size/spacing appropriately? Alignment is very important.
I do not see that in the data sheet. Can you provide a page number where you see that? Thanks.

- Bryce
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
  #9   Spotlight this post!  
Unread 16-01-2013, 15:16
Nikhil Bajaj Nikhil Bajaj is offline
MATLAB Fan
FRC #0461 (Westside Boiler Invasion)
Team Role: Mentor
 
Join Date: Feb 2003
Rookie Year: 2002
Location: West Lafayette, Indiana
Posts: 101
Nikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond repute
Send a message via AIM to Nikhil Bajaj
Re: Magnetic encoders? Anybody else having trouble?

Here is the Austria Microsystems link to the data sheet.

http://www.ams.com/eng/content/downl...6/533867/34237

For the AS5145B, on page 29 it says that the default firmware has the incremental mode set up for use.
  #10   Spotlight this post!  
Unread 17-01-2013, 20:44
sg999 sg999 is offline
Programming Lead, Co-Captain 2013
AKA: Bella
FRC #0999 (Mecharams)
Team Role: Alumni
 
Join Date: Apr 2012
Rookie Year: 2012
Location: Connecticut
Posts: 44
sg999 is a splendid one to beholdsg999 is a splendid one to beholdsg999 is a splendid one to beholdsg999 is a splendid one to beholdsg999 is a splendid one to beholdsg999 is a splendid one to behold
Re: Magnetic encoders? Anybody else having trouble?

https://wpilib.screenstepslive.com/s...control-system

Well here's WPI's instructions on how to AS5145B Magnetic Encoder with the FRC Control System. Not sure how much it'll help, but just my 2 cents
__________________
There is always time-whether or not you use it productively is up to you.

2012-WIWI 6th seed (Thanks for being awesome alliance partners, 1991 and 178)

2014-present College student at Caltech (math/CS)
  #11   Spotlight this post!  
Unread 18-01-2013, 15:54
Bryscus's Avatar
Bryscus Bryscus is offline
EE, CpE
AKA: Bryce B.
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 1999
Location: Jupiter, FL
Posts: 173
Bryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud of
Re: Magnetic encoders? Anybody else having trouble?

Quote:
Originally Posted by Nikhil Bajaj View Post
Here is the Austria Microsystems link to the data sheet.

http://www.ams.com/eng/content/downl...6/533867/34237

For the AS5145B, on page 29 it says that the default firmware has the incremental mode set up for use.
Ok. Well that's just a little weird. Who names their pins Test* and then uses them in normal operation? Bizarre.

So it looks like sg999 has it right. Take a look at the WPI instructions. The only gotcha is that the CSn pin needs to be pulled low to use this feature. Then it works just like a standard encoder.

On a side note, it looks like this chip can take rotational speeds up to about 15,000 RPM. It looks like to go this fast would require putting the chip in high speed mode, but it really is unclear.

Good find!

- Bryce
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
  #12   Spotlight this post!  
Unread 18-01-2013, 16:14
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,074
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Magnetic encoders? Anybody else having trouble?

Quote:
Originally Posted by Bryscus View Post
it looks like this chip can take rotational speeds up to about 15,000 RPM
Just make sure you're not asking any one DIO channel to count faster than 38,000 pulses per second.


  #13   Spotlight this post!  
Unread 18-01-2013, 23:07
sg999 sg999 is offline
Programming Lead, Co-Captain 2013
AKA: Bella
FRC #0999 (Mecharams)
Team Role: Alumni
 
Join Date: Apr 2012
Rookie Year: 2012
Location: Connecticut
Posts: 44
sg999 is a splendid one to beholdsg999 is a splendid one to beholdsg999 is a splendid one to beholdsg999 is a splendid one to beholdsg999 is a splendid one to beholdsg999 is a splendid one to behold
Re: Magnetic encoders? Anybody else having trouble?

How are you mounting these encoders? We just got ours today, only to realize they don't fit on the encoder shaft of the mini tough boxes we were planning to use.

Also, has anyone figured out if putting the encoder too close to the motor will actually cause interference, as our backup plan for mounting these encoders also involves putting the encoder almost touching the motor.

EDIT: No, putting the encoders right next to the motor doesn't cause (noticable) interference, we tested them today.
__________________
There is always time-whether or not you use it productively is up to you.

2012-WIWI 6th seed (Thanks for being awesome alliance partners, 1991 and 178)

2014-present College student at Caltech (math/CS)

Last edited by sg999 : 19-01-2013 at 17:46. Reason: Answered my own question
  #14   Spotlight this post!  
Unread 30-01-2013, 13:13
velcro velcro is offline
Registered User
FRC #0177
Team Role: Engineer
 
Join Date: Mar 2012
Rookie Year: 2012
Location: South Windsor, CT
Posts: 9
velcro is an unknown quantity at this point
Re: Magnetic encoders? Anybody else having trouble?

I'm a bit confused. In table 4, it says the max input frequency for the magnet is 153 rpm @4096 positions/rev. In table 7 it says that you can go up to 9766 rpm@ 64 samples/rev. Then in 9.6.3 it says it can go up to 30,000 rpm and refers to table 7. Maybe by going lower than 64 samples/rev?

In any case, I can't find where to change the samples/rev. Any ideas?
  #15   Spotlight this post!  
Unread 11-02-2013, 00:16
Azrathud's Avatar
Azrathud Azrathud is offline
Computer Nerd
AKA: Bryce Guinta
FRC #2945 (BANG)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Colorado
Posts: 24
Azrathud is on a distinguished road
Re: Magnetic encoders? Anybody else having trouble?

Quote:
Originally Posted by Al Skierkiewicz View Post
One fundamental to keep in mind is these devices are intended to give angular info over a 360 degree rotation. These do not replace rotational encoders they are a "rotational position sensor".
That is simply not true. The this year's magnetic encoder allows for absolute and incremental reading. Reading A/B pinouts on the magnetic encoder allows for one to record the 'ticks' the encoder has read for incremental output.

I don't know how the encoder truly works, but one can, with the WPILIB, read the amount of ticks(in one direction) the encoder has moved since the start of the robot's program. The get() function of the Encoder class will give you the ticks (1024 per full revolution of a shaft). Say you move the shaft 3 revolutions counterclockwise since the start of the encoder class; the get() function would read 3072. Move the shaft 1 revolution clockwise, and the get() function will read 2048.(I don't know which way -- clockwise or counterclockwise, reads 'positive ticks')
The library(or encoder) accounts for ticks read in the opposite direction One can also see what direction the shaft the encoder is reading and weather the encoder is moving or not(which is probably don't at the library level).

Last edited by Azrathud : 11-02-2013 at 00:27.
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:18.

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