Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Motors & Motion
  4. ›L293D Motor Driver IC and Shield

Component guide · Beginner · 4 min read

L293D Motor Driver IC and Shield

Pinout, Wiring and Code

By Geekobot Learning Team · Updated 29 Oct 2026

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the L293D motor driver isL293D motor driver pinoutWiring the L293D motor driverExample codeSetup and tuningWhat you needAlternatives and when to choose themTry itCommon mistakesFAQsParts and next steps
Short answer

The L293D is a quad half-H driver that runs two small DC motors in both directions, or one small stepper, at up to 600 mA per channel. The IC suits breadboard robots; the L293D motor shield stacks two of them on an Uno to run four DC motors and two servos using the AFMotor library. Motor supply is 4.5 to 36 V.

Key specs at a glance

Channels
4 half-H drivers = 2 full H-bridges per IC
Current
600 mA continuous, 1.2 A peak per channel
Motor supply (VCC2)
4.5 to 36 V
Logic supply (VCC1)
4.5 to 7 V (use 5 V)
Protection
Built-in flyback diodes (the D in L293D)
Shield
2 x L293D + 74HC595, 4 DC motors or 2 steppers, 2 servo headers

Models in this guide

These are alternatives. Pick the one that fits your project; you only need one.

  • Option 1L293D Motor Driver Shield for Arduino Uno / Mega₹189
  • Option 2L293D Quad Half-H Motor Driver IC (DIP-16)₹55
  • Option 3L293D Motor/Servo Driver Shield for Arduino₹116
01

What the L293D motor driver is

The L293D packs four half-H drivers into a 16-pin DIP chip. Pairs of drivers form two H-bridges, each controlled by two input pins (direction) and one enable pin (on/off or PWM speed). Unlike the L293 without D, it has flyback diodes built in, so you do not need external diodes for small motors.

The motor shield version adds a 74HC595 shift register so four motors use only a few Uno pins. It suits toy-sized BO and TT motors, not large geared motors that draw more than 600 mA.

02

L293D motor driver pinout

The pins on the L293D motor driver and what each one does.

PinFunction
1 (EN1,2)Enable for bridge 1 (PWM for speed)
2, 7 (IN1, IN2)Direction inputs, bridge 1
3, 6 (OUT1, OUT2)Motor 1 terminals
4, 5, 12, 13GND and heatsink (all four must be grounded)
8 (VCC2)Motor supply 4.5 to 36 V
9 (EN3,4)Enable for bridge 2
10, 15 (IN3, IN4)Direction inputs, bridge 2
11, 14 (OUT3, OUT4)Motor 2 terminals
16 (VCC1)5 V logic supply
PinFunction
1 (EN1,2)
Enable for bridge 1 (PWM for speed)
2, 7 (IN1, IN2)
Direction inputs, bridge 1
3, 6 (OUT1, OUT2)
Motor 1 terminals
4, 5, 12, 13
GND and heatsink (all four must be grounded)
8 (VCC2)
Motor supply 4.5 to 36 V
9 (EN3,4)
Enable for bridge 2
10, 15 (IN3, IN4)
Direction inputs, bridge 2
11, 14 (OUT3, OUT4)
Motor 2 terminals
16 (VCC1)
5 V logic supply
03

Wiring the L293D motor driver

This table is for the bare IC with one motor. The shield needs no wiring: plug it onto an Uno, connect motors to M1 to M4 and the motor supply to the EXT_PWR terminal, and remove the PWR jumper if that supply is above 12 V.

L293D motor driver pinArduino UnoESP32
EN1,2 (pin 1)D9 (PWM)GPIO 25
IN1 (pin 2)D8GPIO 26
IN2 (pin 7)D7GPIO 27
VCC1 (pin 16)5V5V (VIN)
VCC2 (pin 8)Motor battery +Motor battery +
GND (4, 5, 12, 13)GNDGND
EN1,2 (pin 1)
Arduino Uno:
D9 (PWM)
ESP32:
GPIO 25
IN1 (pin 2)
Arduino Uno:
D8
ESP32:
GPIO 26
IN2 (pin 7)
Arduino Uno:
D7
ESP32:
GPIO 27
VCC1 (pin 16)
Arduino Uno:
5V
ESP32:
5V (VIN)
VCC2 (pin 8)
Arduino Uno:
Motor battery +
ESP32:
Motor battery +
GND (4, 5, 12, 13)
Arduino Uno:
GND
ESP32:
GND
04

Example code

Install the Adafruit Motor Shield library (V1, AFMotor) from the Library Manager. For the bare IC, the L298N sketch works unchanged with the same pin roles.

Four motors on the L293D shield (AFMotor library) · Arduino C++Verify & upload in Electrolark
#include <AFMotor.h>          // Adafruit Motor Shield V1 library

AF_DCMotor m1(1), m2(2), m3(3), m4(4);

void setup() {
  for (AF_DCMotor* m : {&m1, &m2, &m3, &m4}) m->setSpeed(200);   // 0-255
}

void loop() {
  for (AF_DCMotor* m : {&m1, &m2, &m3, &m4}) m->run(FORWARD);
  delay(2000);
  for (AF_DCMotor* m : {&m1, &m2, &m3, &m4}) m->run(RELEASE);
  delay(1000);
}
05

Setup and tuning

Separate supplies

run motors from their own battery and keep the logic on 5 V; motor noise can reset the Uno otherwise.

Servos on the shield

use pins 9 and 10 and take power from the Uno's 5 V, so only small SG90 servos are safe there.

Pins the shield uses

D3, D4, D5, D6, D7, D8, D11 and D12 are taken; A0 to A5 stay free for sensors.

Heat

the IC uses its ground pins as a heatsink. Solder it to a board with copper around those pins if you push near 600 mA.

06

What you need

Shop this list5 of 6 found in our store · ₹4,47,402

  • L293D motor driver shield for Uno and Mega: four motors and two servos, no wiringL293D Motor Driver Shield for Arduino Uno / Mega₹189Closest match, check the specs
  • L293D quad half-H driver IC (DIP-16): for breadboard buildsL293D Quad Half-H Motor Driver IC (DIP-16)₹55
  • L293D motor/servo driver shield: the other shield versionL293D Motor/Servo Driver Shield for Arduino₹116
  • Uno R3 development board: the controller used in the wiring tableFind this part
  • TT gear motor (yellow) 3-6 V: the motor size the L293D suitsTT Gear Motor (Yellow) 3–6V₹86
  • 18650 battery holder: for a battery-powered buildBattery Holder₹45
07

Alternatives and when to choose them

  • ✓L298N: 2 A per channel with a heatsink, for bigger motors.
  • ✓TB6612FNG: MOSFET driver, less heat and less voltage loss at similar size.
  • ✓PCA9685: if your build is mostly servos rather than DC motors.
08

Try it: Pwm duty cycle calculator

Change the values and the diagram and results update as you type.

09

Common mistakes to avoid

  • !Driving motors above 600 mA, which makes the chip shut down or fail.
  • !Powering four motors and servos from the Uno's USB port.
  • !Forgetting to connect all four GND pins of the IC.
  • !Using pins the shield already occupies for sensors.
10

Frequently asked questions

What is the difference between L293 and L293D?

The L293D has internal flyback diodes and is rated 600 mA; the L293 has no diodes but is rated 1 A. For hobby motors the L293D is simpler.

Can the L293D shield work with an ESP32?

No, it is shaped for the Uno and Mega and uses their pin layout. With an ESP32 use the bare IC or a TB6612FNG module.

How many motors can the shield run?

Four DC motors, or two stepper motors, plus two hobby servos on the servo headers.

Which library does the shield use?

The Adafruit Motor Shield V1 library, called AFMotor. The V2 library is for a different shield.

Why does my Uno reset when motors start?

The motors pull the supply down. Use a separate motor battery on EXT_PWR, remove the PWR jumper, and keep wires short.

Can I control speed?

Yes: PWM on the enable pin of the IC, or setSpeed(0-255) on the shield.

Parts for this guide

  • L293D Motor Driver Shield for Arduino Uno / Mega
    ₹189View
  • L293D Quad Half-H Motor Driver IC (DIP-16)
    ₹55View
  • L293D Motor/Servo Driver Shield for Arduino
    ₹116View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • TT Gear Motor (Yellow) 3–6V
    ₹86View
  • 18650 Battery Holder
    ₹29View
Shop DC Motor DriversShop Shields & Add-on Modules

Calculators

Pwm duty cycle calculator

Terms in this guide

H-bridgeA circuit of four switches that can drive a motor in both directions.

Projects that use it

Put this into practice: 4 step-by-step builds in our project library use parts from this guide.

Intermediate · 3 hoursLine follower robot with L293D and IR sensorsView projectIntermediate · 3 hoursObstacle avoiding robotView projectIntermediate · 3 hoursBluetooth phone-controlled 2WD robot (L293D)View project
Browse all 4 projects

Keep learning

ComparisonBeginnerMotor Drivers ExplainedA motor driver lets a low-power microcontroller control the speed and direction of motors using an H-bridge.4 min read · Motors & MotionComponent guideBeginnerDC Motors ExplainedA brushed DC motor spins when current flows through it: voltage sets the speed and the load sets the current it draws.4 min read · Motors & MotionComponent guideBeginnerServo Motors GuideA hobby servo is a small motor with a gearbox, position sensor and control circuit that moves to an angle you set with a pulse signal.3 min read · Motors & MotionBuying guideBeginnerArduino ShieldsAn Arduino shield is a board that plugs onto an Uno or Mega to add a function such as motor driving, Ethernet, an LCD or easy sensor wiring.3 min read · Boards & MicrocontrollersHow-toIntermediate74HC595 Shift RegisterThe 74HC595 turns three microcontroller pins (data, clock and latch) into eight outputs, and you can chain more chips to get 16, 24 or more outputs from the same three pins.3 min read · Semiconductors & ICs

Sources

  • L293x quadruple half-H drivers datasheet (Texas Instruments)
  • Adafruit Motor Shield V1 library documentation

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the L293D motor driver isL293D motor driver pinoutWiring the L293D motor driverExample codeSetup and tuningWhat you needAlternatives and when to choose themTry itCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide (Arduino Uno)4 items · ₹451

L293D Motor/Servo Driver Shield for Arduino · TT Gear Motor (Yellow) 3–6V · Battery Holder · Uno R3 CH340G ATmega328p Compatible Development Board

Run itChange the inputs and watch the output
M1 fwd 78%
M2 fwd 78%
M3 fwd 78%
M4 fwd 78%

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question