MKR WiFi 1010 battery voltage reporting low

There are a few topics related to these issues but I didn't see any resolutions.

  1. "Board not being powered by battery" - all of my batteries arrived with the polarity reversed from what the Arduino wants. Make sure the positive pin is on the left when looking at the top of the board from the connector side.

  2. "My battery won't fully charge" - after using the code found in this tutorial MKR WiFi 1010 Battery Application Note | Arduino Documentation I also could not get any of my three batteries to fully charge, or so I thought. My Fluke 175 showed 4.2v on all of them. I bought a second MKR WiFi 1010, same results. I started "doing the math" line by line in the above article and found they were using INT for a variable with a calculated value of 4.389 which was being shortened to 4.

With the original code and the max_Source_voltage shortened to 4 it reports my battery at 3.91v.

With the updated code and the max_Source_voltage now set to FLOAT and 4.389 it reports my battery at 4.29 which is much closer to the actual 4.126

1 Like

Hi @mlrtime99. Thanks for taking the time to share your findings!

I confirm the bug in the tutorial code. A community member has submitted a fix for the error:

I have seen and noted

Ah! I hadn't even noticed the discrepancy between 4095 and 4096. Thank you.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.