ThermistorConvertTemperatureCtoADCreading function

Convert temperature in Celcius into ADC reading, with two resistors

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)

Arguments

  • T: Temperature in Celsius
  • R0: resistance measurement 1
  • T0: resistance temperature 1
  • R1: resistor value 1
  • R2: resistor value 2
  • betaTH: beta coefficient
  • vadc: ADC reference
  • vcc: supply voltage to potential divider
  • ADCbits: ADC bit resolution

Returns

  • adc: ADC value

Source

Chris Palmer, 2007 Measuring temperature the easy way http://hydraraptor.blogspot.co.uk/2007/10/measuring-temperature-easy-way.html

References

Chris Palmer, 2007 Measuring temperature the easy way http://hydraraptor.blogspot.co.uk/2007/10/measuring-temperature-easy-way.html

Author(s)

Jose Gama

  • Maintainer: Jose Gama
  • License: GPL (>= 3)
  • Last published: 2015-07-19

Useful links