Book Image

Learning JavaScript Robotics

By : Kassandra Perch
Book Image

Learning JavaScript Robotics

By: Kassandra Perch

Overview of this book

Table of Contents (16 chapters)
Learning JavaScript Robotics
About the Author
About the Reviewers

External Devices

SPI, I2C, and some other protocols get really complex, but there's a whole other world of devices we can also use with our Johnny-Five projects. These technically fall outside the scope of the Johnny-Five library, but works well with the library due to their use of Node.JS. Let's take a look at the "why" and the "how" of external devices with Johnny-Five.

Why External Devices?

Microcontrollers are amazing! They can do a litany of things—input, output, and so on - but sometimes you see a new device that doesn't plug in to a microcontroller. Perhaps it contains a microcontroller of its own—such as a quadcopter or a drone! This section covers the use of these devices with Node and integrating them into your Johnny-Five projects.

Some really cool examples that have been integrated into Johnny-Five projects are as follows: video game controllers; the LeapMotion controller, a gesture sensor that tracks hand position and movement; and Wi-Fi-enabled quadcopters, such as the Parrot...