Cov txheej txheem:

DHT 11 Kub & Vaum Zaub: 4 Kauj Ruam
DHT 11 Kub & Vaum Zaub: 4 Kauj Ruam

Video: DHT 11 Kub & Vaum Zaub: 4 Kauj Ruam

Video: DHT 11 Kub & Vaum Zaub: 4 Kauj Ruam
Video: Amazing arduino project 2024, Hlis ntuj nqeg
Anonim
DHT 11 Kub & Vaum Zaub
DHT 11 Kub & Vaum Zaub

Yam Yuav Tsum Tau (UK Khw Tshuag)

Arduino Nano-https://www.amazon.co.uk/Arduino-compatible-Nano-CH340-USB/dp/B00ZABSNUS

DHT 11 Sensor -

1.3 OLED Green Screen

USB Micro Breakout Board-https://shop.pimoroni.com/products/adafruit-usb-micro-b-breakout-board

Cov Cuab Yeej Yuav Tsum Tau -

Soldering Hlau

Pawg Thawj Coj

Sab Cutters

Kauj ruam 1: Circuit Court

Qhov Circuit
Qhov Circuit

Kauj Ruam 1 - Circuit Court

DHT 11 Qhov ntsuas kub yog qhov ntsuas kub thiab cov av noo yooj yim heev. Lub hauv paus tseem ceeb yog lub ntsuas hluav taws xob muaj peev xwm thiab lub thermistor. Muaj qee qhov yooj yim Analogue rau Digital hloov pauv uas tso cai rau txhua cov ntaub ntawv xav tau los ua tawm ntawm ib tus pin.

Hauv qhov piv txwv no, DHT 11 txuas rau USB 5V thiab hauv av nrog cov ntaub ntawv tus lej txuas nrog PIN2 ntawm Nano.

Lub Nano tsuas xav tau 5V lub zog thiab hauv av los ntawm USB Breakout.

OLED zaub siv 4 tus pin, 5V, GND, SCL thiab SDA. SCL thiab SDA yog tus qauv I2C tus pin uas yog thoob ntiaj teb rau txhua I2C khoom siv.

Lub pinout los ntawm Arduino yog raws li hauv qab no:

Pin 2 - DHT 11

Pin A4 - SDA

Tus PIN A5 - SCL

Kauj ruam 2: Txoj Cai

Cov cai yog ncaj ncaj rau pem hauv ntej thiab yooj yim rau upload rau Nano thiab yog ntsaws thiab ua si yam tsis tas yuav teeb tsa ntxiv.

Koj yuav xav tau teeb tsa cov tsev qiv ntawv hauv qab no yog tias tsis tau teeb tsa.

DHT.h - Rau DHT11 Sensor

U8glib.h - Rau OLED Screen.

NB Yog tias koj tsis muaj cov khoom siv siv tus lej no, kos lub vijtsam raug txhais kom raug. Nws yog "U8GLIB_SSD1306_128X64 u8g (U8G_I2C_OPT_NO_ACK);" tab sis tej zaum yuav xav tau hloov yog siv lub vaj huam sib luag OLED sib txawv. Muaj cov piv txwv hauv lub tsev qiv ntawv uas tuaj yeem sim tshuaj ntsuam.

Kauj Ruam 3: Rooj plaub

Cov ntaub ntawv yog qhov yooj yim 2 daim tsim, pem hauv ntej khawm lub vijtsam hauv kev siv 4 tus lej cim tus cim. Cov xovxwm sib dhos ua ke haum rau hauv tsev. Lub teeb xuab zeb lossis ua ntawv yuav xav tau rau 2 daim kom haum ua ke.

Muaj qhov rau DHT sensor nyob rau sab saum toj thiab USB txuas tom qab.

Luam Chaw

Luam tawm ntawm Ender 3

PLA Dawb

20% Infill (Txhawb Nqa Rau Lub Thawv)

Luam lub sijhawm, c. 2-2.5 teev tag nrho

Kauj Ruam 4: Xaus

Xaus
Xaus

Nov yog txoj haujlwm kawm zoo ntawm kev siv cov ntsuas nrog Arduino Nano. Kuj tseem muaj lub ntsuas saib (CTRL + M) txhawm rau saib qhov muag ntawm cov ntaub ntawv pub.

Lub hom phiaj kev kawm yog:

Nkag siab Cov Ntaub Ntawv los ntawm Qhov Kub Sensor Ua cov ntaub ntawv nrog Microcontroller Tso Tawm Cov Ntaub Ntawv mus rau cov zaub (I2C)

Muaj kab laum ntawm cov duab uas cov zaub hais tias F tab sis qhov kub nyob hauv Celsius. Qhov no yuav raug kho.

Muaj peev xwm txhim kho/kho kom raug yog

Ua kom zoo dua 3D Tsim ntawm rooj plaub Siv DHT22 sensor uas xa cov ntaub ntawv nrawm dua DHT 11. Lub ntsuas ntsuas siv hauv qhov haujlwm no tsuas yog hloov kho tshiab txhua 2 vib nas this.

Yog tias koj muaj lus nug, thov tawm lus hauv qab no.

Cov ntaub ntawv tag nrho thiab txhua qhov kev hloov pauv tuaj yeem pom ntawm no:

Pom zoo: