12-01-2024, 01:55 PM
Hi,
I was able to measure the battery charge using the INA219 module connected to the I2C bus of the KC868-A6 board.
To measure the voltage but not the current, I had to:
This connection allowed me to connect the INA219 board in parallel with the battery instead of in series, as is often done.
In EspHome, I added a section dedicated to the sensor:
Thank you again for pointing me to this solution.
I was able to measure the battery charge using the INA219 module connected to the I2C bus of the KC868-A6 board.
To measure the voltage but not the current, I had to:
- bridge the Vin+ and Vin- contacts
- connect the positive terminal of the battery to one of the Vin contacts
This connection allowed me to connect the INA219 board in parallel with the battery instead of in series, as is often done.
In EspHome, I added a section dedicated to the sensor:
Code:
sensor:
- platform: ina219
address: 0x40
shunt_resistance: 0.1 ohm
bus_voltage:
name: "INA219 Bus Voltage"
max_voltage: 32.0V
max_current: 3.2A
update_interval: 60s
Thank you again for pointing me to this solution.