Setting Up Node MCU

NodeMCU is an inexpensive WiFi board based on esp8266. We can write lua scripts to run on NodeMCU. Setting up is very easy, we just need two tools, One is firmware updater (Flaser) and the IDE to write the lua scripts.

You can find the tools here. These IDE uses .NET, I faced some problems with it on XP. There is one JAVA IDE available here.You need to grab a latest version of the image for the nodeMCU. before doing any thing I would recommend you to update your firmware. You can grab the latest release here (The firmware is no more released in binaries).this cloud service will help you generate a custom build. You need a flasher tool as well

Updating the firmware:

NodeMCU FirmWare Update
NodeMCU FirmWare Update

Check the COM port and Click on settings button to select the firmware. Click on Flash button to load the firmware.

FirmWare Update success dialog.
FirmWare Update success dialog.

If the firmware is updated successfully, then you should get a green tick as shown above. Now we will run a simple Hello World program.

Now open the “Node MCU Studio”. Select the COM port,and click on connect to connect to the module.Open a new file and type the following


print("Hello World")

Save the file as test.lua,then click on download button. The file will be wrriten to the module. If you click on RUN button, it will show all the available files in the module. Select test.lua, your message will be displaced in the console.

 

Node MCU Studio
NodeMCUStudio

 

 

3 Comments

Add a Comment

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