Chapter 5. Motor Control

In this chapter, we will cover the following topics:

  • Controlling small motors
  • Controlling motors with transistors
  • Controlling speed with PWM
  • Spinning motors both ways
  • Servo motor
  • Stepper motor
  • Bipolar stepper motor
  • Brushless motor

Introduction

This chapter deals with common types of motors and how they can be operated with Arduino. While making an LED blink or showing some text on a screen can be cool, nothing is more powerful than making something move. Here, we will tackle most of the types of motor that we can find these days.

There are many things that can be done using motors. Using a simple servo motor, we can position things precisely. For example, a robotic hand is usually just a bunch of servo motors glued together. By using ...

Get Arduino Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.