Cov txheej txheem:
- Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau:
- Kauj Ruam 2: Kev Sib Txuas:
- Kauj ruam 3: Source Code:
- Kauj Ruam 4: Cov ntawv thov:
Video: Kub thiab Vaum Sensor (dht11) Interface Nrog Arduino: 4 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Qhov ntsuas kub muaj ntau yam kev thov nws tau siv ntau qhov chaw qee qhov chaw nws ua haujlwm raws li kev tawm tswv yim. Muaj ntau hom ntsuas ntsuas kub muaj nyob hauv kev ua lag luam nrog qhov sib txawv tshwj xeeb qee qhov ntsuas kub siv cov txheej txheem laser los ntsuas qhov kub no hom ntsuas kub tau ntsuas qhov ntsuas kub los ntawm qhov deb tab sis hauv qhov kev qhia no peb yuav siv tsuas yog dht11 sensor los ntsuas ib puag ncig kub thiab cov av noo.
Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau:
- Arduino Ib
- dht11 sensor
- Cov qhob cij
- Hlau
Kauj Ruam 2: Kev Sib Txuas:
Arduino Pin A0 ----- dht11 cov ntaub ntawv tus pin
VCC ------ VCC
GND ------- NCO
Piav qhia:
dht11 sensor: dht11 tau siv los ntsuas ib puag ncig kub thiab huab cua. Ntau Sensor los rau hauv 4 Pin pob tawm ntawm uas tsuas yog siv peb tus pin xwb.
Spectifications:
1. Kev Ua Haujlwm Voltage: 3.3v txog 5v
2. Ua Haujlwm Tam Sim No: 0.3mA
3. Kev ntsuas kub: 0 ° C txog 50 ° C.
4. Hum Ntau Yam: 20% txog 90%
5. Resolution: 16-ntsis
6. Qhov tseeb: ± 1%(ob qho tib si)
Kauj ruam 3: Source Code:
Siv cov ntawv txuas hauv qab no txhawm rau rub lub tsev qiv ntawv ntawm dht11:
nyem qhov no kom tau txais cov cai
Txoj Cai Txoj Cai:
#suav nrog DHT;
void teeb tsa ()
{
pinMode (A0, NTAWV);
Serial.begin (9600);
}
void lub voj ()
{
DHT.read11 (A0);
Serial.print ("av noo tam sim no =");
Serial.print (DHT.humidity);
Serial.println ("%");
Serial.print ("qhov kub tam sim no =");
Serial.print (DHT.temperature);
Serial.println ("c");
ncua (1000);
}
Piav qhia:
#suav nrog
dht DHT;
dht.h yog lub tsev qiv ntawv uas muab kev ua haujlwm ntxiv kom txo kab ntawm kab ntawv thiab ua kom cov cai yooj yim thiab nkag siab yooj yim.
pinMode (A0, NTAWV);
pinMode (A0, OUTPUT) pinMode muaj nuj nqi tau siv los teeb tsa kev taw qhia ntawm tus pin seb INPUT lossis OUTPUT.
Serial.begin (9600);
Serial.begin (9600) Serial.begin ua haujlwm nws tso cai rau kev sib txuas lus ntawm Arduino thiab Computer thiab 9600 yog baud tus nqi uas txhais tau tias nrawm ntawm cov ntaub ntawv hloov pauv ntawm Arduino thiab Computer hauv ob 9600 khoom thib ob tuaj yeem xa tawm.
DHT.read11 (A0);
DHT.read11 (A0) read11 muaj nuj nqi siv los nyeem cov ntaub ntawv los ntawm Sensor.
Serial.print (DHT.humidity);
Serial.print (DHT.humidity) DHT.humidity muaj nuj nqi siv los nyeem cov av noo thiab cov ntaub ntawv yuav raug xa mus rau Computer.
Serial.print (DHT.temperature);
Serial.print (DHT.temperature) DHT.temperature muaj nuj nqi siv los nyeem qhov kub thiab cov ntaub ntawv yuav raug xa mus rau Computer.
Kauj Ruam 4: Cov ntawv thov:
1. Local chaw nres tsheb huab cua.
2. Kev ntsuas thiab ntsuas kub
Pom zoo:
Yuav Ua Li Cas Vaum Thiab Kub Tiag Tiag Cov Ntaub Ntawv Teev Npe Nrog Arduino UNO thiab SD-Card - DHT11 Cov ntaub ntawv-logger Simulation hauv Proteus: 5 Cov Kauj Ruam
Yuav Ua Li Cas Vaum Thiab Kub Tiag Tiag Cov Ntaub Ntawv Teev Npe Nrog Arduino UNO thiab SD-Card | DHT11 Cov ntaub ntawv-logger Simulation hauv Proteus: Taw qhia: nyob zoo, qhov no yog Liono Maker, ntawm no yog YouTube txuas. Peb tab tom tsim txoj haujlwm muaj tswv yim nrog Arduino thiab ua haujlwm ntawm cov kab ke. Cov ntaub ntawv-Logger: Cov ntaub ntawv logger (tseem cov ntaub ntawv-logger lossis cov ntaub ntawv kaw) yog cov cuab yeej siv hluav taws xob uas sau cov ntaub ntawv dhau sijhawm
ESP32 Raws M5Stack M5stick C Huab Cua Saib Nrog DHT11 - Saib Xyuas Qhov Kub Kub & Qhov Kub Kub ntawm M5stick-C Nrog DHT11: 6 Cov Kauj Ruam
ESP32 Raws M5Stack M5stick C Huab Cua Saib Nrog DHT11 | Saib Xyuas Qhov Kub thiab Qhov Ntsuas Kub ntawm M5stick-C Nrog DHT11: Nyob zoo cov neeg, hauv cov lus qhia no peb yuav kawm paub yuav ua li cas cuam tshuam DHT11 ntsuas kub nrog m5stick-C (pawg tswj hwm kev txhim kho los ntawm m5stack) thiab tso tawm ntawm cov zaub ntawm m5stick-C. Yog li hauv qhov kev qhia no peb yuav nyeem qhov ntsuas kub, av noo & heat kuv
Yuav Ua Li Cas Siv DHT11 Kub Sensor Nrog Arduino thiab Luam Kub Kub thiab Vaum: 5 Kauj Ruam
Yuav Ua Li Cas Siv DHT11 Kub Sensor Nrog Arduino thiab Luam Kub Kub thiab Vaum: Lub DHT11 sensor tau siv los ntsuas kub thiab av noo. Lawv yog cov khoom siv hluav taws xob nrov tshaj plaws.Qhov DHT11 cov av noo thiab ntsuas kub ua rau nws yooj yim ntxiv cov av noo thiab ntsuas kub rau koj li DIY cov phiaj xwm hluav taws xob. Nws yog rau
ESP32 NTP Kev Ntsuas Kub Ua Haujlwm Kub Kub Nrog Steinhart-Hart Kho thiab Tswb Kub: 7 Kauj Ruam (nrog Duab)
ESP32 NTP Kev Ntsuas Kub Ua Haujlwm Ntsuas Kub nrog Steinhart-Hart Kev Kho thiab Tswb Kub: Tseem tab tom taug kev kom ua tiav "qhov haujlwm yuav los tom ntej", "ESP32 NTP Kev Ntsuas Kub Kev Ntsuas Kub Ua Noj Nrog Steinhart-Hart Kev Kho thiab Tswb Kub" yog Cov Ntawv Qhia qhia yuav ua li cas kuv ntxiv NTP ntsuas kub, piezo b
Kub thiab Vaum Zaub thiab Sau Cov Ntaub Ntawv Nrog Arduino thiab Ua: 13 Kauj Ruam (nrog Duab)
Kub thiab Vaum Zaub thiab Sau Cov Ntaub Ntawv Nrog Arduino thiab Ua: Intro: Qhov no yog Txoj Haujlwm uas siv Arduino board, Sensor (DHT11), lub khoos phis tawj Windows thiab Kev Ua Haujlwm (rub tawm dawb) program los tso saib Kub, Cov ntaub ntawv vaum hauv digital thiab bar kab ntawv, tso tawm lub sijhawm thiab hnub tim thiab suav lub sijhawm suav