This is intended to be a simple resource for getting everything up an running on your machine. Feel free to skip a step if you already have something installed.
We're assuming that you are already somewhat comfortable with working in the terminal and that you have a code editor installed. If you don't have a code editor installed and you would like one, we would recommend either Sublime or Atom. Both are free and quality editors.
- NodeJS and NPM
- Johnny-Five
- Arduino IDE
VIA HOMEBREW
If you have Xcode tools and homebrew already installed, probably the easiest way to install Node is brew install node
.
NPM, or Node Package Manager comes with the installation, so you're done! Verify by typing node -v
in your terminal. If you get a version as a response, you're good to go. You can also verify NPM is installed by typing npm -v
.
FROM NODE
Otherwise you can download from Node's site. And NPM comes installed with it. Verify by typing node -v
in your terminal. If you get a version as a response, you're good to go. You can also verify NPM is installed by typing npm -v
.
As reccommended by NPM for Windows users, download node from Node's site. NPM comes installed with Node. You can verify by typing node -v
in your terminal. If you get a version as a response, you're good to go. You can also verify NPM is installed by typing npm -v
.
If you're running on Linux, it's recommended that you install the latest binaries compatible with your system. You can find them here. You can verify by typing node -v
in your terminal. If you get a version as a response, you're good to go. You can also verify NPM is installed by typing npm -v
.
Once you have Node and NPM set up, installing Johnny-Five is as easy as npm install johnny-five
in your terminal. You might need to run sudo npm install johnny-five
and enter a password if you have issues with permissions.
You'll also need the Arduino IDE, which you can download here. You will then want to plug in your Arduino and open the Arduino IDE.
Open File > Examples > Firmata > StandardFirmata
Then click the upload button. If it was successful, you can then close the IDE.
You're all done! The next step is playing with the hardware!