Skip to content
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

ESP32/ESP32-S3 adc calibration #2494

Merged
merged 7 commits into from
May 16, 2023
Merged

Conversation

code8buster
Copy link
Contributor

This set of commits seeks to put an end to the question of battery voltage accuracy on any esp32 based platform.
I have cribbed code from paxcounter since they seem to have an excellent handle on many of the boards we've found problematic.

This iteration makes use of the esp-idf framwork's legacy adc calibration driver, but it works well on my TTGO v2.1-1.6 boards when they aren't plugged in to USB. Since 2018 all of Espressif's esp32 chips get Vref efuse calibration from the factory. This represents a best-effort attempt to provide more accurate voltage reads without end user tinkering.

@github-actions
Copy link
Contributor

github-actions bot commented May 16, 2023

🤖 Pull request artifacts

file commit
pr2494-firmware-2.1.13.38afe52.zip 38afe52

thebentern added a commit to meshtastic/artifacts that referenced this pull request May 16, 2023
thebentern added a commit to meshtastic/artifacts that referenced this pull request May 16, 2023
thebentern added a commit to meshtastic/artifacts that referenced this pull request May 16, 2023
@caveman99 caveman99 merged commit a9fed83 into meshtastic:master May 16, 2023
44 checks passed
@code8buster code8buster deleted the adccal branch May 16, 2023 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants