SlimeVR / SlimeVR-Tracker-ESP

SlimeVR tracker firmware for ESP32/ESP8266 and different IMUs
Apache License 2.0
798 stars 274 forks source link

ESP32: Fix ADC/battery sense logic #310

Closed kounocom closed 5 months ago

kounocom commented 6 months ago

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

gorbit99 commented 6 months ago

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

TheDevMinerTV commented 6 months ago

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

kounocom commented 6 months ago

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 >.>)