Page 1 of 1

how much delay between adc reading

Posted: Mon Dec 25, 2017 10:40 am
by kishan patel
Hello,
I want to read adc data continuously then measure its average value.
If i want to read adc data for 10 times.So,is there required to put delay between two reading.
If yes then how much?

Thanks in advance.

Re: how much delay between adc reading

Posted: Mon Dec 25, 2017 11:59 am
by ESP_krzychb
Hello kishan patel,
kishan patel wrote:If i want to read adc data for 10 times.So,is there required to put delay between two reading.
Checking the code of adc1_get_raw, it looks like that this function is waiting for measurement result.

Therefore there is no need to put delay between readings if you are taking just 10 consecutive samples.

Re: how much delay between adc reading

Posted: Wed Dec 27, 2017 8:48 am
by kishan patel
Thanks.