by @rexstjohn
(or click the below links to download)
Snap your Edison to the breakout board (use two fingers), attach the Arduino shield, plug in both Micro-USB cables
We recommend installing the Arduino Breakout shield *before* powering!
Follow this guide to flash your Edison using Flash Tool Lite. Windows users must also install the USB drivers.
Mac / Linux users select "CDC" from the drop down, Windows users use "RNDIS." Toggle the power switch when the pop up appears.
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
Note: Select the COM port that isn't the virtual COM port
$ configure_edison --setup
Initiate a Serial connection, use default login "root"
Name your Edison a unique name, set a password, get on the Wi-Fi, use ping google.com to test internet status!
We will be blinking the Pin 13 LED shown above using Intel XDK IoT Edition and MRAA.
$ echo "src mraa-upm http://iotdk.intel.com/repos/1.1/intelgalactic" > /etc/opkg/mraa-upm.conf
$ opkg update
$ opkg upgrade
Open a serial connection to your Edison and run these commands in the shell.
$ wpa_cli status
Open a serial connection to your Edison and run this command in the shell. Write down your IP address.
Create a new blink project from the provided template in Intel XDK.
Connect to your Edison, update the XDK Daemon, deploy the sketch.
Install the XDK Daemon when prompted
FileZilla is an easy way to get code over to your Edison once it is online
$ mkdir code
$ cd code
$ npm init
$ name: (code) demo
$ version: (1.0.0) 1.0.0
$ description: blink
$ entry point: blink.js
$ test command:
$ git repository:
$ keywords:
$ license: (ISC)
var mraa = require('mraa');
var myOnboardLed = new mraa.Gpio(13);
myOnboardLed.dir(mraa.DIR_OUT);
var ledState = true;
periodicActivity();
function periodicActivity()
{
myOnboardLed.write(ledState?1:0);
ledState = !ledState;
setTimeout(periodicActivity,1000);
}
{
"name": "OnboardLEDBlink",
"description": "",
"version": "0.0.0",
"main": "blink.js",
"engines": {
"node": ">=0.10.0"
},
"dependencies": {
}
}
package.json
blink.js
Edit your project using your IDE of choice!
$ cat package.json
$ touch blink.js
$ open blink.js
$ npm install
$ node index.js
Run the above command in your terminal to run the blink example