Hi Folks,
I was looking for a way to read the voltage of the battery on the xiao ble sense nrf52840 (that is actually connected to the Expansion board) but I ran into this post.
So if I understand correctly there was the issue that
analogRead(PIN_VBAT) hangs the IDE ----> GREEN LED ON/OFF hangs the IDE
It has been fixed with a patch but now I read in that post
that the reading is not consistent and also
and when you put the device in deep sleep and wake it up, you get no reading at all?
Could somebody give an update about what works and what doesn’t ?
Also does this issue happen only when you read VBAT pin from the xiao ble sense nrf52840
and the battery’s wires are soldered to Bat+ and Bat- pads ?
Or could the issue happen too if the battery is plugged to the JST connector on the Expansion board and you read the battery pin ? Which I don’t even know if it’s possible on the Expansion board because I don’t know if the BATT pin can be read by the MCU.
That’s the Expansion board schematic:
Expansion board schematic
Would appreciate any insightful input on this.
Thanks.
Cheers !