Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read 12V battery charge
#7
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:
  • 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.
Reply


Messages In This Thread
Read 12V battery charge - by darsh - 11-25-2024, 11:03 AM
RE: Read 12V battery charge - by admin - 11-25-2024, 11:44 AM
RE: Read 12V battery charge - by darsh - 11-25-2024, 11:57 AM
RE: Read 12V battery charge - by JULIO - 11-25-2024, 03:31 PM
RE: Read 12V battery charge - by darsh - 11-26-2024, 05:47 AM
RE: Read 12V battery charge - by admin - 11-26-2024, 12:13 AM
RE: Read 12V battery charge - by darsh - 12-01-2024, 01:55 PM
RE: Read 12V battery charge - by admin - 12-01-2024, 11:39 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)