To upload a code to ESP8266, you should connect your ESP8266 to your FTDI USB Programmer: as the image illustration below.



Coding Your fist LUA Script a blinking an LED

Burning your code into the chip


ESP8266 + FTDI Programmer connected to your computer, go to the ESPlorer IDE:

At the top right cornet of ESPlorer IDE follow the steps below:

  1. Click the Refresh button
  2. Select the COM(Communication) port for your FTDI programmer
  3. choose your baud rate (Commonly used 9600)
  4. Click Open



  1. Select NodeMCU
  2. Open a Scripts
  3. Create a new filled called [“14core-testcode.lua”]


Copy your Lua script (which you created in the previous section) to the IDE code section.


Save your code to your ESP8266 at the left bottom corner [ Save to ESP] in the output window you should see exactly command are being sent to ESP8266.


Note: If your want to delete your code, you can simply type file.remove (“14core-testcode.lua”) and press the button [SEND]. or you can type the command file.format() to delete all the files save in ESP8266 Chip.

If your done burning your code to ESP8266 you can now unplug ESP8266 board from your computer then you supply a 3.3v to the ESP8266 board itself as the schematics below.


Download the source code here |  ESPXX LED CODE LUA SCRIPT

Download ESPlorer IDE | Download

LUA Programming Using ESPlorer IDE Tutorial Guide

5 thoughts on “LUA Programming Using ESPlorer IDE Tutorial Guide

  • at

    I’m getting an error while doing this process.
    Green button IDLE turns to busy. And can’t detect the frimware, timeout.
    what is solution for this.

  • at

    I have pressed Refresh so many times but COM port does not appear !!
    when typing ls /dev/tty* in terminal it comes out
    could anyone give an explanation ?

  • at

    why is there two two view on esp buttons and why are there two save and compile buttons?????? also what is the diff between upload and save and send to buttons,realy confusing .

  • at

    this is wrong !! connect gpio0 to ground not vcc to enable flashing !

  • Pingback:برنامه نویسیESP8266با ESPlorer به زبان LUA - میکرو کنترلر | پروژه های میکرو و اندروید

Leave a Reply to Hamdy Fouad Cancel reply

Your email address will not be published. Required fields are marked *