Cov txheej txheem:
- Kauj Ruam 1: Nruab Node-RED
- Kauj Ruam 2: Qee qhov Cheeb Tsam Yuav Tsum Ua Rau Tsev & Kev Xeem
- Kauj Ruam 3: Kuaj 1: Kev Sib Txuas Broker MQTT HIVEMQ Nrog Node-RED
- Kauj ruam 4: Architecture
- Kauj Ruam 5: Kuaj 2: Kev Sib Txuas Broker MQTT HIVEMQ Nrog ESP8266 & Node-RED
- Kauj Ruam 6: Cov lus xaus thiab Cov Lus Qhia Ntxiv
Video: ESP8266 & Pej Xeem "Dawb" MQTT Broker HiveMQ & Node-RED: 6 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:30
MQTT cov txheej txheem tau siv lub zog zoo hauv xyoo tas los no txij li nws yooj yim, nyab xeeb, siv tau thiab hnav zoo meej rau IoT thiab M2M daim ntawv thov.
Ua tsaug rau kev koom tes ntawm cov tsim tawm thiab tsim tawm ntawm MQTT daim ntawv thov, muaj pej xeem MQTT Broker rau Internet tshuaj xyuas thiab tswj kev ntsuas, muaj kev sib txuas los ntawm ib tus neeg siv MQTT hauv qhov no peb yuav siv HIVEMQ, uas muaj dashboard los saib MQTT kev sib txuas thiab Web sockets, vim nws yog pej xeem yuav tsum muaj qee qhov kev txiav txim siab uas peb yuav pom hauv qab no.
Lub vev xaib raug cai: HiveMQDashboard MQTT: HiveMQ
Kev sib txuas Broker MQTT
- Tus broker: broker.hivemq.com
- Chaw nres nkoj TCP: 1883
- Websocket Chaw nres nkoj: 8000
Kuaj
Tom qab ntawd peb yuav ua 2 qhov kev xeem:
- Kev Sib Txuas Broker MQTT HIVEMQ nrog Node-RED.
- Kev Sib Txuas Broker MQTT HIVEMQ nrog ESP8266 & Node-RED.
Ua tiav kev qhia thiab rub tawm
Yog xav paub ntxiv, thov mus saib:
Para mas información visita:
Kauj Ruam 1: Nruab Node-RED
Kauj Ruam 2: Qee qhov Cheeb Tsam Yuav Tsum Ua Rau Tsev & Kev Xeem
Qee qhov khoom siv xav tau rau kev tsim & ntsuas:
ESP8266 12E -
Sensor DS18B20 Onewire -
3 Kuj 10K
Kauj Ruam 3: Kuaj 1: Kev Sib Txuas Broker MQTT HIVEMQ Nrog Node-RED
Siv Node-RED yav dhau los teeb tsa ntawm lub server hauv zos hauv kuv lub network, peb yuav ua MQTT kev sib txuas nrog HIVEMQ txhawm rau txheeb xyuas qhov kev sib txuas los ntawm ib tus neeg siv MQTT.
Kauj ruam 4: Architecture
Kev Sib Txuas Sensor
ESP8266 tus qauv tau teeb tsa ua MQTT tus neeg siv khoom thiab ua qhov ntsuas kub ib ntus ntawm DS18B20 sensor, txuas nrog D4 tus pin (Gpio 02), muab rau 5v, nrog nws qhov kev pom zoo tiv thaiv hauv cov ntaub ntawv maxim.
Yuav tsum muaj cov tsev qiv ntawv:
- PubSubClient.h
- OneWire.h
- DallasTemperature.h
Kauj Ruam 5: Kuaj 2: Kev Sib Txuas Broker MQTT HIVEMQ Nrog ESP8266 & Node-RED
Hauv qhov xwm txheej no tus qauv ESP8266 12E NodeMCU teeb tsa raws li tus neeg siv MQTT nyeem qhov ntsuas kub DS18B20 raws tu qauv (Onewire) xa qhov ntsuas kub ntawm MQTT mus rau Tus Neeg Sawv Cev HIVEMQ thiab Node-RED teeb tsa hauv lub zos network thov tus nqi kub thiab teeb ntawm Node-RED Dashboard.
MQTT Cov ntsiab lus "kub/PDAC Tswj/ntsuas"
Xov
Piv txwv tus nqi ntsuas kub "28.9"
Kauj Ruam 6: Cov lus xaus thiab Cov Lus Qhia Ntxiv
Peb txiav txim siab tias txawm hais tias tus kws tshaj lij tus tswv lag luam yog pej xeem peb tsis paub daim ntawv thov uas txuas nrog tas li rau tus broker no, thiab vim nws yog pub dawb rau pej xeem HIVE muaj ntau yam kev cai lij choj uas yuav tsum tau coj mus rau hauv tus account.
Peb tsuas yog ua qhov ntsuas nrawm, txawm hais tias nws yuav tsum tau sau tseg tias lawv tau teeb tsa lawv daim ntawv thov IoT nrog tus tswv lag luam no yam tsis muaj teeb meem tshwm sim qhov kev pabcuam tau qhib thiab pej xeem.
Nrog tus tswv lag luam hauv huab (intenet) los ntawm txhua qhov chaw peb tuaj yeem txuas peb cov cuab yeej thiab daim ntawv thov yam tsis txwv tus IP chaw nyob thiab lwm yam kev txwv, tam sim no tshawb fawb cov phiaj xwm thiab kev pabcuam ntawm MQTT servers.
Hauv cov lus qhia tom ntej no peb yuav sim lwm qhov pej xeem MQTT servers thiab cuam tshuam nrog FRED (Node-RED).
Lwm tus tshaj tawm Broker's
Public Broker Tests Mosca.io
Pom zoo:
Portable Bluetooth Speaker (DAWB DAWB): 9 Kauj Ruam (nrog Duab)
Portable Bluetooth Speaker (PLANS PLANS): Nyob zoo txhua tus! Hauv Cov Lus Qhia Kuv yuav qhia koj li cas kuv tsim lub Portable Bluetooth Speaker uas muaj suab zoo li nws zoo li. Kuv tau suav nrog Tsim Cov phiaj xwm, Laser-Txiav cov phiaj xwm, txhua qhov txuas rau cov khoom lag luam uas koj xav tau txhawm rau txhawm rau txhim kho qhov kev siv no
RoboPhoto - Mosaic Generator rau Pej Xeem: 4 Kauj Ruam
RoboPhoto-Mosaic Generator rau Pej Xeem: RoboPhoto yog lub tshuab hluav taws xob photomosaic lub sijhawm tiag tiag RoboPhoto tsim cov duab photomosaic ntawm nws cov neeg siv-thaum koj tos. ib ph
Tus Pej Xeem Morse Moai: 4 Kauj Ruam (nrog Duab)
Tus Pej Xeem Morse Moai: Thaum kuv tseem yog menyuam yaus, kuv tau txaus siab rau Morse code. Muaj qee qhov laj thawj rau qhov no - kuv txiv tau nyob hauv Lub Tuam Txhab Teeb Meem thaum WW2 thiab nws zaj dab neeg ntawm yuav ua li cas Morse tau siv hauv kev ua tsov rog yog qhov txaus nyiam. Kuv muaj lub pob ntseg zoo dua rau cov lus sib dhos, yog li kuv tau kawm
Yuav Ua Li Cas Thiaj Li Laus Kev Xeem Kev Xeem Siv MATLAB: 6 Kauj Ruam
Yuav Ua Li Cas Txheeb Tus Neeg Laus Hnov Lus Siv MATLAB: DISCLAIMER: Peb qhov kev xeem tsis yog kuaj mob thiab yuav tsum tsis txhob siv li ntawd. Txhawm rau ntsuas qhov hnov lus zoo, thov mus ntsib kws kho mob.Kev siv cov ntaub ntawv uas peb twb muaj lawm, peb pab pawg tau kuaj qhov hnov lus. Peb qhov kev xeem yog rau cov neeg laus thiab cov hluas siv nkaus xwb
CSCI-1200 Qhov Kev Xeem Xeem zaum kawg 2: 3 Cov Kauj Ruam
CSCI-1200 Qhov Kev Xeem Kawg Zaum Kawg 2: Hauv chav kuaj no, koj yuav siv 4x4 tus lej txhawm rau hloov lub kaum sab xis ntawm servo motor. Lub kaum sab xis yuav txiav txim siab los ntawm tus lej 3 tus lej siv lub keyboard. Cov keypad yuav tsis lees txais tsis suav tus lej. Kho vajtse xav tau rau txoj haujlwm no: 1. Arduino UAS 2. 4 x4kj