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?
124 followed by 124.
123 followed by 124.
122 followed by 123.
123 followed by 123.
Unlock full course notes by signing up
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?
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}0≤Vin<Vref, the converter uses equal bins with
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