Cov txheej txheem:
- Kauj ruam 1: Pib
- Kauj ruam 2: Tseem ceeb
- Kauj Ruam 3: Pib Nrog Blynk App
- Kauj Ruam 4: Tsim Txoj Haujlwm Tshiab
- Kauj Ruam 5: Npe/Pawg Thawj Coj/Kev Sib Txuas
- Kauj Ruam 6: Kev lees paub tseeb
- Kauj Ruam 7: Ntxiv Ob Qhov Widgets (Tus Nqi Zaub)
- Kauj ruam 8: Drag N Drop
- Kauj Ruam 9: Vaum
- Kauj Ruam 10: Kub
- Kauj ruam 11: Khiav qhov Project
- Kauj ruam 12: Khiav Code
- Kauj Ruam 13: Zaub
Video: Xa Kub & Vaum rau Blynk App (Wemos D1 Mini Pro): 15 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Cov Lus Qhia no saib ntawm kev siv Wemos D1 Mini Pro xa datta (Kub & Vaum) mus rau Blynk APP.
Kauj ruam 1: Pib
Peb yuav tau txais qhov ntsuas kub thiab av noo thawb rau koj Blynk App ntawm koj lub xov tooj. Txuas tus LED raws li qhia ntawm no: Nco tseg. Kuv tau siv xiav DHT11 Digital Temperature/Humidity module uas muaj peb tus pin. Tus qauv yog los ntawm Banggood. Lwm cov qauv zoo sib xws los ntawm cov neeg muab khoom sib txawv tuaj yeem muaj tus lej sib txawv. Xyuas qhov no. Cov xim hauv qab no raug rau Banggood module:
Xiav = Cov ntaub ntawv teeb liab (sab laug)
Liab = Vcc +5v (nruab nrab)
Dub = av (txoj cai)
Kauj ruam 2: Tseem ceeb
Raws li tau hais los saum no.
Nco tseg. Kuv siv xiav DHT11 Digital Temperature/Humidity module los ntawm Banggood uas muaj peb tus pin. Lwm cov qauv zoo sib xws los ntawm cov neeg muab khoom sib txawv tuaj yeem muaj tus lej sib txawv. Xyuas qhov no. Cov xim raug rau Banggood module:
Xiav = Cov ntaub ntawv teeb liab (sab laug) Liab = Vcc +5v (nruab nrab) Dub = Hauv av (txoj cai)
Kauj Ruam 3: Pib Nrog Blynk App
Tsim tus account Blynk Tom qab koj rub tawm Blynk App, koj yuav tsum tsim tus lej Blynk tshiab. Tus lej no yog cais los ntawm tus as khauj siv rau Blynk Forums, yog tias koj twb muaj lawm. Peb pom zoo siv email chaw nyob tiag vim nws yuav yooj yim dua tom qab.
Vim li cas kuv thiaj yuav tsum tsim tus as khauj? Ib tus account xav tau los cawm koj cov phiaj xwm thiab muaj kev nkag tau los ntawm ntau yam khoom siv los ntawm txhua qhov chaw. Nws tseem yog kev ntsuas kev nyab xeeb. Koj ib txwm tuaj yeem teeb tsa koj tus kheej Blynk Server (Txuas mus rau lwm qhov chaw.) Txuas mus rau lwm qhov chaw. thiab muaj kev tswj hwm tag nrho.
Kauj Ruam 4: Tsim Txoj Haujlwm Tshiab
Tom qab koj tau ua tiav nkag mus rau koj tus as khauj, pib los ntawm kev tsim ib qhov haujlwm tshiab.
Kauj Ruam 5: Npe/Pawg Thawj Coj/Kev Sib Txuas
Muab nws lub npe thiab xaiv pawg tsim nyog (Wemos D1 Mini). Tam sim no nyem tsim.
Kauj Ruam 6: Kev lees paub tseeb
Koj daim ntawv pov thawj kev lees paub yuav raug email rau koj thiab koj tseem yuav tuaj yeem nkag mus rau nws hauv qhov chaw ntawm koj qhov project. Tus lej tshiab yuav raug tsim rau txhua qhov haujlwm koj tsim.
Kauj Ruam 7: Ntxiv Ob Qhov Widgets (Tus Nqi Zaub)
Koj qhov project canvas tsis muaj dab tsi, cia peb ntxiv ob lub vijtsam los qhia qhov kub thiab txias. Coj mus rhaub qhov twg ntawm daim ntaub kom qhib lub thawv widget. Txhua qhov khoom siv muaj nyob ntawm no.
Kauj ruam 8: Drag N Drop
Drag-n-Drop-Coj mus rhaub thiab tuav lub Widget kom rub nws mus rau txoj haujlwm tshiab.
Kauj Ruam 9: Vaum
Cov Chaw Cuam Tshuam - Txhua Tus Widget muaj nws tus kheej teeb tsa. Coj mus rhaub ntawm tus widget kom tau mus rau lawv. Teeb lawv nrog cov teeb tsa hauv qab no.
Kauj Ruam 10: Kub
Cov Chaw Cuam Tshuam - Txhua Tus Widget muaj nws tus kheej teeb tsa. Coj mus rhaub ntawm tus widget kom tau mus rau lawv. Teeb lawv nrog cov teeb tsa hauv qab no.
Kauj ruam 11: Khiav qhov Project
Kauj ruam 12: Khiav Code
Tam sim no cia saib qhov piv txwv piv txwv rau Wemos D1 Mini Pro. Daim ntawv ceeb toom muaj peb ntu tseem ceeb uas koj yuav tsum suav nrog:
1. char auth = ""; Tshwj xeeb rau koj txoj haujlwm (Blynk App).
2. char ssid = ""; Tshwj xeeb rau lub network uas peb txuas nrog (lub npe network). Koj tuaj yeem "hotspot" los ntawm koj lub xov tooj thiab.
3. char pass = ""; Tshwj xeeb rau lub network peb txuas rau (password).
CODE
#define BLYNK_PRINT Serial
#include #include #include // Koj yuav tsum tau txais Auth Token hauv Blynk App. // Mus rau Qhov Chaw Haujlwm (icon txiv ntoo). char auth = ""; // Koj li ntawv pov thawj WiFi. // Teeb tus password rau "" rau qhib tes hauj lwm. char ssid = ""; char pass = ""; #define DHTPIN D4 // Tus lej digital dab tsi peb txuas nrog #define DHTTYPE DHT11 // DHT 11
DHT dht (DHTPIN, DHTTYPE);
BlynkTimer timer; ploj t; ploj h; void teeb () {// Debug console Serial.begin (9600); Blynk.begin (auth, ssid, dhau); dht.begin (); timer.setInterval (1000L, sendSensor); } tsis muaj dab tsi voj () {Blynk.run (); timer.run (); } // Lub luag haujlwm no xa Arduino lub sijhawm txhua txhua ob rau Virtual Pin (5). // Hauv app, Widget's nyeem zaus yuav tsum tau teeb tsa rau PUSH. Qhov no txhais tau tias // uas koj txheeb xyuas ntau npaum li cas xa cov ntaub ntawv mus rau Blynk App. void sendSensor () {h = dht.readHumidity (); t = dht.readTemperature (); // lossis dht.readTemperature (tseeb) rau Fahrenheit // l = analogRead (LDR); yog (isnan (h) || isnan (t)) {Serial.println ("Ua tsis tau tejyam nyeem los ntawm DHT sensor!"); rov qab; } // Koj tuaj yeem xa tus nqi txhua lub sijhawm. // Thov tsis txhob xa ntau tshaj 10 qhov nqi ib pliag. Blynk.virtualWrite (V5, h); Blynk.virtualWrite (V6, t); }
Kauj Ruam 13: Zaub
Rov qab mus rau Blynk App thiab tshawb xyuas koj cov zaub. Koj yuav tsum pom qhov kub thiab txias tam sim no.
Pom zoo:
Vaum thiab Kev Tswj Kub Kub rau Terrarium: 11 Kauj Ruam (nrog Duab)
Kev Nyab Xeeb thiab Kev Tswj Kub Kub rau Terrarium: QHOV TSEEB: Cov lus qhia no yog rau kev txhim kho cov av noo thiab tswj qhov kub thiab txias uas siv Arduino Uno. Cov kab ke no siv cov dej tsis txaus thiab ntsuas kub los soj ntsuam ib puag ncig ib puag ncig thiab Arduino Uno txuas
ESP8266 NodeMCU Access Point (AP) rau Web Server Nrog DT11 Kub Sensor thiab Luam Ntawv Kub & Vaum Hauv Browser: 5 Kauj Ruam
ESP8266 NodeMCU Access Point (AP) rau Web Server Nrog DT11 Kub Sensor thiab Luam Ntawv Kub & Vaum Hauv Browser: Nyob zoo cov phooj ywg hauv feem ntau ntawm cov haujlwm peb siv ESP8266 thiab hauv feem ntau ntawm cov haujlwm peb siv ESP8266 ua lub vev xaib kom cov ntaub ntawv tuaj yeem nkag tau rau txhua lub cuab yeej hla wifi los ntawm kev nkag mus rau Webserver tuav los ntawm ESP8266 tab sis qhov teeb meem tsuas yog peb xav tau lub router ua haujlwm rau
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