Posted on

Programming the micro:bit

Solar Battery voltage read by the micro:bit

Just connect the P0 port to the Solar Battery Battery voltage monitor port with an aligator clip, connect the micro:bit to your PC and download this short program to read the voltage.

The conversion is  the reading multiplied by 2.4 multiplied by 3.19 and divided by 1024. See the equation below.

Have fun!

Leave a Reply