Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Reading the M4 Airlift voltage
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Reading the M4 Airlift voltage

by gearmesh on Mon Jun 29, 2020 10:41 pm

I have code I used for my Uno One but it doesn't seem to work on the M4 Airlift.
What is the easiest way to read the voltage off of Vcc? The reason I need it is I have my M4 using the
Adafruit PowerBoost 500 Shield - Rechargeable 5V Power Shield (PRODUCT ID: 2078) and I am going to display the battery voltage on my display so I know when it gets low.

I found this code that worked for the Uno but doesn't seem happy on an M4
see attached file.
secret-arduino-voltmeter-measure-battery-voltage.txt
Code to read voltage of other Arduino boards
(1.12 KiB) Downloaded 4 times

gearmesh
 
Posts: 14
Joined: Fri Apr 03, 2015 9:56 am

Please be positive and constructive with your questions and comments.