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

Arduino - Have Fun with Color Sensor

Project tutorial by khanhhs

  • 658 views
  • 0 comments
  • 11 respects

Arduino - Web-Based Thermometer

Project tutorial by khanhhs

  • 697 views
  • 0 comments
  • 12 respects

Using Python and Arduino MKR1000 for Secure IoT

Project tutorial by Luigi Francesco Cerfeda

  • 2,220 views
  • 1 comment
  • 11 respects

Retro Nokia Snake Game with Arduino

Project tutorial by circuito.io team

  • 3,392 views
  • 2 comments
  • 23 respects

Play Music With Your Remote

Project tutorial by Simone Adobs

  • 680 views
  • 12 comments
  • 6 respects

MorseCard - A Tiny Telegraph Station

Project tutorial by Alex Wulff

  • 1,207 views
  • 1 comment
  • 6 respects
Add projectSign up / Login