Skip to main content

How do I read the battery voltage?

Each Unexpected Maker board includes an IO pin connected to a voltage divider on the battery, allowing you to read an approximation of remaining battery voltage. The specific IO pin varies by board -- consult your board's pinout card for details.

Check the helper library for your board for a function that lets you read the state.

For the TinyPICO Nano and NanoS3, you must add your own voltage divider to a carrier PCB to read battery voltage. Alternatively, you can install an I2C fuel gauge.

Applicable Boards: FeatherS3, ProS3, TinyPICO, TinyPICO Nano, TinyS2, TinyS3