Hex-patch for CLT sensor, wich now with released 1.0.59 firmware default settings reads 10-12C more than real.
- COLD (reads 8C => wanted -2C).
- HOT (95C => wanted about 2..3C lower).
Orig C | Orig F | Orig internal | Orig ADC | required C | required F | required internal |
8 | 46 | 86 (0x56) | 183,184(0xB7,0xB8) | -2 | 28 | 68 |
95 | 203 | 243 (0xF3) | 19(0x13) | 92.5 | 199 | 239(0xEF) |
So running:\n
after editing propertherm.pl : add_adcread_internal( $measured, 183, 68 ); add_adcread_internal( $measured, 19, 239 ); running: perl propertherm.pl < /svn/firmware/firmware/trunk/inc/thermfactor.inc >ntc_propertherm.out 2>ntc_propertherm.err
ntc_propertherm.out on approximation error:\n
2978 Ohm Aref=227 error: 19 => 93.1415341822047 (should be 92.7777777777778 so error=0.363756404426894) 183 => -2.99332554482102 (should be -2.22222222222222 so error=-0.771103322598801) errsqr=0.726919055884493