Introduction: Blink LED Using ESP8266 NodeMCU Lua WiFi Tutorial
NodeMCU is an open source IoT platform. It includes firmware which runs on the ESP8266 WiFi SoC from Espressif, and hardware which is based on the ESP-12 module. The term "NodeMcu" by default refers to the filmware rather than the dev kits. The firware ESP8266 uses the Lua scripting language. It is based on the eLua project, and built on the Espressif Non-OS SDK for ESP8266. It uses many open source projects, such as lua-cjson and spiffs. LUA based interactive firmware for Expressif ESP8622 Wi-Fi SoC, as well as an open source hardware board that contrary to the $3 ESP8266 Wi-Fi modules includes a CP2102 TTL to USB chip for programming and debugging, is breadboard-friendly, and can simply be powered via its micro USB port.
Wi-Fi Module – ESP-12E module similar to ESP-12 module but with 6 extra GPIOs.
USB – micro USB port for power, programming and debugging
Headers – 2x 2.54mm 15-pin header with access to GPIOs, SPI, UART, ADC, and power pinsMisc – Reset and Flash buttons
Power – 5V via micro USB port
Dimensions – 49 x 24.5 x 13mm
Step 1: Material Preparation
Before you are getting started, prepare all the item needed:
- ESP8266 NodeMCU Lua Wifi
- Jumper (if needed)
- micro USB
Step 2: Pin Connection
This is one of the most simple connection and suitable for a beginner. What u need is to connect LED's anode to ESP8266's GND pin and LED's cathode to ESP8266 D1.
Step 3: Sample Source Code
Download this sample source code and compile it in your Arduino IDE
Step 4: Uploading
When u have succesfully building your connection on breadboard and write coding, you have to upload the coding into the ESP8266 by using a micro USB. Before uploading the coding, you have to install esp8266 into your Arduino IDE, you can check here.
Step 5: Blinking the LED
Now, you can see your LED succesfully blinking