Tool/software:
Hi, this question follows from one asked in this post, about detecting the presence of a battery with this device. I am trying to do the same in my design, and have followed the procedure outlined in Part 1 of the Battery Detection Algorithm shown in the accepted solution for that post. My setup draws power from VBUS (via USB), with no attached battery. Unfortunately I am having trouble getting that solution working in my setup, however.
Some possible clues:
- My design incorporates a Fuel Gauge (a MAX17263 from Analog Devices). The BAT pin of the BQ25628E is connected to this fuel gauge by way of a sense resistor. This sense resistor is connected between the BATT pin of this charger, and the battery itself. I'm not confident this is correct - this is my first time designing a circuit like this, and I pieced together my understanding of these connections from various datasheets and online resources.
- I'm testing my system with a VBUS connection (via USB), but no battery attached. As advised in the link above, I initially pull the CE pin high on the BQ25628E, to disable charging before trying to detect a battery. I notice that this causes the LED I have connected to the STAT pin on the device to light, which seems surprising to me. the fuel gauge also seems to have power flowing to it at this point, also surprising.
- When I take ADC measurements with a battery attached. the VBAT values seem reasonable, around 4.0V or so. When I completely detach the battery, however, the ADC readings seem to be around 4.1V-4.2V. I'm totally confused by this - I would expect to see values closer to zero here?
What might I be doing wrong here, or can I do to troubleshoot this?
Thank you!