STEMMA QT / Qwiic JST SH 4-Pin Cable -
50mm Long
This 4-wire cable is50mm / 1.9" long and
fitted with JST SH female 4-pin
connectors on both ends. Compared with
the chunkier JST PH these are 1mm pitch
instead of 2mm, but...
https://www.adafruit.com/product/4399
While the examples here will be using the Adafruit MCP9808(), a high accuracy
temperature sensor, the overall process is the same for just about any I2C sensor or
device.
The first thing you'll want to do is get the sensor connected so your board has I2C to
talk to.
Wiring the MCP9808
The MCP9808 comes with a STEMMA QT connector, which makes wiring it up quite
simple and solder-free.
Simply connect the STEMMA QT cable from the STEMMA QT port on your board to th
e STEMMA QT port on the MCP9808.
Find Your Sensor
The first thing you'll want to do after getting the sensor wired up, is make sure it's
wired correctly. You're going to do an I2C scan to see if the board is detected, and if it
is, print out its I2C address.
©Adafruit Industries Page 159 of 263