Building Connected Things with Node.js, Johnny-Five, and Microsoft Azure

Setting Up Your Intel Edison

In this lab, you will configure your Intel Edison for use in labs, tutorials, and workshops.

This is premilinary information and is not a complete Getting Started Guide

Table of Contents

Bill of Materials (BOM)

To complete the setup and configuration of your Intel Edison you will need the following:

  1. Intel® Edison for Arduino
  2. Two (2) USB to micro USB cables.

Install Drivers

Follow the Getting Started instructions from Intel to install any needed drivers

Flash the Edison to the Latest Yocto Image

Yocto is the official Linux image compiled for the Intel Edison. The Intel® Edison Board Firmware Software Release 3.0 (Yocto 2.1) includes Node.js v0.10.x.

  1. Attach the Edison chip to the Arduino expansion board.
Download and run the installer from Intel

IMPORTANT: When running the Windows installer, uncheck everything except for the drivers and the "flash / update" device option.

The following is based on the instructions from Intel.

  1. Install Homebrew if it is not already installed:
            ruby -e "$(curl -fsSL"
  2. Install dfu-util, coreutils, and gnu-getopt if not already installed:
            brew install dfu-util coreutils gnu-getopt
  3. Download and extract the Release #.# Yocto complete image and Extract the contents of to your development directory (e.g. ~/Development/).
  4. Using Terminal (Command + Space and type Terminal), change to the directory where you extracted the Yocto image (your directory name and the name/version of the Edison folder may be different).
            cd ~/Development/iot-devkit-prof-dev-image-edison-20160315
  5. Ensure the Edison is disconnected from the USB ports on your computer.
  6. Run the flashall script and then plug the USB cables into board.
Note: The script can take up to 5 minutes to complete the flashing and another 2 minutes to reboot.
You should now have the latest image on your Intel® Edison development board.

Configure Your Edison

Open terminal, type ‘screen /dev/cu.usbs’ then hit Tab to autocomplete, add ‘115200 -L’ and hit Enter twice at blank screen

  1. Download PuTTy
  2. Select 'serial'
  3. Set baud rate to 115200
  4. Use Device Manager to find your COM port (select the COM port that doesn't say "Edison" anywhere in it)
  5. Press Enter twice at blank screen
Open terminal, type 'screen /dev/cu.usbs' then hit Tab to autocomplete, add '115200 -L' and hit Enter twice at blank screen
Install 'screen,' use "/dev/ttyUSB0 115200" and hit Enter twice at blank screen
  1. Login with root and no password.
  2. Run configure_edison --setup
  3. Enter a new password for your Edison
  4. Give your Edison a unique name.
  5. Enter Y to setup Wi-Fi. If scanning fails to discover your Wi-Fi network, enter 0 to scan again.
  6. Enter the numer for the network you want to connect to.
  7. Enter the network password.
  8. When the new IP address for your Edison is displayed on screen, make a note of it for later use.

Install Libmraa

Libmraa is a C/C++ library with bindings to Python, Javascript and Java to interface with the I/O on Galileo, Edison & other platforms, with a structured and sane API where port names/numbering matches the board that you are on. Use of libmraa does not tie you to specific hardware with board detection done at runtime you can create portable code that will work across the supported platforms.

Using the screen session to the Edison, run the following

$ echo "src mraa-upm" > /etc/opkg/mraa-upm.conf
$ opkg update
$ opkg install libmraa0
$ opkg upgrade
$ cd /
$ cd node_app_slot
$ npm install
$ node blink.js

Install FileZilla

You can either edit code directly on your Intel Edison or you can edit the code on your computer and copy it to your Edison using SCP or FileZilla! FileZilla Client is a fast and reliable cross-platform FTP, FTPS and SFTP client with lots of useful features and an intuitive graphical user interface.

Install from

Deploying code you the Edison is as easy as Drag-n-Drop

  1. Open FileZilla
  2. Enter the IP address of your Edison in the Host field.
  3. Enter root in the Username field
  4. ENter the password you created in the Password field
  5. Enter 22 in the Port field
  6. Click Quickconnect
  7. Drag & drop files from your machine onto the Edison