Cov txheej txheem:
- Kauj Ruam 1: Rub tus USB Module Code los Ua Haujlwm Nrog Zigbee-tus tswv yug yaj
- Kauj Ruam 2: Kho Zigbee-tus tswv yug yaj
- Kauj Ruam 3: Ua Haujlwm ZigBee Tswj Kev Pabcuam thiab Txuas Lub Teeb
- Kauj Ruam 4: Tswj Lub Teeb
- Kauj Ruam 5: Xaus
Video: Yuav Ua Li Cas Txuas thiab Tswj Lub Teeb Ntawm ZigBee Module ntawm Dragonboard: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:24
Cov lus qhia no qhia tus neeg siv yuav ua li cas txuas thiab txhim kho ZigBee tus qauv ntawm Dragonboard thiab cuam tshuam nrog ZigBee tswj teeb (OSRAM), ua ZigBee IOT network.
Yuav tsum:
- Dragonboard 410c;
- CC2531 USB Dongle;
- TEXAS INSTRUMENTS CC Debugger/Programmer;
- OSRAM Lightify Tunable Dawb A19.
Kauj Ruam 1: Rub tus USB Module Code los Ua Haujlwm Nrog Zigbee-tus tswv yug yaj
Ua ntej tshaj plaws, yog qhov tsim nyog yuav tsum tau xa tus lej rau USB tus qauv ua haujlwm nrog zigbee-tus tswv yug yaj. Nws yuav muab kev ua haujlwm ntawm kev lees paub cov cuab yeej raug thiab tsim IOT network kom raug.
Txhawm rau ua tau qhov no, thov txheeb xyuas qhov GitHub nyeem no.
Kauj Ruam 2: Kho Zigbee-tus tswv yug yaj
Xav txog tias txoj cai twb tau xa mus rau ZigBee USB module, tam sim no yog lub sijhawm los teeb tsa daim ntawv thov zigbee-tus tswv yug yaj.
Zigbee-tus tswv yug yaj tau tsim ntawm Node, yog li nws tsim nyog kom muaj Node teeb tsa ntawm Dragonboard. Kev teeb tsa sib txawv rau txhua txoj haujlwm ua haujlwm, yog li saib rau Debian cov ncauj lus ntawm qhov txuas no kom paub yuav teeb tsa nws li cas.
Nrog Node twb tau teeb tsa ntawm Dragonboard, thov ua raws cov kauj ruam tom ntej los teeb tsa tus zigbee-tus tswv yug yaj:
- Tsim daim nplaub tshev rau txoj haujlwm nrog lub npe "zbserver" (CLI: ~ $ mkdir zbserver)
- Sab hauv zbserver nplaub tshev, tsim cov ntaub ntawv npe "server.js" (CLI: ~ $ kov server.js)
-
Tam sim no, nws tsim nyog los teeb tsa qee qhov kev vam khom rau txoj haujlwm, teeb tsa zigbee-tus tswv yug yaj, serialport thiab nthuav tawm libs los ntawm CLI cov lus txib:
- : ~/zbserver $ sudo npm nruab serialport
- : ~/zbserver $ sudo npm nruab zigbee-tus tswv yug yaj
- : ~/zbserver $ sudo npm nruab express
Tom qab ntawd, nws yog qhov yuav tsum tau theej cov cai tswj hwm ntawm server (txuas nrog qhov kawg ntawm cov kauj ruam no) rau cov ntawv "server.js" tsim.
Nco tseg: nws tsuas ua haujlwm nrog lub teeb muab thiab USB dongle yuav tsum txuas nrog ntawm Dragonboard.
Kauj Ruam 3: Ua Haujlwm ZigBee Tswj Kev Pabcuam thiab Txuas Lub Teeb
Txhawm rau txuas lub teeb rau tus neeg rau zaub mov nws yuav tsum mus rau cov ntawv tais ceev tseg (zbserver) cov npe thiab ua tiav "server.js" (nrog dongle txuas rau ntawm Dragonboard) cov ntaub ntawv los ntawm CLI hais kom ua:
~/zbserver $ sudo node server.js
Lub console qhib yuav tsum qhia rau lub xeev ntawm Zigbee kev sib txuas, yog tias pom lub teeb thiab yog tias nws yog qhov tsim nyog yuav tau txiav ua ke nrog.
Txhawm rau pab kom teeb lub teeb hom nws yog qhov tsim nyog rau:
- Tua nws los ntawm 5 vib nas this;
- Qhib nws los ntawm 5 vib nas this;
- Rov ua cov kauj ruam 1 thiab 2 tsib zaug.
Lub teeb yuav txuas nrog tus neeg rau zaub mov.
Kauj Ruam 4: Tswj Lub Teeb
Txhawm rau tswj lub teeb yog qhov tsim nyog kom paub cov ntawv ntawm IP chaw nyob hauv qab no:
- localhost: 3000/turnOff -> Tua lub teeb;
- localhost: 3000/tig rau -> Kom qhib lub teeb.
Kauj Ruam 5: Xaus
Tam sim no, tom qab cov kauj ruam dhau los, koj tuaj yeem tswj lub teeb ntawm ZigBee raws tu qauv siv Dragonboard 410c thiab ZigBee Module CC2531.
Yog tias muaj kev ua xyem xyav, thov tawm tswv yim hauv qab no lossis tshawb xyuas qhov txuas hauv qab no:
- zigbee-tus tswv yug yaj Wiki: cov ntaub ntawv hais txog server thiab chav ntaus ntawv.
- zigbee-tus tswv yug yaj HowTo: cov ntaub ntawv hais txog yuav siv ZigBee tus tswv yug yaj li cas.
Pom zoo:
Yuav Ua Li Cas Tswj Lub Teeb los ntawm Kev Siv Arduino UNO thiab Tib Channel 5V Solid State Relay Module: 3 Kauj Ruam
Yuav Ua Li Cas Tswj Teeb Pom Kev Los ntawm Kev Siv Arduino UNO thiab Tib Channel 5V Solid State Relay Module: Nqe lus piav qhia: Sib piv nrog cov khoom siv sib txuas ib txwm siv, Lub Xeev Solid State Relay (SSR) muaj ntau qhov zoo: nws muaj lub neej ntev, nrog ntau dua tig rau/ tawm ceev thiab tsis muaj suab nrov. Dhau li, nws kuj tseem muaj kev tiv taus zoo dua rau kev co thiab tshuab
Txuas Txuas Txuas Txuas: 5 Cov Kauj Ruam
Txuas Txuas Lub Sijhawm: Nyob Zoo! Hauv qhov kev qhia no koj yuav pom yuav ua li cas txuas nrog ib qho khoom siv Arduino sib xws, nruab nrog WiFi, rau REST APIs! Qhov no siv GitKraken Glo Board webapp los tsim cov laug cam, kab & daim npav los npaj khoom! Qee qhov kev paub ntawm yuav ua li cas pej xeem
Yuav Ua Li Cas Tswj Drone Quadcopter Brushless DC Tsav (3 Hom Hluav Taws Xob) los ntawm Kev Siv HW30A Lub Cev Muaj Zog Tswj thiab Arduino UNO: 5 Cov Kauj Ruam
Yuav Ua Li Cas Tswj Drone Quadcopter Brushless DC Tsav (3 Hom Hluav Taws Xob) los ntawm Kev Siv HW30A Lub Cev Muaj Zog Tswj thiab Arduino UNO: Nqe lus piav qhia: HW30A Lub Cev Muaj Zog Ceev tuaj yeem siv nrog 4-10 NiMH/NiCd lossis 2-3 cell LiPo roj teeb. BEC ua haujlwm tau zoo txog li 3 LiPo cells. Nws tuaj yeem siv los tswj kev nrawm ntawm Brushless DC lub cev muaj zog (3 xov hlau) nrog siab txog li 12Vdc.Specific
Kev Sib Txuas Txuas Txuas Txuas Siv Bluefruit: 4 Cov Kauj Ruam
Kev Sib Txuas Tsis Sib Txuas Siv Bluefruit: Nov yog cov lus qhia yooj yim los ntawm kauj ruam qhia los hloov koj cov xov hlau nrog bluetooth tsis muaj zog txuas: Nws coj kuv ib pliag los daws qhov no vim tias tsis muaj cov ntaub ntawv hais txog kev ua qhov no nrog bluetooth niaj hnub tsis muaj zog thev naus laus zis raws li Bluefrui
YUAV UA LI CAS YUAV TSUM XEEB NYIAJ NTAWM LUB FAMOUS ALTOIDS TIN. (THIAB RECYCLE NTAWM LUB SIJ HAWM SIAB): 7 Kauj Ruam
YUAV UA LI CAS YUAV TSUM XEEB NYIAJ NTAWM LUB FAMOUS ALTOIDS TIN. (THIAB RECYCLE NTAWM LUB SIJ HAWM SIJ HAWM): Nyob Zoo Qhov tsis tsim nyog no yog hais txog yuav ua li cas thiaj ua tau lub thawv hlau kom zoo ib yam (lossis qhov loj npaum li cas koj xav tau) ntawm Altoids tin. Koj Puas Paub Dab Tsi Qhov No ???? Qhov no txhais tau tias koj tuaj yeem ua koj tus kheej tins ….. LEEJ TWG YUAV TSUM MUAJ !!!!!!!!!!!!! Qhov no yog li cas.MATERIALS: 2