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}0≤Vin<Vref, the converter uses equal bins with
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?
2.558 V≤Vin<2.562 V2.558\ \text{V}\le V_\text{in}<2.562\ \text{V}2.558 V≤Vin<2.562 V.
2.560 V≤Vin<2.564 V2.560\ \text{V}\le V_\text{in}<2.564\ \text{V}2.560 V≤Vin<2.564 V.
2.562 V≤Vin<2.566 V2.562\ \text{V}\le V_\text{in}<2.566\ \text{V}2.562 V≤Vin<2.566 V.
1.280 V≤Vin<1.282 V1.280\ \text{V}\le V_\text{in}<1.282\ \text{V}1.280 V≤Vin<1.282 V.
Unlock full course notes by signing up
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
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?
Calibrating pressure from raw readings
An Arduino Uno Rev3 reads a pressure sensor through its ADC. Calibration produces a raw reading of 160 at 0 kPa and 880 at 120 kPa of gauge pressure.
Use a linear calibration model between these measurements. The sensor supply and Arduino reference remain unchanged. Ignore noise and quantization uncertainty when calculating the pressure estimates.
Complete the table for three later raw readings. Enter each pressure estimate in kPa as an exact integer.
Meeting range and resolution requirements
An Arduino-based data logger can use any of the ADC configurations listed in the options. A sensor produces voltages from 0.20 V to 3.10 V. The selected configuration must cover this entire range without saturation and have an ideal one-code voltage width no greater than 1.00 mV.
All configurations are electrically permitted by the hardware. Assume exact references, a conversion range starting at 0 V, and q=Vref/2nq=V_\text{ref}/2^nq=Vref/2n. Which configuration satisfies both requirements?
Bounding a sensor resistance from one reading
An Arduino Uno Rev3 measures a resistive sensor using the voltage divider shown. The fixed resistor is Rf=6.80 kΩR_f=6.80\ \text{k}\OmegaRf=6.80 kΩ, and the sensor resistance is RsR_sRs. The divider supply and ADC reference are both exactly 5.00 V. Treat the fixed resistance as exact, assume the input draws no current, and ignore electrical noise.
The divider relationship is