Arduino Project Hub
Project showcase

MKRZERO Read Battery Voltage © GPL3+

See how much battery you have left!

  • 1,142 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 morse code machine

Project tutorial by Vlada Krsmanovic

  • 377 views
  • 0 comments
  • 7 respects

Arduino 101 - Intel Curie Pattern Matching Dress

Project tutorial by Kitty Yeung

  • 1,427 views
  • 2 comments
  • 13 respects

Arduino Laser Tripwire

Project tutorial by Ian Cumming

  • 1,865 views
  • 1 comment
  • 15 respects

Smart Home Sensor Node

Project tutorial by vincent wong

  • 354 views
  • 0 comments
  • 4 respects

Magnetic Stirrer

Project showcase by jdale18

  • 557 views
  • 7 comments
  • 3 respects

ESP8266 + L298N Motor Drive + Smartphone

by luciorocha

  • 1,365 views
  • 2 comments
  • 5 respects
Add projectSign up / Login