Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Javascript Robotics
  • Table Of Contents Toc
  • Feedback & Rating feedback
Learning Javascript Robotics

Learning Javascript Robotics

By : Kassandra Perch
4.3 (6)
close
close
Learning Javascript Robotics

Learning Javascript Robotics

4.3 (6)
By: Kassandra Perch

Overview of this book

There has been a rapid rise in the use of JavaScript in recent times in a variety of applications, and JavaScript robotics has seen a rise in popularity too. Johnny-Five is a framework that gives NodeBots a consistent API and platform across several hardware systems. This book walks you through basic robotics projects including the physical hardware builds and the JavaScript code for them. You'll delve into the concepts of Johnny-Five and JS robotics. You'll learn about various components such as Digital GPIO pins, PWM output pins, Sensors, servos, and motors to be used with Johnny-Five along with some advanced components such as I2C, and SPI. You will learn to connect your Johnny-Five robots to internet services and other NodeBots to form networks. By the end of this book, you will have explored the benefits of the Johnny-Five framework and the many devices it unlocks.
Table of Contents (11 chapters)
close
close
10
Index

Johnny-Five and the wide world of microcontrollers


We've been using Johnny-Five for the majority of this book, but we haven't really touched on one of its best features! While the REPL and the API are definitely strong points, what really stands out about it is its wide array of supported microcontrollers.

To be up to date with what Johnny-Five supports, check out johnny-five.io/platform-support—this page, as we saw in the earlier chapters, contains all the platforms that Johnny-Five supports, and also what types of component they support.

Wrappers, which we'll use in this build, are pieces of code that translate Johnny-Five's Firmata method of communicating to other platforms that don't necessarily use Firmata. In our build, for instance, we'll be using a Particle Photon, which uses a firmware called VoodooSpark. The particle-io wrapper essentially teaches Johnny-Five how to speak VoodooSpark, so we can use the Photon with our existing code.

Let's check out how easy it is to move code by moving...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete