Convert temperature in Celcius into ADC reading, with two resistors
ThermistorConvertTemperatureCtoADCreading
Converts temperature in Celcius into ADC reading, with two resistors
ThermistorConvertTemperatureCtoADCreading(T, R0, T0, R1, R2, betaTH, vadc = 5.0, vcc = 5.0, ADCbits=10)
T
: Temperature in CelsiusR0
: resistance measurement 1T0
: resistance temperature 1R1
: resistor value 1R2
: resistor value 2betaTH
: beta coefficientvadc
: ADC referencevcc
: supply voltage to potential dividerADCbits
: ADC bit resolutionChris Palmer, 2007 Measuring temperature the easy way http://hydraraptor.blogspot.co.uk/2007/10/measuring-temperature-easy-way.html
Chris Palmer, 2007 Measuring temperature the easy way http://hydraraptor.blogspot.co.uk/2007/10/measuring-temperature-easy-way.html
Jose Gama
Useful links