/espruino-workshop

Espruino workshop guide and code samples.

espruino-workshop

Espruino workshop guide and code samples.

Welcome!

In this workshop you'll learn how to start playing with NodeMCU v1.0 and Espruino.

Take a look at the presentation slides for a general reference about NodeMCU and Espruino.

Install Espruino Web IDE

The easiest way to write programs into your NodeMCU with Espruino is using Espruino Web IDE. You can download it from the Chrome Web Store.

Check device connection

Open Espruino Web IDE and click on the connect button:

It will display a list of devices.

Take a look at the list and close it.

Connect your NodeMCU to your computer using the USB cable.

Open the devices list once again and check if new devices are shown.

If new devices are shown then you already can communicate with your NodeMCU, yay!

In case no new devices where shown, follow the next step to install the needed drivers.

Install drivers

If your computer can't already communicate with the NodeMCU it will need drivers to be able to do it.

Download drivers from: http://www.ftdichip.com/Drivers/VCP.htm

For OSX we made it work with this drivers:

https://www.silabs.com/documents/public/software/Mac_OSX_VCP_Driver.zip

On OSX you can also try installing with cask:

brew cask install silicon-labs-vcp-driver

After installing you might need to reboot your computer, but you can try first ;)

Flashing Espruino

In this step we're going to write the Espruino firmware into the NodeMCU microcontroller.

Download FlasherJS.

Using the frist dropdown select the correct device where your NodeMCU is located.

Click the Flash! button to starting flashing!

Normally the latest version of Espruino available to FlasherJS will be selected by default on the second dropdown.

Connecting to Espruino

Open Espruino Web IDE and list your available devices.

Select the TTY port where your NodeMCU is located.

If everything worked OK the connection button will change to indicate you're already connected to the NodeMCU and you'll see a cursor on the code editor on the left pane.

Check if it works

If you can write on the console and you get output, then everything is working!

Try something like:

Keep hacking!

Now you're ready to try running the examples on this repo.

From there I recommend you to visit the Espruino modules list to get some ideas to create new things.

Enjoy!