Hi there,
it is clear to me that the ADS1115 cannot measure negative values.
I am trying to measure the current on a battery connected to a UPS which can be positive or negative (charging-draining).
I am using a LEM which reverse the polarity of the output according to the current flow.
The output of the LEM module is from -4.6 V to + 4.6 V equivalent to -10A to 10A
Reading about other people experience in measuring negative voltage with an ADC, I ended up on this post: https://tlfong01.blog/2020/02/29/ads1256-reading-negative-values/
I have designed my circuit to avoid negative values in all conditions. The ADC is on Raspberry circuit (3.3V).
So, my voltage divider is like this (simulating -4.6V input):

With the above voltage I get, on the ADC, 0.275V. With +4.6V input I get 3.725V onto eADC input. So I never end up in negative voltage on the ADC input.
Up to here seems all clear to me.
The confusion comes at software level. I do I calculate the real voltage input from the LEM?
Thanks for helping
it is clear to me that the ADS1115 cannot measure negative values.
I am trying to measure the current on a battery connected to a UPS which can be positive or negative (charging-draining).
I am using a LEM which reverse the polarity of the output according to the current flow.
The output of the LEM module is from -4.6 V to + 4.6 V equivalent to -10A to 10A
Reading about other people experience in measuring negative voltage with an ADC, I ended up on this post: https://tlfong01.blog/2020/02/29/ads1256-reading-negative-values/
I have designed my circuit to avoid negative values in all conditions. The ADC is on Raspberry circuit (3.3V).
So, my voltage divider is like this (simulating -4.6V input):

With the above voltage I get, on the ADC, 0.275V. With +4.6V input I get 3.725V onto eADC input. So I never end up in negative voltage on the ADC input.
Up to here seems all clear to me.
The confusion comes at software level. I do I calculate the real voltage input from the LEM?
Thanks for helping
Last edited by a moderator: