-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
battery voltage #2
Comments
thanks for your reply. Is there a on-board way to measure the voltage without using external hardware? |
TTGO-T-display for example allows monitoring the voltage using |
Different lithium batteries have different characteristics. You can do a statistical experiment, record the histogram of your battery voltage and power, and then design a function that meets your needs. I can't give you the answer directly. You have found a suitable example. How to do it depends on you. Enjoy development 👍 |
:) well, thanks for your reply. All I wanted to know was what pin to monitor for the battery voltage, but it's ok, if you can't tell me. |
I still have issues measuring the voltage. With a battery atached and both readings I get values like: 2032.00 2036.00 2032.00 2037.00 2036.00 2033.00 2031.00 It looks strange that analogRead(14) in a double is so much lower than (float)analogRead(14). Is there an explanation or am I doing something wrong? Thank you!
|
Reopened because of strange readings. |
Please help me writing a small arduino sketch that monitors the voltage of the battery connected to the bpi-leaf-s3.
I'd like to see he voltage on a small oled and when the voltage is below a certain value (for example 3.7V) the leaf should go into deep sleep.
What pin should be read? what multiplication is needed to give a good value?
I tried A13 but am not happy yet. :)
And if there is a better place to ask - please let me know.
Thank you and best regards!
The text was updated successfully, but these errors were encountered: