Cov txheej txheem:

Blink LED Siv ESP8266 NodeMCU Lua WiFi Qhia: 6 Kauj Ruam
Blink LED Siv ESP8266 NodeMCU Lua WiFi Qhia: 6 Kauj Ruam

Video: Blink LED Siv ESP8266 NodeMCU Lua WiFi Qhia: 6 Kauj Ruam

Video: Blink LED Siv ESP8266 NodeMCU Lua WiFi Qhia: 6 Kauj Ruam
Video: Arduino | LoLin NodeMCU V3 ESP8266 with Arduino | Getting Started | Control the LED 2024, Kaum ib hlis
Anonim
Blink LED Siv ESP8266 NodeMCU Lua WiFi Tutorial
Blink LED Siv ESP8266 NodeMCU Lua WiFi Tutorial

Piav qhia

NodeMCU yog qhov qhib IoT platform. Nws suav nrog cov software uas khiav ntawm ESP8266 WiFi SoC los ntawm Espressif, thiab kho vajtse uas yog raws ESP-12 module. Lub sij hawm "NodeMcu" los ntawm lub neej ntawd hais txog cov yeeb yaj kiab ntau dua li cov khoom siv dev. Firware ESP8266 siv Lua cov ntawv sau ua lus. Nws yog ua raws txoj haujlwm eLua, thiab ua rau Espressif Tsis-OS SDK rau ESP8266. Nws siv ntau qhov haujlwm qhib, xws li lua-cjson thiab spiff. LUA raws kev sib tham sib firmware rau Expressif ESP8622 Wi-Fi SoC, ntxiv rau qhib qhov khoom siv kho vajtse uas tsis sib xws rau $ 3 ESP8266 Wi-Fi modules suav nrog CP2102 TTL rau USB nti rau kev ua haujlwm thiab debugging, yog breadboard-phooj ywg, thiab tuaj yeem yooj yim yuav tsum tau siv nws lub micro USB chaw nres nkoj.

NTA

  • Wi-Fi Module-ESP-12E module zoo ib yam li ESP-12 module tab sis nrog 6 GPIOs ntxiv.
  • USB - micro USB chaw nres nkoj rau lub zog, lub cajmeem thiab debugging
  • Headers-2x 2.54mm 15-pin header nrog nkag mus rau GPIOs, SPI, UART, ADC, thiab lub zog pinsMisc-Pib dua thiab nyem khawm
  • Lub zog - 5V ntawm micro USB chaw nres nkoj
  • Qhov ntev - 49 x 24.5 x 13mm

Kauj Ruam 1: Kev Npaj Khoom

Ua ntej koj yuav pib, npaj txhua yam khoom xav tau:

  1. Cov qhob cij
  2. ESP8266 NodeMCU Lua Wifi
  3. LED
  4. Jumper (yog xav tau)
  5. micro USB

Kauj ruam 2: Tus Pin Txuas

Tus Pin Txuas
Tus Pin Txuas

Nov yog ib qho ntawm qhov yooj yim tshaj plaws kev sib txuas thiab haum rau tus pib. Dab tsi koj xav tau yog txhawm rau txuas LED's anode rau ESP8266's D7 tus pin thiab LED's cathode rau ESP8266 GND.

Kauj Ruam 3: Qauv Qauv Cai

Rub tawm cov qauv piv txwv no thiab muab tso rau hauv koj li Arduino IDE

Kauj ruam 4: Uploading

Thaum koj ua tiav kev tsim koj txoj kev sib txuas ntawm lub rooj noj mov thiab sau coding, koj yuav tsum tso cov lej nkag rau hauv ESP8266 los ntawm kev siv lub micro USB. Ua ntej xa cov lej, koj yuav tsum nruab esp8266 rau hauv koj li Arduino IDE, koj tuaj yeem tshawb xyuas ntawm no.

Kauj Ruam 5: Teeb LED

Tsaus muag LED
Tsaus muag LED
Tsaus muag LED
Tsaus muag LED

Tam sim no, koj tuaj yeem pom koj cov LED ua tiav ntsais muag

Pom zoo: