Project showcase

MKRZERO Read Battery Voltage © GPL3+

See how much battery you have left!

  • 2,470 views
  • 0 comments
  • 4 respects

Components and supplies

Swel30ysinrlyiqmmnfr
Arduino MKRZero
×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 MKRZero 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

Water Softener

Project tutorial by moty

  • 292 views
  • 0 comments
  • 5 respects

Know the Temp of Your Home From Anywhere with Arduino Cloud!

Project tutorial by Isaac100

  • 1,312 views
  • 0 comments
  • 9 respects

Simple Obstacle Senor With Arduino

Project tutorial by muhammed shameel k.v

  • 97 views
  • 0 comments
  • 2 respects

Safe City: A Device to Keep You Safe

Project tutorial by Patel Darshil

  • 669 views
  • 0 comments
  • 6 respects

Scavenger Hunt Clues w/ Telephone Keypad

Project tutorial by Sam Horne

  • 965 views
  • 0 comments
  • 4 respects
Add projectSign up / Login