I'm still new to this but particularly in regards to battery. I have a custom board with a nrf5340 and have been working on reading the voltage. I used the battery sample for testing, which seems to be working, though I'm not sure I have it configured correctly and need to determine if the readings are what I should expect I wanted to understand how to deal with the other two pins for charging and charged as I don't see reference to them in the battery sample. Here are the pins:
- P0.04 - BatADC - Battery Voltage divided to 7.666
- P0.05 - ChargingADC - to see if charging while 5V connected
- P0.06 - ChargedADC - to see if charger standby while 5V connected
I am using a voltage divider, btw.
How do I determine if the battery is charged or charging? Do I use ADC or GPIO?
I'm using 2.9.1 at the moment.