10. Motor Control with the Raspberry Pi

The Raspberry Pi combines the processing resources of a personal computer with the small size of an Arduino board. In fact, the Raspberry Pi (shortened to RPi) is even smaller than the Arduino Mega discussed in the preceding chapter—and despite the RPi’s superior capabilities, the two boards have approximately the same cost.

To be precise, the RPi is a single-board computer, or SBC. Instead of relying on a microcontroller, its data crunching is performed by a full processor: the Broadcom BCM2835. In addition, the RPi has enough memory to store a complete operating system.

In my opinion, the ability to support an operating system is the RPi’s greatest strength. With an OS running on the device, I don’t have ...

Get Motors for Makers: A Guide to Steppers, Servos, and Other Electrical Machines 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.