P
Phil Hobbs
Guest
On 2020-09-22 13:35, Lasse Langwadt Christensen wrote:
IIRs don\'t _have_ to have infinitely-long impulse responses. And CICS
filters can have, if you start and end with an integrator.
Cheers
Phil Hobbs
--
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC / Hobbs ElectroOptics
Optics, Electro-optics, Photonics, Analog Electronics
Briarcliff Manor NY 10510
http://electrooptical.net
http://hobbs-eo.com
tirsdag den 22. september 2020 kl. 03.47.59 UTC+2 skrev Phil Hobbs:
On 2020-09-21 21:32, Lasse Langwadt Christensen wrote:
tirsdag den 22. september 2020 kl. 02.47.37 UTC+2 skrev Phil Hobbs:
On 2020-09-21 00:06, Jasen Betts wrote:
On 2020-09-21, jlarkin@highlandsniptechnology.com
jlarkin@highlandsniptechnology.com> wrote:
On Sun, 20 Sep 2020 16:29:30 -0700 (PDT), whit3rd
whit3rd@gmail.com> wrote:
On Sunday, September 20, 2020 at 2:01:05 PM UTC-7,
jla...@highlandsniptechnology.com wrote:
On Sun, 20 Sep 2020 13:33:11 -0700 (PDT), whit3rd
whi...@gmail.com> wrote:
On Sunday, September 20, 2020 at 3:26:13 AM UTC-7,
jla...@highlandsniptechnology.com wrote:
On Sun, 20 Sep 2020 00:26:47 -0700 (PDT), whit3rd
whi...@gmail.com> wrote:
On Saturday, September 19, 2020 at 9:49:47 PM UTC-7,
jla...@highlandsniptechnology.com wrote:
Just average the samples and subtract that average from
each new sample. There are several ways to do that
average:
Sum the last N samples and divide by N.
that\'s a FIR filter (finite impulse response) ... if you
choose the sample size and know the likely interference
sources (like, 60 Hz ripple), it allows you to place a
null appropriately
Exponential smoothing: Avg = Avg + (new-Avg) / N
that\'s a IIR filter (infinite impulse response); usually
not a great choice
Why not? I see a lot of irrational prejuduce against simple
IIR filters, in code and in FPGAs. Some people would rather
write a hundred lines of code instead of one.
Oh, it\'s simple, all right, but it has a long startup
transient.
Any lowpass filter or averager does. Just poke a starting value
into the integrator node if you\'re in a hurry, ADC midscale in
this case.
A lowpass needn\'t be considered appropriate during startup (and
brute-force setting a starting value helps). FIR has a
time-limit on its history, which is often completely appropriate
and useful.
That means it doesn\'t deal with lightning-strike artifacts
well, either.
Presumably an ADC rails on a huge transient. Why would an IIR
filter be worse than a FIR for a spike?
Small signal in big digitizer range, of course. Your \'rails\'
scenario is a measurement failure, and there\'s multiple ways to
treat such a thing, which FIR does by... ignoring the spike a few
samples afterward. IIR doesn\'t do that, so saturating the
digitizer is an alternate solution that you don\'t seem to
dislike.
It\'s impressive...
I\'m pleased that my response impresses you.
how many convoluted arguments people make to avoid IIR digital
filters. Most of them reduce to \"It\'s too simple and I don\'t
like it.\"
But not any that I mentioned; what ARE those other \"convoluted
arguments\"? I\'d like to judge their merits for myself...
I was just thinking how crazy it woud be to use, say, a 5000-tap
FIR filter to compute a good autozero average value of the last
5000 samples.
Those 5000 multiply-by-1-and-add blocks will need a lot of logic.
Clearly not the best way to make a boxcar filter... LOL. I see what
you did there.
You still need a bunch of memory, because on each cycle you have to add
the new sample and subtract the one from 5000 cycles ago. IIR avoids
that problem.
https://en.wikipedia.org/wiki/Cascaded_integrator%E2%80%93comb_filter
CICS is an IIR filter.
it is recursive but is it IIR?
IIRs don\'t _have_ to have infinitely-long impulse responses. And CICS
filters can have, if you start and end with an integrator.
Cheers
Phil Hobbs
--
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC / Hobbs ElectroOptics
Optics, Electro-optics, Photonics, Analog Electronics
Briarcliff Manor NY 10510
http://electrooptical.net
http://hobbs-eo.com