Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Teeb Kho Cov Khoos Phis Tawj Sib Txuas
- Kauj ruam 2: Nyiam
- Kauj Ruam 3: Txhim Kho Lub Tsev Qiv Ntawv + Tsim Kho Kom Haum Xeeb
- Kauj ruam 4: Kho Chaw
- Kauj Ruam 5: Siv Blynk App
- Kauj Ruam 6: Txoj Cai
- Kauj Ruam 7: Qhov Tshwj Xeeb
Video: Kev tswj hwm LED Siv NodeMCU WiFi Module thiab Blynk App: 7 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Cov Lus Qhia no yuav qhia koj yuav ua li cas thiaj tswj hwm LED siv NodeMCU ESP8266 WiFi module ntawm Blynk smartphone app. Yog tias koj yog tus pib, nyeem rau. Yog tias koj muaj kev paub ntau dua, tej zaum koj yuav xav hla mus rau qhov kawg, qhov uas kuv tham txog qhov tshwj xeeb ntawm txoj haujlwm no ua haujlwm li cas.
Khoom siv
NodeMCU -
Jumper Wires (generic) - 2x
LED (txhua xim)
Cov qhob cij
Kauj Ruam 1: Teeb Kho Cov Khoos Phis Tawj Sib Txuas
- LED anode mus rau tus lej pin 8 ntawm NodeMCU siv cov xov hlau txuas
- Hauv av Circuit Court los ntawm kev txuas LED cathode mus rau 330Ω Ohm resistor
- Txuas lwm qhov kawg ntawm tus tiv thaiv rau GND ntawm NodeMCU pawg thawj coj.
Kauj ruam 2: Nyiam
Ua ntej peb tuaj yeem nkag mus rau txoj cai, peb yuav tsum hloov qee yam hauv kev nyiam hauv peb Arduino IDE. (Cov kauj ruam no xav tias koj twb muaj Arduino IDE teeb tsa lawm).
Mus rau "Tus Thawj Saib Xyuas Ntxiv URLs" thiab luam thiab muab qhov txuas no tso rau hauv nws:
arduino.esp8266.com/stable/package_esp8266com_index.json
Qhov teeb tsa no tso cai rau kev txhawb nqa rau pawg thib peb zoo li NodeMCU uas peb yuav siv.
Kauj Ruam 3: Txhim Kho Lub Tsev Qiv Ntawv + Tsim Kho Kom Haum Xeeb
Yuav muaj ntau lub tsev qiv ntawv uas peb yuav siv hauv qhov kev qhia no.
Ua ntej tshaj plaws peb yuav tsum teeb tsa ESP8266 pawg thawj coj los ntawm kev mus rau Cov Cuab Yeej> Pawg Thawj Coj:> Tus Thawj Saib Xyuas Pawg> thiab ntaus "esp8266" rau hauv kab ntawv tshawb nrhiav (saib duab ntawm sab laug). Rub tawm qhov hloov tshiab kawg ntawm thawj pob uas pom, "esp8266 los ntawm ESP8266 Zej Zog". Cov pob no txhawb nqa NodeMCU cov laug cam yog li nws yuav siv tau rau peb siv.
Tam sim no peb yuav tsum teeb tsa lub tsev qiv ntawv Blynk. Mus rau Cov Cuab Yeej> Tswj Cov Tsev Qiv Ntawv> thiab ntaus "Blynk" rau hauv kab ntawv tshawb fawb (saib daim duab ntawm sab xis). Rub tawm qhov hloov tshiab kawg ntawm lub tsev qiv ntawv hu ua "Blynk los ntawm Volodymyr Shymanskyy". Raws li koj tuaj yeem muaj peev xwm qhia tau, lub tsev qiv ntawv no yuav tso cai rau kev teeb tsa sib txuas ntawm Blynk app ntawm peb lub xov tooj thiab NodeMCU.
Kauj ruam 4: Kho Chaw
Peb yuav pib hloov pauv kev nyiam dua, tab sis lub sijhawm no rau peb pawg thawj coj. Peb ua qhov no rau ntau qhov laj thawj, qhov tseem ceeb tshaj plaws uas yog rau peb NodeMCU kom raug lees paub los ntawm IDE. Txhawm rau nkag mus rau cov chaw no, mus rau Cov Cuab Yeej, nqes mus thiab yuav muaj cov npe ntawm cov chaw teeb tsa thiab cov ntawv qhia zaub mov rau kev hloov kho kom ua.
- Teeb "Board:" rau "NodeMCU 1.0 (ESP-12E)", lossis "NodeMCU 0.9 (ESP-12)", tsis tas yuav hais, qhov no nyob ntawm NodeMCU koj muaj. Yog tias koj yuav NodeMCU txuas rau saum toj no, tom qab ntawd koj yuav tsum teeb tsa nws mus rau "NodeMCU 1.0 (ESP-12E)", yog tias tsis yog, kos nrog tus tsim khoom los txheeb xyuas nws.
- Teeb "CPU Zaus:" txog 80MHz. Peb teeb tsa lub moos nrawm rau 80MHz kom phim nrog peb lub rooj tsavxwm (lossis koj tuaj yeem teeb nws kom nrawm dua ob zaug nrog 160MHz).
- Teem "Upload Speed:" rau 115200.
- Teeb "Flash Loj:" rau 4MB (FS: 2MB OTA: ~ 1019 KB), lossis yog tias koj li IDE tsis yog qhov hloov tshiab kawg, teeb nws rau "4M: 3M SPIFFS".
Kauj Ruam 5: Siv Blynk App
Blynk App muaj nyob ntawm App Store thiab Google Play. Nruab nws, tsim ib tus as khauj (yog tias koj tsis tau ua li ntawd), thiab tsim ib qhov haujlwm tshiab (saib daim duab ntawm sab laug). Thaum koj tau tsim ib qhov haujlwm tshiab, nyem rau ntawm qhov chaw dotted, uas yuav coj koj mus rau tus widget lub thawv, thiab nyem rau ntawm lub pob. Nyem rau lub pob dua kom nkag tau nws cov khoom. Thaum koj tab tom saib Lub Vev Xaib Lub Vev Xaib (saib daim duab ntawm sab xis), hloov cov zis rau tus lej digital 8. Koj yuav pom tias qhov no yog tus pin tib yam uas LED siv, yog li qhov no yuav yog kev txuas ncaj qha.
Ib qho ntawm yam uas peb xav tau los ntawm Blynk yog tus lej cim tseeb. Cov cim no yog UID (tus cim tshwj xeeb) uas xav tau los txuas cov cuab yeej tshwj xeeb rau lub xov tooj. Koj tuaj yeem tau txais daim ntawv pov thawj no los ntawm txhaj rau lub cim ntsia liaj qhov rooj nyob rau sab xis saum toj ib sab ntawm lub pob ua si thiab nqes mus rau qhov chaw cim tus cim, qhov uas koj tuaj yeem xaiv kom nws xa email rau koj. Khaws daim ntawv pov thawj tseeb no, raws li peb yuav xav tau nws hauv qib tom ntej.
Kauj Ruam 6: Txoj Cai
Pib los ntawm kev ua piv txwv hauv Cov Ntawv> Piv Txwv> Blynk> Boards_WiFi> NodeMCU. Koj yuav tau ntsib nrog tus lej luv luv ntawm cov cai (saib duab). Qhov twg nws hais tias "char auth = ''" yog qhov uas koj yuav theej thiab muab koj daim ntawv pov thawj qhov tseeb uas peb tau txais hauv theem kawg. Raws li rau ssid thiab dhau, tsuas yog ntxig lub npe WiFi ntawm koj tus ROUTER (tsis txhob ua qhov qub uas kuv tau ua los ntawm kev txuas nws mus rau qhov txuas txuas ntxiv), thiab tus lej zais, feem. Nws yog! (zoo tsis yog tiag) Txhua yam koj yuav tsum paub, yog xa cov cai rau NodeMCU siv USB rau Micro-B xaim.
Kauj Ruam 7: Qhov Tshwj Xeeb
Hauv cov kauj ruam no kuv tham txog qhov tshwj xeeb, micro, thiab yuav taug koj txoj hauv kev uas nkag mus rau sab hauv. NodeMCU khiav ntawm ESP8266 firmware, uas txhais tau tias nws tuaj yeem txuas rau WiFi. ESP8266 firmware txuas mus rau WAP (nkag mus rau wireless) uas tuaj yeem tsim ua rau hauv router lossis modem. Tab sis txhawm rau txuas rau lub router, lossis ib tus password siv WAP, nws xav tau SSID (kev pabcuam teeb tsa tus cim) thiab tus password, ob qho uas peb muab hauv daim duab. Lub router ua raws li DHCP (Dynamic Host Configuration Protocol) thiab ib txwm tais cov IP chaw nyob rau cov khoom siv sib txuas uas xauj cov chaw nyob no rau teev sijhawm. Tus IP chaw nyob ua tus cim tshwj xeeb rau lub cuab yeej txuas los ntawm WiFi yog li lwm lub cuab yeej tuaj yeem lees paub nws. Tam sim no ESP8266 tuaj yeem yog Access Point (AP) hauv nws tus kheej yog li lwm lub chaw nres tsheb wireless tuaj yeem tshawb pom nws thiab txuas rau nws. Thaum cov duab kos tau siv los ntawm Blynk cov tsev qiv ntawv, NodeMCU (lossis ib qho ESP8266 raws li ntaus ntawv) pib tshawb rau Blynk server hauv huab. Thaum lub teeb liab no tau txais los ntawm Blynk huab neeg rau zaub mov, kev sib txuas tau teeb tsa thiab tus neeg rau zaub mov no tuaj yeem nkag mus tau los ntawm lub xov tooj smartphone app thiab tuaj yeem hais qhia rau koj txoj haujlwm hauv app siv qhov kev lees paub token. Hauv Blynk app, peb tau muab lub pob los tswj digital pin 8 ntawm NodeMCU. Thaum lub pob nyem, cov ntaub ntawv no tau xa mus rau Blynk huab server raws li '1', thiab mus rau MCU onboard uas ua tiav txoj haujlwm xa hluav taws xob siab (3.3V) rau tus pin 8, uas tig rau ntawm LED.
Pom zoo:
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: 6 Kauj Ruam
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: Cov lus qhia no piav qhia yuav ua li cas thiaj tsim tau Arduino Robot uas tuaj yeem txav mus raws qhov xav tau (Forward, Backward) , Sab laug, Txoj Cai, Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) xav tau Kev nrug deb hauv Centimeters siv lub suab hais kom ua. Neeg hlau kuj tseem tuaj yeem txav tau tus kheej
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
Tswj Arduino Uno Siv ESP8266 WiFi Module thiab Blynk App: 6 Cov Kauj Ruam
Tswj Arduino Uno Siv ESP8266 WiFi Module thiab Blynk App: Txoj haujlwm no tso cai rau koj los tswj Arduino pins siv ESP8266-01 WiFi module thiab Blynk App. Blynk App siv tau yooj yim heev thiab yog txoj hauv kev zoo los pib kawm txog IoT Cov lus qhia no yog rau Windows PC
Tswj Cov Khoom Siv Hauv Tsev Siv NodeMCU (ESP8266) thiab Blynk App: 8 Kauj Ruam (nrog Duab)
Tswj Cov Khoom Siv Hauv Tsev Siv NodeMCU (ESP8266) thiab Blynk App: Hauv qhov kev qhia no, peb yuav kawm paub siv Blynk app thiab NodeMCU (ESP8266) txhawm rau tswj teeb (lwm yam khoom siv hauv tsev yuav zoo xwb), kev sib koom ua ke yuav ua hauv internet. Lub hom phiaj ntawm cov lus qhia no yog los qhia qhov yooj yim
Kev tswj hwm RC Servo Tsav Nrog Arduino thiab Ob Lub Sijhawm Hloov: 4 Cov Kauj Ruam
Kev tswj hwm RC Servo Motor Nrog Arduino thiab Ob Lub Sijhawm Hloov: Lub npe hais nws txhua. Kev tswj hwm lub tsheb RC servo motor nrog Arduino thiab qee qhov tiv thaiv, cov xov hluav taws xob, thiab ob txoj kev hloov pauv. Kuv ua qhov no hnub thib ob kuv tau txais kuv Arduino, yog li kuv zoo siab rau kuv tus kheej