Rex St. John
Edge Computing Ecosystems
by @rexstjohn
Snap your Edison to the breakout board, attach the Arduino shield, plug in both Micro-USB cables.
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)
Download PuTTy
Use "screen" utility
Use "screen" utility
Press "Down" to view videos showing how to establish serial connections on each OS.
Open terminal, type 'screen /dev/cu.usbs' then hit Tab to autocomplete, add '115200 -L' and hit Enter twice at blank screen
$ sudo apt-get install screen
$ sudo screen /dev/ttyUSB0 115200
Install 'screen,' use "/dev/ttyUSB0 115200" and hit Enter twice at blank screen
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)
$ configure_edison --setup
Initiate a Serial connection, use default login "root"
Name your Edison, set a password, get your Edison online!
We will be blinking the Pin 13 LED shown above.
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!
$ 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
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.
$ npm install
$ node index.js
Run the above command in your terminal to run the blink example
By Rex St. John
How to setup Intel Edison with Johnny-Five for Windows, Mac and Linux