Go to Post Joe is a great sport and this was a good moral booster after a grueling weekend. How many opportunities do you get to play William Tell with a Regional WFA Winner? :) - The Lucas [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-04-2014, 23:32
omsahmad's Avatar
omsahmad omsahmad is offline
Registered User
FRC #1595 (Dragons)
 
Join Date: Oct 2010
Rookie Year: 2011
Location: Spokane, WA
Posts: 66
omsahmad is just really niceomsahmad is just really niceomsahmad is just really niceomsahmad is just really niceomsahmad is just really nice
Low pass filter for AS5145B

My team wants to try using the AS5145B magnetic encoder as an absolute sensor. Per page 18 on this pdf datasheet, it says we need to make an RC circuit with "R1,R2 ≥ 10kΩ" and "C1,C2 ≥ 2.2µF / 6V," followed by "R1 should be greater than or equal to 4k7..."

Does this mean each resistor should be larger than 10kΩ or the sum of the two should be above 10kΩ with R1 at least 4.7k? Also, for anyone who has used this sensor as an absolute encoder, what size resistors and capacitors did you use and what kind of precision and how much lag did you get?
__________________
  #2   Spotlight this post!  
Unread 02-04-2014, 11:41
diverson diverson is offline
Registered User
FRC #4499 (The Highlanders)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2004
Location: Fort Collins
Posts: 13
diverson is an unknown quantity at this point
Re: Low pass filter for AS5145B

I would agree with your first interpretation, they are recommending that each resistor be 10k or greater. They specify a minimum of 4.7k for R1 to avoid excessive current draw from the PWM pin, which can only supply 4mA or 2mA depending on the supply voltage.

I'd recommend a quick LTSpice simulation if you want to experiment with different RC values quickly. If you've not used LTSpice before, there is a great tutorial video here:

https://www.youtube.com/watch?v=XakNk6YsMtk

Otherwise, a breadboard with a couple of pots, adjustable caps, a function generator and an oscilloscope will also allow you to play with your filter values quickly (if you happen to have access to a well equipped lab).

Regards,

Dean Iverson
  #3   Spotlight this post!  
Unread 02-04-2014, 13:03
philso philso is offline
Mentor
FRC #2587
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Houston, Tx
Posts: 938
philso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond repute
Re: Low pass filter for AS5145B

You are probably best to install the filters on a small piece of breadboard located near the Digital Side Car. Connect it to the DSC using short lengths of PWM cable. You can put a piece of heatshrink tubing or some electrical tape over the piece of breadboard to keep it from shorting to anything.
  #4   Spotlight this post!  
Unread 02-04-2014, 14:28
diverson diverson is offline
Registered User
FRC #4499 (The Highlanders)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2004
Location: Fort Collins
Posts: 13
diverson is an unknown quantity at this point
Re: Low pass filter for AS5145B

I second the advice given by philso, although in this case I assume you'd want the analog output of your filter to go into the analog breakout board on the cRIO.

And if/when you're ready to move beyond the prototype stage and if your team has the interest, it is really fun to create your own PCBs. Here is a link to an excellent series of videos that covers the topic of building simple PCBs and getting them manufactured using Kicad (a free tool):

http://contextualelectronics.com/kicad-course-outline/

And here is a link to a project recently completed by one of the kids on our team:

https://github.com/HighlandersFRC/fp...r/levelShifter

We were able to get three boards manufactured using OSHPark and order the parts for under $10 total.

Dean
  #5   Spotlight this post!  
Unread 02-04-2014, 17:32
Gdeaver Gdeaver is offline
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,363
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: Low pass filter for AS5145B

If you need an absolute analog encoder, then I would suggest that you buy an absolute encoder. A cheap and one we have found good for our needs is the BI model 6127 series.
http://www.digikey.com/product-detai...393-ND/2620662
  #6   Spotlight this post!  
Unread 03-04-2014, 09:59
omsahmad's Avatar
omsahmad omsahmad is offline
Registered User
FRC #1595 (Dragons)
 
Join Date: Oct 2010
Rookie Year: 2011
Location: Spokane, WA
Posts: 66
omsahmad is just really niceomsahmad is just really niceomsahmad is just really niceomsahmad is just really niceomsahmad is just really nice
Re: Low pass filter for AS5145B

Quote:
Originally Posted by diverson View Post
I'd recommend a quick LTSpice simulation if you want to experiment with different RC values quickly. If you've not used LTSpice before, there is a great tutorial video here:

https://www.youtube.com/watch?v=XakNk6YsMtk

Otherwise, a breadboard with a couple of pots, adjustable caps, a function generator and an oscilloscope will also allow you to play with your filter values quickly (if you happen to have access to a well equipped lab).
Thank you for both of these suggestions. I have played with LTSpice a little bit, and it is very neat.

Quote:
Originally Posted by philso View Post
You are probably best to install the filters on a small piece of breadboard located near the Digital Side Car. Connect it to the DSC using short lengths of PWM cable. You can put a piece of heatshrink tubing or some electrical tape over the piece of breadboard to keep it from shorting to anything.
Thanks for this too, except, as diverson pointed out, we plan on going to the cRIO.
__________________

Last edited by omsahmad : 03-04-2014 at 10:00. Reason: Fix quote
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 10:29.

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