Chapter 8: Node.js Libraries for Hardware
Johnny-five supports different boards (such as Arduino, Tessel, Intel Edison, ... ) with help of IO adapters.
The Tessel 2 provides low-level libraries for analog and digital signals. Also, you can use every Node.js library you find on npm.js.
Sparkfun has a nice collection of experiments with a Tessel 2. For example:
One good place to learn about acommunication protocols is here:
In case you need to work with data from an embedded device directly, serial ports are very helpful. With serialports, you can transfer data from one device to another. A good place to start with serial communication with Node.js is the serialport library. The GitHub project can be found at Node serialport library
This blog post shows some example usage of Node serial port. Another nice post is at Makezine.
Also, there is the Arduino's Experimenters guide for Node.js with examples on the serial port.
Another library to build network systems and robots is the Cylon.js library.
Cylon supports many different hardware boards via serial communication or Firmata. For example, you can see a setup with a Linkit DUO.
Fun with color walls and LEDs