ThermistorConvertTemperatureCtoADCreading {thermocouple} | R Documentation |
Convert temperature in Celcius into ADC reading, with two resistors
Description
ThermistorConvertTemperatureCtoADCreading
Converts temperature
in Celcius into ADC reading, with two resistors
Usage
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 |
Value
adc |
ADC value |
Author(s)
Jose Gama
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
[Package thermocouple version 1.0.2 Index]