2 different Voltages measured with INA219
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- wweetts
- Posts: 3
- Joined: Thu Dec 19, 2013 6:19 am
2 different Voltages measured with INA219
Is it possible to measure 2 different voltages (12V and 24V) with the INA219 when I take out the 100 Ohm resistor?
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: 2 different Voltages measured with INA219
It's technically possible, but would be complicated.
You'd only get a direct reading for the lower voltage. Then you'd get a value for the difference between the two voltages, calculated as a current through the sense resistor. You'd have to go through a fairly complicated set of equations to configure the INA219 so it would give you reasonable output values, then you'd have to convert those back to a voltage in the microcontroller.
It would be much easier to use a regular ADC.
You'd only get a direct reading for the lower voltage. Then you'd get a value for the difference between the two voltages, calculated as a current through the sense resistor. You'd have to go through a fairly complicated set of equations to configure the INA219 so it would give you reasonable output values, then you'd have to convert those back to a voltage in the microcontroller.
It would be much easier to use a regular ADC.
Please be positive and constructive with your questions and comments.