A thermistor is a type of resistor whose resistance is

advertisement
A thermistor is a type of resistor whose resistance is dependent on temperature.
Thermistors are widely used as temperature sensors namely positive temperature
coefficient (PTC ) and negative temperature coefficient (NTC) in accordance with the
temperature coefficient. With PTC, resistance increases with the increase of
temperature. While with NTC, resistance decreases with the increase of temperature.
We are using a NTC thermistor whose resistance decreases with the increase of
temperature. Convert the voltage of CH0 into digital value via the ADC. And then
convert the resistance of the thermistor into centigrade temperature or Fahrenheit
degree through program processing.
Specific process:
1. Read the analog value of CH0 in the following circuit and calculate the voltage of
CH0 based on the property of ADC (refers to the voltage reference (Vref), which
is 5V and the analog reference (Aref), which is 10 bit ADC for Arduino namely
Aref=1023 and 8 bit ADC for ADC0832 namely Aref=255 )and the serial
resistance,calculate the Voltage Vr of CH0:
2. Calculate the value of Rt through the geometric relationship between voltage and
resistance.
3. Calculate the value of Kelvin temperature (Tk) of the thermistor based on the
negative temperature coefficient formula of resistance (the governing equation is
Arrhenius equation), which describes that an insulator’s resistance varies with
temperature.
4. Then convert Tk into centigrade temperature or Fahrenheit degree
The following is the specific process:
1. Build the circuit and read the analog value. If you are using a Raspberry board,
you need to use an ADC chip to read the analog value since it is not capable of
doing so. Here we take the ADC0832 for example. For Arduino, you can use
the ADC chip inside it. Connect CH0 to any pin from pin A0 to pin A5 to read the
value. Here the π‘‰π‘Ÿπ‘’π‘“ of Arduino board and ADC0832 are both 5V. ADC0832:
π΄π‘Ÿπ‘’π‘“ = 255, Arduino: π΄π‘Ÿπ‘’π‘“ = 1023. Here we regard the analog value as AT.The
ratio of 𝐴 𝑇 and π΄π‘Ÿπ‘’π‘“ equals to that of π‘‰π‘Ÿ and π‘‰π‘Ÿπ‘’π‘“ ( the property of ADC). That is :
𝐴𝑇
π‘‰π‘Ÿ
=
π΄π‘Ÿπ‘’π‘“ π‘‰π‘Ÿπ‘’π‘“
Then
π‘‰π‘Ÿ =
𝐴 𝑇 βˆ™ π‘‰π‘Ÿπ‘’π‘“
π΄π‘Ÿπ‘’π‘“
π‘‰π‘Ÿπ‘’π‘“ and π΄π‘Ÿπ‘’π‘“ are the constants. Then the value of π‘‰π‘Ÿ can be calculated.
2. Calculate the value of Rt according to the following equation:
𝑉𝑠
π‘‰π‘Ÿ
=
𝑅𝑇 + 𝑅1 𝑅1
𝑉𝑠 refers to the power supply voltage at the left, which is 5V. 𝑅1 refers to the 10k
resistor. Therefore, the value of RT can be calculated:
𝑅𝑇 =
𝑉𝑠 βˆ™ 𝑅1
− 𝑅1
π‘‰π‘Ÿ
That is :
𝑅𝑇 =
5𝑣 × 10 000𝛺
− 10 000𝛺
π‘‰π‘Ÿ
3. Calculate the Kelvin temperature (Tk) based on 𝑅𝑇 :
𝐡
𝑅𝑇 = 𝐴 βˆ™ β„― π‘‡π‘˜
A and B are the constants. Beta (B) is NTC. For the thermistor we are using, 𝐡 =
3950.
Here 𝑒 = 2.71828 …
We use a 10k Ohm thermistor. When T0=25, 𝑅0 = 10 000𝛺
A=
𝑅𝑇
𝐡
𝑒 π‘‡π‘˜
∴
𝑅0
𝐡
β„― 𝑇0
=
𝑅𝑇
𝐡
𝑒 π‘‡π‘˜
Then the value of π‘‡π‘˜ can be calculated through the given parameters οΌˆπ‘…0 ,𝐡,
β„―οΌŒπ‘‡0 , 𝑅𝑇 οΌ‰
Continue to change the equation:
𝑅𝑇 = 𝑅0 βˆ™ β„―
β„―
(−
𝐡 𝐡
(− + )
𝑇0 π‘‡π‘˜
𝐡 𝐡
(− + )
𝑇0 π‘‡π‘˜
=
𝑅𝑇
𝑅0
𝐡 𝐡
𝑅𝑇
+ ) = ln ( )
𝑇0 π‘‡π‘˜
𝑅0
𝐡
𝑅𝑇
𝐡
= ln ( ) +
π‘‡π‘˜
𝑅0
𝑇0
𝐡
π‘‡π‘˜ =
𝑅
𝐡
ln ( 𝑅𝑇 ) + 𝑇
0
0
Then the value of π‘‡π‘˜ has been calculated.
4. Convert π‘‡π‘˜ into centigrade temperature or Fahrenheit degree we are familiar with.
Centigrade Temperature (𝑇𝐢 )
𝑇𝐢 = π‘‡π‘˜ − 273.15
华氏度:
Fahrenheit Degree (𝑇𝐹 )
𝑇𝐹 = (π‘‡π‘˜ − 273.15) × 1.8000 + 32.00
The above-mentioned process can be simplified as:
1. Read the value of 𝐴 𝑇 and calculate the value of π‘‰π‘Ÿ οΌšπ‘‰π‘Ÿ =
2. Calculate the value of𝑅𝑇 οΌšπ‘…π‘‡ =
3. Calculate the value of π‘‡π‘˜ οΌšπ‘‡π‘˜ =
𝑉𝑠 ×𝑅1
π‘‰π‘Ÿ
𝐴𝑇 ×π‘‰π‘Ÿπ‘’π‘“
π΄π‘Ÿπ‘’π‘“
− 𝑅1
𝐡
𝑅
𝐡
ln( 𝑇 )+
𝑅0
𝑇0
4. Calculate the value of 𝑇𝐢 /𝑇𝐹 :
𝑇𝐢 = π‘‡π‘˜ − 273.15
𝑇𝐹 = (π‘‡π‘˜ − 273.15) × 1.8000 + 32.00
Now, we have learned how to convert the resistance of a thermistor into centigrade
temperature or Fahrenheit degree.
For more information, you can also refer to this link.
https://en.wikipedia.org/wiki/Thermistor
Download