DC Motor Dual H-Bridge IC-L293D
DC (Direct Current) Motor for both way motion like Clockwise and Anticlockwise of one DC Motor, an H Bridge circuit is needed.
For both way motion of 2 motors a Dual H-Bridge IC named L293D can be used.
L293D IC Details:
1. Voltage Range: DC4.5V to 36V.
2. Separate input Logic supply.
3. Thermal cutoff.
4. ESD Production.
5. Output current rating:1 a Per channel (600mA for L293D).
OPERATION OF L293D.
All inputs are TTL compatible and output is totem-pole drive circuit, with Darlington transistor circuits.
Drives are enable in pairs, with drivers 1 and 2 enabled by 1,2EN and drivers 3 and 4 enabled by 3,4EN.
When and enable input is high, the associated drivers are enabled, and their outputs are active and in phase with their inputs.
When the enable input is low, those drivers are disabled, and their outputs are off and the high-impedance state.
With the proper date inputs, each pair of drivers forms a full-H or Bridge reversible drive suitable for solenoid or DC motor in Robot applications.
Dual H-Bridge Circuit Diagram
IC L293D PIN DETAILS:
PIN NO | FUNCTION | NAME |
1 | Enable pin Motor-1 | Enable 1,2 |
2 | Input 1 for Motor-1 | Input 1 |
3 | Output 1 for Motor-1 | Output 1 |
4,5 | Ground | Ground |
6 | Output 2 for Motor-1 | Output 2 |
7 | Input 2 for Motor-1 | Input 2 |
8 | + supply (4.5 to 36V) | Vcc2 |
9 | Enable pin for Motor-2 | Enable 3,4 |
10 | Input 1 for Motor-2 | Input 3 |
11 | Output 1 for Motor-2 | Output 3 |
12,13 | Ground | Ground |
14 | Output 2 for Motor-2 | Output 4 |
15 | Input 2 for Motor-2 | Input 4 |
16 | Supply voltage % to 36V | Vcc1 |
MANUAL OPERATION USING MULTI SWITCHES SETTING OF DC MOTOR:
Reverse operation: Motor – Terminal connected to +ve and M0tor+ connected to Ground.
Forward operation: Motor+ connected to +ve terminal and Motor- connected to Ground.
first photo diagram pin no’ 14 is mark twice.
i am trying to inter face the the motor with l293d and i am trying to run the motors in opposite directions but the motor is running in same direction please help me with code.