Project

General

Profile

NTC capteurs température » History » Revision 2

Revision 1 (Frédéric Blanc, 2021-05-20 10:34) → Revision 2/3 (Frédéric Blanc, 2021-05-20 10:51)

h1. NTC capteurs température 

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

 !clipboard-202105201030-v1vwo.png! 

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

 !clipboard-202105201046-eb06u.png! 

 <pre> 
 <code> 
 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 
 </code> 
 </pre>