Cov txheej txheem:
- Kauj ruam 1: Saib Video
- Kauj ruam 2: Kho vajtse
- Kauj Ruam 3: Teeb Kho Vajtse
- Kauj Ruam 4: MQTT Cov Hauv Paus
- Kauj Ruam 5: Kev muaj zog
- Kauj Ruam 6: IBM Huab
- Kauj Ruam 7: Node-RED App
Video: IoT: Pom Kev Pom Kev Pom Cov Ntaub Ntawv Siv Node-RED: 7 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Hauv cov lus qhia no, koj yuav kawm paub yuav tsim lub tshuab txuas nrog internet li cas! Kuv yuav siv lub teeb pom kev ib puag ncig (TI OPT3001) rau qhov ua piv txwv no, tab sis ib qho ntsuas ntawm koj xaiv (ntsuas kub, av noo, lub hwj chim ntsuas hluav taws xob, thiab lwm yam) yuav ua haujlwm. Qhov ntsuas qhov ntsuas yuav raug tshaj tawm rau daim ntawv thov huab-siv MQTT. Muaj ntau qhov kev qhia tawm uas qhia tias koj tuaj yeem ua tiav qhov no siv Arduino lossis Raspberry Pi. Peb yuav ua tiav qhov kev qhia no siv TI's (Texas Instruments) LaunchPad Ecosystem.
Kauj ruam 1: Saib Video
Kauj ruam 2: Kho vajtse
Cheebtsam siv- TI MSP432 LaunchPad- $ 19.99 (Asmeskas) [https://www.ti.com/tool/MSP-EXP432P401R]- SimpleLink Wi-Fi CC3100 Module- $ 19.99 (Asmeskas) [https://www.ti.com /cuab yeej/CC3100BOOST] - Kev Kawm BoosterPack MKII - $ 29.99 (Asmeskas) [https://www.ti.com/tool/BOOSTXL-EDUMKII] Q> Yog koj xav paub tias Kev Kawm BoosterPack MKII yog dab tsi? A> Nws yog ib qho yooj yim-rau-siv plug-in module uas muaj ntau yam analog thiab digital inputs thiab outputs ntawm koj pov tseg suav nrog kev sib piv joystick, ib puag ncig thiab kev ntsuas lub zog, RGB LED, microphone, buzzer, xim LCD zaub, thiab ntau dua.- Power Bank thiab Micro USB CableSensor- TI OPT3001- Ambient Light Sensor [https://www.ti.com/product/OPT3001]
Kauj Ruam 3: Teeb Kho Vajtse
Txuas koj li CC3100 Wi-Fi module thiab Kev Kawm BoosterPack MKII rau hauv koj li LaunchPad, tom qab ntawd ntsaws koj LaunchPad rau ib qho ntawm koj lub computer USB chaw nres nkoj.
Kauj Ruam 4: MQTT Cov Hauv Paus
MQTT sawv rau Xov Xwm Kab Ke Telemetry Thauj Khoom. Nws muaj txiaj ntsig zoo rau kev siv nrog lub zog ntsuas qis tab sis muaj feem xyuam rau ntau qhov xwm txheej. Cov txheej txheem muaj 3 lub hauv paus tseem ceeb: PUBLISHER, BROKER thiab SUBSCRIBER. PUBLISHER: MSP432 LaunchPad yuav yog PUBLISHER, vim nws yuav tshaj tawm cov ntaub ntawv lub teeb sensor nyob rau hauv ib lub ncauj lus tshwj xeeb. BROKER: Ua raws li qhov yooj yim, siv tau zoo rau txhua yam txuas rau rau. Nws yog tus neeg rau zaub mov uas saib xyuas cov ntaub ntawv xa tawm ntawm PUBLISHER thiab Tus Sau Npe. Hauv qhov piv txwv no, peb tab tom siv MQTT tus tswv lag luam nkag tau yooj yim, feem ntau muaj txiaj ntsig zoo rau kev tsim qauv thiab kev sim. Txhawm rau sau npe mus rau ib qho ntaub ntawv twg uas tau xa los ntawm PUBLISHER, tus neeg sau npe yuav tsum txuas nrog tib tus BROKER thiab sau npe rau tib lub ncauj lus zoo li PUBLISHER. Yog tias 2 qhov xwm txheej no tau ua tiav, tus neeg sau npe yuav tuaj yeem tau txais cov lus los ntawm PUBLISHER. NOTE: Nrog MQTT, ntau tus tshaj tawm thiab cov neeg siv npe tuaj yeem siv tib tus broker/Cov ncauj lus. Ib qho ntxiv, ib tus tshaj tawm tuaj yeem xa cov ntaub ntawv mus rau ntau dua ib tus neeg siv npe.
Kauj Ruam 5: Kev muaj zog
Energia yog ib qhov chaw qhib & zej zog-txhawb kev txhim kho ib puag ncig ib puag ncig (IDE) & cov txheej txheem software uas txhawb nqa ntau tus txheej txheem TI, feem ntau cov muaj nyob hauv LaunchPad kev txhim kho kev lag luam. Rub tawm: [https://energia.nu/download/]
E1. Qhib Energia IDE thiab xaiv qhov tseeb Serial Port thiab Board los ntawm kev mus rau: ToolsE2. Energia los ua ntej nrog cov piv txwv cov phiaj xwm rau Kev Kawm BoosterPack MKII. Txhawm rau txheeb xyuas tias lub teeb pom kev zoo ua haujlwm, qhib thiab xa cov qauv piv txwv rau OPT3001 los ntawm kev mus rau: Cov Ntaub Ntawv> Piv txwv> Kev KawmBP_MKII> OPT3001_DemoE3. Yog tias txhua yam ua haujlwm, lub teeb pom kev nyeem ntawv yuav tsum pib ntws mus rau hauv Serial Monitor. Hloov pauv lub teeb pom kev kom pom qhov ntsuas qhov hloov pauv. E4. Lub zog Energia (0101E0017) Kuv tam sim no siv los preloaded nrog lub tsev qiv ntawv rau MQTT PubSubClient. Yog tias koj siv ib qho ntawm Energia uas tsis muaj lub tsev qiv ntawv no, koj tuaj yeem tau txais los ntawm: [https://github.com/energia/Energia/tree/master/libraries/PubSubClient]E5. Cov duab kos yog qhov hloov pauv me ntsis ntawm qhov piv txwv uas muaj nyob hauv: Cov Ntaub Ntawv> Piv txwv> PubSubClient> MQTTBasicWiFiE6. Tib yam uas peb yuav xav tau hloov yog peb "ssid" thiab "password" cov ntaub ntawv rau peb Wi-nkaus router. E7. Cov pej xeem MQTT Server uas tau siv hauv daim duab yog [https://mqtt.eclipse.org/]. Txhawm rau hloov TOPIC uas peb LaunchPad tau tshaj tawm rau, hloov txoj hlua nrog koj tus kheej hauv tus neeg siv khoom.publish () ua haujlwm hu rau hauv lub voj loj (). E8. Rub qhov program no rau LaunchPad los ntawm txhaj rau pob Upload. E9. Qhib Serial Monitor. Koj yuav tsum pom cov txiaj ntsig ntsuas ntws nrog rau "Tshaj tawm ua tiav !!".
Kauj Ruam 6: IBM Huab
Tam sim no peb tab tom tshaj tawm cov ntaub ntawv ntsuas lub teeb, cia peb tsim daim ntawv thov huab uas tuaj yeem tso npe rau peb LaunchPad thiab pom peb cov ntaub ntawv sensor. Peb yuav siv Node-RED, uas muaj nyob ntawm IBM Cloud platform raws li ib qho ntawm cov khoom siv pib hauv daim ntawv teev npe. Dab tsi yog Node-RED? nyob rau hauv txoj kev tshiab thiab nthuav. Node-RED tau tsim ntawm Node.js, ua kom tau zoo dua ntawm nws qhov kev tshwm sim-uas tau tsav, tsis txwv cov qauv. Qhov no ua rau nws zoo tshaj plaws los khiav ntawm ntug ntawm lub network ntawm cov khoom siv qis-nqi xws li Raspberry Pi ntxiv rau hauv huab. C1. Sau npe rau IBM Cloud tus account los ntawm kev siv koj li IBMid uas twb muaj lawm lossis los ntawm kev tsim IBMid. C2 tshiab. Thaum koj tau nkag mus rau IBM Cloud, koj yuav raug coj mus rau koj li Dashboard. C3. Nyem rau ntawm Catalog tab thiab tshawb rau Node-RED App. C4. Nyem rau ntawm Tsim app khawm kom txuas ntxiv. Qhov no yuav tsim koj daim ntawv thov huab tshiab. Qhov no yuav siv ob peb feeb los ua kom tiav! C5. Tam sim no koj tau siv koj li Node-RED daim ntawv thov, qhib koj li IBM Cloud Resource daim ntawv teev npe los ntawm xaiv cov ntawv qhia zaub mov sab thiab tom qab ntawd xaiv Cov Ntawv Teev Npe. Koj yuav pom koj qhov tshiab Node-RED Application tau teev tseg hauv qab Apps Apps. C6. Nyem rau ntawm Cloud Foundry app nkag mus rau koj daim ntawv thov nthuav dav nplooj ntawv. Nyem rau Txuas Txuas App URL txhawm rau nkag mus rau koj li Node-RED Starter application.
Kauj Ruam 7: Node-RED App
N1. Thawj zaug koj qhib koj li Node-RED app, koj yuav tsum teeb tsa nws thiab teeb tsa kev nyab xeeb. N2. Nyem rau Go to your Node-RED flow editor button to open the editor. N3. Node-RED editor qhib qhia pom qhov pib ntws. N4. Luag cov mqtt hauv thaiv los ntawm Node-RED palette rau hauv daim ntawv khoob. N5. Nyem ob npaug rau mqtt thaiv thiab kho cov khoom nrog tib qhov ntsuas uas koj LaunchPad tau tshaj tawm rau: Server-mqtt.eclipse.org:1883Topic-EDUMKII_IOTOnce teeb tsa, nyem Done. N6. Tom qab txuas kab txuas ntxiv ntawm cov node, nyem lub pob Deploy nyob rau sab saum toj-sab xis. Qhov no yuav ua rau koj daim ntawv thov pib ua haujlwm. N7. Nyem qhov debug tab kom thaum kawg pom qhov ntsuas pom los ntawm koj li LaunchPad streaming hauv! N8. Nyem qhov txuas hauv Layout tab ntawm lub dashboard kom pom qhov ntsuas qhov ntsuas hauv kab ntawv thiab ntsuas hom. N9. Pab kev zoo siab rau kev ua mus rau theem kawg! Tam sim no koj tuaj yeem pom cov ntaub ntawv ntsuas lub ntiaj teb tiag hauv huab !! ReferencesMQTT. ORG [https://mqtt.org/] Energia-MQTT Tutorial [https://energia.nu/guide/tutorials/connectivity/tutorial_mqtt/] Node -RED [https://nodered.org/] Khiav ntawm IBM Cloud [https://nodered.org/docs/getting-started/ibmcloud] Tsim Node-RED starter application [https://developer.ibm.com /components/node-red/tutorials/yuav ua li cas-tsim-a-node-red-starter-application/]
Pom zoo:
LoRa-Raws Li Pom Kev Pom Kev Pom Zoo rau Kev Ua Liaj Ua Teb Iot - Tsim Tsim Daim Ntawv Thov Ua Ntej Siv Firebase & Angular: 10 Kauj Ruam
LoRa-Raws Li Pom Kev Pom Kev Pom Zoo rau Kev Ua Liaj Ua Teb Iot | Tsim Tsim Daim Ntawv Thov Ua Ntej Siv Firebase & Angular: Hauv tshooj yav dhau los peb tham txog yuav ua li cas cov ntsuas hluav taws xob ua haujlwm nrog loRa module txhawm rau nthuav tawm firebase Lub Sijhawm Teem Sijhawm, thiab peb tau pom daim duab siab heev tias peb txoj haujlwm tag nrho ua haujlwm li cas. Hauv tshooj lus no peb yuav tham txog yuav ua li cas peb tuaj yeem
Txoj hauv kev zoo dua los Saib/Ntaub Ntawv Cov Ntaub Ntawv ntawm Cov Lus Qhia: 4 Cov Kauj Ruam
Txoj hauv kev zoo dua los Saib/Cov Ntaub Ntawv ntawm Kev Qhia: Tib neeg feem ntau suav nrog cov ntaub ntawv rau qhov haujlwm ntawm Instructables upload.Ua ntej qhov no yog software cov ntaub ntawv cov ntaub ntawv uas tej zaum tseem yuav yog lub plawv dhia ntawm kev qhia. Tab sis Instructables tsis muab txoj hauv kev rau tus nyeem yooj yim nyeem thiab tshuaj xyuas cov cai. (
Kev Tau Txais Cov Ntaub Ntawv thiab Cov Ntaub Ntawv Pom Kev Pom Zoo rau MotoStudent Fais Fab Sib Tw Tsheb kauj vab: 23 Kauj Ruam
Kev Tshawb Nrhiav Cov Ntaub Ntawv thiab Cov Ntaub Ntawv Pom Zoo rau MotoStudent Hluav Taws Xob Sib Tw Tsheb: Cov ntaub ntawv khaws cov ntaub ntawv yog cov khoom siv khoos phis tawj thiab software ua haujlwm ua ke txhawm rau sau cov ntaub ntawv los ntawm cov ntsuas sab nraud, khaws thiab ua nws tom qab kom nws tuaj yeem pom cov duab thiab txheeb xyuas, tso cai rau cov kws tsim txuj ci los ua
RAWS LI COV NTAUB NTAWV NTSEEG NTAWV NTAWV MUAJ NTAWV TSHUAJ NTAWV TSO CAI RAU RASPBERRY PI: 6 Kauj Ruam (nrog Duab)
RAWS LI COV NTAUB NTAWV NTAWV MUAJ NTAWV TSHUAJ NTXIV RAU RASPBERRY PI: Hauv qhov haujlwm no, peb yuav txuas peb ntawm Atlas Scientific's EZO sensors (pH, yaj cov pa thiab kub) mus rau Raspberry Pi 3B+. Hloov chaw ntawm txuas cov kab hluav taws xob mus rau Raspberry Pi, peb yuav siv Whitebox Labs Tentacle T3 daim ntaub thaiv. T
IoT Cov Ntaub Ntawv Kev Tshawb Fawb PiNet rau Lub Sijhawm Tiag Smart Screen Cov Ntaub Ntawv Viz: 4 Cov Kauj Ruam
IoT Cov Ntaub Ntawv Kev Tshawb Fawb PiNet rau Lub Sij Hawm Tiag Smart Screen Cov Ntaub Ntawv Viz: Koj tuaj yeem yooj yim ua ke IoT network ntawm cov lus qhia ntse rau cov ntaub ntawv pom tau los ua kom muaj zog ntxiv koj li kev tshawb fawb hauv Cov Ntaub Ntawv Kev Tshawb Fawb lossis ib qho kev ua haujlwm ntau. Koj tuaj yeem hu rau " thawb " ntawm koj cov phiaj rau cov neeg siv khoom raug cai los ntawm koj li