Project

General

Profile

Actions

NTC capteurs température » History » Revision 2

« Previous | Revision 2/3 (diff) | Next »
Frédéric Blanc, 2021-05-20 10:51


NTC capteurs température

https://www.giangrandi.org/electronics/ntc/ntc.shtml

ex R0=50K B=3950 T0=25°C =>298.15°K


voltageDividerR1 = 3300 //tension pont 3.3V
BValue = 3950 //constante NTC
R1 = 10000 //résistance pont 10K
T1 = 298.15 // temp 25°C
NADC= 2^N-1 //bits ADC
R2 = (voltageDividerR1*mesure)/(NADC-mesure)
e = 2.718281828

a = 1/T1;
b = log10(R1/R2)
c = b / log10(e)
d = c / BValue 
T2 = 1 / (a- d)
tempcelsius=T2 - 273.15

Updated by Frédéric Blanc almost 3 years ago · 2 revisions