Hands-On Robotics with JavaScript

More Information
Learn
  • Install and run Node.js and Johnny-Five on Raspberry Pi
  • Assemble, code, and run an LED project
  • Leverage JavaScript libraries to build exciting robots
  • Use sensors to collect data from the world around you
  • Employ servos and motors to make your project move
  • Add internet capabilities to your Johnny-Five project
About

There has been a rapid increase in the use of JavaScript in hardware and embedded device programming. JavaScript has an effective set of frameworks and libraries that support the robotics ecosystem.

Hands-On Robotics with JavaScript starts with setting up an environment to program robots in JavaScript. Then, you will dive into building basic-level projects such as a line-following robot. You will walk through a series of projects that will teach you about the Johnny-Five library, and develop your skills with each project. As you make your way through the chapters, you’ll work on creating a blinking LED, before moving on to sensors and other more advanced concepts. You will then progress to building an advanced-level AI-enabled robot, connect their NodeBots to the internet, create a NodeBots Swarm, and explore MQTT.

By the end of this book, you will have gained hands-on experience in building robots using JavaScript

Features
  • Build robots that light up and make noise
  • Learn to work with Raspberry Pi 3 and JavaScript
  • Connect your Johnny-Five projects to external APIs and create your own IoT
Page Count 214
Course Length 6 hours 25 minutes
ISBN 9781789342055
Date Of Publication 30 Aug 2018
Technical requirements
Differences between motors and servos
Getting a servo working with Johnny-Five
Project – two servos and the REPL
Project – light meter with the servo
Project – the continuous servo
Summary
Questions
Technical requirements
IoT device communications
MQTT - an IoT PubSub protocol
Setting up MQTT on the Pi with AdafruitIO
Project – adding an LCD and button to see and send MQTT events
Project – social media notifier bot with IFTTT
Summary
Questions
Further reading

Authors

Kassandra Perch

Kassandra Perch is an open web developer and supporter. She began as a frontend developer and moved to server-side with the advent of Node.js and was especially enthralled by the advance of the NodeBots community. She travels the world speaking at conferences about NodeBots and the fantastic community around them.