Intel Edison Node Setup

Rex St. John

Copy the USB stick (or use s3 download links)

  • Form groups by OS
  • Default username is "root" on Edison
  • Down arrow means "Drill into" topic
  • Use the deck and videos at your speed
  • Downloads are on USB and linked

Important notes

Workshop agenda

  • Assemble Edison
  • Flash Edison
  • Configure Edison
  • Johnny-Five Setup

assemble your edison

Snap your Edison to the breakout board, attach the Arduino shield, plug in both Micro-USB cables.

Workshop agenda

  • Assemble Edison
  • Flash Edison
  • Configure Edison
  • Johnny-Five Setup

Flashing Edison

Follow these instructions to flash your device.

If you use the Windows installer, uncheck everything except for the drivers and the "flash / update" device option.

(download and run the installer)

(I recommend using flashall.bat)

Workshop agenda

  • Assemble Edison
  • Flash Edison
  • Configure Edison
  • Johnny-Five Setup

mac

Serial connections

Download PuTTy

Use "screen" utility

Use "screen" utility

Press "Down" to view videos showing how to establish serial connections on each OS.

serial connection on osx

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

serial connection on Linux

$ sudo apt-get install screen
$ sudo screen /dev/ttyUSB0 115200

Install 'screen,' use "/dev/ttyUSB0 115200" and hit Enter twice at blank screen

serial connection on Windows

Download PuTTy, select 'serial,' set baud rate to 115200, use Device Manager to find your COM port, hit Enter twice at blank screen

(select the COM port that doesn't say "Edison" anywhere in it)

Run "configure edison"

$ configure_edison --setup

Initiate a Serial connection, use default login "root"

Name your Edison, set a password, get your Edison online!

Workshop agenda

  • Assemble Edison
  • Flash Edison
  • Configure Edison
  • Johnny-Five Setup

Run the blink sketch

We will be blinking the Pin 13 LED shown above.

deploy code

  1. Open FileZilla
  2. Enter Edison IP
  3. Use "root" as user
  4. Use your PW
  5. Port 22
  6. Quickconnect
  7. Drag & drop!

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!

npm init

$ mkdir demo
$ cd demo
$ touch package.json

Open a serial connection to your Edison and run these commands in the shell.

// Blink an LED
var five = require("johnny-five");
var Edison = require("edison-io");
var board = new five.Board({
  io: new Edison()
});

board.on("ready", function() {
  var led = new five.Led(13);
  led.blink(1000);
});
{
  "name": "edison-johnny-five",
  "description": "A simple Edison blink.",
  "version": "0.0.1",
  "main": "index.js",
  "engines": {
    "node": ">=0.10.0"
  },
  "dependencies": {
      "johnny-five": "*",
      "edison-io": "*"
  }
}

package.json

index.js

Basic project

Edit your project using your IDE of choice or on Edison using vi:

$ touch index.js
$ vi index.js 

Copy the following into each file using vi.

running the code

$ npm install
$ node index.js

Run the above command in your terminal to run the blink example

Intel Edison + Johnny-Five Setup

By Rex St. John

Intel Edison + Johnny-Five Setup

How to setup Intel Edison with Johnny-Five for Windows, Mac and Linux

  • 5,752