A voltage change hidden by quantization

An Arduino-controlled sensor tester uses an ideal 8-bit ADC with an exact 2.56 V reference. For inputs within the conversion range, it returns


k=⌊Vinq⌋,q=Vref28,k=\left\lfloor\frac{V_\text{in}}{q}\right\rfloor, \qquad q=\frac{V_\text{ref}}{2^8},


where the floor symbol means round down. A stable sensor output changes from 1.231 V to 1.238 V. Ignore noise and other errors. Which pair of codes is returned, in that order?

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: