Hello. I have an RT temperature sensor and I have been given the RT table as below:
I have been trying to find a good way to come up with an equation or a formula to convert the sensor output into the temperature but I have not managed to find a way yet, perhaps someone could point me in the right direction.
The first 2 columns of the table are provided. The 3rd row I have calculated myself and I will explain how below.
So I know what resistor values the temperature will give at any given temperature. The way I read the sensor values is by converting it to the voltage via the voltage divider and then connecting this to my ADC_pin of my microcontroller.
Vsupply = 3.3V
R1 = 22Kohms
R2 = Temperature_sensor_output
The following online calculator can be used:
https://ohmslawcalculator.com/voltage-divider-calculator
For example, when the temperature sensor outputs 10Kohms ( at 25 degrees Celcius) , the voltage output will be 1.031V.
Is there any formula that I can use to determine the current temperature ? Since the relationship is not linear, it makes it quite complicated to come up with an equation that I could use for all the possible values. Any help is appreciated.
I have been trying to find a good way to come up with an equation or a formula to convert the sensor output into the temperature but I have not managed to find a way yet, perhaps someone could point me in the right direction.
TEMPERATURE | RESISTANCE | OUTPUT VOTLAGE |
-20 | 69693 | 2,508227 |
-19 | 66329 | 2,478073 |
-17 | 60140 | 2,416143 |
-16 | 57294 | 2,38442 |
-15 | 54600 | 2,352219 |
-14 | 52049 | 2,319568 |
-13 | 49633 | 2,286501 |
-12 | 47344 | 2,253046 |
-11 | 45174 | 2,219225 |
-10 | 43117 | 2,185084 |
-9 | 41166 | 2,150648 |
-8 | 39315 | 2,11595 |
-7 | 37559 | 2,081041 |
-6 | 35891 | 2,045919 |
-5 | 34307 | 2,01064 |
-4 | 32803 | 1,975255 |
-3 | 31373 | 1,939762 |
-2 | 30015 | 1,904249 |
-1 | 28723 | 1,868697 |
0 | 27494 | 1,833156 |
1 | 26325 | 1,797672 |
2 | 25212 | 1,762255 |
3 | 24153 | 1,726971 |
4 | 23144 | 1,691813 |
5 | 22184 | 1,656871 |
6 | 21268 | 1,622086 |
7 | 20396 | 1,587574 |
8 | 19564 | 1,553296 |
9 | 18771 | 1,519323 |
10 | 18015 | 1,48568 |
11 | 17294 | 1,45239 |
12 | 16605 | 1,419415 |
13 | 15948 | 1,386856 |
14 | 15320 | 1,354662 |
15 | 14720 | 1,322876 |
16 | 14148 | 1,29159 |
17 | 13600 | 1,260674 |
18 | 13077 | 1,230268 |
19 | 12577 | 1,200338 |
20 | 12099 | 1,170905 |
21 | 11641 | 1,141919 |
22 | 11204 | 1,113516 |
23 | 10785 | 1,085573 |
24 | 10384 | 1,058152 |
25 | 10000 | 1,03125 |
26 | 9632 | 1,004856 |
27 | 9280 | 0,979028 |
28 | 8943 | 0,95375 |
29 | 8620 | 0,929001 |
30 | 8310 | 0,904751 |
31 | 8012 | 0,880968 |
32 | 7728 | 0,857858 |
33 | 7454 | 0,83514 |
34 | 7192 | 0,813017 |
35 | 6940 | 0,791361 |
36 | 6699 | 0,770295 |
37 | 6467 | 0,749679 |
38 | 6244 | 0,729543 |
39 | 6030 | 0,709918 |
40 | 5825 | 0,690836 |
41 | 5628 | 0,672231 |
42 | 5438 | 0,654035 |
43 | 5256 | 0,636366 |
44 | 5080 | 0,619055 |
45 | 4912 | 0,602319 |
46 | 4750 | 0,585981 |
47 | 4594 | 0,570061 |
48 | 4444 | 0,554576 |
49 | 4300 | 0,539544 |
50 | 4161 | 0,524877 |
51 | 4027 | 0,510589 |
52 | 3898 | 0,496695 |
53 | 3774 | 0,483208 |
54 | 3654 | 0,470032 |
55 | 3539 | 0,457289 |
56 | 3428 | 0,44488 |
57 | 3322 | 0,432928 |
58 | 3219 | 0,421218 |
59 | 3119 | 0,409758 |
60 | 3023 | 0,398669 |
61 | 2931 | 0,387963 |
The first 2 columns of the table are provided. The 3rd row I have calculated myself and I will explain how below.
So I know what resistor values the temperature will give at any given temperature. The way I read the sensor values is by converting it to the voltage via the voltage divider and then connecting this to my ADC_pin of my microcontroller.
Vsupply = 3.3V
R1 = 22Kohms
R2 = Temperature_sensor_output
The following online calculator can be used:
https://ohmslawcalculator.com/voltage-divider-calculator
For example, when the temperature sensor outputs 10Kohms ( at 25 degrees Celcius) , the voltage output will be 1.031V.
Is there any formula that I can use to determine the current temperature ? Since the relationship is not linear, it makes it quite complicated to come up with an equation that I could use for all the possible values. Any help is appreciated.