Project showcase

MKR Zero Read Battery Voltage © GPL3+

See how much battery you have left!

  • 2,911 views
  • 0 comments
  • 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.

Schematics

MKRZERO Read Battery Voltage schematic
Dklpgge3cs1whdebluvi

Code

MKRZERO_Read_Battery_Voltage Code

Comments

Similar projects you might like

Magic Lamp

by Nekhil ravi

  • 973 views
  • 3 comments
  • 11 respects

Arduino MKR GSM 1400 and DTMF

by Arduino_Genuino

  • 3,768 views
  • 0 comments
  • 9 respects

Love You Pillow

Project tutorial by Arduino

  • 2,296 views
  • 0 comments
  • 5 respects

Infrared Replicator

Project tutorial by Gustavo Gonnet

  • 3,774 views
  • 6 comments
  • 26 respects

A Model Lighthouse Using an Adafruit NeoPixel Ring

Project tutorial by Jeremy Lindsay

  • 412 views
  • 0 comments
  • 4 respects

Rural Hack Kit

by Officine Innesto

  • 4,202 views
  • 0 comments
  • 7 respects
Add projectSign up / Login