Cov txheej txheem:

Arduino Kub Sensor Siv LM35: 3 Cov Kauj Ruam
Arduino Kub Sensor Siv LM35: 3 Cov Kauj Ruam

Video: Arduino Kub Sensor Siv LM35: 3 Cov Kauj Ruam

Video: Arduino Kub Sensor Siv LM35: 3 Cov Kauj Ruam
Video: 8x8x8 LED CUBE WITH ARDUINO UNO 2024, Kaum ib hlis
Anonim
Arduino Kub Sensor Siv LM35
Arduino Kub Sensor Siv LM35

Taw qhia

LM35 series yog qhov sib xyaw ua ke ntsuas hluav taws xob ntsuas hluav taws xob nrog cov hluav taws xob tso tawm tawm ncaj qha rau qhov ntsuas kub. LM35 yog peb lub davhlau ya nyob twg ntsuas kub ntsuas los ntawm National semiconductors. Nws tuaj yeem ntsuas kub ntawm -55 degree Celsius mus rau +150 degree Celsius. Qhov hluav taws xob tso tawm ntawm LM35 nce 10mV ib qib Celsius nce hauv qhov kub thiab txias. LM35 tuaj yeem ua haujlwm los ntawm 5V cov khoom siv thiab sawv ntawm tam sim no tsawg dua 60uA. Tus pin tawm ntawm LM35 tau qhia hauv daim duab hauv qab no.

Nta

• Ntsuas ncaj qha hauv Celsius (Centigrade)

• Tawm + 10-mV/° C Scale Factor

• 0.5 ° C Ua kom raug qhov tseeb (ntawm 25 ° C)

• Rated rau Full -55 ° C txog 150 ° C Range

• Haum rau Cov Ntawv Thov Hauv Chaw Nyob

• Tus Nqi Them Nqi Vim Wafer-Trimming

• Ua haujlwm los ntawm 4 V txog 30 V

• Tsawg dua 60-μA Kev Tso Dej Tam Sim No

• Tsawg Tus Kheej Cua Kub, 0.08 ° C hauv Tseem Cua

• Tsis-Linearity Tsuas yog ± ¼ ° C Raug

• Tsawg-Impedance Output, 0.1 Ω rau 1-mA Load PinOuts Ntawm LM35 tau qhia hauv duab.

Koj tuaj yeem rub cov ntaub ntawv los ntawm cov ntawv hauv qab no.

Kauj Ruam 1: Yuav Tsum Kho Vajtse thiab Daim Duab Duab Circuit

Kho vajtse xav tau thiab Daim duab kos Circuit
Kho vajtse xav tau thiab Daim duab kos Circuit
  • Arduino Board (Txhua Yam) Yuav nws los ntawm Flipkart
  • LM35 Sensor Yuav nws los ntawm Flipkart
  • BreadBoard

Txuas lub Circuit raws li pom hauv duab thiab xa cov cai hauv qab no.

Kauj ruam 2: Programming Arduino

Download tau cov cai ntawm no

/*Code Tsim los ntawm Sujay hauv SA Lab*/const int sensor = A5; // Muab cov pin analog A5 rau sib txawv 'sensor' ntab tempc; // sib txawv los khaws qhov kub hauv qib Celsius ntab tempf; // sib txawv los khaws qhov kub hauv Fahreinheit ntab tawm; // ib ntus hloov pauv los tuav sensor nyeem tsis tau teeb tsa () {pinMode (sensor, INPUT); // Configuring sensor pin li input Serial.begin (9600); } void loop () {vout = analogRead (sensor)); vout = (vout*500)/1023; tempc = tso tawm; // Khaws tus nqi hauv Degree Celsius tempf = (vout*1.8) +32; // Hloov mus rau Fahrenheit Serial.print ("hauv DegreeC ="); Serial.print ("\ t"); Serial.print (tempc); Serial.print (""); Serial.print ("hauv Fahrenheit ="); Serial.print ("\ t"); Serial.print (tempf); Serial.println (); ncua (500); // Ncua ntawm 1 thib ob kom yooj yim saib}

Kauj Ruam 3: Tso Tawm

Cov txiaj ntsig tau tshwm sim
Cov txiaj ntsig tau tshwm sim

Saib qhov tshwm sim ntawm Serial Monitor….

Ua ntej tshaj plaws, Kuv xav ua tsaug rau koj tau nyeem phau ntawv qhia no! Kuv vam tias nws yuav pab koj. Yog tias koj muaj lus nug Kuv zoo siab los pab koj ….

Tso lus tawm. Koj cov lus tawm tswv yim muaj nuj nqis rau kuv.

Pom zoo: