Project showcase
MKR Zero Read Battery Voltage

MKR Zero Read Battery Voltage © GPL3+

See how much battery you have left!

  • 7,594 views
  • 5 comments
  • 8 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

  • 29,329 views
  • 18 comments
  • 59 respects

Simple Arduino Battery Capacity Tester

Project showcase by sim-flynn-13

  • 19,604 views
  • 1 comment
  • 32 respects

Arduino Addons: Battery Level Indicator

Project showcase by Arduino World

  • 38,668 views
  • 23 comments
  • 87 respects

Arduino MKR GSM 1400 and DTMF

by Arduino_Genuino

  • 19,496 views
  • 1 comment
  • 31 respects

Solar Charged Battery Powered Arduino Uno

Project in progress by Igor Fonseca Albuquerque

  • 84,875 views
  • 49 comments
  • 163 respects

Interfacing Arduino MKR or ESP via MQTT - Node-RED 101

Project in progress by Officine Innesto

  • 4,199 views
  • 3 comments
  • 8 respects
Add projectSign up / Login