Cov txheej txheem:

Yuav Ua Li Cas Program NodeMCU ntawm Arduino IDE: 5 Cov Kauj Ruam
Yuav Ua Li Cas Program NodeMCU ntawm Arduino IDE: 5 Cov Kauj Ruam

Video: Yuav Ua Li Cas Program NodeMCU ntawm Arduino IDE: 5 Cov Kauj Ruam

Video: Yuav Ua Li Cas Program NodeMCU ntawm Arduino IDE: 5 Cov Kauj Ruam
Video: Использование комплекта Wi-Fi Heltec ESP32 OLED 2024, Hlis ntuj nqeg
Anonim
Image
Image

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

Nruab ESP8266 Pawg Tswj Xyuas Pob
Nruab ESP8266 Pawg Tswj Xyuas Pob
Nruab ESP8266 Pawg Tswj Xyuas Pob
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

Teeb ESP8266 Kev them nyiaj yug
Teeb ESP8266 Kev them nyiaj yug
Teeb ESP8266 Kev them nyiaj yug
Teeb ESP8266 Kev them nyiaj yug

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: