Download and install the Arduino IDE (free; Mac, Windows, Linux).
Clone this repository.
- Open Arduino IDE
- Connect the Uno with USB
- In the
File -> Examples
menu, find theFirmata
submenu and selectStandardFirmata
- Upload the
StandardFirmata
sketch to the Arduino
cd <directory with this repo>
npm install
Hello, World and Modified Hello World don't require any wiring except plugging Arduino into USB on your computer.
node examples/01-hello.js
node examples/02-hello-stop.js
RGB display of website colors is based on the following schematic:
node examples/03-rgb.js
Note: I've removed the dependency this script has on website-color-extractor
from package.json
because of dependency issues caused by the great npm debacle of March, 2016. See more detailed note in source script.
A bonus basic RGB LED script can be found in examples/03-rgb-dance.js.
The following schematic is for:
The proximity example uses a GP2Y0A41SK0F
infrared proximity sensor.
node examples/04-photoresistor.js
node examples/05-proximity.js
To run the compass-north alarm example, you'll need the following setup:
The example uses the Sparkfun HMC5883L
triple-access breakout.
node examples/06-compass.js