Closed hirsts closed 1 year ago
From your diagram, I believe you have the IN- and IN+ wiring backwards. That would explain the negative current value and the 0 voltage reading.
When I swap IN- and IN+ I get Amps as a positive current value but still zero bus voltage and zero power. Basically the same issues but with a positive reading for current.
Thanks for the feedback.
You also need to have the +12v rail hooked to the INA226 VBUS
input. You don't show that on your schematic. I don't have an INA226 to help further if it doesn't show voltage after hooking up that wire.
Hi @DAVe3283, thanks for your help. I have now connected the INA226 VBUS input to IN+ and its now working correctly. I assumed that this was connected via the INA226 module. Thanks again.
Resolved with help from @DAVe3283.
Additional info that might help others: https://how2electronics.com/how-to-use-ina226-dc-current-sensor-with-arduino/
The problem
I have connected and INA226 to an ESP32 and have missing values and incorrect values. I am using a default INA226 with an R100 resistor.
Which version of ESPHome has the issue?
2023.7.0
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
n/a
What platform are you using?
ESP32
Board
Quinled-eps32
Component causing the issue
ina226
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
Values for "current" seem correct, all be it provided as a negative number.
"power" and "bus voltage" are always zero.