adafruit/Adafruit_Wippersnapper_Arduino

Support MCUs with built-in temperature sensors

brentru opened this issue · 3 comments

Microcontrollers like the RP2040 and ESP32-S2/S3, ESP32-C2/C3 contain built-in temperature sensors. These are not ambient temperature sensors, they measure the temperature of the chip itself.

This temperature returned by these sensors is not very accurate (low resolution and generally higher than ambient temperature) but would serve as a quick way to get temperature data into IO without the use of external parts.

cc @lorennorman - This will likely need to be part of WipperSnapper_Components and WipperSnapper_Boards, too. Since it's technically an ADC measurement, we could denote it as an analog pin component. Only certain microcontrollers have a sensor like this, we may want to figure out how to add this (possibly as a new value) to the board.json too.

References:

Oh this is fun! I can't envision the whole thing myself, it would help me to see a draft of what new JSON things we'd add to boards/components repos, and how it might show up in the component picker. From there I should be able to collaborate on that design and guess at a work estimate for this.

Proposal for support within WipperSnapper Boards: adafruit/Wippersnapper_Boards#94

Proposal for support within WipperSnapper Components: adafruit/Wippersnapper_Components#111