The stepper motor has five leads, and we will be using both halves of the L293D this time. This means that there are a lot of connections to make on the breadboard.

The motor has a 5-way socket on the end. Push jumper wires into the sockets to allow the motor to be connected to the breadboard.

This tutorial works with all versions of Raspberry Pi (rev 1, 2, A, B, B+ and Zero) except the compute module which has no headers. 

Use the colors of the leads to identify them, not the position from which they emerge from the motor.

Note that the red lead of the Stepper motor is not connected to anything in both configurations.

40-Pin (A, B, B+ and Zero) Cobbler Plus Schematic

20-Pin (Rev 1 and Rev2) Cobbler Schematic

This guide was first published on Jan 23, 2013. It was last updated on May 24, 2024.

This page (Hardware (L293D)) was last updated on Mar 08, 2024.

Text editor powered by tinymce.