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

Switch Analog Voltage on esp32 to use analogReadMilliVolts #620

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

tyeth
Copy link
Contributor

@tyeth tyeth commented Aug 20, 2024

Having issues with the C6 (set aVref to 1.1v and got 0.48v from 3v3 signal).
Just wanted to look into attenuation and the aVref, but saw that analogReadMilliVolts returned the calibrated millivolts, rather than the raw adc value which is uncalibrated.

This PR now switches both periodic and on_change to use the same functions, along with using analogReadMilliVolts for ESP32 based boards.

@tyeth tyeth force-pushed the use-analogReadMilliVolts-for-esp32 branch 3 times, most recently from 781126c to 708f830 Compare August 21, 2024 15:57
@tyeth tyeth marked this pull request as ready for review September 24, 2024 17:02
@tyeth tyeth self-assigned this Sep 24, 2024
@tyeth
Copy link
Contributor Author

tyeth commented Sep 24, 2024

note to self, retest this theory:

scaleAnalogRead = true; // probably should be false, handled in bsp

@tyeth tyeth force-pushed the use-analogReadMilliVolts-for-esp32 branch 2 times, most recently from 032817e to e900f61 Compare September 27, 2024 17:52
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.

1 participant