Pin Mapping: motors and GPIO reference
A concise mapping reference for motor outputs, PWM ports and GPIO wiring direction.
Updated: 2026-04-03
Motor outputs
- Motor 1: GPIO 21 / GPIO 20
- Motor 2: GPIO 0 / GPIO 10
- Motor 3: GPIO 1 / GPIO 2
- Motor 4: GPIO 4 / GPIO 3
PWM / GPIO ports
The four right-side ports map to:
- GPIO 5
- GPIO 6
- GPIO 7
- GPIO 8
Connector direction
The right-side 2.54 connector stack follows GND / VCC / GPIO ordering. Verify the wire orientation before attaching a servo or peripheral.