Raspberry Pi Motor Driver HAT
This add-on board enables a Raspberry Pi B+, A+, or Pi 2 to drive a pair of brushed DC motors. Its dual MC33926 motor drivers operate from 5 V to 28 V and can deliver a continuous 3 A (5 A peak) per motor. The default pin mappings make it easy to get started using our provided software, but the board also exposes most of the driver chips’ I/O pins for more specialized applications. This version ships fully assembled with connectors soldered in.
Quick Spec
- Motor driver: MC33926
- Motor channels: 2
- Minimum operating voltage: 5 V2
- Maximum operating voltage: 28 V3
- Continuous output current per channel: 3 A
- Peak output current per channel: 5 A
- Maximum PWM frequency: 20 kHz
- Reverse voltage protection?: Y
Notes
- Operation from 5 V to 8 V reduces maximum current output.
- The device is protected for transients up to 40 V.
Code
To use the Raspberry Pi Motor Driver HAT with dual MC33926 motor drivers, you will need to control the motor driver HAT using the Raspberry Pi's GPIO pins. Here's a Python script using the RPi.GPIO library to control the motors:
This Python script demonstrates basic control of the Motor Driver HAT's dual MC33926 motor drivers. The script sets up the Raspberry Pi's GPIO pins to control the motor drivers, initializes PWM signals for speed control, and defines a function set_motor_speeds() to set the speeds of both motors. In the main loop, the motors are controlled to move forward, stop, move backward, and stop again in a repeating cycle.
Before running the script, make sure you have installed the RPi.GPIO library on your Raspberry Pi:
pip install RPi.GPIO
To run the script, save it as a Python file (e.g., motor_driver_hat.py) and execute it using Python 3:
python3 motor_driver_hat.py
Keep in mind that this script is for basic motor control; you can modify it to control the motors in response to sensor inputs, user input, or other events depending on your specific project requirements.
Resources
Shipping List
- 1 x Raspberry Pi Motor Driver HAT
Raspberry Pi Motor Driver HAT
- Brand: Pololu Electronics
- Product Code: 2756
- Weight: 0.03kg
- Product Status : Active
Stock
| Warehouse | Stock Status | Location |
|---|---|---|
| Centurion | Limited Stock | H6 |
| Stellenbosch | Limited Stock | X0330 |
We ship free of charge between branches to complete your order.
-
R598.00 (Inc Tax: R687.70)
Related Products
Wave Stepper HAT for Raspberry Pi
Wave Stepper HAT for Raspberry Pi This Stepper HAT enables a Raspberry Pi Pi Zero/Zero W/Zero WH/2B/3B/3B+ to drive a pair of stepper motors. Its dual HR8825 motor drivers operate from 8.2V to 28V ..
R298.00 (Inc Tax: R342.70)



