
BeagleBone By Example
By :

As we mentioned previously, the L293D can be defined as a, H-Bridge motor driver circuit, which is made into a IC allowing us to drive a DC motor in either direction using digital inputs.
The pin configuration of the L293D is as shown in the following picture:
As shown in the preceding picture, in the L293D there are four input pins and four output pins. The two input pins, pin two and seven regulate the rotation of the motor connected to output pins three and six. Similarly, the input pins on the right, pin fifteen and ten regulate the rotation of the motor connected to output pins eleven and fourteen. The enable pins one and two, on the left and the right side of the IC on pin one and nine of the IC enables the operation of the output based on the input on that side of the IC. The motors rotate based on the inputs provided across the input pins as Logic 0
and Logic 1
. Supply 5V to the Vcc pin of the IC for its operation, and connect the ground pins to the ground and...