External Vref #574
Answered
by
earlephilhower
NuclearPhoenixx
asked this question in
Q&A
-
Hi, I'm using an external voltage reference (LM4040-3.0) and now I get more or less garbage values for temperature readings. I guess, that's because of some assumed calculations depending on 3.3V for the ADC. Any way to fix this? |
Beta Was this translation helpful? Give feedback.
Answered by
earlephilhower
May 5, 2022
Replies: 1 comment 4 replies
-
I think you'll need to do it using the raw Pico-SDK calls and adjust the formula accordingly. You can use the routine in core as a template: arduino-pico/cores/rp2040/wiring_analog.cpp Lines 140 to 156 in 0afd6ae |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
NuclearPhoenixx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you'll need to do it using the raw Pico-SDK calls and adjust the formula accordingly.
You can use the routine in core as a template:
arduino-pico/cores/rp2040/wiring_analog.cpp
Lines 140 to 156 in 0afd6ae