ToolSphere
All perfboard layouts

L293D Dual Motor Nano Perfboard Layout

Both H-bridges drive separate DC motors, with independent PWM enables from a classic 5 V Arduino Nano. Schematic-verified, not prototype-tested.

Nano + L293D two-motor driver perfboard layoutA1 NanoU1 L293DJ1 LOGIC 5VJ2 MOTOR POWERJ3 MOTOR AJ4 MOTOR BR1 10kR2 10kC1 100nC2 100nC3 100u
Open this layout in the simulator Connection check: no shorts, 13 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

Motor A connects across J3, from 1Y to 2Y; motor B connects across J4, from 3Y to 4Y. D3 enables the first bridge and D6 enables the second. Direction inputs are D4/D5 for A and D7/D8 for B. These are classic ATmega328P Nano pin names, not ESP32 GPIO numbers.

With an enable high, opposite direction levels turn that motor one way or the other. Equal direction levels brake it; a low enable makes its outputs high impedance. Initialize both enables low, set directions, then apply PWM. Stop before reversing a running motor. The two 10 kΩ enable pulldowns hold the bridges disabled during a high-impedance controller reset. At an ideal 5 V high, the site's Ohm's law library computes 0.5 mA in each pulldown.

J1 supplies regulated 5 V to the Nano's 5V pin and L293D logic VCC1. J2 supplies the motor rail VM to VCC2; its return joins logic ground. Never feed the motors from a Nano GPIO or its small onboard regulator. Use one Nano power source: disconnect J1 before USB programming, with motor power off. VIN is intentionally unused.

The TI L293D datasheet defines the output limits and clamp diodes. Use the D variant, check motor stall current and total package heating, and allow for bridge voltage loss. Its current rating does not guarantee two stalled motors can run continuously together. Choose VM within the datasheet's recommended range and the motors' ratings; this layout assumes VM is at least the 5 V logic rail.

C1 bypasses logic power; C2 bypasses motor power and C3 provides local bulk capacitance with its positive terminal on VM. Keep bypass leads short and size the bulk capacitor for the actual supply and wiring. All four driver ground pins are connected. They also conduct heat, so a wire-only perfboard build needs careful thermal testing.

Use isolated-pad perfboard with insulated jumpers. Crossing jumpers are not solder joints; only their endpoints connect. The top-row points are junctions, not a continuous copper bus. The connection checker verifies intended continuity and shorts, not motor dynamics, heating, startup firmware or physical wire clearance.

Building it, step by step

  1. Fit Nano sockets and a DIP-16 socket, checking the Nano USB orientation and L293D notch. Identify all pins before soldering.
  2. Wire J1 to 5V/VCC1 and J2 to VM/VCC2. Join both supply returns, both Nano grounds and all four L293D grounds.
  3. Fit the two 100 nF bypass capacitors close to their supply pins and the 100 µF motor capacitor with correct polarity.
  4. Connect D3/D6 to the enables with a separate 10 kΩ pulldown on each. Wire D4/D5 and D7/D8 to the corresponding direction inputs.
  5. Connect each motor header across its own output pair. With power removed, check no supply shorts and compare every intended net with the simulator.
  6. Start with motors disconnected and enables low. Verify power rails, load a suitable sketch, then test one unloaded motor at a time on a current-limited supply.

Tools for this build

Frequently asked questions

Can the two motors run at different speeds?

Yes. D3 and D6 independently control the two enable inputs with PWM in your sketch. The layout itself does not include firmware or simulate speed.

Is this the existing single-motor layout?

No. Both bridges are connected here, with two motor headers and two enable pulldowns. The existing single-motor layout remains available separately.

Can I use an L293 without the D suffix?

Do not substitute it directly. The L293D includes output clamp diodes; a different driver needs its own inductive-load protection and rating review.

Does no shorts mean the motors are safe to run?

No. Verify supply polarity, motor stall current, driver temperature and firmware behavior on the actual build. This layout has not been physically prototype-tested.