Skip to content

Commit 3994500

Browse files
committed
0.1.07 2015-12-06 updated TC factors from the MAX31855 datasheet
1 parent 1ae8c5f commit 3994500

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

libraries/MAX31855/MAX31855.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
//
22
// FILE: MAX31855.cpp
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.1.06
4+
// VERSION: 0.1.07
55
// PURPOSE: MAX31855 - Thermocouple
66
// DATE: 2014-01-01
77
// URL:
88
//
99
// HISTORY:
10+
// 0.1.07 2015-12-06 updated TC factors from the MAX31855 datasheet
1011
// 0.1.06 2015-12-05 added support for other types of TC's (experimental)
1112
// 0.1.05 2015-07-12 refactor robust constructor
1213
// 0.1.04 2015-03-09 replaced float -> double (ARM support)

libraries/MAX31855/MAX31855.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// FILE: MAX31855.h
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.1.06
4+
// VERSION: 0.1.07
55
// PURPOSE: MAX31855 - Thermocouple
66
// DATE: 2014-01-01
77
// URL:
@@ -17,7 +17,7 @@
1717
#include "Arduino.h"
1818
#endif
1919

20-
#define MAX31855_VERSION "0.1.06"
20+
#define MAX31855_VERSION "0.1.07"
2121

2222
#define STATUS_OK 0x00
2323
#define STATUS_OPEN_CIRCUIT 0x01
@@ -40,13 +40,14 @@
4040
// S_TC = 6 => 41/6 = 6.8333333333
4141
// T_TC = 41 => 41/41 = 1
4242

43-
#define E_TC 0.6721311475
44-
#define J_TC 0.7884615385
45-
#define K_TC 1
46-
#define N_TC 1.5185185185
47-
#define R_TC 4.5555555556
48-
#define S_TC 6.8333333333
49-
#define T_TC 1
43+
// 0.1.07 updated with numbers from the MAX31855 datasheet
44+
#define E_TC (41.276/76.373)
45+
#define J_TC (41.276/57.953)
46+
#define K_TC (41.276/41.276)
47+
#define N_TC (41.276/36.256)
48+
#define R_TC (41.276/10.506)
49+
#define S_TC (41.276/9.587)
50+
#define T_TC (41.276/52.18)
5051

5152

5253
class MAX31855

0 commit comments

Comments
 (0)