Project showcase
MKR Zero Read Battery Voltage

MKR Zero Read Battery Voltage © GPL3+

See how much battery you have left!

  • 7,472 views
  • 5 comments
  • 7 respects

Components and supplies

Swel30ysinrlyiqmmnfr
Arduino MKR Zero
×1
LiPo Battery
×1

Apps and online services

About this project

Read battery voltage

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

MKRZERO Read Battery Voltage schematic
Dklpgge3cs1whdebluvi

Comments

Author

Arduino genuino
Arduino_Genuino
  • 58 projects
  • 5,081 followers

Published on

December 13, 2016

Members who respect this project

DaescobarIsaac100Powerbot12143197 1217534948271942 7537706338023361857 nLightproDefault

and 1 other

See similar projects
you might like

Similar projects you might like

MKR Zero Weather Data Logger

Project tutorial by Arduino_Genuino

  • 24,371 views
  • 18 comments
  • 48 respects

Arduino MKR GSM 1400 and DTMF

by Arduino_Genuino

  • 16,624 views
  • 0 comments
  • 28 respects

Simple Arduino Battery Capacity Tester

Project showcase by sim-flynn-13

  • 14,053 views
  • 0 comments
  • 21 respects

Solar Charged Battery Powered Arduino Uno

Project in progress by Igor Fonseca Albuquerque

  • 60,690 views
  • 46 comments
  • 124 respects

Arduino Addons: Battery Level Indicator

Project showcase by Arduino World

  • 22,910 views
  • 19 comments
  • 69 respects

I2S Theremin

Project tutorial by Arduino_Genuino

  • 18,527 views
  • 3 comments
  • 23 respects
Add projectSign up / Login