NTC capteurs température » History » Version 2
Frédéric Blanc, 2021-05-20 10:51
1 | 1 | Frédéric Blanc | h1. NTC capteurs température |
---|---|---|---|
2 | |||
3 | https://www.giangrandi.org/electronics/ntc/ntc.shtml |
||
4 | |||
5 | !clipboard-202105201030-v1vwo.png! |
||
6 | |||
7 | ex R0=50K B=3950 T0=25°C =>298.15°K |
||
8 | 2 | Frédéric Blanc | |
9 | !clipboard-202105201046-eb06u.png! |
||
10 | |||
11 | <pre> |
||
12 | <code> |
||
13 | voltageDividerR1 = 3300 //tension pont 3.3V |
||
14 | BValue = 3950 //constante NTC |
||
15 | R1 = 10000 //résistance pont 10K |
||
16 | T1 = 298.15 // temp 25°C |
||
17 | NADC= 2^N-1 //bits ADC |
||
18 | R2 = (voltageDividerR1*mesure)/(NADC-mesure) |
||
19 | e = 2.718281828 |
||
20 | |||
21 | a = 1/T1; |
||
22 | b = log10(R1/R2) |
||
23 | c = b / log10(e) |
||
24 | d = c / BValue |
||
25 | T2 = 1 / (a- d) |
||
26 | tempcelsius=T2 - 273.15 |
||
27 | </code> |
||
28 | </pre> |