14Core-ESP-Explorer-for-IOT2

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

 

14COre-Schematics-ESP-Chip-Programming

Coding Your fist LUA Script a blinking an LED

Burning your code into the chip

14COre-Schematics-ESP-Chip-Programming2

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

14COre-Schematics-ESP-Chip-Programming3

 

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

14COre-Schematics-ESP-Chip-Programming4

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

14COre-Schematics-ESP-Chip-Programming6

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.

14COre-Schematics-ESP-Chip-Programming7

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.

14COre-Schematics-ESP-Chip-Programming8

Download the source code here |  ESPXX LED CODE LUA SCRIPT

Download ESPlorer IDE | Download

LUA Programming Using ESPlorer IDE Tutorial Guide
Facebooktwitterredditpinterestmail

JLCPCBPCBgogoPCBway4pcb

5 thoughts on “LUA Programming Using ESPlorer IDE Tutorial Guide

  • at
    Permalink

    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.

    Reply
  • at
    Permalink

    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 ?
    regards

    Reply
  • at
    Permalink

    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 .

    Reply
  • at
    Permalink

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

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

Leave a Reply

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