Cov txheej txheem:
- Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau
- Kauj ruam 2: Txuas lub Circuit Court
- Kauj ruam 3: Programming Arduino
- Kauj Ruam 4: Qhov tshwm sim
Video: Interface DHT11 Siv Arduino: 4 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:28
Hauv Cov Lus Qhia no koj yuav kawm paub teeb tsa DHT11 Vaum thiab Qhov ntsuas kub ntawm koj li Arduino UNO. Thiab kawm paub tias Humidity sensor ua haujlwm li cas, thiab yuav txheeb xyuas qhov nyeem tawm los ntawm Serial monitor li cas
Nqe lus piav qhia:
DHT11 kuaj pom cov pa dej los ntawm kev ntsuas qhov hluav taws xob tsis kam ntawm ob qho hluav taws xob. Qhov ntsuas qhov ntsuas cua noo yog cov dej noo tuav nrog cov electrodes siv rau saum npoo. Thaum cov dej ua pa tau nqus los ntawm cov substrate, ions raug tso tawm los ntawm cov substrate uas ua rau kom muaj kev sib txuas ntawm cov hluav taws xob. Kev hloov pauv hauv kev tiv thaiv ntawm ob lub tshuab hluav taws xob yog sib piv rau cov txheeb ze cov av noo. Cov av noo ntau dua ua rau cov tshuaj tiv thaiv qis dua, thaum cov txheeb ze qis dua ua rau muaj kev tiv thaiv nruab nrab ntawm cov hluav taws xob.
Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau
Nov yog cov npe ntawm cov khoom siv xav tau kom pib nrog Cov Lus Qhia,
Kho vajtse Cheebtsam:
- Arduino UNO Yuav Los Ntawm Flipkart
- DHT11 Vaum thiab Kub Sensor Yuav Los Ntawm Flipkart
- Breadboard (Tsis teb los tau)
- Jumper Hlau
- USB Cable
Cheeb Tsam Software:
Arduino IDE Cov
Kauj ruam 2: Txuas lub Circuit Court
Txuas DHT11 rau Arduino UNO yog qhov yooj yim heev.
Kev sib txuas xov hluav taws xob tau ua raws li hauv qab no:
VCC tus pin ntawm DHT11 nkag mus rau +3v ntawm Arduino.
DATA tus pin ntawm DHT11 nkag mus rau Analog Pin A0 ntawm UNO.
GND Pin ntawm DHT11 nkag mus rau Pin Pin (GND) ntawm UNO.
Kauj ruam 3: Programming Arduino
Rub tawm Zip file
Luam tawm DHT Lub Tsev Qiv Ntawv thiab cov cai.
Txoj Cai:
#include "dht.h" #define dht_apin A0 // Analog Pin sensor txuas nrog Arduino dht DHT;
Cov kab saum toj no yog qhov pib rau dht tsev qiv ntawv
Txhais cov ntaub ntawv tus pin ntawm dht
thiab tsim kev txhawb siab raws li DHT
void teeb tsa () {
Serial.begin (9600); ncua (500); // Ncua sijhawm kom cia lub kaw lus khau raj Serial.println ("DHT11 Vaum & ntsuas kub / n / n"); ncua (1000); // Tos ua ntej nkag mus rau Sensor}
Cov kab saum toj no yog cov teeb tsa
Pib kev sib txuas lus hauv xov tooj cua ntawm 9600 baud tus nqi
luam lub npe ntawm txoj haujlwm nrog ncua ntawm 1 sec
lub voj void () {DHT.read11 (dht_apin); Serial.print ("Cov av noo tam sim no ="); Serial.print (DHT.humidity); Serial.print ("%"); Serial.print ("kub ="); Serial.print (DHT.temperature); Serial.println ("C"); ncua (5000); // Tos 5 vib nas this ua ntej nkag mus rau lub sensor dua. }
Nws nyeem cov ntaub ntawv los ntawm DHT11 ntau zaus txhua 5 Sec
Kauj Ruam 4: Qhov tshwm sim
Qhib Serial Monitor
teeb tus nqi baud rau 9600
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 ib txwm zoo siab los pab koj….. Tso Tawm Lus. Koj cov lus tawm tswv yim muaj nuj nqis rau kuv.
Pom zoo:
Cov Khoom Siv Teeb Meem Siv Chaw Taws Teeb Siv Arduino: 7 Kauj Ruam
Cov Khoom Siv Teeb Meem Siv Khoom Siv Hluav Taws Xob Siv Arduino: Tam sim no, Cov Tsim, Cov tsim tawm tau nyiam Arduino rau kev txhim kho sai ntawm cov qauv ntawm cov phiaj xwm. Arduino yog lub platform siv hluav taws xob qhib raws qhov yooj yim-rau-siv-kho vajtse thiab software. Arduino muaj zej zog cov neeg siv zoo heev. Hauv qhov no
Yuav Siv DHT11 Sensor Siv Arduino: 5 Kauj Ruam
Yuav Ua Li Cas Siv DHT11 Sensor Siv Arduino: Hauv qhov kev qhia no peb yuav sim DHT11 sensor siv Arduino.DHT11 tuaj yeem siv los ntsuas qhov ntsuas kub thiab av noo.Qhov xav tau cov khoom: Arduino NanoDHT11 Kub thiab Vaum Sensor USB Mini Jumper cables Yuav Tsum Muaj Lub Tsev Qhua: DHT Library
Tsis Siv Neeg Kev Hla Hla Kev Siv Hluav Taws Xob Siv Arduino Raws Kev Nkag Nkag Platform: 9 Cov Kauj Ruam
Tsis Siv Neeg Kev Hla Hla Kev Siv Hluav Taws Xob Siv Arduino Raws Kev Nkag Siab Platform: Christmas tsuas yog ib lub lim tiam xwb! Txhua leej txhua tus tibneeg hu tauj coob nrog kev ua koob tsheej thiab tau txais khoom plig, uas, los ntawm txoj kev, tau txais txhua qhov nyuaj dua kom tau nrog qhov tsis muaj peev xwm nyob ib puag ncig peb. Yuav ua li cas mus los ntawm khoom plig qub thiab ntxiv qhov kov ntawm DIY rau
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: 6 Kauj Ruam
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: Cov lus qhia no piav qhia yuav ua li cas thiaj tsim tau Arduino Robot uas tuaj yeem txav mus raws qhov xav tau (Forward, Backward) , Sab laug, Txoj Cai, Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) xav tau Kev nrug deb hauv Centimeters siv lub suab hais kom ua. Neeg hlau kuj tseem tuaj yeem txav tau tus kheej
Tsiv Tawm Sijhawm Siv Arduino + DS1307 + Neopixel: Rov Siv Qee Cov Khoom Siv: 5 Kauj Ruam
Tawm Tawm Sijhawm Siv Arduino + DS1307 + Neopixel: Rov Siv Qee Cov Khoom Siv: Los ntawm cov phiaj xwm yav dhau los Kuv muaj Arduino UNO thiab Neopixel LED sawb sab laug, thiab xav ua qee yam txawv. Vim tias Neopixel sawb muaj 60 LED teeb, xav siv nws los ua lub moos loj. Txhawm rau qhia Lub Sijhawm, liab 5-LED ntu tau siv (60 LED