Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Hands-On Robotics with JavaScript

You're reading from   Hands-On Robotics with JavaScript Build robotic projects using Johnny-Five and control hardware with JavaScript and Raspberry Pi

Arrow left icon
Product type Paperback
Published in Aug 2018
Publisher Packt
ISBN-13 9781789342055
Length 214 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Kassandra Perch Kassandra Perch
Author Profile Icon Kassandra Perch
Kassandra Perch
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Title Page
Dedication
Packt Upsell
Contributors
Preface
1. Setting Up Your Development Environment FREE CHAPTER 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 Information You Need 10. Using MQTT to Talk to Things on the Internet 11. Building a NodeBots Swarm 1. Assessments 2. Other Books You May Enjoy Index

More about motors


A motor is a component that can rotate a shaft in continuous circles at varying speeds. However, there are many different kinds of motors; let's take a look at a few:

  • DC motor: This kind of motor is the simplest: it can go in one direction, and the speed varies by the power you give it. These usually only have two wires: one for ground and one for power; we will combine the latter with the motor hat to control the speed. With the correct controller, we can move the motor in both directions.
  • Motors with brakes: These motors have a third wire to control a brake that can stop the motor without the need to coast to a stop, as with DC motors. These motors are supported by the Johnny-Five library, but will not be covered in this book.
  • Stepper motors: Stepper motors are used for precise movements, as they move in steps that vary based on the size of the motor. They are bi-directional by design and are great where you need the torque of a motor with precision. We'll talk more about...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images