The Adafruit Motor Bonnet is a versatile and compact motor control board designed for the Raspberry Pi. It allows users to easily connect and control up to four DC motors or two stepper motors, making it an ideal choice for a wide range of robotics and automation projects. The bonnet's HAT (Hardware Attached on Top) form factor ensures a seamless integration with the Raspberry Pi, providing a neat and efficient solution for motor control.
Pin Number | Function | Description |
---|---|---|
1 | Motor 1 A | Output A for Motor 1 |
2 | Motor 1 B | Output B for Motor 1 |
3 | Motor 2 A | Output A for Motor 2 |
4 | Motor 2 B | Output B for Motor 2 |
5 | Motor 3 A | Output A for Motor 3 (if using DC motors) |
6 | Motor 3 B | Output B for Motor 3 (if using DC motors) |
7 | Motor 4 A | Output A for Motor 4 (if using DC motors) |
8 | Motor 4 B | Output B for Motor 4 (if using DC motors) |
9-12 | Stepper Motor 1 | Outputs for Stepper Motor 1 (if using steppers) |
13-16 | Stepper Motor 2 | Outputs for Stepper Motor 2 (if using steppers) |
17 | Power (VMotor) | Motor power supply (4.5V to 13.5V) |
18 | Ground | Ground connection |
19 | I2C SDA | I2C Data line for communication with Raspberry Pi |
20 | I2C SCL | I2C Clock line for communication with Raspberry Pi |
Q: Can I control servo motors with the Motor Bonnet? A: No, the Motor Bonnet is designed for DC and stepper motors. For servo control, consider using a dedicated servo controller.
Q: How do I stack multiple Motor Bonnets? A: You can stack multiple bonnets by assigning unique I2C addresses to each bonnet. Refer to the Adafruit guide on stacking HATs for detailed instructions.
Q: Can I use this with a Raspberry Pi Zero? A: Yes, the Motor Bonnet is compatible with the Raspberry Pi Zero, but you will need a GPIO header soldered onto the Pi Zero.
Q: Is there a software library available for the Motor Bonnet? A: Yes, Adafruit provides a Python library specifically for controlling the Motor Bonnet. It can be installed via pip and used in your projects.
For further assistance, consult the Adafruit Motor Bonnet forums or contact Adafruit support.