UncleRus / esp-idf-lib

Component library for ESP32-xx and ESP8266
https://esp-idf-lib.readthedocs.io/en/latest/
1.35k stars 420 forks source link

ina219: fix bus voltage measuring #576

Closed KlsBecker closed 10 months ago

KlsBecker commented 10 months ago

Fix issue #575

UncleRus commented 10 months ago

Sorry, but this is wrong fix. Voltage CAN BE negative. See datasheet 8.6.3.1 Shunt Voltage Register

KlsBecker commented 10 months ago

Yes, the Shunt Voltsge can be negative, but the issue refers to the Bus Voltage. See datasheet 8.6.3.2 Bus Voltage Register.

UncleRus commented 10 months ago

You are absolutely right I apologize for my inattention.

Thank you!