This is a very useful chip. It can actually control two motors independently. We are just using half the chip in this lesson, most of the pins on the right hand side of the chip are for controlling a second motor.
A second motor would be attached between OUT3 and OUT4. You will also need three more control pins.
-
EN2 is connected to a PWM enabled output pin on the Arduino
IN3 and IN4 are connected to digital outputs on the Arduino
The L293D has two +V pins (8 and 16). The pin '+Vmotor (8) provides the power for the motors, and +V (16) for the chip's logic. We have connected both of these to the Arduino 5V pin. However, if you were using a more powerful motor, or a higher voltage motor, you would provide the motor with a separate power supply using pin 8 connected to the positive power supply and the ground of the second power supply is connected to the ground of the Arduino.
Text editor powered by tinymce.