Main pinout
Drag to pan · Ctrl/⌘ + wheel to zoomSwipe up/down to scroll the page · Swipe sideways to pan · Use two fingers to pan and zoom
Show HAT signal routing
PIM672 combines a 40-pin Raspberry Pi pass-through header with two motor/encoder ports and four 3-pin servo headers. The MS51TC0AE drives the servo PWM and motor bridge inputs over the host I2C bus.
Pin index
Quickly scan every header pin, port name, supported function and usage note.
| Pin | MCU pin | Types | Notes |
|---|---|---|---|
| Power | Raspberry Pi physical pin 1. Host 3.3 V rail supplies the MS51TC0AE and both motor encoder power contacts. | |
| Power | Raspberry Pi physical pin 2. Host 5 V rail feeds the amplifier and MOTOR_POWER through the factory link. | |
| I2C | Raspberry Pi physical pin 3. I2C1 data to the MS51TC0AE at 0x17 and the Qw/ST connector. | |
| Power | Raspberry Pi physical pin 4. Host 5 V rail feeds the amplifier and MOTOR_POWER through the factory link. | |
| I2C | Raspberry Pi physical pin 5. I2C1 clock to the MS51TC0AE at 0x17 and the Qw/ST connector. | |
| GND | Raspberry Pi physical pin 6. Common ground for the host, motor driver, encoder and servo circuits. | |
| GPIO | Raspberry Pi physical pin 7. Interrupt line from MS51TC0AE P3.7, package pin 10. | |
| UART | Raspberry Pi physical pin 8. Host TX, also the trigger output on the unpopulated 3.3 V J9 header. | |
| GND | Raspberry Pi physical pin 9. Common ground for the host, motor driver, encoder and servo circuits. | |
| UART | Raspberry Pi physical pin 10. Host RX, also the echo input on the unpopulated 3.3 V J9 header. | |
| Pi pass-through | Raspberry Pi physical pin 11. BCM GPIO17 has no Inventor HAT Mini load shown on the PIM672 schematic. | |
| I2S | Raspberry Pi physical pin 12. Pi bit clock to the MAX98357A amplifier. | |
| Pi pass-through | Raspberry Pi physical pin 13. BCM GPIO27 has no Inventor HAT Mini load shown on the PIM672 schematic. | |
| GND | Raspberry Pi physical pin 14. Common ground for the host, motor driver, encoder and servo circuits. | |
| Pi pass-through | Raspberry Pi physical pin 15. BCM GPIO22 has no Inventor HAT Mini load shown on the PIM672 schematic. | |
| Pi pass-through | Raspberry Pi physical pin 16. BCM GPIO23 has no Inventor HAT Mini load shown on the PIM672 schematic. | |
| Power | Raspberry Pi physical pin 17. Host 3.3 V rail supplies the MS51TC0AE and both motor encoder power contacts. | |
| Pi pass-through | Raspberry Pi physical pin 18. BCM GPIO24 has no Inventor HAT Mini load shown on the PIM672 schematic. | |
| Pi pass-through | Raspberry Pi physical pin 19. BCM GPIO10 has no Inventor HAT Mini load shown on the PIM672 schematic. | |
| GND | Raspberry Pi physical pin 20. Common ground for the host, motor driver, encoder and servo circuits. | |
| Pi pass-through | Raspberry Pi physical pin 21. BCM GPIO9 has no Inventor HAT Mini load shown on the PIM672 schematic. | |
| GPIO | Raspberry Pi physical pin 22. Audio shutdown control. Drive high to enable audio when PCM_FS is active. | |
| Pi pass-through | Raspberry Pi physical pin 23. BCM GPIO11 has no Inventor HAT Mini load shown on the PIM672 schematic. | |
| Pi pass-through | Raspberry Pi physical pin 24. BCM GPIO8 has no Inventor HAT Mini load shown on the PIM672 schematic. | |
| GND | Raspberry Pi physical pin 25. Common ground for the host, motor driver, encoder and servo circuits. | |
| Pi pass-through | Raspberry Pi physical pin 26. BCM GPIO7 has no Inventor HAT Mini load shown on the PIM672 schematic. | |
| Pi pass-through | Raspberry Pi physical pin 27. BCM GPIO0 has no Inventor HAT Mini load shown on the PIM672 schematic. Raspberry Pi reserves this contact for the HAT ID bus. | |
| Pi pass-through | Raspberry Pi physical pin 28. BCM GPIO1 has no Inventor HAT Mini load shown on the PIM672 schematic. Raspberry Pi reserves this contact for the HAT ID bus. | |
| Pi pass-through | Raspberry Pi physical pin 29. BCM GPIO5 has no Inventor HAT Mini load shown on the PIM672 schematic. | |
| GND | Raspberry Pi physical pin 30. Common ground for the host, motor driver, encoder and servo circuits. | |
| Pi pass-through | Raspberry Pi physical pin 31. BCM GPIO6 has no Inventor HAT Mini load shown on the PIM672 schematic. | |
| GPIO | Raspberry Pi physical pin 32. Data for the chain of eight addressable RGB LEDs. | |
| Pi pass-through | Raspberry Pi physical pin 33. BCM GPIO13 has no Inventor HAT Mini load shown on the PIM672 schematic. | |
| GND | Raspberry Pi physical pin 34. Common ground for the host, motor driver, encoder and servo circuits. | |
| I2S | Raspberry Pi physical pin 35. Word select to the MAX98357A and the amplifier shutdown circuit. | |
| Pi pass-through | Raspberry Pi physical pin 36. BCM GPIO16 has no Inventor HAT Mini load shown on the PIM672 schematic. | |
| GPIO | Raspberry Pi physical pin 37. User button switches the line to 3.3 V when pressed. | |
| Pi pass-through | Raspberry Pi physical pin 38. BCM GPIO20 has no Inventor HAT Mini load shown on the PIM672 schematic. | |
| GND | Raspberry Pi physical pin 39. Common ground for the host, motor driver, encoder and servo circuits. | |
| I2S | Raspberry Pi physical pin 40. Pi audio data output to the MAX98357A DIN input. | |
| Motor | Motor A terminal + on MOTOR_A. | |
| Motor | Motor A terminal − on MOTOR_A. | |
| Power | MOTOR_A contact 3. 3.3 V encoder supply from the Raspberry Pi rail. | |
| Encoder | MOTOR_A contact 4. ENC_A_A reaches the MS51TC0AE at P0.7. Quadrature input at 3.3 V logic. | |
| Encoder | MOTOR_A contact 5. ENC_A_B reaches the MS51TC0AE at P0.6. Quadrature input at 3.3 V logic. | |
| GND | MOTOR_A contact 6. Encoder ground, shared with the host and the motor driver. | |
| Motor | Motor B terminal + on MOTOR_B. | |
| Motor | Motor B terminal − on MOTOR_B. | |
| Power | MOTOR_B contact 3. 3.3 V encoder supply from the Raspberry Pi rail. | |
| Encoder | MOTOR_B contact 4. ENC_B_A reaches the MS51TC0AE at P3.5. Quadrature input at 3.3 V logic. | |
| Encoder | MOTOR_B contact 5. ENC_B_B reaches the MS51TC0AE at P3.1. Quadrature input at 3.3 V logic. | |
| GND | MOTOR_B contact 6. Encoder ground, shared with the host and the motor driver. | |
| Servo PWM | Servo 1 SIG. SERVO1_W10 comes from MS51TC0AE P1.2 (package pin 20, PWM1 CH0) through a 180 Ω resistor in RN2. | |
| Power | Servo 1 +. Shared motor/servo rail. 5 V from the Pi on an unmodified board. | |
| GND | Servo 1 GND. Common servo and board ground. | |
| Servo PWM | Servo 2 SIG. SERVO2_W30 comes from MS51TC0AE P3.2 (package pin 19, PWM3 CH0) through a 180 Ω resistor in RN2. | |
| Power | Servo 2 +. Shared motor/servo rail. 5 V from the Pi on an unmodified board. | |
| GND | Servo 2 GND. Common servo and board ground. | |
| Servo PWM | Servo 3 SIG. SERVO3_W31 comes from MS51TC0AE P3.4 (package pin 32, PWM3 CH1) through a 180 Ω resistor in RN2. | |
| Power | Servo 3 +. Shared motor/servo rail. 5 V from the Pi on an unmodified board. | |
| GND | Servo 3 GND. Common servo and board ground. | |
| Servo PWM | Servo 4 SIG. SERVO4_W11 comes from MS51TC0AE P2.2 (package pin 15, PWM1 CH1) through a 180 Ω resistor in RN2. | |
| Power | Servo 4 +. Shared motor/servo rail. 5 V from the Pi on an unmodified board. | |
| GND | Servo 4 GND. Common servo and board ground. |
References
Manufacturer references and technical documentation.
| Chip | Role | Manufacturer | Notes | Link |
|---|---|---|---|---|
PIM672 | Schematic | Pimoroni | Two sheets, generated 17 April 2023. | Datasheet |
Motor JST-SH | Physical contact order | Pimoroni forum | Top-layer layout excerpt of both JST-SH footprints. | Datasheet |
MS51TC0AE | I2C motor and servo control | Pimoroni | Channel numbers and library defaults. | Datasheet |
DRV8833 | Dual H-bridge | Texas Instruments | Bridge output names and operation. | Datasheet |
Raspberry Pi | GPIO orientation | Raspberry Pi | Host physical numbering and 3.3 V levels. | Datasheet |