Learning JavaScript Robotics

Design, build, and program your own remarkable robots with JavaScript and open source hardware
Preview in Mapt

Learning JavaScript Robotics

Kassandra Perch

2 customer reviews
Design, build, and program your own remarkable robots with JavaScript and open source hardware
Mapt Subscription
FREE
$29.99/m after trial
eBook
$16.80
RRP $23.99
Save 29%
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$16.80
$29.99
$29.99 p/m after trial
RRP $23.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Learning JavaScript Robotics Book Cover
Learning JavaScript Robotics
$ 23.99
$ 16.80
Learning JavaScript Data Structures and Algorithms - Third Edition Book Cover
Learning JavaScript Data Structures and Algorithms - Third Edition
$ 35.99
$ 25.20
Buy 2 for $34.30
Save $25.68
Add to Cart

Book Details

ISBN 139781785883347
Paperback160 pages

Book Description

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 yout hrough 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

Chapter 1: Getting Started with JS Robotics
Understanding JS Robotics, NodeBots, and Johnny-Five
Setting up your development environment
Hello, World! – Blinking an onboard LED
Summary
Chapter 2: Working with Johnny-Five
What you'll need for this chapter
How a Johnny-Five program works
Understanding events in Johnny-Five
Wiring up an external LED
Using the Read-Eval-Print-Loop (REPL)
Summary
Chapter 3: Using Digital and PWM Output Pins
What you'll need for this chapter
How GPIO pins work
Multiple pins with several LEDs
Using PWM pins with the Piezo element
Summary
Chapter 4: Using Specialized Output Devices
What you'll need for this chapter
Outputs that require multiple pins
Checking compatibility with Johnny-Five
Obtaining documentation, wiring diagrams, and so on
Project – character LCD display
Summary
Chapter 5: Using Input Devices and Sensors
What you'll need for this chapter
How analog input pins work
Johnny-Five sensor events
Using basic inputs – buttons and potentiometers
Using sensors – Light and Temperature
Summary
Chapter 6: Moving Your Bot
What you'll need for this chapter
The different kinds of servos and motors
Special concerns when using motors and servos
Wiring up servos and motors
Creating a project with a motor and using the REPL
Creating a project with a servo and a sensor
Summary
Chapter 7: Advanced Movement with the Animation Library
What you'll need for this chapter
What is the Animation API?
Looking at the Animation API
Writing Servo Animations
Animation events
Summary
Chapter 8: Advanced Components – SPI, I2C, and Other Devices
What you'll need for this chapter
Why do we need the I2C and SPI protocols?
Exploring SPI (Serial Peripheral Interface) devices
Exploring I2C devices
External Devices
Summary
Chapter 9: Connecting NodeBots to the World, and Where to Go Next
What you'll need for this chapter
Connecting NodeBots to the Web
Johnny-Five and the wide world of microcontrollers
Other JS libraries and platforms
Where to go from here

What You Will Learn

  • Familiarise yourself with Johnny-Five Read, Eval, and Print Loop (REPL) to modify and debug robotics code in real time
  • Build robots with basic output devices to create projects that light up, make noise, and more
  • Create projects with complex output devices, and employ the Johnny-Five API to simplify the use of components that require complex interfaces, such as I2C
  • Make use of sensors and input devices to allow your robotics projects to survey the world around them and accept input from users
  • Use the Sensor and Motor objects to make it much easier to move your robotics projects
  • Learn about the Animation API that will allow you to program complex movements using timing and key frames
  • Bring in other devices to your Johnny-Five projects, such as USB devices and remotes
  • Connect your Johnny-Five projects to external APIs and create your own Internet of Things!

Authors

Table of Contents

Chapter 1: Getting Started with JS Robotics
Understanding JS Robotics, NodeBots, and Johnny-Five
Setting up your development environment
Hello, World! – Blinking an onboard LED
Summary
Chapter 2: Working with Johnny-Five
What you'll need for this chapter
How a Johnny-Five program works
Understanding events in Johnny-Five
Wiring up an external LED
Using the Read-Eval-Print-Loop (REPL)
Summary
Chapter 3: Using Digital and PWM Output Pins
What you'll need for this chapter
How GPIO pins work
Multiple pins with several LEDs
Using PWM pins with the Piezo element
Summary
Chapter 4: Using Specialized Output Devices
What you'll need for this chapter
Outputs that require multiple pins
Checking compatibility with Johnny-Five
Obtaining documentation, wiring diagrams, and so on
Project – character LCD display
Summary
Chapter 5: Using Input Devices and Sensors
What you'll need for this chapter
How analog input pins work
Johnny-Five sensor events
Using basic inputs – buttons and potentiometers
Using sensors – Light and Temperature
Summary
Chapter 6: Moving Your Bot
What you'll need for this chapter
The different kinds of servos and motors
Special concerns when using motors and servos
Wiring up servos and motors
Creating a project with a motor and using the REPL
Creating a project with a servo and a sensor
Summary
Chapter 7: Advanced Movement with the Animation Library
What you'll need for this chapter
What is the Animation API?
Looking at the Animation API
Writing Servo Animations
Animation events
Summary
Chapter 8: Advanced Components – SPI, I2C, and Other Devices
What you'll need for this chapter
Why do we need the I2C and SPI protocols?
Exploring SPI (Serial Peripheral Interface) devices
Exploring I2C devices
External Devices
Summary
Chapter 9: Connecting NodeBots to the World, and Where to Go Next
What you'll need for this chapter
Connecting NodeBots to the Web
Johnny-Five and the wide world of microcontrollers
Other JS libraries and platforms
Where to go from here

Book Details

ISBN 139781785883347
Paperback160 pages
Read More
From 2 reviews

Read More Reviews

Recommended for You

Raspberry Pi Robotic Projects - Third Edition Book Cover
Raspberry Pi Robotic Projects - Third Edition
$ 31.99
$ 22.40
Effective Robotics Programming with ROS - Third Edition Book Cover
Effective Robotics Programming with ROS - Third Edition
$ 39.99
$ 28.00
Internet of Things with ESP8266 Book Cover
Internet of Things with ESP8266
$ 31.99
$ 22.40
Raspberry Pi: Amazing Projects from Scratch Book Cover
Raspberry Pi: Amazing Projects from Scratch
$ 59.99
$ 42.00
Smart Internet of Things Projects Book Cover
Smart Internet of Things Projects
$ 31.99
$ 22.40
Building Smart Homes with Raspberry Pi Zero Book Cover
Building Smart Homes with Raspberry Pi Zero
$ 27.99
$ 19.60