Re: Wrong bed temperature March 30, 2014 09:30AM |
Registered: 11 years ago Posts: 119 |
// Thermistor lookup table for two different thermistors. /* This table doesn't depend on the type of electronics, but on the type of thermistor(s) you use. You want one table for each thermistor type you use. */ // How many thermistor tables we have. #define NUMTABLES 2 // Names for our tables, so you can use them in config.h. // Table numbering starts at 0. #define THERMISTOR_EXTRUDER 1 #define THERMISTOR_BED 0 /* You may be able to improve the accuracy of this table in various ways. 1. Measure the actual resistance of the resistor. It's "nominally" 4.7K, but that's ± 5%. 2. Measure the actual beta of your thermistor: [reprap.org] 3. Generate more table entries than you need, then trim down the ones in uninteresting ranges. In either case you'll have to regenerate this table with createTemperatureLookup.py, which requires python, which is difficult to install on windows. Since you'll have to do some testing to determine the correct temperature for your application anyway, you may decide that the effort isn't worth it. Who cares if it's reporting the "right" temperature as long as it's keeping the temperature steady enough to print, right? */ // The number of value pairs in our table. // Must be the same for all tables. #define NUMTEMPS 103 uint16_t const temptable[NUMTABLES][NUMTEMPS][2] PROGMEM = { //extruder temperature // ./createTemperatureLookup.py --r0=100000 --t0=25 --r1=0 --r2=4700 --beta=4036 --max-adc=1023 // r0: 100000 // t0: 25 // r1: 0 // r2: 4700 // beta: 4036 // max adc: 1023 { {1, 864}, {11, 404}, {21, 337}, {31, 302}, {41, 279}, {51, 262}, {61, 249}, {71, 238}, {81, 229}, {91, 221}, {101, 215}, {111, 208}, {121, 203}, {131, 198}, {141, 193}, {151, 189}, {161, 185}, {171, 181}, {181, 178}, {191, 174}, {201, 171}, {211, 168}, {221, 166}, {231, 163}, {241, 160}, {251, 158}, {261, 155}, {271, 153}, {281, 151}, {291, 149}, {301, 147}, {311, 145}, {321, 143}, {331, 141}, {341, 139}, {351, 137}, {361, 135}, {371, 133}, {381, 132}, {391, 130}, {401, 128}, {411, 127}, {421, 125}, {431, 124}, {441, 122}, {451, 120}, {461, 119}, {471, 117}, {481, 116}, {491, 115}, {501, 113}, {511, 112}, {521, 110}, {531, 109}, {541, 107}, {551, 106}, {561, 105}, {571, 103}, {581, 102}, {591, 100}, {601, 99}, {611, 98}, {621, 96}, {631, 95}, {641, 93}, {651, 92}, {661, 91}, {671, 89}, {681, 88}, {691, 86}, {701, 85}, {711, 84}, {721, 82}, {731, 81}, {741, 79}, {751, 78}, {761, 76}, {771, 74}, {781, 73}, {791, 71}, {801, 70}, {811, 68}, {821, 66}, {831, 64}, {841, 63}, {851, 61}, {861, 59}, {871, 57}, {881, 55}, {891, 52}, {901, 50}, {911, 48}, {921, 45}, {931, 42}, {941, 39}, {951, 36}, {961, 32}, {971, 28}, {981, 23}, {991, 17}, {1001, 10}, {1011, -1}, {1021, -25} }, // bed temperature // ./createTemperatureLookup.py --r0=10000 --t0=25 --r1=0 --r2=10000 --beta=4050 --max-adc=1023 // r0: 10000 // t0: 25 // r1: 0 // r2: 10000 // beta: 4050 // max adc: 1023 { {1, 335}, {11, 173}, {21, 143}, {31, 127}, {41, 116}, {51, 107}, {61, 100}, {71, 95}, {81, 90}, {91, 86}, {101, 83}, {111, 79}, {121, 76}, {131, 74}, {141, 71}, {151, 69}, {161, 67}, {171, 65}, {181, 63}, {191, 61}, {201, 59}, {211, 57}, {221, 56}, {231, 54}, {241, 53}, {251, 51}, {261, 50}, {271, 49}, {281, 47}, {291, 46}, {301, 45}, {311, 44}, {321, 43}, {331, 42}, {341, 41}, {351, 40}, {361, 38}, {371, 37}, {381, 36}, {391, 35}, {401, 34}, {411, 34}, {421, 33}, {431, 32}, {441, 31}, {451, 30}, {461, 29}, {471, 28}, {481, 27}, {491, 26}, {501, 25}, {511, 25}, {521, 24}, {531, 23}, {541, 22}, {551, 21}, {561, 20}, {571, 20}, {581, 19}, {591, 18}, {601, 17}, {611, 16}, {621, 15}, {631, 14}, {641, 14}, {651, 13}, {661, 12}, {671, 11}, {681, 10}, {691, 9}, {701, 8}, {711, 8}, {721, 7}, {731, 6}, {741, 5}, {751, 4}, {761, 3}, {771, 2}, {781, 1}, {791, 0}, {801, 0}, {811, -1}, {821, -2}, {831, -3}, {841, -5}, {851, -6}, {861, -7}, {871, -8}, {881, -10}, {891, -11}, {901, -13}, {911, -14}, {921, -16}, {931, -18}, {941, -20}, {951, -22}, {961, -24}, {971, -27}, {981, -30}, {991, -34}, {1001, -39}, {1011, -47}, {1021, -64} } };
Re: Wrong bed temperature March 31, 2014 02:14AM |
Registered: 12 years ago Posts: 258 |
// Names for our tables, so you can use them in config.h. // Table numbering starts at 0. #define THERMISTOR_EXTRUDER 1 #define THERMISTOR_BED 0
Re: Wrong bed temperature March 31, 2014 01:36PM |
Registered: 11 years ago Posts: 119 |
Re: Wrong bed temperature April 01, 2014 04:52AM |
Registered: 12 years ago Posts: 258 |