Go Down

Topic: Y delay after analogread()? (Read 340 times) previous topic - next topic

agitar

Hi folks,

often I find Code that looks like this:
Code: [Select]

accelerometer[i] = analogRead(i);
// delay to allow analog-to-digital converter to settle:
delay(10);


I recognized that this delay is used sometimes after digital and sometimes after analog input.
My question is why?
I think that the analog-to-digital-conversion must be finished after analogRead was executed.
And when, why so long?
In the atmel manuals it is written that the maximum amount of time needed for analog conversion is about 320 micro seconds (depending on processor).

Thanks for your help!

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy