Resistor selected for Low-Side Sensing

I’m planning low-side sensing with the Allegro Two-Wire Hall-Effect Switch (A1190LUBTN-T) and I’d like to confirm my resistor selection for Rsense.

Current is 2-17mA and my ADC range is 0-3.3V.

V=I*R: 3.3V = (.017A) * (Rsense) gives Rsense = 194 ohms.

P=I*V: P = (.017 A) * (3.3 V) = .056 W

So, this 220 ohm 1/8 watt SIP-11 resistor array 4611X-101-221LF should be just about perfect?

Thanks!

• 200$\Omega$*17mA=3.74V, which is out of the ADC range. If you're just trying to detect the switch position, you can use a comparator instead of the ADC. – vofa Jan 22 '18 at 18:29
• @vofa -- (sorry i didn't mention upfront) I am just detecting switch position, so I don't need the entire dynamic range. I also need to use ADC on the Espressif ESP32 and not dissipate excess power on Rsense. Will that help specify a solution? – robg Jan 22 '18 at 19:39