Get Ready For Espruino

Before our second class, let’s take a few minutes to get your computer ready for Espruino, so everyone can practice with it right away in the class.

Step 1. install driver

The Board you got in the first class is using cp2102 as the USB-serial bridge. Usually your computer don’t come with its driver. So first you need to install the driver to recognize the hardware.

If you are using Mac, use this driver: http://www.silabs.com/Support%20Documents/Software/Mac_OSX_VCP_Driver.zip

If you are using Windows, use this driver: http://www.silabs.com/Support%20Documents/Software/CP210x_Windows_Drivers.zip

If you met difficulty, you may also refer to this page for more info about driver. https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers

Step 2. install Espruino IDE

First you need to install Chrome if you don’t have it yet: https://www.google.com/chrome/browser/desktop/index.html

Then go to chrome web store, and search for “Espruino”:

*If you can not find it, you may check this link direct to espruino  http://bit.ly/2ojgtBl

Click “Add to chrome” and install it, you should see it in app list.

Open Espruino IDE, you’ll see the interface:

Click the gear icon on the top right corner, choose communication tab, change baud rate to 115200. Then close setting window.

Now plug in your board with a micro USB cable. Click plug icon on the top left corner, and choose “/dev/cu.SLAB_USBtoUART

It should say “Connected

In console on left side, type “reset();” and press enter. This will reset board without loading saved program. You should notice a welcome message, and also the LED on board stopped blinking.

Now type “digitalWrite(NodeMCU.D4,false);” and press enter. You should see a Blue LED is turned ON. The onboard Blue LED’s cathode (negative pin) is connected to microcontroller, so low output will turn ON the LED.

That’s all you need to do before the class. We will cover more details on class 4. If you want to explore yourself, refer to https://www.espruino.com/Quick+Start .

 

Leave a Reply