R
Ron Hubbard
Guest
Uh, gee folks, haven't you ever heard of the first tenet of
engineering: Keep It Simple, [Stupid]!
I'm building this to keep cost, materials, and labor time down
to a bare minimum. If I had wanted FFT, DDS, microprocessors,
EPROM's, programming, etc I just pay for a commercial EEG and
forget about it.
Keith R. Williams wrote in message ...
engineering: Keep It Simple, [Stupid]!
I'm building this to keep cost, materials, and labor time down
to a bare minimum. If I had wanted FFT, DDS, microprocessors,
EPROM's, programming, etc I just pay for a commercial EEG and
forget about it.
Keith R. Williams wrote in message ...
In article <3f6b09ed.6265615@news.itd.umich.edu>,
no_spam@aol.com
says...
On Thu, 18 Sep 2003 10:42:40 -0400, Keith R. Williams
krw@attglobal.net> wrote:
WHat happens if there is more than one wave? Measuring a
single sine
wave is easy. My solution would be to use a micro to do a
Forier
transform on the signal and then look at the peaks.
--
Keith
Yours is the best idea I've heard so far, and by far the
easiest
to actually use. It will require an ADC with response
down to very low frequencies, which may rule out a lot of
sound
cards. But there are some with bottom ends around 2 Hz or
so
(maybe lower, it's been a while since I looked), so this
should be
easy to get going.
There are a couple of caveats. You will need an FFT that
covers
the range of interest with the desired resolution. You can
do that
using really huge FFTs at the usual audio sample rates, or
you
can try to slow the sample rate with sample rate
conversion. Either
way you need a lot of time to get enough data for each FFT,
so
to prevent slow, jerky screen updates you would want to do
overlap processing. Just maintain a big data buffer and
run your FFT
and display refresh as fast as possible, always taking the
most
recent N samples from the buffer, even if some of them were
used
for the previous FFT. This gives a nice smooth response,
assuming
your FFT and display code are fast enough.
I don't think it's going to be a huge problem at these
frequencies. One should look up some algorithms for a
"continuous" FFT. I know of someone who does this stuff at
RADAR
frequencies (using FPGAs), so at a few Hz things should be
simple. One thing you're going to need is a good filter on
the
input to prevent aliasing, which will also help with noise.
The big advantage of the FFT approach is that you can have
an
effective huge array of narrow filters, and see all their
outputs at
once. So you not only know if you are at your target, but
also how
far off you are, and how strong each component is. And you
get
immediate information if the noise floor increases due to
electrodes
getting loose, etc. Nice!
--
Keith