Skip to content

[REQ] Component Request: Support MCUs with built-in temperature sensors #111

@brentru

Description

@brentru

Boards utilizing a MCU with a built-in temperature sensor (measuring how hot the chip is) are identified via adafruit/Wippersnapper_Boards#94

To expose this as a component, we'd need a new component type called mcuTempSensor

Proposed schema.json:

{
  "title": "MCU Temperature Sensor Component Definition",
  "description": "A MCU temperature sensor WipperSnapper component for use in Adafruit IO",
  "type": "object",
  "required": [ "displayName", "subcomponents", ],
  "additionalProperties": false,
  "properties": {
    "displayName": {
      "description": "The human-friendly name of this component.",
      "type": "string",
      "minLength": 3,
      "maxLength": 30
    },
    "published": {
      "description": "If true, this component is supported by the current firmware version and will be displayed to all users. If false, it is hidden behind a developer toggle so that contributors can still work on it against the production site.",
      "type": "boolean"
    },
    "subcomponents": {
      "description": "The chip's temperature sensor (and its Fahrenheit counterpart).",
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^ambient-temp(-fahrenheit)?$"
      }
    }
  }
}

Depending on what MCU name is defined by the board's definition.json, the component picker would present an image of that chip (maybe we can also overlay a thermometer icon):

For example, the PicoW use the RP2040 platform and the component's image would look like:

image

For the ESP32-S2 platform
image

Related:
adafruit/Adafruit_Wippersnapper_Arduino#390
adafruit/Wippersnapper_Boards#94

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions