MX1508 dual DC motor driver with ESP32

Supply 2-9.6 V Bus GPIO
+-IN1IN2IN3IN4MA1MA2MB1MB2

Pins and ESP32 wiring

PinRoleESP32 pinNotes
+Not wired to the ESP32—Pin order varies between boards: match by the printed label. Motor supply 2 to 9.6 V
-GroundGNDShare it with the motor supply and the ESP32 GND
IN1Input (the ESP32 drives it)D25Motor A
IN2Input (the ESP32 drives it)D26Motor A
IN3Input (the ESP32 drives it)D27Motor B
IN4Input (the ESP32 drives it)D32Motor B
MA1Not wired to the ESP32—Motor A
MA2Not wired to the ESP32—Motor A
MB1Not wired to the ESP32—Motor B
MB2Not wired to the ESP32—Motor B

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

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.