Open SavageU opened 2 weeks ago
I'm using multiples rp2040 with ina219. In order to have the ina reading as battery state, I have to define BATTERY_PIN (I put 26 even if I do not use it) and BATTERY_SENSE_RESOLUTION_BITS 12. in the variant header and compile. These defines enable portions of code for battery monitoring, and the use of INA219 instead if present.
I think it should be possible to use ina219 without this trick, but I did not want to change too much code for that. To consider maybe ?
P.S. the channel 3 is not a problem at all. It will use the first valid value, so channel 3 it is. It works fine.
Category
Other
Hardware
Other
Firmware Version
2.5.7.f77c87d
Description
RP2040-LORA-HF device is ignoring request to set INA219 as main battery device. Continuously reports as PWD status at 0.0V despite being configured to read INA.
Occurring on 2.5.7 and 2.5.8 (downgraded back to 2.5.7 so I could increase cadence of power metrics transmit while testing.)
INA is being correctly recognised at 0x40 address on boot:
However, the telemetry/update module is still reporting:
When a remote request is placed from another node the same results occur:
When power stats are explicitly requested, the correct data returns:
However I have noticed that there appears to be a bug in the INA read - it is marking the single channel device as returning data on channel 3, I do not know if this is relevant or a red herring:
Power configuration is correctly set (I think?) to INA address of 64 (or 0x40):
Relevant log output
No response