
Hands-On Robotics with JavaScript
Build robotic projects using Johnny-Five and control hardware with JavaScript and Raspberry Pi
- 214 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Hands-On Robotics with JavaScript
Build robotic projects using Johnny-Five and control hardware with JavaScript and Raspberry Pi
About this book
Leverage Raspberry Pi 3 and different JavaScript platforms to build exciting Robotics projects
Key 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
Book Description
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
What you will 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
Who this book is for
Hands-On Robotics with JavaScript is for individuals who have prior experience with Raspberry Pi 3 and like to write sketches in JavaScript. Basic knowledge of JavaScript and Node.js will help you get the most out of this book.
Tools to learn more effectively

Saving Books

Keyword Search

Annotating Text

Listen to it instead
Information
Contributors
About the author
About the reviewers
Table of contents
- Title Page
- Copyright and Credits
- Dedication
- Packt Upsell
- Contributors
- Preface
- Setting Up Your Development Environment
- Creating Your First Johnny-Five Project
- Building Interactive Projects with RGB LED
- Bringing in Input with Buttons
- Using a Light Sensor to Create a Night-Light
- Using Motors to Move Your Project
- Using Servos for Measured Movement
- The Animation Library
- Getting the Information You Need
- Using MQTT to Talk to Things on the Internet
- Building a NodeBots Swarm
- Assessments
- Other Books You May Enjoy
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app