Talk About Network

Google





Electronic Equipment > Digital Signal Processing (DSP) > Re: Low pass fi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 13 Topic 14031 of 14426
Post > Topic >>

Re: Low pass filter on a PIC

by Scott Seidman <namdiesttocs@[EMAIL PROTECTED] > Oct 10, 2008 at 12:27 PM

"Manfred" <mmornhin@[EMAIL PROTECTED]
> wrote in 
news:orKdnemiBNUqVHPVnZ2dnUVZ_hudnZ2d@[EMAIL PROTECTED]
> The only thing I can come up with is averaging the last several samples,
> perhaps with some weighing. But there must be some better method!

That's pretty much the answer.  You can choose ideal weightings according 
to what your goals are, but a moving average is what things come down to.

One caveat is that unless you're a bit careful, using timer interrupts and

the like to trigger your sampling, you could have a good deal of jitter in

your sample rate, and the math behind the low pass filter can get pretty 
complicated.  You'll still be "low pass", but you'll have problems 
characterizing the filter.

Another caveat is that you'll probably find yourself implementing the 
filter with integer math, and if you're not used to that, you could get 
yourself in a bit of a mess.

-- 
Scott
Reverse name to reply
 




 13 Posts in Topic:
Low pass filter on a PIC
"Manfred" <m  2008-10-09 22:19:19 
Re: Low pass filter on a PIC
Tim Wescott <tim@[EMAI  2008-10-09 21:06:31 
Re: Low pass filter on a PIC
HardySpicer <gyansorov  2008-10-09 21:22:55 
Re: Low pass filter on a PIC
Jerry Avins <jya@[EMAI  2008-10-10 11:13:59 
Re: Low pass filter on a PIC
Scott Seidman <namdies  2008-10-10 12:27:20 
Re: Low pass filter on a PIC
Vladimir Vassilevsky <  2008-10-10 08:54:05 
Re: Low pass filter on a PIC
Jerry Avins <jya@[EMAI  2008-10-10 11:33:04 
Re: Low pass filter on a PIC
Randy Yates <yates@[EM  2008-10-10 16:35:44 
Re: Low pass filter on a PIC
"Manfred" <m  2008-10-10 20:33:40 
Re: Low pass filter on a PIC
Randy Yates <yates@[EM  2008-10-10 22:13:39 
Re: Low pass filter on a PIC
Jerry Avins <jya@[EMAI  2008-10-10 23:39:27 
Re: Low pass filter on a PIC
Randy Yates <yates@[EM  2008-10-11 00:23:53 
Re: Low pass filter on a PIC
Jerry Avins <jya@[EMAI  2008-10-11 14:00:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Thu Jan 8 21:45:02 PST 2009.