Building Connected Things with Node.js, Johnny-Five, and Microsoft Azure
Setting Up Your Intel Edison
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:
- Intel® Edison for Arduino
- 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.
- Attach the Edison chip to the Arduino expansion board.
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.
- Install Homebrew if it is not already installed:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install dfu-util, coreutils, and gnu-getopt if not already installed:
brew install dfu-util coreutils gnu-getopt
- Download and extract the Release #.# Yocto complete image and Extract the contents of to your development directory (e.g. ~/Development/).
- 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
- Ensure the Edison is disconnected from the USB ports on your computer.
- Run the flashall script and then plug the USB cables into board.
./flashall.sh
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
- Download PuTTy
- Select 'serial'
- Set baud rate to 115200
- Use Device Manager to find your COM port (select the COM port that doesn't say "Edison" anywhere in it)
- Press Enter twice at blank screen
- Login with root and no password.
- Run
configure_edison --setup
- Enter a new password for your Edison
- Give your Edison a unique name.
- Enter
Y
to setup Wi-Fi. If scanning fails to discover your Wi-Fi network, enter0
to scan again. - Enter the numer for the network you want to connect to.
- Enter the network password.
- 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
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 filezilla-project.org
Deploying code you the Edison is as easy as Drag-n-Drop
- Open FileZilla
- Enter the IP address of your Edison in the Host field.
- Enter root in the Username field
- ENter the password you created in the Password field
- Enter 22 in the Port field
- Click Quickconnect
- Drag & drop files from your machine onto the Edison