float Calc_Thermistor_Temp_LUT () { // Berechnung über Look up Table // Uref Spannung am Vorwiderstand (Betriebsspannung) // Um Spannung am Thermistor (ADC-Wert) // R0 Vorwiderstand double T, alpha; float T; int i; float Uref=5.0; float R0=2700.0; float Um=3.0; // Vergleichstabelle Temperatur -> Widerstand float utab[100][2] = { - 55.0, 963000, - 50.0, 670100, - 45.0, 471700, - 40.0, 336500, - 35.0, 242600, - 30.0, 177000, - 25.0, 130400, - 20.0, 97070, - 15.0, 72930, - 10.0, 55330, - 5.0, 42320, 0.0, 32650, 1.0, 31030, 2.0, 29490, 3.0, 28050, 4.0, 26680, 5.0, 25390, 6.0, 24170, 7.0, 23010, 8.0, 21920, 9.0, 20880, 10.0, 19900, 11.0, 18970, 12.0, 18090, 13.0, 17250, 14.0, 16460, 15.0, 15710, 16.0, 15000, 17.0, 14320, 18.0, 13680, 19.0, 13070, 20.0, 12490, 21.0, 11940, 22.0, 11420, 23.0, 10920, 24.0, 10450, 25.0, 10000, 26.0, 9572, 27.0, 9165, 28.0, 8777, 29.0, 8408, 30.0, 8057, 31.0, 7722, 32.0, 7402, 33.0, 7098, 34.0, 6808, 35.0, 6531, 36.0, 6267, 37.0, 6016, 38.0, 5775, 39.0, 5546, 40.0, 5327, 41.0, 5117, 42.0, 4917, 43.0, 4726, 44.0, 4543, 45.0, 4369, 46.0, 4202, 47.0, 4042, 48.0, 3889, 49.0, 3743, 50.0, 3603, 51.0, 3469, 52.0, 3340, 53.0, 3217, 54.0, 3099, 55.0, 2986, 56.0, 2878, 57.0, 2774, 58.0, 2675, 59.0, 2579, 60.0, 2488, 61.0, 2400, 62.0, 2316, 63.0, 2235, 64.0, 2158, 65.0, 2083, 66.0, 2011, 67.0, 1943, 68.0, 1877, 69.0, 1813, 70.0, 1752, 75.0, 1481, 80.0, 1258, 85.0, 1072, 90.0, 917.7, 95.0, 788.5, 100.0, 680.0, 105.0, 588.6, 110.0, 511.2, 115.0, 445.4, 120.0, 389.3, 125.0, 341.7, 130.0, 300.9, 135.0, 265.4, 140.0, 234.8, 145.0, 208.3, 150.0, 185.3, 155.0, 165.0 };