Skip to content

Fix battery measurement by using calibrated ADC if available #171

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

Conversation

elratt0r
Copy link

Instead of calculating the voltage from the raw adc value, use the analogReadMilliVolts that makes use of the calibrated voltage reference if available and also accounts for the correct attenuation.

See espressif/arduino-esp32#6799

@elratt0r
Copy link
Author

elratt0r commented Mar 6, 2023

Closing PR - Solved in e248462

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant