Adafruit MCP9808 Shield

Overview

The Adafruit MCP9808 High Accuracy I2C Temperature Sensor Shield features a Microchip MCP9808 Temperature Sensor and two STEMMA QT connectors.

Adafruit MCP9808 Shield

Adafruit MCP9808 Shield (Credit: Adafruit)

Requirements

This shield can be used with boards which provide an I2C connector, for example STEMMA QT or Qwiic connectors. The target board must define a zephyr_i2c node label. See Shields for more details.

Pin Assignments

Shield Pin

Function

SDA

MCP9808 I2C SDA

SCL

MCP9808 I2C SCL

A0

MCP9808 I2C address

ALERT

MCP9808 interrupt out

In order to use interrupts you need to connect a separate wire from the shield to a GPIO pin on your microcontroller board. See jedec,jc-42.4-temp for documentation on how to adjust the devicetree file.

Programming

Set --shield adafruit_mcp9808 when you invoke west build. For example when running the JEDEC JC 42.4 compliant Temperature Sensor temperature measurement sample:

# From the root of the zephyr repository
west build -b adafruit_qt_py_rp2040 --shield adafruit_mcp9808 samples/sensor/jc42