In Chapter 4, we used the Raspberry Pi’s GPIO pins to control an LED and to receive information from an ultrasonic sensor. In Chapter 5, we looked at the Arduino and discussed why it is a better option for general GPIO functions. We connected the ultrasonic rangefinder and an LED to the Arduino and learned how to pass data between the two boards.
But that doesn’t mean we’re done with the Raspberry Pi’s GPIO header . In this chapter, we’ll use the GPIO pins to connect to a board called a motor driver, which is designed to interact with DC motors and steppers. I’ll ...