Cov txheej txheem:
- Kauj Ruam 1: Tau PCBs rau Koj Txoj Haujlwm Tsim
- Kauj Ruam 2: Saib ntawm Thingspeak Platform:
- Kauj Ruam 3: MQTT los ntawm Mosquitto
- Kauj Ruam 4: Teeb ESP8266 rau Kev Xeem
- Kauj Ruam 5: Rub tawm thiab teeb tsa Arduino IDE
- Kauj Ruam 6: Coding Module
- Kauj Ruam 7: ESP8266 Xa Cov Ntaub Ntawv mus rau Thingspeak
Video: ESP8266 Nrog Thingspeak thiab DHT11 Tutorial - Web Server: 7 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Hav, ua li cas, Cov Menyuam! Akarsh nov los ntawm CETech.
Txoj haujlwm no ntawm kuv yog qhov kev kawm nkhaus kom nkag siab lub ntsiab lus ntawm lub platform nrog rau lub tswv yim ntawm MQTT thiab tom qab ntawd siv Thingspeak nrog ESP8266.
Txog rau qhov kawg ntawm tsab xov xwm, peb yuav txuas ESP8266 nrog DHT11 thiab yuav xa cov ntaub ntawv ntsuas kub thiab av noo mus rau Thingspeak platform hauv is taws nem. Peb kuj tseem yuav saib cov cai tswj hwm kho vajtse hauv is taws nem dua siv Thingspeak.
Thaum kawg ntawm kev qhia, peb yuav tuaj yeem xa/tau txais cov ntaub ntawv hauv is taws nem mus rau ESP8266/ESP32.
Cia peb pib nrog kev lom zem tam sim no…
Kauj Ruam 1: Tau PCBs rau Koj Txoj Haujlwm Tsim
Koj yuav tsum txheeb xyuas PCBGOGO rau xaj PCBs online kom pheej yig!
Koj tau txais 10 qhov zoo PCBs tsim thiab xa mus rau koj lub qhov rooj rau 5 $ thiab qee qhov xa khoom. Koj tseem yuav tau txais luv nqi ntawm kev xa khoom ntawm koj thawj daim ntawv xaj.
PCBGOGO muaj peev xwm ntawm PCB los ua ke thiab tsim khoom stencil nrog rau ua kom tau cov qauv zoo.
Txheeb xyuas lawv Yog tias koj xav tau PCBs tsim lossis sib sau ua ke.
Kauj Ruam 2: Saib ntawm Thingspeak Platform:
Lub hauv paus yog tsom mus rau IoT Cov Haujlwm thiab kev tshuaj xyuas cov ntaub ntawv siv kev pom.
Txhawm rau pib nrog cov kev pabcuam dawb ntawm Thingspeak koj yuav tsum xub sau npe siv koj tus lej ID, ib zaug uas ua tiav nrog rau email pov thawj koj yuav tau txais tos nrog nplooj zoo ib yam:
Tam sim no saib qee cov ntsiab lus uas yuav pab koj nkag siab qhov no zoo dua thiab ua rau koj ua haujlwm nrog cov vev xaib zoo li cov no du dua:
1) Nyeem/Rub Cov Ntaub Ntawv: Tau txais cov ntaub ntawv ntawm koj ESP8266/ESP32 los ntawm tus neeg rau zaub mov yog nyeem ntawv ua haujlwm.
2) Sau/Tshaj Tawm Cov Ntaub Ntawv: Xa cov ntaub ntawv los ntawm koj li ESP8266/ESP32 mus rau tus neeg rau zaub mov yog sau ua haujlwm.
3) API Ntsiab Lus: Kom muaj cov ntaub ntawv ruaj ntseg thiab tiv thaiv ib tus neeg los ntawm kev nyeem/sau cov ntaub ntawv mus rau koj lub server yuav tsum muaj qee yam kev nyab xeeb/tus lej nkag thiab API Key yog qee yam npaj rau qhov no. API Ntsiab yog tus lej lej lej ntev uas xav tau los nyeem/cov ntaub ntawv rau tus neeg rau zaub mov. Muaj cais cov yuam sij rau kev nyeem thiab sau cov ntaub ntawv.
4) Channel: Ib txoj hauv kev hais lus yog software sib piv ntawm IoT kho vajtse ntaus ntawv uas koj txuas rau Thingspeak, hauv peb cov ntaub ntawv ESP8266 yuav siv tag nrho cov channel ntawm peb cov bandwidth. Hauv tus as khauj pub dawb ntawm yam hais lus, koj tuaj yeem muaj qhov siab tshaj ntawm 4 raws.
5) Teb: Txhua channel muaj 8 daim teb. Ib daim teb yog qhov sib txawv thiab khaws/faib cov ntaub ntawv, piv txwv li thaum peb xa qhov kub thiab txias los ntawm peb lub cuab yeej mus rau tus neeg rau zaub mov, ob qho kev ntsuas yuav siv ib daim teb ntawm txhua cov channel.
Qhov ntawd zoo nkauj heev nws hais txog yam khoom!
Luam thiab khaws Sau API Key, peb yuav xav tau nws tom qab thaum sim tawm qhov txuas mus rau Thingspeak.
Kauj Ruam 3: MQTT los ntawm Mosquitto
MQTT yog cov ntaub ntawv hloov pauv cov txheej txheem uas tuaj yeem siv los ntawm peb rau lub hom phiaj zoo sib xws uas peb tab tom siv Thingspeak rau. Mosquitto yog ib lub koom haum muab MQTT server/broker pub dawb rau kev xeem.
Xav paub ntau ntxiv ntawm Mosquitto.org tuaj yeem pom ntawm qhov txuas no.
Kuv yuav tsis nkag mus tob txog MQTT hauv kab lus no thiab yuav npog MQTT hauv kab lus cais/vis dis aus!
Kauj Ruam 4: Teeb ESP8266 rau Kev Xeem
Txuas DHT11 mus rau ESP8266 module ntawm D0 tus pin thiab cov kab hluav taws xob rau 3.3v ntawm ESP module.
Thaum cov kauj ruam no ua tiav koj tuaj yeem txav mus rau qhov software.
Kauj Ruam 5: Rub tawm thiab teeb tsa Arduino IDE
Rub tawm Arduino IDE los ntawm no
1. Nruab Arduino IDE thiab qhib nws.
2. Mus rau File> Preferences
3. Ntxiv https://arduino.esp8266.com/stable/package_esp8266com_index.json rau Tus Thawj Saib Xyuas Ntxiv URLs.
4. Mus rau Cov Cuab Yeej> Pawg Thawj Coj> Tus Thawj Saib Xyuas Haujlwm
5. Tshawb nrhiav esp8266 thiab tom qab ntawd teeb tsa lub rooj tsavxwm.
6. Rov pib dua IDE.
Kauj Ruam 6: Coding Module
1. Rub cov cai rau kev sau ntawv mus rau yam khoom hais los ntawm no:
2. Qhib tus lej hauv Arduino IDE thiab hloov qhov yuav tsum tau hloov mus rau API Key/SSID/Password nyob rau sab saum toj ntawm txoj cai.
3. Mus rau Cov Cuab Yeej> Pawg Thawj Coj. Xaiv lub rooj tsav xwm uas tsim nyog uas koj siv NodeMCU (12E) ua haujlwm feem ntau.
5. Xaiv qhov kom raug. chaw nres nkoj los ntawm kev mus rau Cov Cuab Yeej> Chaw Nres Nkoj.
6. Ntaus lub pob upload.
7. Thaum lub tab hais tias Done Uploading koj tau npaj siv lub cuab yeej.
Kauj Ruam 7: ESP8266 Xa Cov Ntaub Ntawv mus rau Thingspeak
Sai li sai tau raws li cov cai tau muab tso rau thiab koj qhib lub serial monitor koj yuav tau txais tos nrog cov lus raws li kuv tau txais hauv daim duab saum toj no. Tus qauv txuas nws tus kheej mus rau WiFi ua ntej thiab tom qab ntawd xa cov ntaub ntawv mus rau tus neeg rau zaub mov tom qab nyeem qhov ntsuas los ntawm DHT11.
Ntawm nplooj ntawv hais lus koj tuaj yeem pom cov nkag zoo li cov duab hauv qab no:
Qhov ntawd yog nws los ntawm qhov ua qauv qhia no!
Yog tias koj xav coj lwm txoj hauv kev thiab tswj hwm yam khoom los ntawm Thingspeak siv ESP8266 thiab nyeem cov ntaub ntawv server koj tuaj yeem siv tus lej no:
Pom zoo:
Nws Pib Cua Txias Siv Servo thiab DHT11 Kub thiab Vaum Sensor Nrog Arduino: 8 Kauj Ruam
Auto Cooling Fan Siv Servo thiab DHT11 Kub thiab Vaum Sensor Nrog Arduino: Hauv qhov kev qhia no peb yuav kawm paub pib li cas & tig kiv cua thaum qhov kub nce siab tshaj ib qib
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
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
8 Relay Tswj Nrog NodeMCU thiab IR Txais Txais Siv WiFi thiab IR Chaw Taws Teeb thiab Android App: 5 Kauj Ruam (nrog Duab)
8 Relay Tswj Nrog NodeMCU thiab IR Txais Txais Siv WiFi thiab IR Chaw Taws Teeb thiab Android App: Tswj 8 qhov hloov pauv hloov siv nodemcu thiab ir tus txais tshaj wifi thiab ir chaw taws teeb thiab hauv app.the ir tej thaj chaw deb ua haujlwm ywj pheej ntawm wifi txuas. NTUJ
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