Book description
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.
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
- Technical requirements
- Using inputs in robotics projects
- The Johnny-Five button object
- Wiring up buttons
- Adding buttons to our RGB LED project
- Summary
- Questions
- Further reading
-
Using a Light Sensor to Create a Night-Light
- Technical requirements
- Using an analog sensor with the Pi
- The ambient light sensor
- Creating our night-light
- Summary
- Questions
- Further reading
- 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
- Technical requirements
- Project – connecting multiple NodeBots
- Expanding your NodeBots knowledge
- Continuing on your NodeBots adventure
- Summary
- Assessments
- Other Books You May Enjoy
Product information
- Title: Hands-On Robotics with JavaScript
- Author(s):
- Release date: August 2018
- Publisher(s): Packt Publishing
- ISBN: 9781789342055
You might also like
book
Make: JavaScript Robotics
JavaScript Robotics is on the rise. Rick Waldron, the lead author of this book and creator …
book
Connecting Arduino to the Web: Front End Development Using JavaScript
Create physical interfaces that interact with the Internet and web pages. With Arduino and JavaScript you …
book
Learn Robotics with Raspberry Pi
Learn Robotics with Raspberry Pi will take you from inexperienced maker to robot builder. You’ll start …
book
JavaScript on Things
JavaScript on Things is your first step into the exciting and downright entertaining world of programming …