This project involves wiring up a servo motor to our Raspberry Pi. Many people confuse servo motors with stepper and DC motors. Let's take a look at the differences between these types of motors.
Wiring up a servo motor to the Raspberry Pi
Stepper motors
Stepper motors are brushless DC electrical motors that move a full rotation of equal steps. The position of the motor is controlled without the use of a feedback system (open-loop system). This makes stepper motors relatively inexpensive and popular for robotics, 3-D printers, and CNC-type applications.
The following is a crude diagram of the internal workings of a stepper motor:
By turning on and off the coils A and B in sequence, the Permanent Magnet (which is attached...