# Adafruit DC and Stepper Motor HAT for Raspberry Pi

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/022/670/medium800/raspberry_pi_2348_iso_demo_01_ORIG.jpg?1422298425)

Let your robotic dreams come true with the new DC+Stepper Motor HAT or DC+Stepper Motor Bonnet from Adafruit. These Raspberry Pi add-ons are perfect for any motion project as they can drive up to 4 DC or 2 Stepper motors with full PWM speed control.

**Raspberry Pi and motors are not included**

![](https://cdn-learn.adafruit.com/assets/assets/000/143/732/medium800/adafruit_products_4280-12.jpg?1776167486)

Since the Raspberry Pi does not have a lot of PWM pins, we use a **fully-dedicated PWM driver chip** onboard to both control motor direction and speed. This chip handles all the motor and speed controls over I2C. Only two GPIO pins (SDA & SCL) are required to drive the multiple motors, and since it's I2C you can also connect any other I2C devices or HATs to the same pins.

In fact, **you can even stack multiple Motor HATs or multiple Bonnets** , up to 32 of them, for controlling up to 64 stepper motors or 128 DC motors - just remember to purchase and solder in a stacking header instead of the one we include.

Info: 

![](https://cdn-learn.adafruit.com/assets/assets/000/022/699/medium800/raspberry_pi_Motor_Hat_iso_demo_03B_ORIG.jpg?1422313673)

Motors are controlled TB6612 MOSFET driver: with **1.2A per channel current capability** (20ms long bursts of 3A peak) **,** a big improvement over L293D drivers and there are built-in flyback diodes as well.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/671/medium800/raspberry_pi_2348_top_ORIG.jpg?1422298449)

We even had a little space so we added a polarity protection FET on the power pins and a bit of prototyping area. And the HAT is assembled and tested here at Adafruit so all you have to do is solder on the included 2x20 plain header and the terminal blocks.

Lets check out these specs again:

- 4 H-Bridges: TB6612 chipset provides **1.2A per bridge** (3A brief peak) with thermal shutdown protection, internal kickback protection diodes. Can run motors on 4.5VDC to 13.5VDC.
- **Up to 4 bi-directional DC** motors with individual 8-bit speed selection (so, about 0.5% resolution)
- **Up to 2 stepper motors** (unipolar or bipolar) with single coil, double coil, interleaved or micro-stepping.
- Big terminal block connectors to easily hook up wires (18-26AWG) and power
- Polarity protected 2-pin terminal block and jumper to connect external 5-12VDC power
- Works best with Raspberry Pi model B+ and A+, [but can be used with a model A or B if you purchase a 2x13 extra-tall header and solder that instead of the 2x20](https://www.adafruit.com/product/1658)
- Install the easy-to-use Python library, check out the examples and you're ready to go!

![](https://cdn-learn.adafruit.com/assets/assets/000/022/672/medium800/raspberry_pi_2348_kit_ORIG.jpg?1422298494)

Comes with an assembled & tested HAT, terminal blocks, and 2x20 plain header. Some soldering is required to assemble the headers on. [Stacking header not included, but we sell them in the shop so if you want to stack HATs, please pick one up at the same time.](https://www.adafruit.com/products/2223)

**Raspberry Pi and motors are not included** but we have lots of motors in the shop and all our DC motors, and stepper motors work great.

 **Bonnet Revision History:**

- **As of April 13th, 2026&nbsp;–** &nbsp;The design of Motor Bonnet has been updated with the addition of a Stemma QT connector on the I2C lines for plug-and-play usage.
- **As of May 14, 2024** &nbsp;- We updated this PCB with&nbsp;[Adafruit Pinguin](https://github.com/adafruit/Adafruit_Pinguin) to make a lovely and legible silkscreen and green terminal blocks - you may get the new PCB or the older version with vector fonts and black terminal blocks - both are identical other than the fancy silkscreen.

**HAT Revision History:&nbsp;**

- **As of Sep 27, 2023** &nbsp;– we've updated this PCB with&nbsp;[Adafruit Pinguin](https://github.com/adafruit/Adafruit_Pinguin)&nbsp;to make a lovely and legible silkscreen and it now comes fully assembled&nbsp;with all terminal blocks already attached. A riser header is included so it can clear the height of the bigger Pi computers.  
Note this version has solder in the 2x20 connector so it cannot be stacked - we'll try to fix for next revision!

- [Next Page](https://learn.adafruit.com/adafruit-dc-and-stepper-motor-hat-for-raspberry-pi/assembly.md)

## Primary Products

### Adafruit DC & Stepper Motor HAT for Raspberry Pi - Mini Kit

[Adafruit DC & Stepper Motor HAT for Raspberry Pi - Mini Kit](https://www.adafruit.com/product/2348)
Let your robotic dreams come true with the new DC+Stepper Motor HAT from Adafruit. This Raspberry Pi add-on is perfect for any motion project as it can drive up to 4 DC or 2 Stepper motors with full PWM speed control.

**Raspberry Pi and motors are not included. Works with any and...**

In Stock
[Buy Now](https://www.adafruit.com/product/2348)
[Related Guides to the Product](https://learn.adafruit.com/products/2348/guides)
### Adafruit DC & Stepper Motor Bonnet for Raspberry Pi

[Adafruit DC & Stepper Motor Bonnet for Raspberry Pi](https://www.adafruit.com/product/4280)
Let your robotic dreams come true with the new DC+Stepper Motor Bonnet from Adafruit. This Raspberry Pi add-on is perfect for any motion project as it can drive up to 4 DC or 2 Stepper motors with full PWM speed control. We basically took our super-popular DC+Stepper Motor HAT and squeezed it...

Out of Stock
[Buy Now](https://www.adafruit.com/product/4280)
[Related Guides to the Product](https://learn.adafruit.com/products/4280/guides)

## Featured Products

### Female DC Power adapter - 2.1mm jack to screw terminal block

[Female DC Power adapter - 2.1mm jack to screw terminal block](https://www.adafruit.com/product/368)
If you need to connect a DC power wall wart to a board that doesn't have a DC jack - this adapter will come in very handy! There is a 2.1mm DC jack on one end, and a screw terminal block on the other. The terminals are labeled with positive/negative assuming a positive-tip configuration...

In Stock
[Buy Now](https://www.adafruit.com/product/368)
[Related Guides to the Product](https://learn.adafruit.com/products/368/guides)
### Stepper motor - NEMA-17 size - 200 steps/rev, 12V 350mA

[Stepper motor - NEMA-17 size - 200 steps/rev, 12V 350mA](https://www.adafruit.com/product/324)
A stepper motor to satisfy all your robotics needs! This 4-wire bipolar stepper has 1.8° per step for smooth motion and a nice holding torque. The motor was specified to have a max current of 350mA so that it could be driven easily with an <a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/324)
[Related Guides to the Product](https://learn.adafruit.com/products/324/guides)
### DC Toy / Hobby Motor - 130 Size

[DC Toy / Hobby Motor - 130 Size](https://www.adafruit.com/product/711)
These are standard '130 size' DC hobby motors. They come with a wider operating range than most toy motors: from 4.5 to 9VDC instead of 1.5-4.5V. This range makes them perfect for controlling with an Adafruit Motor Shield, or with an Arduino where you are more likely to have 5 or 9V...

In Stock
[Buy Now](https://www.adafruit.com/product/711)
[Related Guides to the Product](https://learn.adafruit.com/products/711/guides)
### 6 x AA battery holder with 5.5mm/2.1mm plug

[6 x AA battery holder with 5.5mm/2.1mm plug](https://www.adafruit.com/product/248)
Make a portable power brick with plenty of juice! Use Alkaline AA's for a 9V 3000-4000mAh power supply, or rechargeable NiMH for 2000mAh 7.5V supply. Either one is good for running electronics that have a 5V voltage regulator (thus requiring a 7V+ supply). Will last about 10 times longer...

In Stock
[Buy Now](https://www.adafruit.com/product/248)
[Related Guides to the Product](https://learn.adafruit.com/products/248/guides)
### 4 x AA Battery Holder with On/Off Switch

[4 x AA Battery Holder with On/Off Switch](https://www.adafruit.com/product/830)
Make a nice portable power pack with this 4 x AA battery holder. It fits any alkaline or rechargeable AA batteries in series. There's a snap on cover and an on/off switch which can be handy when wiring to something without a switch.

**New**! We now have 0.1" headers...

In Stock
[Buy Now](https://www.adafruit.com/product/830)
[Related Guides to the Product](https://learn.adafruit.com/products/830/guides)
### 8 x AA battery holder with 5.5mm/2.1mm Plug and On/Off Switch

[8 x AA battery holder with 5.5mm/2.1mm Plug and On/Off Switch](https://www.adafruit.com/product/875)
Make a portable power brick with plenty of juice! Use Alkaline AA's for a 12V 3000-4000mAh power supply, or rechargeable NiMH for 2000mAh 9.6V supply. Either one is good for running electronics that have a 5V voltage regulator (thus requiring a 7V+ supply) or perhaps some motors or...

In Stock
[Buy Now](https://www.adafruit.com/product/875)
[Related Guides to the Product](https://learn.adafruit.com/products/875/guides)

## Related Guides

- [Robotic AI Bear using ChatGPT](https://learn.adafruit.com/robotic-ai-bear-using-chatgpt.md)
- [Simple Raspberry Pi Robot](https://learn.adafruit.com/simple-raspberry-pi-robot.md)
- [Wireless Dual Stepper Control with Adafruit IO, Raspberry Pi and Python](https://learn.adafruit.com/wireless-stepper-control-with-adafruit-io-circuitpython-raspberry-pi-python.md)
- [Raspberry Pi Physical Dashboard](https://learn.adafruit.com/raspberry-pi-physical-dashboard.md)
- [Adafruit PiOLED - 128x32 Mini OLED for Raspberry Pi](https://learn.adafruit.com/adafruit-pioled-128x32-mini-oled-for-raspberry-pi.md)
- [Adafruit Hallowing M4](https://learn.adafruit.com/adafruit-hallowing-m4.md)
- [How To Solder Headers](https://learn.adafruit.com/how-to-solder-headers.md)
- [Adafruit Metro RP2040](https://learn.adafruit.com/adafruit-metro-rp2040.md)
- [Adafruit Pi Box Plus](https://learn.adafruit.com/adafruit-pi-box-plus.md)
- [Adafruit 3.5" Capacitive Touch TFT FeatherWing](https://learn.adafruit.com/adafruit-3-5-capacitive-touch-tft-featherwing.md)
- [Halloween Scream Box](https://learn.adafruit.com/halloween-scream-box.md)
- [Adafruit pIRkey](https://learn.adafruit.com/adafruit-pirkey-python-programmable-infrared-usb-adapter.md)
- [Articulating Retina Monitor](https://learn.adafruit.com/articulating-retina-monitor.md)
- [Adafruit Metro M4 Express AirLift (WiFi)](https://learn.adafruit.com/adafruit-metro-m4-express-airlift-wifi.md)
- [Adafruit Joy Bonnet for Raspberry Pi](https://learn.adafruit.com/adafruit-joy-bonnet-for-raspberry-pi.md)
