I want to detect the percentage of the battery powering my arduino, to use for a battery shutdown mechanism to shut down the arduino when the battery falls too low. How can I do this?
First tell us what "the battery" and 'My Arduino" actually are.
You could put the Arduino to sleep when the battery is almost depleted,
but how effective this is depends on the type of Arduino.
Leo..
It appears to me it will shut down on its own acorde as the voltage drops below operating levels.
It is not easy to calculate a battery percentage ("fuel gauge"), and not necessary. Most people monitor the battery voltage and shut down the Arduino before the voltage drops below a selected level, as that is easy to do and very reliable.
For more detailed advice, describe your setup in detail.
Which Arduino are you using?
What type of battery are you using?
It's named "brown out detection" and available in almost every MCU.
Hello s355
Take a search engine of your choice and ask the WWW for 'arduino +hidden voltmeter' to collect some data to be sorted out to get the needed information.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.