Chapter 10. Motors
Electronic motor systems are a very important element in robotics and moveable automation systems. They may include a direct current (DC), a stepper, and servo motors. In this chapter I will tell you how they differ and also introduce the PID controller. Then, I will tell you how to control motors using the RPi2/RPi3 through dedicated motor HATs. The central element of these HATs is the pulse-width modulation (PWM) module. Accordingly, I first explain how to write a driver for controlling PWM. Subsequently, I use it to steer DC and stepper motors. Finally, I control a wheel attached to the servo-mechanisms. I also discuss automatic motor speed adjustments similar to those used in PID. After completing this chapter, you will ...
Get Programming for the Internet of Things: Using Windows 10 IoT Core and Azure IoT Suite 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.