Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   Low pass filter for AS5145B (http://www.chiefdelphi.com/forums/showthread.php?t=128444)

omsahmad 01-04-2014 23:32

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?

diverson 02-04-2014 11:41

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

philso 02-04-2014 13:03

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.

diverson 02-04-2014 14:28

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

Gdeaver 02-04-2014 17:32

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

omsahmad 03-04-2014 09:59

Re: Low pass filter for AS5145B
 
Quote:

Originally Posted by diverson (Post 1368368)
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 (Post 1368402)
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.


All times are GMT -5. The time now is 10:29.

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