![]() |
| × | 1 | |||
| × | 1 |
Components and supplies
Apps and online services
About this project
This example shows you how to read the actual battery voltage on a MKR Zero board. The value coming from analogRead()
is converted into voltage, and printed out to the serial monitor of the Arduino Software (IDE).
On the MKRZero there is an analog pin called ADC_BATTERY for this purpose. You only simply have to convert the analogRead(ADC_BATTERY)
into the corresponding voltage. The sketch below demonstrates how to do it.
Code
MKRZERO_Read_Battery_Voltage Code
Schematics
Comments
Author
Published on
December 13, 2016Members who respect this project
you might like