What DEFAULT analogReference means on an Uno R3
Interpret a 10-bit ADC reading against the Uno R3 supply-derived reference and distinguish raw counts from voltage measurements.
The ADC measures a ratio
On the classic Uno R3, DEFAULT uses the chip’s supply-derived analog reference. An input about halfway to that reference returns a code close to 512 out of 1024 possible codes. A supply that is nominally 5 V need not measure exactly 5.000 V. A raw ADC number alone cannot tell you the true voltage without knowing the reference.
Keep the reference and wiring consistent
Use a potentiometer between the board supply and GND, with its wiper at A0 and AREF unconnected for this example. Sharing the supply between sensor and reference makes a ratio measurement less sensitive to supply drift. An external source on AREF needs board-specific setup. Leave AREF alone in this experiment and keep the input within the board’s allowed range.
Open the exact Uno example
As the wiper moves, the code should cover much of 0–1023. A midpoint near 512 is a ratio check, not a calibration.
void setup() {
analogReference(DEFAULT);
Serial.begin(9600);
}
void loop() {
Serial.println(analogRead(A0));
delay(250);
}Verified with [email protected] on Uno R3 (2026-12-05 UTC). This check did not use physical hardware.