I have attached an on/off switch. I'm unable to get the battery reading when the device is turned off and charging. Here is the behavior:
1) Not charging & turned on, IO4 reading is correct.
2) Charging & turned on, IO4 reading is correct.
3) Charging & turned OFF, IO4 reading shows full battery.
So it looks like IO4 gives me the charging voltage when turned off, not the battery voltage. I need to get the battery voltage so I can display the device charging.
I have attached an on/off switch. I'm unable to get the battery reading when the device is turned off and charging. Here is the behavior:
1) Not charging & turned on, IO4 reading is correct. 2) Charging & turned on, IO4 reading is correct. 3) Charging & turned OFF, IO4 reading shows full battery.
So it looks like IO4 gives me the charging voltage when turned off, not the battery voltage. I need to get the battery voltage so I can display the device charging.
How can I do this?