2

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.

asked Jul 18, 2021 at 15:06
2
  • You need a short delay between analog reads, more about it here: quora.com/… Commented Jul 18, 2021 at 15:10
  • @Nino Thank you. That would explain it! (Add it as answer and I mark it as solution.) Commented Jul 18, 2021 at 15:23

1 Answer 1

1

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.

answered Jul 18, 2021 at 15:49

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.