Have a personal or library account? Click to login
Hands-On Robotics with JavaScript Cover

Hands-On Robotics with JavaScript

Build robotic projects using Johnny-Five and control hardware with JavaScript and Raspberry Pi

Paid access
|Sep 2024
Product purchase options

Build amazing robots with Raspberry Pi 3 and JavaScript

Key Features

  • Program robots that light up, make noise, move around, and interact
  • Leverage JavaScript and Node.js to enhance your robotic programming skills
  • Connect your Johnny-Five projects to external APIs and create your own IoT projects

Book Description

JavaScript has an effective set of frameworks and libraries that provide support for embedded device programming and the robotics ecosystem. You’ll be able to put your JavaScript knowledge to work with this practical robotics guide.

The book starts by guiding you in setting up an environment to program robots with JavaScript and Rasberry Pi 3. You will build beginner-level projects, such as a line-following robot, and then upgrade your robotics skills with a series of projects that help you get to grips with the Johnny-Five library. As you progress, you’ll learn how you can improve your projects by enabling advanced hardware components and programming concepts. You’ll even build an advanced AI-enabled robot, connect its NodeBots to the internet, create a NodeBots Swarm, and explore Message Queuing Telemetry Transport (MQTT).
By the end of this book, you will have enhanced your robot programming skills by building a range of simple to complex projects.

What you will learn

  • Install and run Node.js and Johnny-Five on Raspberry Pi
  • Understand how to assemble, code, and run an LED project
  • Use JavaScript libraries to enhance your robotics skills
  • Explore the use of sensors to collect data
  • Add internet capabilities to your Johnny-Five projects
  • Delve into AI robotics and build AI-enabled robots

Who this book is for

If you want to explore the world of IoT with JavaScript, this book is for you. You’ll also find this book useful if you’re interested writing JavaScript sketches. A basic knowledge of JavaScript and Node.js is necessary to understand the concepts covered.

Table of Contents

  1. Understanding and setting up your development environment
  2. Creating Your First Johnny-Five project
  3. Building Interactive projects with RGB LED
  4. Bringing in Input with Buttons
  5. Using a light sensor to create a night-light
  6. Using Motors to Move Your Project
  7. Using Servos for Measured Movement
  8. The Animation Library
  9. Getting the info you need
  10. Using MQTT to talk to things on the internet
  11. Building a NodeBots Swarm
https://github.com/packtpublishing/hands-on-robotics-with-javascript
PDF ISBN: 978-1-78934-673-2
Publisher: Packt Publishing Limited
Copyright owner: © 2018 Packt Publishing Limited
Publication date: 2024
Language: English
Pages: 214