ToolSphere
All perfboard layouts

L293D Motor Driver Perfboard Layout

Drive one brushed DC motor in either direction from an Arduino Nano through the first half of an L293D. Logic power and motor power are separate, with a common ground.

L293D H-bridge + Nano perfboard layoutA1 NanoU1 L293DJ1 LOGIC 5VJ2 MOTOR POWERJ3 MOTORR1 10kC1 100nC2 100nC3 100u
Open this layout in the simulator Connection check: no shorts, 8 named nets

Red wires carry power, white is ground, yellow and blue are signals. Every hole is an isolated pad; connections are the wires shown. In the simulator you can move parts, add your own and re-run the check.

Parts list

As an Amazon Associate, ToolSphere earns from qualifying purchases.

How it works

The Nano drives enable from D3 and direction from D4/D5. The L293D drives the motor between outputs 1Y and 2Y; the motor is not connected directly to a GPIO. Keep enable low while selecting direction, then enable the bridge. Disable before reversing a moving motor.

The second bridge is unused: its enable and inputs are grounded, while outputs 3Y and 4Y are deliberately open. The board check permits those named open outputs and the Nano's unused module pins.

R1 is a 10 kΩ enable pulldown, keeping the bridge disabled while the Nano pin is high impedance. At a 5 V logic high it draws 5 / 10000 = 0.5 mA, computed with the resistance-sharing library. C1 and C2 are 100 nF bypass capacitors on the logic and motor supplies; C3 is a 100 µF motor-rail bulk capacitor. Fit them close to the supply pins with voltage ratings suitable for the actual rails.

Use the L293D variant with its internal clamp diodes, not an unspecified pin-compatible replacement. Check the TI datasheet for supply, current, thermal and switching constraints. The chip has a voltage drop; the layout does not guarantee the motor will receive its supply's full voltage or tolerate the motor's stall current.

This is isolated-pad perfboard, not stripboard: no track cuts are required. The labelled top-row holes are solder junctions. Route insulated point-to-point jumpers on the underside; crossings away from endpoints do not join. The drawing checks connectivity, not current capacity or physical wire insulation. Do not power the motor from the Nano's logic rail.

Building it, step by step

  1. Fit the Nano and DIP socket in the shown orientation. Follow the numbered L293D package diagram; do not infer pin order from wire colour.
  2. Wire logic +5V to Nano 5V and L293D VCC1. Join the logic and motor grounds, including every driver ground pin.
  3. Connect the motor supply to VCC2 and fit the bypass/bulk capacitors with correct electrolytic polarity. Keep the motor-current return short.
  4. Wire D3 to enable with the 10 kΩ pulldown, D4/D5 to the two direction inputs, and outputs 1Y/2Y to the motor header.
  5. Ground the unused bridge inputs and enable; leave its two outputs open. Check unpowered continuity and supply polarity before testing.
  6. Use regulated logic power appropriate for the Nano. Avoid back-feeding its USB supply; check the actual board power-path documentation before connecting multiple sources.

Tools for this build

Frequently asked questions

Can the motor run directly from a Nano pin?

No. The GPIOs provide logic signals; the motor current goes through the driver and its separate power path. Choose the motor supply and driver for the actual load and stall current.

Why is there an enable pulldown?

It keeps the bridge disabled when the controller pin is not actively driven. It does not replace firmware that initializes the output states deliberately.

Why are two outputs left open?

Only one bridge is used for this motor. The unused bridge is disabled and its inputs are grounded; its outputs are intentionally unconnected.

Can I build the same coordinates on stripboard?

Not without designing and checking track cuts. This board assumes isolated pads; continuous copper strips would create unintended connections.