Merge remote-tracking branch 'upstream/edge' into upstream-master
[clinton/Smoothieware.git] / src / modules / tools / temperaturecontrol / predefined_thermistors.h
1 typedef struct {
2 const char *name;
3 int r1;
4 int r2;
5 float beta, r0, t0;
6 } const thermistor_beta_table_t;
7
8 // NOTE the order of these tables must NOT be changed as the index can be used in M305 to set the prefined thermistor to use
9
10 static const thermistor_beta_table_t predefined_thermistors_beta[] {
11 // name, r1, r2, beta, r0, t0
12 {"EPCOS100K", 0, 4700, 4066.0F, 100000.0F, 25.0F}, // B57540G0104F000
13 {"RRRF100K", 0, 4700, 3960.0F, 100000.0F, 25.0F},
14 {"RRRF10K", 680, 1600, 3964.0F, 10000.0F, 25.0F},
15 {"Honeywell100K", 0, 4700, 3974.0F, 100000.0F, 25.0F}, // 135-104LAG-J01
16 {"Semitec", 0, 4700, 4267.0F, 100000.0F, 25.0F}, // 104GT-2
17 {"HT100K", 0, 4700, 3990.0F, 100000.0F, 25.0F}
18 };
19
20 typedef struct {
21 const char *name;
22 int r1;
23 int r2;
24 float c1, c2, c3;
25 } const thermistor_table_t;
26
27 // Use one of the following scripts to calcuate the coefficients:
28 // - http://www.thinksrs.com/downloads/programs/Therm%20Calc/NTCCalibrator/NTCcalculator.htm
29 // - https://github.com/MarlinFirmware/Marlin/blob/Development/Marlin/scripts/createTemperatureLookupMarlin.py
30 static const thermistor_table_t predefined_thermistors[] {
31 // name, r1, r2, c1, c2, c3
32 {"EPCOS100K", 0, 4700, 0.000722378300319346F, 0.000216301852054578F, 9.2641025635702e-08F}, // B57540G0104F000
33 {"Vishay100K", 0, 4700, 0.0007022607370F, 0.0002209155484F, 7.101626461e-08F }, // NTCS0603E3104FXT
34 {"Honeywell100K", 0, 4700, 0.000596153185928425F, 0.000231333192738335F, 6.19534004306738e-08F}, // 135-104LAG-J01
35 {"Semitec", 0, 4700, 0.000811290160145459F, 0.000211355789144265F, 7.17614730463848e-08F}, // 104GT-2
36 {"Honeywell-QAD", 0, 4700, 0.000827339299500986F, 0.000208786427208899F, 8.05595282332277e-08F} // 135-104QAD-J01
37 };