Internally, the temperature sensor is just a diode (~ 0.7V at room temperature), and this falls at about -1.8 mV/°C. With 12 bits, a code of 2400 represents 2400/4096 * 1.2, or 0.7 V -- as you find...
Type: Posts; User: Jp3141
Internally, the temperature sensor is just a diode (~ 0.7V at room temperature), and this falls at about -1.8 mV/°C. With 12 bits, a code of 2400 represents 2400/4096 * 1.2, or 0.7 V -- as you find...
It's physically channel 26 (dec) in the MCU; Paul's code maps this from channel 38 in an analogRead() call. It's just a (deliberate) coincidence that 0x26 = 38 decimal, so analogRead(0x26) actually...
Isn't it channel 26 (decimal) ? I think you interpreted 26 as hex and converted to decimal (-> 38) ?
Also, the result is not directly in degrees -- you have to calibrate each part, but this is...