ControlEverythingCommunity / ADC121C021

1-Channel 12-Bit Analog to Digital Converter
7 stars 4 forks source link

How could you get more than 1K sps ? #1

Closed ortegafernando closed 6 years ago

ortegafernando commented 8 years ago

Hi,

The example that you have for arduino, includes a delay(300); that makes it to get only 3 o 4 samples per second.

How much we can reduce that delay? Eliminate? How could you get 188.000 samples per second? May be with 10k or 30k it is ok, but with that DELAY, it is imposible.

hope your answer.

ryker1990 commented 8 years ago

The delay provided is to ensure that arduino has the data ready before a read attempt is made. Its not a constraint , you can reduce it to 10ms , if the output data is correct. With 10ms you can get 100 samples / sec.

ortegafernando commented 8 years ago

Hi, for monitoring a 50-60Hz AC wave 100 samples is poor. Have you got any experiencie deleting that delay ? Or may be: 10uS or 50uS ?

ryker1990 commented 8 years ago

You can remove the delay and see what happens . This code is a generic sample and you can modify it according to your requirements. Change and see , what happens .. :)

ortegafernando commented 8 years ago

Hi, thanks. The problem is that I still haven't got the IC to check it. If anybody could check .... greets !!!

Regardss