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

3D-Printed Prank Vibrating Cup

Project tutorial by Alex Wulff

  • 1,291 views
  • 2 comments
  • 14 respects

The Magic Display With Arduino - The Mind Reader

Project tutorial by LAGSILVA

  • 1,513 views
  • 2 comments
  • 6 respects

Very First Hands On Arduino - Voice Activated LED

Project tutorial by Liren Yeo

  • 771 views
  • 1 comment
  • 9 respects

Get Connected! WiFi Registration Using AP Mode!

Project tutorial by Brian Carbonette

  • 1,447 views
  • 0 comments
  • 16 respects

The Soldering Iron Controller for Hakko T12 Tips

Project tutorial by Alexander

  • 8,672 views
  • 4 comments
  • 26 respects

Voltmeter Using Arduino

by Team Next Tech Lab

  • 3,175 views
  • 8 comments
  • 44 respects
Add projectSign up / Login