Sampling speed
Archiver
Posts: 46,084
I have a small project to do on impact testing. I have an analog
accelerometer that needs to go through to an ADC. My question is what
rate will I be able to sample with the BS2. The process will be:
1. read from the adc
2. store the value into flash ram
I know that there is no exact answer until I've written the code, but
a rough estimate would be nice.
Cheers
Andy
accelerometer that needs to go through to an ADC. My question is what
rate will I be able to sample with the BS2. The process will be:
1. read from the adc
2. store the value into flash ram
I know that there is no exact answer until I've written the code, but
a rough estimate would be nice.
Cheers
Andy
Comments
I've been playing around with BS2, an 8 chanel ADC and 256k memory.
I've been able to easily record data at up to 200Hz per channel, so I
guess that if you were logging or looking at just one channel then
you should be able to get at least 1600 Hz sampling rate.
I'm not sure why you need to use flash memory, I've been using 4 or
even 8 lots of 256k memory IC's to get 1 or 2 mb of data saved per
session.
The size of your memory really limits your sampling speed. If you
sample at over 1000 hz then you'll be filling up 1mB in a few
seconds, so I only use 200hz for fast acting readings (like g force)
and it seems to be fast enough.
I hope this helps.
Simon
--- In basicstamps@y..., swaza2001@y... wrote:
> I have a small project to do on impact testing. I have an analog
> accelerometer that needs to go through to an ADC. My question is
what
> rate will I be able to sample with the BS2. The process will be:
> 1. read from the adc
> 2. store the value into flash ram
>
> I know that there is no exact answer until I've written the code,
but
> a rough estimate would be nice.
>
> Cheers
>
> Andy