O'Reilly logo

Learning JavaScript Robotics by Kassandra Perch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The different kinds of servos and motors

First, we'll go over a few common servos and motors that you'll run into. But first, for those who are new to this, let's look at a quick description of motors and servos.

Defining motors and servos

A motor (or an electrical motor for our purposes) converts electrical energy to motion. Electricity goes in, motion comes out. This motion is output as a rotation motion; one of the most common uses of electronic motors is to turn wheels. Note that while you can control the speed of a motor by controlling the power being input, you cannot change the position of a motor precisely.

This is where servos come in. Servos use electricity to move to a set point—most commonly in an arc of 180 degrees. However, there are ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required