Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] Interface Temperature Sensor

Status
Not open for further replies.

nis2311

Member level 2
Joined
Nov 19, 2016
Messages
52
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
501
Hi,
I am having an air conditioner temperature sensor for ambient temperature measurement, which value is not in linearity. How to make out the temperature by using only the ADC Value to get degrees in the C code like any formulas.
For a example this is my temperature sensor chart:

Code:
Celsius Ohms(K)  Voltage   ADC value
15	7.447	2.968	151.349725
16	7.148	2.918	148.8211329
17	6.863	2.868	146.2916277
18	6.591	2.819	143.762488
19	6.332	2.769	141.2354022
20	6.084	2.720	138.7136521
21	5.847	2.671	136.1970731
22	5.621	2.621	133.6903596
23	5.404	2.572	131.1935588
24	5.198	2.524	128.7084369
25	5.000	2.475	126.2376238
26	4.811	2.427	123.7795133
27	4.630	2.379	121.34396
28	4.457	2.332	118.9245804
29	4.292	2.285	116.5251927
30	4.133	2.238	114.1480651
31	3.981	2.192	111.7936309

Help me to solve this problem......
 

You need to know your sensor's voltage(resistance)/temperature relationship. You don't tell us if it's a thermistor, RTD, thermocouple, diode or what. The manufacturer should provide that information.
 

How to make out the temperature by using only the ADC Value to get degrees in the C code like any formulas

There are numerous regression calculator websites on the web on which you can insert the above input/output table, obviously selecting just one pair of parameter ( e.g : Celsius / ADC value ). These tools give you the formula that estimates with a reasonable accuracy the output value depending on the function chosen for this, usually polynomial of order 2 or 3. You can try this one, seems promising: https://planetcalc.com/5992/
 

Thanks for your reply.....
This site help me to solved the problem "https://planetcalc.com/5992/"
 

The resistance curve seems to show a 5k NTC. To calculate the translation to voltage and ADC value, you need to know the circuit, apparently a voltage divider. The transfer function can be calculated using the formulas given in NTC application literature.

For the apparently very small temperature interval, it can be easily fitted by polynomial, as discussed above.
 

Realy ? not linear ?
what is the problem ?

on a very short range of temperature , even a CTN could be considered as linear

...which value is not in linearity.

CTN.jpg
 

Strictly speaking, every natural phenomenon is non-linear in some extent, and unless a detailed inspection is made - such as the one you did - it is not possible to know beforehand whether it is feasible to optimize it for the specific case of the 1-order polynomial (linear). In the above range, by visual inspection it is clearly the case. BTW, depending on the region that the PTC is biased, it may exhibit greater non-linearity
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top