• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Read/Measure the voltage on the battery that power the Mkr

Q&A Forum › Read/Measure the voltage on the battery that power the Mkr
0 Vote Up Vote Down
wael elsisi asked 4 years ago

How to write code Read/Measure the voltage on the battery that power the ESP8266?

5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
You just need to use analogRead() and pass as an argument the pin in which you are reading the voltage.
Let me know if this helps.
Regards,
Sara

0 Vote Up Vote Down
wael elsisi answered 4 years ago

Thank you for your reply.
The battery doesn’t connect to any pins.
I use Solar manager which connected to the battery and the kit.
I use the system as in this linkhttps://www.waveshare.com/solar-power-manager.htm

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
I thought you were using a battery without any module.
I’m not familiar with that module. But from the specs, it doesn’t seem to have any output to measure the current voltage. You would have to solder a wire to the terminals of the battery and measure the voltage on an analog pin.
You also have to take into account the maximum output voltage of the battery and that the ESP32 can only measure up to 3.3V.
Regards,
Sara
 

0 Vote Up Vote Down
Marcos Silva answered 4 years ago

Hi. Hope you are alright. I’m worried about putting the battery in the esp32’s GPIO to monitor the voltage level, as I don’t know if the current can burn it. My project uses two batteries (one for esp32 and sensors and one for motor and servo) connected to Vin of tp4056 and Vout connected to Vin of step up DC DC. Can you help me? I would like to monitor the battery voltage level.

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
Your question will be answered here: https://rntlab.com/question/battery-voltage-level-monitoring-circuit/
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.