Cov txheej txheem:

Yooj Yim thiab Pheej Yig Kub Ntsuas Ntsuas Siv Thermistor: 5 Kauj Ruam
Yooj Yim thiab Pheej Yig Kub Ntsuas Ntsuas Siv Thermistor: 5 Kauj Ruam

Video: Yooj Yim thiab Pheej Yig Kub Ntsuas Ntsuas Siv Thermistor: 5 Kauj Ruam

Video: Yooj Yim thiab Pheej Yig Kub Ntsuas Ntsuas Siv Thermistor: 5 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim
Yooj Yim thiab Pheej Yig Kub Ntsuas Ntsuas Siv Thermistor
Yooj Yim thiab Pheej Yig Kub Ntsuas Ntsuas Siv Thermistor

qhov ntsuas kub yooj yim thiab pheej yig siv NTC thermistor

thermistor hloov nws qhov kev tiv thaiv nrog kev hloov pauv hauv lub sijhawm siv cov cuab yeej no peb tab tom tsim qhov ntsuas kub kom paub ntau ntxiv txog thermistor

en.wikipedia.org/wiki/Thermistor

Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau

Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau

Arduino uno (lossis) ib qho arduino yuav ua haujlwm

qee cov jumper xov hlau thiab lub rooj noj mov

1 X 10 k resistor

1X NTC 10k thermistor

Kauj ruam 2: Kev sib txuas

Kev sib txuas
Kev sib txuas

(Hauv av) ---- (10k-Resistor) ------- | ------- (Thermistor) ---- (+5v)

| Pin Pin 0

Kauj Ruam 3: Code rau Fahrenheit

#suav nrog

ob chav Thermistor (int RawADC) {ob Temp; Temp = cav (10000.0*((1024.0/RawADC-1)))); // = log (10000.0/(1024.0/RawADC-1)) // rau rub tawm teeb tsa Temp = 1/(0.001129148 + (0.000234125 + (0.0000000876741 * Temp * Temp)) * Temp); Temp = Temp - 273.15; // Hloov Kelvin rau Celcius Temp = (Temp * 9.0)/ 5.0 +32; // Hloov Celcius rau Fahrenheit rov Temp; }

teeb tsa tsis muaj dab tsi () {Serial.begin (115200); }

void loop () {Serial.println (int (Thermistor (analogRead (0))))); // tso saib Fahrenheit ncua (1000); }

Kauj ruam 4: Code rau Celsius

#suav nrog

ob chav Thermistor (int RawADC) {ob Temp; Temp = cav (10000.0*((1024.0/RawADC-1)))); // = log (10000.0/(1024.0/RawADC-1)) // rau rub tawm teeb tsa Temp = 1/(0.001129148 + (0.000234125 + (0.0000000876741 * Temp * Temp)) * Temp); Temp = Temp - 273.15; // Hloov Kelvin rau Celcius rov Temp; }

teeb tsa tsis muaj dab tsi () {Serial.begin (115200); }

void loop () {Serial.println (int (Thermistor (analogRead (0))))); // tso saib Fahrenheit ncua (1000); }

Kauj Ruam 5: Xaus

Xaus
Xaus

tom qab ua tiav tag nrho cov kauj ruam tam sim no qhib lub ntsuas saib thiab teeb tsa baud rau 115200 koj tuaj yeem pom qhov ntsuas kub

Kev txhim kho ntxiv koj tuaj yeem ntxiv lcd rau qhov no

ua tsaug:)

yog tias koj muaj kev ua xyem xyav thov nug

Pom zoo: