The L293D is a very popular integrated tool that can drive 2 DC motors.
L293D pin connections are as follows:
l293d pin connections l293d pins
Input 1 and input 2 of this integrated circuit, the direction of rotation of the motor; the activation pin controls which outputs are active. Since only 1 motor is used in this example, it is sufficient to connect pin 1, i.e. “Enable 1.2”.
We set up our circuit as shown in the diagram below: