Resolving an overrange reading

An Arduino-based instrument measures a constant sensor voltage with an ideal 10-bit ADC. The sensor voltage is independent of the ADC reference, and changing the reference does not change the input.


For 0≤Vin<Vref0\le V_\text{in}<V_\text{ref}, the converter uses equal bins with


q=Vref1024,k=⌊Vinq⌋.q=\frac{V_\text{ref}}{1024},\qquad k=\left\lfloor\frac{V_\text{in}}{q}\right\rfloor.


At or above the reference, it returns 1023. With an exact 2.048 V reference, the returned code is 1023. After the reference changes to exactly 4.096 V, the returned code is 640. All voltages are electrically safe, and noise and other errors are negligible.


Which input-voltage interval is consistent with both readings?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Arduino Analog Input Questions: