55. Measure bipolar voltage

A sensor signal SIGNAL_IN varies from −3 V to +3 V, but the controller ADC accepts only 0–3.3 V.

Using the provided VREF = 3.3 V, design a resistor network to scale and offset the sensor voltage.

  • At SIGNAL_IN = −3 V, ADC_IN ≈ 0.15 V.
  • At SIGNAL_IN = 0 V, ADC_IN ≈ 1.65 V.
  • At SIGNAL_IN = +3 V, ADC_IN ≈ 3.15 V.
  • At SIGNAL_IN = −3 V, reference current I_REF must remain between 50 µA and 100 µA.

Use resistors selected only from:

22 kΩ, 33 kΩ, 47 kΩ, 68 kΩ, 100 kΩ

Example test cases:

SIGNAL_INExpected ADC_IN
−3 V≈0.15 V
0 V≈1.65 V
+3 V≈3.15 V