Cov txheej txheem:

Kub Sensor Siv Thermistor Nrog Arduino Uno: 4 Cov Kauj Ruam
Kub Sensor Siv Thermistor Nrog Arduino Uno: 4 Cov Kauj Ruam

Video: Kub Sensor Siv Thermistor Nrog Arduino Uno: 4 Cov Kauj Ruam

Video: Kub Sensor Siv Thermistor Nrog Arduino Uno: 4 Cov Kauj Ruam
Video: Как проверить магнитоиндукционный датчик (датчик холла) скутера 2024, Hlis ntuj nqeg
Anonim
Kub Sensor Siv Thermistor Nrog Arduino Uno
Kub Sensor Siv Thermistor Nrog Arduino Uno

Nyob Zoo Cov Menyuam hauv cov lus qhia no peb yuav kawm paub siv Thermistor nrog Arduino li cas. Thermistor yog qhov pib tiv thaiv uas nws qhov kev tiv thaiv sib txawv nrog kev hloov pauv kub. Yog li peb tuaj yeem nyeem nws qhov kev tiv thaiv thiab tau txais qhov kub los ntawm nws & Thermistor yog pheej yig heev piv rau lwm qhov ntsuas kub hauv khw.

Kauj Ruam 1: Yam Koj Xav Tau

Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau

Rau qhov kev qhia no koj yuav xav tau cov khoom hauv qab no: 1x Arduino uno:

1x Thermistor (10k lossis 100k: kuv tab tom siv 10k ntawm no): https://www.utsource.net/itm/p/1273468.html1x 10k resistor: https://www.utsource.net/itm/p/8166799. html1x khob khob:.: https://www.utsource.net/itm/p/8031572.html Muaj ob tus dhia:

Kauj Ruam 2: Schmatics

Schmatics
Schmatics
Schmatics
Schmatics

Lub Circuit Court yog qhov yooj yim heev yog li thov txuas txhua yam Raws li qhia hauv schmatics thiab koj yuav zoo. Koj tseem tuaj yeem xa cov duab kuv txuas ntawm kuv daim ntawv txuas

Kauj ruam 3: Code

Code
Code

Luam cov cai hauv qab no & xa nws mus rau arduino:#suav nrog ob npaug Thermister (int cov ntaub ntawv) {ob npaug; temp = cav (10000.0*((1024.0/data-1)))); temp = 1/(0.001129148+ (0.000234125+ (0.0000000876741*temp*temp))*temp); qhov = temp-273.15; Serial.println (""); Serial.print (temp); Serial.print ("Celcius"); temp = (temp*9.0) /5.0+32.0; Serial.println (""); Serial.print (temp); Serial.print ("Fahrenheit"); Serial.println (""); Serial.println ("……………………………."); } tsis muaj teeb meem teeb tsa () {Serial.begin (9600);} int i; void loop () {i = analogRead (A0); Thermister (i); ncua (1000);}

Kauj Ruam 4: Tau Kub ntawm Serial Monitor

Tau Kub ntawm Serial Monitor
Tau Kub ntawm Serial Monitor

Tom qab xa cov cai, tom qab ntawd qhib lub ntsuas hluav taws xob thiab koj tuaj yeem tau txais koj li Thermistor qhov kub ntawm koj lub ntsuas saib raws li kuv tau txais, xa cov duab muab thiab koj yuav zoo. Kev lom zem nyeem kub nrog Thermistor.

Pom zoo: