Internal temperature sensor not accessible on Pico 2? #15732
Replies: 3 comments 2 replies
-
Hi. |
Beta Was this translation helpful? Give feedback.
-
Small numbers like are the ADC channel numbers, Larger numbers like 28 are GPIO numbers. See https://docs.micropython.org/en/latest/rp2/quickref.html#adc-analog-to-digital-conversion |
Beta Was this translation helpful? Give feedback.
-
I now see an issue reported on this (#15687), I don't know how I missed it. I did do a search, but it didn't come up with any reported issues. |
Beta Was this translation helpful? Give feedback.
-
I'm just playing around and tried to read the internal temperature sensor ("core temp"), but I can't get it to work (in serial console).
When I try setting it up I get an error saying that the pin doesn't have ADC capabilities.
The example I started with is found here: https://github.com/raspberrypi/pico-micropython-examples/blob/master/adc/temperature.py (as well as in some docs).
But I've also looked at RP2350 datasheet to confirm that it's the right channel, etc.
Here's some examples of what I've tried (removed Traceback for brevity):
ADC.CORE_TEMP does return 4
I can setup and read from other ADCs
MicroPython v1.24.0-preview.201.g269a0e0e1 on 2024-08-09; Raspberry Pi Pico2 with RP2350-RISCV
Also tried on
MicroPython v1.24.0-preview.201.g269a0e0e1 on 2024-08-09; Raspberry Pi Pico2 with RP2350
Is there a trick I'm missing, is it a bug/not yet supported (I know that there are no official builds etc yet)??
Beta Was this translation helpful? Give feedback.
All reactions