Interfacing DC Motor With Arduino Using L293D Motor Driver

DC Motor

Hey guys ! We are back again with another tutorial on how to interface a DC motor with Arduino using the L293D Motor Driver. Here i’ll give you the code and the interfacing schematic of the IC to get you going with the running DC motor. So let’s get started !

Material Required :

  1. Breadboard
  2. Jumper Wires
  3. L293D Motor Driver IC
  4. Arduino Uno
  5. DC Motor
  6. DC 5-36 volt supply depending upon the Motor

Connections and Explanation :

The description about the motor driver IC has been given below . Make the connections as shown below . The arduino will run on 5V supply whereas the Motor will require 5-36 volts depending upon its configurations .

  1. Connect the Pin 1 of IC to 5v as it is enable for the left part of IC .
  2. Connect Pin 2  of IC i.e the inputpin1 to Arduino digital Pin 10 .
  3. Connect Pin 3 of IC i.e the outputpin1 to one terminal of the DC motor.
  4. Connect Pin 4 and Pin 5 of IC i.e the GND pin to a common ground given by Arduino on the Breadboard.
  5. Connect Pin 6 of IC i.e the Outputpin2 to the other terminal of Arduino .
  6. Connect Pin 7  of IC i.e the inputpin2 to Arduino digital Pin 11 .
  7. Connect Pin 8 of IC i.e the VSS to 5v.
  8. Connect Pin 16 of IC i.e the VCC pin to 5v for internal voltage to the IC.

For connections to a second motor , follow similar steps looking at the pin diagram of L293D and just add bit of a code for that motor as well .

L293D IC 

The Motor Driver is a module for motors that allows you to control the working speed and direction of two motors simultaneously .This Motor Driver is designed and developed based on L293D IC. L293D is a 16 Pin Motor Driver IC. This is designed to provide bidirectional drive currents at voltages from 5 V to 36 V.

L293D IC
L293D IC


DC Motor Interfacing
Circuit Diagram


const int inputPin1 = 10; // Pin 2 of L293D IC
const int inputPin2 = 11; // Pin 7 of L293D IC

void setup()
pinMode(inputPin1, OUTPUT);
pinMode(inputPin2, OUTPUT);


void loop()
digitalWrite(inputPin1, HIGH);
digitalWrite(inputPin2, LOW);


******The Circuit has been stimulated on Tinker CAD ******

*******For more Arduino Projects Refer here ******



Please enter your comment!
Please enter your name here