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.