Project showcase

MKR Zero Read Battery Voltage © GPL3+

See how much battery you have left!

  • 4,174 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.

Code

MKRZERO_Read_Battery_Voltage Code

Schematics

MKRZERO Read Battery Voltage schematic
Dklpgge3cs1whdebluvi

Comments

Similar projects you might like

A Microwave Interface for the IKEA Duktig Kids Kitchen

Project showcase by Myles Eftos

  • 1,253 views
  • 8 comments
  • 7 respects

Servo Signals and Characterization

by 3 developers

  • 1,030 views
  • 4 comments
  • 13 respects

Music Adaptive RGB LED with Arduino and Processing

Project in progress by ounane mohamed elfarouk

  • 997 views
  • 6 comments
  • 10 respects

Cellular IoT with Blynk & Hologram

by Moheeb Zara

  • 4,987 views
  • 9 comments
  • 18 respects

Monitoring Temperature Remotely with Blynk for Dummies

Project in progress by Cmtelesann

  • 1,214 views
  • 2 comments
  • 4 respects

How to Make a Customizable Punchable Keyboard Button

Project tutorial by Amal Mathew

  • 1,520 views
  • 4 comments
  • 3 respects
Add projectSign up / Login