User Manual
Also get the Adafruit BusIO library
Load Example
Open up File -> Examples -> Adafruit MCP9600 -> mcp9600_test and upload to your Arduino wired up to the sensor.
Upload the sketch to your board and open up the Serial Monitor (Tools->Serial Monitor). You should see the the values
for hot junction, cold junction and ADC.
Example Code
The following example code is part of the standard library, but illustrates how you can retrieve sensor data from the
MCP9600 for the hot junction, cold junction and ADC values:
#include <Wire.h>
#include <Adafruit_I2CDevice.h>
#include <Adafruit_I2CRegister.h>
#include "Adafruit_MCP9600.h"
#define I2C_ADDRESS (0x67)
Adafruit_MCP9600 mcp;
Adafruit_I2CDevice i2c_dev = Adafruit_I2CDevice(I2C_ADDRESS);
void setup()
{
Serial.begin(115200);
while (!Serial) {
delay(10);
}
Serial.println("MCP9600 HW test");
/* Initialise the driver with I2C_ADDRESS and the default I2C bus. */
if (! mcp.begin()) {
Serial.println("Sensor not found. Check wiring!");
while (1);
}
Serial.println("Found MCP9600!");
mcp.setADCresolution(MCP9600_ADCRESOLUTION_18);
Serial.print("ADC resolution set to ");
© Adafruit Industries https://learn.adafruit.com/adafruit-mcp9600-i2c-thermocouple-amplifier Page 9 of 15