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: Fix ADC/battery sense logic #310

Merged
merged 5 commits into from
Jan 19, 2024

Conversation

kounocom
Copy link
Contributor

At least on ESP32-C3, default logic returns completely wrong values for voltage. This fixes it.

@gorbit99
Copy link
Contributor

I could also reproduce this issue and this solved it for me perfectly

@TheDevMinerTV
Copy link
Member

This could break the normal ESP32. Please double check that the voltages are still correct on it.

@kounocom
Copy link
Contributor Author

kounocom commented Dec 24, 2023

This could break the normal ESP32. Please double check that the voltages are still correct on it.

Confirmed working on Wroom 32 board

http://cdn.kouno.xyz/2H6KA4So.png
http://cdn.kouno.xyz/ve4F99oE.JPEG

(edit because I don't know how to do links apparently >.>)

@ButterscotchV ButterscotchV merged commit 35da44b into SlimeVR:main Jan 19, 2024
1 check passed
@kounocom kounocom deleted the esp32-adc-fix branch January 19, 2024 07:00
nekomona pushed a commit to nekomona/SlimeVR-Tracker-ESP that referenced this pull request Jan 30, 2024
* ESP32: Fix ADC voltage readings

* Forgot endif oops

* Refactor a little bit

* Fix spelling of 'resolution'
l0ud pushed a commit to l0ud/SlimeVR-Tracker-ESP-BMI270 that referenced this pull request Apr 1, 2024
* ESP32: Fix ADC voltage readings

* Forgot endif oops

* Refactor a little bit

* Fix spelling of 'resolution'
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.

4 participants