Cov txheej txheem:

Tutorial Yuav Siv DHT11 Humidity Sensor: 4 Cov Kauj Ruam
Tutorial Yuav Siv DHT11 Humidity Sensor: 4 Cov Kauj Ruam

Video: Tutorial Yuav Siv DHT11 Humidity Sensor: 4 Cov Kauj Ruam

Video: Tutorial Yuav Siv DHT11 Humidity Sensor: 4 Cov Kauj Ruam
Video: Magic Trick Tutorial - Qhia ua yees siv - 2021 2024, Kaum ib hlis
Anonim
Tutorial Yuav Ua Li Cas Siv DHT11 Humidity Sensor
Tutorial Yuav Ua Li Cas Siv DHT11 Humidity Sensor

Nqe lus piav qhia:

DHT11 Kub & Vaum Sensor nta qhov ntsuas kub & av noo sib txuam nrog cov ntsuas ntsuas digital tso tawm. Los ntawm kev siv cov txheej txheem tshwj xeeb-teeb liab-nrhiav cov txheej txheem thiab ntsuas kub & av noo paub txog thev naus laus zis, nws ua kom ntseeg tau zoo thiab ruaj khov mus sij hawm ntev zoo.

Qhov ntsuas no suav nrog tiv thaiv-tiv thaiv cov av noo tivthaiv thiab NTC ntsuas qhov ntsuas kub, thiab txuas rau qhov ua tau zoo 8-ntsis microcontroller, muab qhov ua tau zoo tshaj plaws, teb tau sai, tiv thaiv kev cuam tshuam thiab muaj txiaj ntsig zoo

Kev qhia tshwj xeeb:

Ntsuas Kev Ntsuas: 20-90% RH, 0 - 50 ℃

Cov av noo raug: ± 5% RH

Qhov Kub Kub: ± 2 ℃

Kev daws teeb meem: 1

Pob: 3 tus pin ib kab

Kauj Ruam 1: Kev Npaj Khoom

Kev Npaj Khoom
Kev Npaj Khoom
Kev Npaj Khoom
Kev Npaj Khoom
Kev Npaj Khoom
Kev Npaj Khoom

Rau qhov kev qhia no, cov khoom xav tau los ua txoj haujlwm no yog:

  1. Arduino Ib
  2. Cov qhob cij
  3. Txiv neej rau txiv neej jumper
  4. DHT11 Vaum Sensor

Kauj Ruam 2: Kev Kho Vajtse

Kev Kho Vajtse
Kev Kho Vajtse

Kev teeb tsa kho vajtse tau teev tseg raws li hauv qab no:

  • +tus pin ntawm DHT11 Humidity sensor -> 5V chaw nres nkoj ntawm Arduino UNO
  • -pins ntawm DHT11 Vaum qhov ntsuas cua -> Chaw nres nkoj hauv av ntawm Arduino UNO
  • tawm tus pin ntawm DHT11 Humidity sensor -> A0

Kauj ruam 3: Source Code

  1. Rub cov ntawv xeem thiab qhib nws los ntawm kev siv Arduino software lossis IDE.
  2. Nco ntsoov tias koj tau xaiv lub rooj tsav xwm raug thiab qhov chaw nres nkoj sib raug. (Hauv qhov kev qhia no, Arduino Uno tau siv)
  3. Tom qab ntawd, xa cov ntawv xeem mus rau hauv koj Arduino Uno.

Kauj Ruam 4: Qhov tshwm sim

Qhov tshwm sim
Qhov tshwm sim

Tom qab sau cov cai thiab xa mus rau Arduino UNO, qhib koj lub xov tooj thiab saib xyuas cov av noo thiab qhov kub ntawm koj ib puag ncig txij tam sim no mus. Muaj Kev Lom Zem!

Pom zoo: