Cov txheej txheem:
- Kauj Ruam 1: Txuas Koj NodeMCU rau Lub Khoos Phis Tawj
- Kauj ruam 2: Nruab COM/Serial Port Driver
- Kauj Ruam 3: Nruab Arduino IDE 1.6.4 lossis Loj dua
- Kauj Ruam 4: Nruab ESP8266 Pawg Tswj Xyuas Pob
- Kauj Ruam 5: Teeb ESP8266 Txhawb
Video: Yuav Ua Li Cas Program NodeMCU ntawm Arduino IDE: 5 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Osoyoo NodeMCU tau npaj ua ntej nrog Lua txhais lus, tab sis koj tsis tas yuav siv nws! Hloov chaw, koj tuaj yeem siv Arduino IDE uas yuav yog qhov pib zoo rau Arduino cov neeg nyiam kom paub lawv tus kheej nrog cov thev naus laus zis nyob ib puag ncig IoT. Nco tseg tias thaum koj siv NodeMCU pawg thawj coj nrog Arduino IDE, nws yuav sau ncaj qha rau lub khoos phis tawj, tshem tawm. Yog tias koj xav rov qab mus rau Lua SDK, siv "flasher" rov nruab lub firmware.
NodeMCU cov phiaj xwm tuaj yeem yooj yim ib yam li hauv Arduino, qhov sib txawv tseem ceeb yog kev faib cov pins hauv pawg nodemcu.
Kauj Ruam 1: Txuas Koj NodeMCU rau Lub Khoos Phis Tawj
Siv lub USB txuas los txuas koj NodeMCU rau lub khoos phis tawj, koj yuav pom xiav onboard LED flicker thaum lub zog qhib, tab sis lawv yuav tsis nyob twj ywm.
Kauj ruam 2: Nruab COM/Serial Port Driver
Txhawm rau rub cov lej rau ESP8266 thiab siv cov khoom siv txuas, txuas ib qho ntaub ntawv muaj peev xwm micro USB cable rau ESP8266 IOT Board thiab lwm sab rau koj lub computer USB chaw nres nkoj.
Tus tshiab version NodeMCUv1.0 los nrog CP2102 cov lej txuas, koj tuaj yeem rub tawm thiab teeb tsa tus tsav tsheb los ntawm: https://www.silabs.com/products/development-tools/…. NodeMCUv0.9 los nrog CH340 cov lej txuas, koj tuaj yeem rub tawm thiab teeb tsa tus tsav tsheb los ntawm: https://github.com/nodemcu/nodemcu-devkit/tree/mas …
Kauj Ruam 3: Nruab Arduino IDE 1.6.4 lossis Loj dua
Rub tawm Arduino IDE los ntawm Arduino.cc (1.6.4 lossis ntau dua) - tsis txhob siv 1.6.2! Koj tuaj yeem siv koj li IDE uas twb muaj lawm yog tias koj twb tau teeb tsa nws lawm. Koj tseem tuaj yeem sim rub tawm pob-npaj-mus-mus los ntawm ESP8266-Arduino qhov haujlwm, yog tus neeg sawv cev muab cov teeb meem rau koj
Kauj Ruam 4: Nruab ESP8266 Pawg Tswj Xyuas Pob
Nkag mus https://arduino.esp8266.com/stable/package_esp8266… mus rau Tus Thawj Saib Xyuas Haujlwm Ntxiv URLs hauv Arduino v1.6.4+ nyiam (Qhib Arduino IDE–> File–> Perferences–> Settings). Nkag mus rau qhov txuas thiab nyem "OK" kom txuag koj qhov kev hloov pauv. Tom ntej no, siv Tus Thawj Saib Xyuas Haujlwm los teeb tsa ESP8266 pob Sau Tus Thawj Saib Xyuas Haujlwm thiab nrhiav pawg thawj coj raws li hauv qab no: Scroll Broads Tus Thawj Coj tshuaj ntsuam nqis rau hauv qab, koj yuav pom Ib qho qauv hu ua "esp8266 los ntawm esp8266 Community" (saib daim duab hauv qab no), xaiv qhov tseeb version thiab nyem "Install". Pob ESP8266 tau teeb tsa ua tiav. Nco tseg: Koj yuav zoo dua kaw Arduino IDE thiab rov pib dua.
Kauj Ruam 5: Teeb ESP8266 Txhawb
Thaum koj tau rov pib dua, xaiv NodeMCU 0.9 (lossis NodeMCU 1.0) los ntawm Cov Cuab Yeej-> Pawg thawj coj teeb tsa Kho cov ntawv qhia zaub mov thiab xaiv txoj cai chaw nres nkoj rau koj lub cuab yeej. CPU Zaus : 80MHz, Flash Loj : 4M (3M SPIFFS Upload, Upload Speed : 115200 Tam sim no tsuas yog ua raws li Arduino: Pib koj daim duab kos! Nco tseg: 115200 baud upload nrawm yog qhov chaw zoo pib - tom qab ntawd koj tuaj yeem sim nrawm dua tab sis 115200 yog qhov chaw nyab xeeb zoo rau pib.
Pom zoo:
Yuav Ua Li Cas Tsim .hex Cov Ntaub Ntawv Los Ntawm Arduino IDE, Simulate Arduino ntawm Proteus: 3 Kauj Ruam
Yuav Tsim Li Cas.hex Cov Ntaub Ntawv Los Ntawm Arduino IDE, Simulate Arduino ntawm Proteus: Kuv vam tias cov lus qhia no yuav pab koj qee txoj hauv kev rau koj cov proteus+arduino kev kawm
YUAV UA LI CAS YUAV UA LI CAS YUAV TSUM ROBOT COOB SCARECROW: 16 Cov Kauj Ruam (nrog Duab)
YUAV UA LI CAS YUAV TSUM NYOB ROBOT COW SCARECROW: Kuv nyuam qhuav tsim Moo-Bot, tus neeg hlau nyuj scarecrow dhia hla lub hli, rau kev sib tw hauv zej zog scarecrow.Kuv kev tshoov siab yog los ntawm kuv tus tub hu nkauj "hey diddle diddle, miv thiab fiddle. .. " Txoj haujlwm zoo heev los ua haujlwm nrog kuv
Yuav Ua Li Cas Sau Cov Ntaub Ntawv Los ntawm Firebase Database ntawm NodeMCU: 7 Cov Kauj Ruam
Yuav Ua Li Cas Sau Cov Ntaub Ntawv Los ntawm Firebase Database ntawm NodeMCU: Rau qhov kev qhia no, peb yuav khaws cov ntaub ntawv los ntawm cov ntaub ntawv hauv Google Firebase thiab nqa nws siv NodeMCU rau kev txheeb xyuas ntxiv. account rau tsim Firebase database.3) Rub tawm
Yuav Ua Li Cas Tau Txais Cov Nkauj Los Ntawm Txhua Qhov (Haha) Lub Vev Xaib (Ntev Li Koj Tau hnov Nws Koj Yuav Tau Txais Nws Ok Zoo Yog Nws Tau Ntxig Hauv Flash Koj Yuav Tsis Muaj Peev Xwm) EDITED !!!!! Ntxiv Info: 4 Cov Kauj Ruam
Yuav Ua Li Cas Tau Txais Cov Nkauj Los Ntawm Txhua Qhov (Haha) Lub Vev Xaib (Ntev Li Koj Tau hnov Nws Koj Yuav Tau Txais Nws … Ok Zoo Yog Nws Tau Ntxig Hauv Flash Koj Yuav Tsis Muaj Peev Xwm) EDITED !!!!! Ntxiv Cov Lus Qhia: yog tias koj tau mus rau lub vev xaib thiab nws ua nkauj nkauj uas koj nyiam thiab xav tau nws ntawm no yog cov lus qhia rau koj tsis yog kuv qhov txhaum yog tias koj cuam tshuam qee yam (tsuas yog txoj hauv kev nws yuav tshwm sim yog tias koj pib tshem cov khoom yam tsis muaj laj thawj. ) Kuv tuaj yeem tau txais cov nkauj rau
Yuav Ua Li Cas Ntxiv Cov Neeg Siv Los Ntawm NUMA rau Koj Luam Ntawm N Siv NumADD Firefox Ntxiv Rau: 4 Cov Kauj Ruam
Yuav Ua Li Cas Ntxiv Cov Neeg Siv Los Ntawm NUMA rau Koj Luam Ntawm N Siv NumADD Firefox Ntxiv Ntxiv: Txhua tus siv ntawm Metanet's N tus neeg siv qib database NUMA yuav paub tias qhov cuam tshuam ntawm qhov cuam tshuam yog rau theej tus neeg siv tsim qib rau koj daim ntawv theej ntawm game. NumADD, tshem tawm qhov xav tau rau kev theej thiab muab tshuaj txhuam thiab ua kom hloov pauv qib ua haujlwm ntawm ib tus nas