Project showcase
MKR Zero Read Battery Voltage

MKR Zero Read Battery Voltage © GPL3+

See how much battery you have left!

  • 4,977 views
  • 1 comment
  • 4 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

Similar projects you might like

MKR Zero Weather Data Logger

Project tutorial by Arduino_Genuino

  • 24,369 views
  • 18 comments
  • 48 respects

Arduino MKR GSM 1400 and DTMF

by Arduino_Genuino

  • 16,494 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,925 views
  • 19 comments
  • 69 respects

I2S Theremin

Project tutorial by Arduino_Genuino

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