Cov txheej txheem:

Pib Phau Ntawv Qhia Siv DHT11/ DHT22 Sensors W/ Arduino: 9 Kauj Ruam
Pib Phau Ntawv Qhia Siv DHT11/ DHT22 Sensors W/ Arduino: 9 Kauj Ruam

Video: Pib Phau Ntawv Qhia Siv DHT11/ DHT22 Sensors W/ Arduino: 9 Kauj Ruam

Video: Pib Phau Ntawv Qhia Siv DHT11/ DHT22 Sensors W/ Arduino: 9 Kauj Ruam
Video: Qhia kev siv phau ntawv saib caij nyoog zoo phem 3 yam lus 120 xyoo daim 1 2024, Hlis ntuj nqeg
Anonim
Pib Phau Ntawv Qhia Siv DHT11/ DHT22 Sensors W/ Arduino
Pib Phau Ntawv Qhia Siv DHT11/ DHT22 Sensors W/ Arduino

Koj tuaj yeem nyeem qhov no thiab lwm yam kev qhia zoo ntawm ElectroPeak lub vev xaib raug cai

Txheej txheem cej luam

Hauv qhov kev qhia no, koj yuav kawm paub teeb tsa DHT11 thiab DHT22 cov ntsuas, thiab ntsuas ib puag ncig qhov kub thiab txias.

Yam Koj Yuav Kawm:

  • DHT11 thiab DHT22 nta thiab sib txawv
  • DHT11 thiab DHT22 tus qauv
  • Yuav teeb DHT11 thiab DHT22 sensors nrog Arduino li cas

Kauj Ruam 1: DHT11 thiab DHT22 Kub thiab Vaum Sensor

DHT11 thiab DHT22 Kub thiab Vaum Sensor
DHT11 thiab DHT22 Kub thiab Vaum Sensor

Vim yog qhov tseem ceeb ntawm qhov ntsuas xws li ntsuas kub thiab av noo hauv ntau qhov haujlwm, kev xaiv qhov tseeb ntawm cov ntsuas uas muaj peev xwm ntsuas kub thiab av noo yog qhov tseem ceeb heev. Tsev neeg DHT lub npe hu ua DHT11 thiab DHT22 yog cov neeg nyiam tshaj plaws thiab pom ntau ntawm cov ntsuas kub thiab av noo.

Koj tuaj yeem pom lawv cov yam ntxwv hauv kab lus no.

Tus nqi qis yog qhov tseem ceeb tshaj plaws ntawm DHT11, tab sis nws tsis muaj qhov ua tau zoo thiab qhov ntsuas dav dav. Ntawm qhov tod tes DHT22, nrog rau ntau yam thiab raug siab rau ntsuas yog ntau dua 2.5 npaug kim dua li lwm tus hauv tsev neeg.

Kauj Ruam 2: Ntsuas Kub thiab Vaum Siv DHT11 thiab Arduino

Cov Ntaub Ntawv Yuav Tsum Tau

Arduino Uno R3

DHT11 Sensor

Cov qhob cij

Jumper hlau

Software Apps

Arduino IDE Cov

Kauj ruam 3: Circuit Court

Circuit Court
Circuit Court
Circuit Court
Circuit Court

DHT11 muaj 4 tus pin. 2 tus pin rau kev xa khoom, 1 rau xa cov ntaub ntawv, thiab lwm qhov tsis muaj txiaj ntsig. Txhawm rau ua qhov ntsuas no ua haujlwm kom raug thiab muab cov ntaub ntawv raug rau koj, koj yuav tsum rub cov ntaub ntawv tus pin nrog 4.7 k tsis kam. Tawm ntawm tus thib peb tus pin ntawm lub sensor yam tsis muaj kev sib txuas.

Lus ceeb toom Ceev faj txog lub sensor thiab tus pin taw qhia, koj lub sensor yuav raug puas tsuaj thaum ua yuam kev.

Kauj ruam 4: Code

Code
Code

Txhawm rau pib xa cov ntaub ntawv, xa cov lej no mus rau koj Arduino thiab qhib qhov saib ua ntej.

DHT.humidity rov qab cov av noo nyob rau hauv feem pua thiab DHT.temperature rov qab qhov kub hauv Celsius.

Nco tseg Peb yuav tsum tos 2 vib nas this ntawm txhua qhov ntsuas. Txwv tsis pub, lub sensor yuav xa cov ntaub ntawv tsis raug.

Hloov chaw ntawm kev qhia cov ntaub ntawv ntawm lub khoos phis tawj, koj tuaj yeem tso saib qhov kub thiab txias ntawm LCD.

Yog xav paub ntxiv saib qhov kev qhia no: Siv 1602 LCD Keypad Shield w/ Arduino

Kauj Ruam 5: Ntsuas Kub thiab Vaum Siv DHT22 thiab Arduino

teeb tsa thiab siv DHT22 sensor yuav luag zoo ib yam li DHT11.

Kauj Ruam 6: Cov Ntaub Ntawv Xav Tau

Arduino Uno R3

DHT22 Sensor

Cov qhob cij

Jumper hlau

Software Apps

Arduino IDE Cov

Kauj ruam 7: Circuit Court

Circuit Court
Circuit Court

Kauj ruam 8: Code

Code
Code

Qhov sib txawv tsuas yog hauv DHT.trad ua haujlwm, qhov uas koj yuav tsum sau 22 hloov ntawm 11. Tsis tas li ntawd, koj tuaj yeem txheeb xyuas qhov ntsuas kub thiab av noo tsis zoo li ntab rau DHT22 kom pom lawv qhov tseeb dua.

Tshaj tawm cov cai no ntawm koj lub Arduino board thiab saib cov txiaj ntsig hauv Serial monitor.

Pom zoo: