L293D Motor IC to run motor in both Direction

Today we will see how to use L293D motor shield to run a 5v DC motor in either way (CW & CCW)

L293D is a typical Motor driver or Motor Driver IC which allows DC motor to drive clockwise & anticlockwise direction. L293D is a 16-pin IC which can control a set of two DC motors simultaneously in any direction. It means that you can control two DC motor with a single L293D IC.

L293D motor IC can control 2 DC motor or 1 stepper motor

OVERVIEW

L293D IC is works on the concept of H-bridge. H-bridge is a circuit which allows the voltage to be flown in either direction. As we know very well voltage need to change its direction for being able to rotate the motor in clockwise or anticlockwise direction.

Thus H-bridge ICs are ideal for driving a DC motors in either direction simultaneously.

In a single L293D IC there are two h-Bridge circuit inside the IC which can rotate two dc motor independently. because its size is very small and compact it is very much used in many embedded, robotic, & Electronics application for controlling DC motors.

There are two Enable pins on l293d. Pin 1 and pin 9, for being able to drive the motor, the pin 1 and 9 need to be high. For driving the motor with left H-bridge you need to enable pin 1 to high. And for right H-Bridge you need to make the pin 9 to high. If anyone of the either pin1 or pin9 goes low then the motor in the corresponding section will suspend working. It’s like a switch.

you can directly connect the pin16 VCC (5v) to pin 1 and pin 9 to make them high.

Features

• Wide Supply-Voltage Range: 4.5 V to 36 V

• Separate Input-Logic Supply

• Internal ESD Protection

• High-Noise-Immunity Inputs

• Output Current 1 A Per Channel (600 mA for designed to drive inductive loads such as relays, L293D)

• Peak Output Current 2 A Per Channel (1.2 A for other high-current/high-voltage loads in positiveL293D)