Project

General

Profile

NTC capteurs température » History » Version 3

Frédéric Blanc, 2021-05-20 11:31

1 1 Frédéric Blanc
h1. NTC capteurs température
2
3 3 Frédéric Blanc
h2. plugin Analog input thermistor
4
5
https://www.letscontrolit.com/forum/viewtopic.php?t=7776
6
7
h2. ADS1115
8
9 1 Frédéric Blanc
https://www.giangrandi.org/electronics/ntc/ntc.shtml
10
11
!clipboard-202105201030-v1vwo.png!
12
13
ex R0=50K  B=3950 T0=25°C =>298.15°K
14 2 Frédéric Blanc
15
!clipboard-202105201046-eb06u.png!
16
17
<pre>
18
<code>
19
voltageDividerR1 = 3300 //tension pont 3.3V
20
BValue = 3950 //constante NTC
21
R1 = 10000 //résistance pont 10K
22
T1 = 298.15 // temp 25°C
23
NADC= 2^N-1 //bits ADC
24
R2 = (voltageDividerR1*mesure)/(NADC-mesure)
25
e = 2.718281828
26
 
27
a = 1/T1;
28
b = log10(R1/R2)
29
c = b / log10(e)
30
d = c / BValue 
31
T2 = 1 / (a- d)
32
tempcelsius=T2 - 273.15
33
</code>
34
</pre>