1

I am having a problem with the analog readings on my Due. On pin A4 and A5 I am measuring voltages:

double vcc = 3.288 // taken on pin 75 (ADVREF) ;
analogReadResolution(12);
result = analogRead(A4) * (vcc / 4095); // result = 0.47+- 0.01 actual reading = 0.429
result = analogRead(A5) * (vcc / 4095); // result = 0.49+- 0.01 actual reading = 0.555

As you may see I could not simply offset the value because both have very different offset: one is positive and the other is negative. The reading is off by 0.05v, which is inaccurate for a 12-bit ADC that offers 0.000805v resolution, almost a 1000x inaccuracy.

Is there any way to calibrate analogRead further without using additional external components on the pin?

dda
1,5951 gold badge12 silver badges17 bronze badges
asked Mar 26, 2020 at 4:25

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

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.