Introduction: L293D Motor Driver Pinout Diagram

About: Curious by nature. Like to know how things works & love to learn about them. Especially electrical, electronics, mechanical, micro-processors.

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.