# Wireless Dual Stepper Control with Adafruit IO, Raspberry Pi and Python

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/071/177/medium800thumb/raspberry_pi_ezgif.com-video-to-gif_%283%29.jpg?1550505640)

Easily bring your Raspberry-Pi-controlled stepper motor projects online using the Motor Hat, CircuitPython libraries, and Adafruit IO. You can wirelessly control up to&nbsp;_two&nbsp;_steppers from a single Adafruit IO Dashboard!

If you're building a home automation or robotics project which needs to be connected to the internet - _look no further._

## Adafruit IO

&nbsp;

Adafruit IO is our Internet of Things Platform - _for everyone!_&nbsp; You'll create _feeds_ to store the stepper's configuration: speed, step style, and direction.

To control it all, you'll build an interactive Adafruit IO Dashboard with buttons, switches, and toggles.&nbsp;

![raspberry_pi_Kapture_2019-02-14_at_13.36.50.gif](https://cdn-learn.adafruit.com/assets/assets/000/071/137/medium640thumb/raspberry_pi_Kapture_2019-02-14_at_13.36.50.jpg?1550169620)

## CircuitPython Code

&nbsp;

Adafruit's Circuit Python works on the Raspberry Pi! You will use the&nbsp;[CircuitPython](https://github.com/adafruit/Adafruit_CircuitPython_MotorKit/)&nbsp;[MotorKit](https://github.com/adafruit/Adafruit_CircuitPython_MotorKit/)&nbsp;library to control two stepper motors connected to the DC & Stepper Motor Hat. Connect them to the internet using the&nbsp;[Adafruit IO Python](https://github.com/adafruit/Adafruit_IO_Python)&nbsp;library. With Adafruit IO, you can upload new stepper motor configurations and control the steppers attached to the Raspberry Pi - wirelessly! You can rapidly update your code without having to compile and there's plenty of libraries, examples, and support.

![raspberry_pi_blinkapi.gif](https://cdn-learn.adafruit.com/assets/assets/000/071/167/medium640/raspberry_pi_blinkapi.gif?1550190104)

## Prerequisite Guides

If you're new to Adafruit IO or CircuitPython libraries, take a moment to walk through the following guides to get you started.

- [Circuit Python libraries on Raspberry Pi](https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/)
- [Welcome to Adafruit IO](https://learn.adafruit.com/welcome-to-adafruit-io/)

## Parts
### 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)
![Angled shot of Adafruit DC & Stepper Motor HAT.](https://cdn-shop.adafruit.com/640x480/2348-07.jpg)

You'll want to pick up&nbsp; **two&nbsp;** of these NEMA-17 size stepper motors.&nbsp;

### 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)
![Angled shot of a Stepper motor - NEMA-17.](https://cdn-shop.adafruit.com/640x480/324-03.jpg)

### Raspberry Pi 3 - Model B+ - 1.4GHz Cortex-A53 with 1GB RAM

[Raspberry Pi 3 - Model B+ - 1.4GHz Cortex-A53 with 1GB RAM](https://www.adafruit.com/product/3775)
The Raspberry Pi 3 Model B is the most popular Raspberry Pi computer made, and the Pi Foundation knows you can always make a good thing _better_! And what could make the Pi 3 better? How about a&nbsp;_faster_ processor, 5 GHz WiFi, and updated Ethernet chip with PoE capability?...

In Stock
[Buy Now](https://www.adafruit.com/product/3775)
[Related Guides to the Product](https://learn.adafruit.com/products/3775/guides)
![Angled shot of Raspberry Pi 3 - Model B+](https://cdn-shop.adafruit.com/640x480/3775-11.jpg)

## Materials
You'll need some extra supplies to finish this project. If you do not have them already, pick some up from Adafruit:

### Part: DC Power Adapter
quantity: 1
Female DC Power adapter - 2.1mm jack to screw terminal block
[DC Power Adapter](https://www.adafruit.com/product/368)

### Part: MicroSD Card with OS
quantity: 1
16GB Card with NOOBS 2.9
[MicroSD Card with OS](https://www.adafruit.com/product/1583)

### Part: Power Supply
quantity: 1
12V 5A switching power supply
[Power Supply](https://www.adafruit.com/product/352)

### Part: Power Supply with MicroUSB 
quantity: 1
5V 2.5A Switching Power Supply with 20AWG MicroUSB Cable
[Power Supply with MicroUSB ](https://www.adafruit.com/product/1995)

- [Next Page](https://learn.adafruit.com/wireless-stepper-control-with-adafruit-io-circuitpython-raspberry-pi-python/adafruit-io-setup.md)

## Featured 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)
### Raspberry Pi 3 - Model B+ - 1.4GHz Cortex-A53 with 1GB RAM

[Raspberry Pi 3 - Model B+ - 1.4GHz Cortex-A53 with 1GB RAM](https://www.adafruit.com/product/3775)
The Raspberry Pi 3 Model B is the most popular Raspberry Pi computer made, and the Pi Foundation knows you can always make a good thing _better_! And what could make the Pi 3 better? How about a&nbsp;_faster_ processor, 5 GHz WiFi, and updated Ethernet chip with PoE capability?...

In Stock
[Buy Now](https://www.adafruit.com/product/3775)
[Related Guides to the Product](https://learn.adafruit.com/products/3775/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)
### 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)
### 16GB Card with NOOBS 3.0

[16GB Card with NOOBS 3.0](https://www.adafruit.com/product/1583)
NooBs 3.0 is the fastest way to have a variety of operating systems on your Pi. Available on a 16G card, you can now boot multiple OS's such as Raspbian, Pidora, RaspBMC, Snappy Ubuntu, etc. There's a boot up menu for selecting which one you like. **This card has NooBs 3.0 on it,...**

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1583)
[Related Guides to the Product](https://learn.adafruit.com/products/1583/guides)
### 12V 5A switching power supply

[12V 5A switching power supply](https://www.adafruit.com/product/352)
This is a beefy switching supply, for when you need a lot of power! It can supply 12V DC up to 5 Amps, running from 110V or 220V power (the plug it comes with is for US/Canada/Japan but you can use any plug adapter for your country, or just replace the cable with a standard 'figure-8'...

Out of Stock
[Buy Now](https://www.adafruit.com/product/352)
[Related Guides to the Product](https://learn.adafruit.com/products/352/guides)
### 5V 2.5A Switching Power Supply with 20AWG MicroUSB Cable

[5V 2.5A Switching Power Supply with 20AWG MicroUSB Cable](https://www.adafruit.com/product/1995)
Our all-in-one 5V 2.5 Amp + MicroUSB cable power adapter is the perfect choice for powering single-board computers like Raspberry Pi, BeagleBone, or anything else that's power-hungry!

This adapter was specifically designed to provide 5.25V, not 5V, but we still call it a 5V USB...

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

## Related Guides

- [Adafruit DC and Stepper Motor HAT for Raspberry Pi](https://learn.adafruit.com/adafruit-dc-and-stepper-motor-hat-for-raspberry-pi.md)
- [Raspberry Pi Physical Dashboard](https://learn.adafruit.com/raspberry-pi-physical-dashboard.md)
- [Simple Raspberry Pi Robot](https://learn.adafruit.com/simple-raspberry-pi-robot.md)
- [Robotic AI Bear using ChatGPT](https://learn.adafruit.com/robotic-ai-bear-using-chatgpt.md)
- [DIY Pico Mechanical Keyboard with Fritzing and CircuitPython](https://learn.adafruit.com/diy-pico-mechanical-keyboard-with-fritzing-circuitpython.md)
- [Running TensorFlow Lite Object Recognition on the Raspberry Pi 4 or Pi 5](https://learn.adafruit.com/running-tensorflow-lite-on-the-raspberry-pi-4.md)
- [MIDI Controlled Robot Lyre with CircuitPython](https://learn.adafruit.com/midi-controlled-robot-lyre-with-circuitpython.md)
- [IoT Temperature Logger with Analog Devices ADT7410, Raspberry Pi, and Adafruit IO](https://learn.adafruit.com/iot-temperature-logger-with-python-and-adafruit-io.md)
- [Scan QR Codes with CircuitPython](https://learn.adafruit.com/scan-qr-codes-with-circuitpython.md)
- [Python Edge Speech Recognition with Voice2JSON](https://learn.adafruit.com/edge-speech-recognition-with-voice2json.md)
- [Adafruit QT Py SAMD21](https://learn.adafruit.com/adafruit-qt-py.md)
- [Adafruit I2C to 8 Channel Solenoid Driver](https://learn.adafruit.com/adafruit-i2c-to-8-channel-solenoid-driver.md)
- [Adafruit TB6612 1.2A DC/Stepper Motor Driver Breakout Board](https://learn.adafruit.com/adafruit-tb6612-h-bridge-dc-stepper-motor-driver-breakout.md)
- [Adafruit STSPIN220 Stepper Motor Driver Breakout Board](https://learn.adafruit.com/adafruit-stspin220-stepper-motor-driver-breakout-board.md)
- [Adafruit Qualia ESP32-S3 for RGB-666 Displays](https://learn.adafruit.com/adafruit-qualia-esp32-s3-for-rgb666-displays.md)
