Introduction: L293D Motor Driver Pinout Diagram

Picture of L293D Motor Driver Pinout Diagram

Hello friends,

This is my first instructable.

In this instructable, i have shown the use of its pins with detail & how to use L293D to control motors.

  • L293D chip is a very populer IC for controlling motors via MCU.
  • It can control two DC motors or one stepper motor.

Use of pins of this IC with detail.

  • Enable pin 1.

This pin is used to control speed of a motor by connecting it to one of your Arduino's PWM pin.

  • Input pin 1.

This pin is used to give input to the IC to make the Output pin 1 HIGH or LOW. When make this pin HIGH, your motor will rotate in clock-wise or counter-clock-wise. (based on polarity of your motor.)

  • Output pin 1.

To this pin, you can connect one of your wire of your 1st motor.

  • Ground.

To the ground of your power supply for motor. (remember : the ground of power supply of motor must be connected to MCU's ground.)

  • Output pin 2.

To this pin, you can connect one of your wire of your 1st motor.

  • Input pin 2.

To give input to the IC to make the Output pin 2 HIGH or LOW.

  • VDD for motors.

Positive for power supply of motors.

  • Enable pin 2.

This pin is used to control speed of a motor by connecting it to one of your Arduino's PWM pin.

  • Input pin 3.

This pin is used to give input to the IC to make the Output pin 3 HIGH or LOW.

  • Output pin 3.

To this pin, you can connect one of your wire of your 2nd motor.

  • Ground.

To the ground of your power supply for motor. (Don't forget to connect the ground of
power supply of motor to MCU's ground.)

  • Output pin 4.

To this pin, you can connect one of your wire of your 2nd motor.

  • Input pin 4.

This pin is used to give input to the IC to make the Output pin 4 HIGH or LOW.

  • VDD for IC.

positive power supply for IC.

Step 1: How to Connect.

I didn't showed polarity of the motors in image. You can connect motors as your needs.

If you want to control a motor.

connect positive of motor to Output pin 1 and negative to Output pin 2.

  • Input 1 HIGH & Input 2 LOW. Motor will rotate clock-wise.
  • Input 1 LOW & input 2 HIGH. Motor will rotate anti clock-wise.

If you make both the pins HIGH or LOW, motor will not rotate in any direction.

You can also control speed of the motor by using enable pin 1.

use analogWrite(pin, dutyCycle) in your sketch. In dutyCycle, you can use value between 0 to 255.

If you use 0, motor will not rotate. If you use 255, motor will rotate with full speed.

You can also do the same to the 2nd motor to connect it to Output pin 3 & 4, & you can also control its speed by using Enable pin 2.

If you have any questions, ask me in comments, will my best to solve you queries.

Comments

pjtmini (author)2016-03-17

Can u provide code for pwm generation to control the dc motor speed using l293d.

Gautam1807 (author)pjtmini2016-03-17

use analogWrite(pin, dutyCycle) in your sketch. In dutyCycle, you can use value between 0 to 255.

If you use 0, motor will not rotate. If you use 255, motor will rotate with full speed.

rickharris made it! (author)2016-02-18

It is worth noting that the L293D can only supply 600mA (slightly over 1/2 an Amp ) of current before it goes to over current shut down.

For many motors other than small or low current motors this isn't enough current to make them work.

A diagram of a relay H bridge illustrates how it works.

Gautam1807 (author)rickharris2016-02-18

Yes, this IC can be used to power only small or low powered motors.

About This Instructable

3,548views

30favorites

License:

Bio: Curious by nature. Like to know how things works & love to learn about them. Especially electrical, electronics, mechanical, micro-processors.
More by Gautam1807:How to Build a JIG for LEDcube (Full Tutorial)Hide & See Partition in Windows 7/8/8.1Controlling blinking speed of an LED with Arduino & Pot (With video)
Add instructable to: