Project showcase

MKR Zero Read Battery Voltage © GPL3+

See how much battery you have left!

  • 2,911 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.

Schematics

MKRZERO Read Battery Voltage schematic
Dklpgge3cs1whdebluvi

Code

MKRZERO_Read_Battery_Voltage Code

Comments

Similar projects you might like

Windows PC Lock/Unlock Using RFID

Project tutorial by Prasanth K S

  • 6,594 views
  • 6 comments
  • 29 respects

LED Cube

Project tutorial by Praditha Alwis

  • 311 views
  • 0 comments
  • 4 respects

Makers (Cubecon) #1 Infrared Transmit & Infrared Receive

Project in progress by Alpha

  • 119 views
  • 0 comments
  • 3 respects

Lie Detector

Project tutorial by Adaline Baskaran

  • 5,537 views
  • 5 comments
  • 16 respects

Arduino Keyboard

Project in progress by Gabriele Scordamaglia

  • 376 views
  • 2 comments
  • 4 respects
Add projectSign up / Login