L293D Motor Driver Module Arduino Tutorial
L293D Motor Driver Module Arduino Tutorial
The IC has an operating voltage range from 4.5 V to 36 V. The L293 and
L293D models can drive current up to 1A and 600mA respectively.
Pin 2: Input 1 – Digital input to control the output 1. The state of all
outputs OUT1, OUT2, OUT3, OUT4 will be same as the input state applied
at the corresponding inputs.
Output = Input.
The s1 and s3, s2 and s4 are not permitted to close at a time as it will short
circuit the supply.
Simply, what a motor driver does is it act as a current amplifier which gives
high current outputs to drive the motor from a low current control signal.
Driver IC or a driver circuit is a similar H bridge arrangement instead of
switches replaced with transistors, MOSFETs, etc. Hence low current input
signals can switch these devices and operate in the same way as an H
bridge circuit works.
Connect the 4 inputs and 2 enable pins to the respective digital output pins
of the arduino as declared in the code.
Driver module
The below arduino code just show you how the motor direction changes
with the change in respective input states. As given in the code, for five
seconds the motor runs in the clockwise direction, then in the
counterclockwise direction and then stops; this repeats again.