L293D motor driver chip (DIP-16) with ESP32

Supply 5 V Bus GPIO
EN121A1YGND1GND22Y2AVCC2EN343A3YGND3GND44Y4AVCC1

Pins and ESP32 wiring

PinRoleESP32 pinNotes
EN12Input (the ESP32 drives it)D25Pin 1: enables channels 1 and 2 (PWM for speed)
1AInput (the ESP32 drives it)D26Pin 2: input 1
1YNot wired to the ESP32—Pin 3: output 1, to the motor
GND1GroundGNDPins 4, 5, 12, 13 are ground and heat sink
GND2GroundGND
2YNot wired to the ESP32—Pin 6: output 2, to the motor
2AInput (the ESP32 drives it)D27Pin 7: input 2
VCC2Not wired to the ESP32—Pin 8: motor supply 4.5 to 36 V
EN34Input (the ESP32 drives it)D32Pin 9: enables channels 3 and 4
3AInput (the ESP32 drives it)D33Pin 10: input 3
3YNot wired to the ESP32—Pin 11: output 3
GND3GroundGND
GND4GroundGND
4YNot wired to the ESP32—Pin 14: output 4
4AInput (the ESP32 drives it)D23Pin 15: input 4
VCC1PowerVINPin 16: logic supply 4.5 to 7 V: use VIN. Inputs accept 3.3 V

Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.

This module is sold for 5 V. Its outputs may be 5 V: use a level shifter or a voltage divider on ESP32 inputs.

Sources

Try it in 3D in BoardPilot

BoardPilot Part data (JSON)

Related parts

Part data: CC BY 4.0, free to reuse with credit to BoardPilot.