Esplorer 6
Author: f | 2025-04-24
ESPlorer - Integrated Development Environment (IDE) for ESP8266 - macalencar/esplorer
ESPlorer/ at master 4refr0nt/ESPlorer - GitHub
The browser etc.) so if you find the same click the Settingstab and uncheck the following check button - so that "Dumb Mode" isunchecked as below. This slows down communication but checks the datasent so that it is reliably transmitted.In another session I did not need to do it so experiment with this.Some Esplorer and Lua commandsListing the files loaded with EsplorerIf you click the commands tab and then hit the button labelled 'List files' you'll get a list of files similar to the following.> _dir=function() local k,----------------------------init.lua : 30 bytes----------------------------Total file(s) : 1Total size : 30 bytesTotal : 3441461 bytesUsed : 7781 bytesRemain: 3433680 bytesRemoving a file from the file systemNow remove the file using a lua command:file.remove("init.lua")Enter the command into the bottom right box, then click 'Send'.Now you will see it has been removed (Use commands tab, 'list Files' button)----------------------------No files found.---------------------------->Total : 3441461 bytesUsed : 7279 bytesRemain: 3434182 bytesHow to reset the NodeMCUYou can either reset the nodeMCU using the board reset button or hitthe RTS button in the right hand pane twice. or in the command tab clickRestart ESP.I find the RTS button to be the most convenient.The RTS wire is an RS232 control (meaning Request To Send) andwas originally used to signal to a device that the controller wanted tosend some data. Here it is repurposed as a ESP reset signal.Bottom Left ESPlorer controlsThe four bottom left ESPlorer controls let you:1. Save to ESP Upload the currently opened file i.e. the visible one in the text window This also saves the file to the PC and to the ESP module and then runs it.2. Send to ESP3. Run Executes the currently opened file.4. Upload Upload a bunch of files (useful for largeprojects). Select multiple files and they get uploaded one afteranother.What's NextNEXT: Now you have installed the ESPlorer software its time to make the nodeMCU do some useful stuff. On this page you will find out how tostart using the Lua scripting language. It starts off with a simple LEDblink, progressing to complex code e.g. how to serve a page from the ESP8266 to yourlocal network.CLICK HERE for Lua Examples>>>Privacy Policy| Contact| About MeSite Map| Terms of Use ESPlorer - Integrated Development Environment (IDE) for ESP8266 - macalencar/esplorer HomeArduino IOTESPLorerInstalling and using ESPlorer and LuaESPlorer is a tool that uploads your LUA scripts to an ESP module thathas been flashed with LUA. At themoment you can only use ESP8266 based boards but ESP32 is in progress(or use a dev build for that). You can also use it for microPython, ATcommands and RN2483.TIP: You will need java installed on your PC to run this program.This page shows you how to install the program and connect it to an ESPmodule. It then gives you a fewexample scripts - including a simple web page server - to show you what you can do with lua.Note: The advantage of Lua is that it is immediately loaded - youdon't compile for a minute and then wait for an upload for a minute. Thedisadvantage is that it is a new language to learn. However this pageshows you some of its usage.ESPlorer TutorialEsplorer DownloadDownload the zip file from here.Download the zip file and unzip on your PC then double click on theESPlorer.bat file. You may have to wait a short time while some librariesare downloaded and installed. Then you will see the main ESPlorerinterface:Main Esplorer interfaceThere are two panels - the left one is for script editing and upload -the right one is for serial communications with the ESP module.The first thing you need to do is select the COM port in use by the EPS8266 (top right drop down box). The baud rate will be:9600 Baud for older nodeMCU installs (typically what you get when a module has been bought online).115200 Baud for newer flash installs.You can flash new nodeMCU files here.Note: With a newer flash version of nodeMCU you can take advantage ofnew features such as a more Object Oriented methods e.g. timer usage.After setting the baud rate just hit the 'Open' button to connect to the board. You should see thefollowing:Esplorer Startup ScreenNow hit the reset hit the reset button on the board or click the RTSbutton (twice to hold it active, then inactive) as this is connected thereset pin (on nodeMCU boards). You should see:Esplorer Startup with nodeMCU firmwareIf you are using a newer flashed nodeMCU you will see something like this:Note: Don't worry about the gibberish charactersthat preceed each reset - these are just status data at adifferent baud rate (74880 Baud).How to Upload a Simple Lua Program using ESPlorerThe following instructions show you how to add a file to the ESp8266by enetering text into ESPlorer and uploading it to the file systeminside the ESP8266.Enter the following text on two lines in the left panel of ESPlorer.print("Hello")print("World")Click the save as button (or use File > Save as) and save as "init.lua"In the lower part of the screen click "Save to ESP". Now click Runand you should see the following in the Serial terminal window.> dofile('init.lua')HelloWorld>You can also see the same output when the reset button is pressed as the file init.lua is run at start up.Improve ESPlorer upload reliabilityI found that the communication was unreliable (probably too many tabsopen inComments
The browser etc.) so if you find the same click the Settingstab and uncheck the following check button - so that "Dumb Mode" isunchecked as below. This slows down communication but checks the datasent so that it is reliably transmitted.In another session I did not need to do it so experiment with this.Some Esplorer and Lua commandsListing the files loaded with EsplorerIf you click the commands tab and then hit the button labelled 'List files' you'll get a list of files similar to the following.> _dir=function() local k,----------------------------init.lua : 30 bytes----------------------------Total file(s) : 1Total size : 30 bytesTotal : 3441461 bytesUsed : 7781 bytesRemain: 3433680 bytesRemoving a file from the file systemNow remove the file using a lua command:file.remove("init.lua")Enter the command into the bottom right box, then click 'Send'.Now you will see it has been removed (Use commands tab, 'list Files' button)----------------------------No files found.---------------------------->Total : 3441461 bytesUsed : 7279 bytesRemain: 3434182 bytesHow to reset the NodeMCUYou can either reset the nodeMCU using the board reset button or hitthe RTS button in the right hand pane twice. or in the command tab clickRestart ESP.I find the RTS button to be the most convenient.The RTS wire is an RS232 control (meaning Request To Send) andwas originally used to signal to a device that the controller wanted tosend some data. Here it is repurposed as a ESP reset signal.Bottom Left ESPlorer controlsThe four bottom left ESPlorer controls let you:1. Save to ESP Upload the currently opened file i.e. the visible one in the text window This also saves the file to the PC and to the ESP module and then runs it.2. Send to ESP3. Run Executes the currently opened file.4. Upload Upload a bunch of files (useful for largeprojects). Select multiple files and they get uploaded one afteranother.What's NextNEXT: Now you have installed the ESPlorer software its time to make the nodeMCU do some useful stuff. On this page you will find out how tostart using the Lua scripting language. It starts off with a simple LEDblink, progressing to complex code e.g. how to serve a page from the ESP8266 to yourlocal network.CLICK HERE for Lua Examples>>>Privacy Policy| Contact| About MeSite Map| Terms of Use
2025-03-30HomeArduino IOTESPLorerInstalling and using ESPlorer and LuaESPlorer is a tool that uploads your LUA scripts to an ESP module thathas been flashed with LUA. At themoment you can only use ESP8266 based boards but ESP32 is in progress(or use a dev build for that). You can also use it for microPython, ATcommands and RN2483.TIP: You will need java installed on your PC to run this program.This page shows you how to install the program and connect it to an ESPmodule. It then gives you a fewexample scripts - including a simple web page server - to show you what you can do with lua.Note: The advantage of Lua is that it is immediately loaded - youdon't compile for a minute and then wait for an upload for a minute. Thedisadvantage is that it is a new language to learn. However this pageshows you some of its usage.ESPlorer TutorialEsplorer DownloadDownload the zip file from here.Download the zip file and unzip on your PC then double click on theESPlorer.bat file. You may have to wait a short time while some librariesare downloaded and installed. Then you will see the main ESPlorerinterface:Main Esplorer interfaceThere are two panels - the left one is for script editing and upload -the right one is for serial communications with the ESP module.The first thing you need to do is select the COM port in use by the EPS8266 (top right drop down box). The baud rate will be:9600 Baud for older nodeMCU installs (typically what you get when a module has been bought online).115200 Baud for newer flash installs.You can flash new nodeMCU files here.Note: With a newer flash version of nodeMCU you can take advantage ofnew features such as a more Object Oriented methods e.g. timer usage.After setting the baud rate just hit the 'Open' button to connect to the board. You should see thefollowing:Esplorer Startup ScreenNow hit the reset hit the reset button on the board or click the RTSbutton (twice to hold it active, then inactive) as this is connected thereset pin (on nodeMCU boards). You should see:Esplorer Startup with nodeMCU firmwareIf you are using a newer flashed nodeMCU you will see something like this:Note: Don't worry about the gibberish charactersthat preceed each reset - these are just status data at adifferent baud rate (74880 Baud).How to Upload a Simple Lua Program using ESPlorerThe following instructions show you how to add a file to the ESp8266by enetering text into ESPlorer and uploading it to the file systeminside the ESP8266.Enter the following text on two lines in the left panel of ESPlorer.print("Hello")print("World")Click the save as button (or use File > Save as) and save as "init.lua"In the lower part of the screen click "Save to ESP". Now click Runand you should see the following in the Serial terminal window.> dofile('init.lua')HelloWorld>You can also see the same output when the reset button is pressed as the file init.lua is run at start up.Improve ESPlorer upload reliabilityI found that the communication was unreliable (probably too many tabsopen in
2025-04-03With echouart.setup(0, 9600, 8, uart.PARITY_NONE, uart.STOPBITS_1, 1)uart.on()This function sets the callback function to handle UART events. Currently only the "data" event is supported.Note: Due to limitations of the ESP8266, only UART 0 is capable of receiving data.Syntax: uart.on(method, [number/end_char], [function], [run_input])Parameters:method: "data", data is to be received on the UARTnumber/end_char: number is used to set how many data bytes to receive. end_char is any character that will be used as the end of data.function: This is a callback function, which triggers whenever data is received completely according to the way defined in number/end_char. It has data as an input argument to process with.e.g. function(data) print(“Received data:”, data) endrun_input: 0 or 1. If 0, input from UART will not go into the Lua interpreter. It can accept binary data. If 1, input from UART will go into Lua interpreter and run.To unregister the callback, provide only the "data" parameter. i.e. uart.on(“data”)Returns: nulluart.alt()This function is used to change the UART pin assignment.Syntax: uart.alt(on)Parameters:On: 0 for standard pins i.e. GPIO3 & GPIO1 and 1 to use alternate pins i.e. GPIO13 & GPIO15.Returns: nulluart.getconfig()This function is used to return the current configuration parameters of the UART.Syntax: uart.getconfig(id)Parameters:id: UART id (0 or 1).Returns: It return four values as follows:baud: one of the following :300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 74880, 115200, 230400, 256000, 460800, 921600, 1843200, 3686400databits: one of the following : 5, 6, 7, 8parity: one of the following :uart.PARITY_NONE, uart.PARITY_ODD, or uart.PARITY_EVENstopbits: one of the following :uart.STOPBITS_1, uart.STOPBITS_1_5, or uart.STOPBITS_2uart.write()This function writes string or byte to the UART.Syntax: uart.write(id, data1 [, data2, ...])Parameters:id: UART id (0 or 1).data1, data2, ...: string or byte to sent via UARTReturns: nullExample:uart.write(0, "Hello, world\n")ExampleLet’s write a Lua Script for UART serial communication between two NodeMCUs.Here transmitter NodeMCU will send a string from UART1 transmit pin i.e. TXD1. Receiver NodeMCU will receive it and print on the serial monitor window.Lua script for NodeMCU Transmitteruart.setup(1, 115200, 8, uart.PARITY_NONE, uart.STOPBITS_1, 1)-- setup UART1 i.e. pin GPIO2while true do --send string per second continuously uart.write(1, "Hello friend\n") tmr.delay(1000000)endLua script for NodeMCU Receiver—callback on receiver datauart.on("data","\n",function(data) print("receive from uart:", data) end, 0)Output WindowBelow is ESPlorer serial monitor output window at the receiver end. Receiver NodeMCU will print received data on the ESPlorer output window as shown in the below figure. Components Used NodeMCUNodeMCUNodeMCU X 1 ESP12FESP12E X 1 Downloads ESP8266 Datasheet Download Lua Script for NodeMCU UART Download
2025-04-21