Has anyone noticed that if calling analogRead()
in a consecutive way that the value drops by a bit as opposed to just doing a single read?
And is this to be expected?
I am using a Seeeduino XIAO.
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It only takes a minute to sign up.
Sign up to join this communityHas anyone noticed that if calling analogRead()
in a consecutive way that the value drops by a bit as opposed to just doing a single read?
And is this to be expected?
I am using a Seeeduino XIAO.
You need a short delay between analog reads due to the time it takes to complete a reliable ADC reading. In depth technical explanations can be found here, note that it refers to AVR architecture.