Skip to content

Commit 0cbf365

Browse files
author
Alex Wende
committed
v1.0.3
-Changed the default address to 0x60 -Updated the examples with a comment for the SparkX board I2C address
1 parent 4fcb31f commit 0cbf365

File tree

8 files changed

+16
-10
lines changed

8 files changed

+16
-10
lines changed

examples/Example1_BasicReadings/Example1_BasicReadings.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ void setup(){
2020
Serial.begin(115200);
2121
Wire.begin();
2222
Wire.setClock(100000);
23-
tempSensor.begin();
23+
tempSensor.begin(); // Uses the default address (0x60) for SparkFun Thermocouple Amplifier
24+
//tempSensor.begin(0x66); // Default address (0x66) for SparkX Thermocouple Amplifier
2425

2526
//check if the sensor is connected
2627
if(tempSensor.isConnected()){

examples/Example2_SetThermocoupleType/Example2_SetThermocoupleType.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ void setup(){
2525
Serial.begin(115200);
2626
Wire.begin();
2727
Wire.setClock(100000);
28-
tempSensor.begin();
28+
tempSensor.begin(); // Uses the default address (0x60) for SparkFun Thermocouple Amplifier
29+
//tempSensor.begin(0x66); // Default address (0x66) for SparkX Thermocouple Amplifier
2930

3031
//check that the sensor is connected
3132
if(tempSensor.isConnected()){

examples/Example3_SetFilterCoefficient/Example3_SetFilterCoefficient.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ void setup(){
3232
Serial.begin(115200);
3333
Wire.begin();
3434
Wire.setClock(100000);
35-
tempSensor.begin();
35+
tempSensor.begin(); // Uses the default address (0x60) for SparkFun Thermocouple Amplifier
36+
//tempSensor.begin(0x66); // Default address (0x66) for SparkX Thermocouple Amplifier
3637

3738
//check if the sensor is connected
3839
if(tempSensor.isConnected()){

examples/Example4_SetResolution/Example4_SetResolution.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ void setup(){
5050
Serial.begin(115200);
5151
Wire.begin();
5252
Wire.setClock(100000);
53-
tempSensor.begin();
53+
tempSensor.begin(); // Uses the default address (0x60) for SparkFun Thermocouple Amplifier
54+
//tempSensor.begin(0x66); // Default address (0x66) for SparkX Thermocouple Amplifier
5455

5556
//check if the sensor is connected
5657
if(tempSensor.isConnected()){

examples/Example5_BurstMode/Example5_BurstMode.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ void setup(){
2626
Serial.begin(115200);
2727
Wire.begin();
2828
Wire.setClock(100000);
29-
tempSensor.begin();
29+
tempSensor.begin(); // Uses the default address (0x60) for SparkFun Thermocouple Amplifier
30+
//tempSensor.begin(0x66); // Default address (0x66) for SparkX Thermocouple Amplifier
3031

3132
//check if the sensor is connected
3233
if(tempSensor.isConnected()){

examples/Example6_ConfigureTemperatureAlert/Example6_ConfigureTemperatureAlert.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ void setup(){
3535
Serial.begin(115200);
3636
Wire.begin();
3737
Wire.setClock(100000);
38-
tempSensor.begin();
38+
tempSensor.begin(); // Uses the default address (0x60) for SparkFun Thermocouple Amplifier
39+
//tempSensor.begin(0x66); // Default address (0x66) for SparkX Thermocouple Amplifier
3940

4041
//check if the sensor is connected
4142
if(tempSensor.isConnected()){
@@ -66,7 +67,7 @@ void setup(){
6667
tempSensor.configAlertHysteresis(fallingAlert, hysteresis);
6768
tempSensor.configAlertTemp(fallingAlert, alertTemp);
6869
tempSensor.configAlertJunction(fallingAlert, 0);
69-
tempSensor.configAlertEdge(fallingAlert, HIGH);
70+
tempSensor.configAlertEdge(fallingAlert, LOW);
7071
tempSensor.configAlertLogicLevel(fallingAlert, HIGH);
7172
tempSensor.configAlertMode(fallingAlert, 1);
7273
tempSensor.configAlertEnable(fallingAlert, true);

library.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name=SparkFun MCP9600 Thermocouple Library
2-
version=1.0.2
2+
version=1.0.3
33
author=SparkFun Electronics <techsupport@sparkfun.com>
44
maintainer=Fischer Moseley <fischer.moseley@sparkfun.com>
55
sentence=Driver for Microchip's MCP9600 Thermocouple Amplifier.
66
paragraph=The <a href="https://www.microchip.com/wwwproducts/en/MCP9600">MCP9600</a> is an integrated thermocouple amplifier featuring a typical accuracy of ±0.5°C and a maximum accuracy of ±1.5°C, with support for many thermocouple types, conversion modes, and a configurable exponential moving average filter.
77
category=Sensors
8-
url=https://www.sparkfun.com/products/15508
8+
url=https://www.sparkfun.com/products/16294
99
architectures=*

src/SparkFun_MCP9600.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Distributed as-is; no warranty is given.
2424
#include <Wire.h>
2525
#include <Arduino.h>
2626

27-
#define DEV_ADDR 0x66 //device address of the MCP9600
27+
#define DEV_ADDR 0x60 //device address of the MCP9600
2828
#define DEV_ID_UPPER 0x40 //value of the upper half of the device ID register. lower half is used for device revision
2929
#define DEV_RESOLUTION 0.0625 //device resolution (temperature in C that the LSB represents)
3030
#define retryAttempts 3 //how many times to attempt to read a register from the thermocouple before giving up

0 commit comments

Comments
 (0)