Jan Cumps
Published © MIT

Raspberry Pico PIO Stepper Motor driver: 4 motors per PIO

Control steppers with Pico PIO. Each PIO controls 4 motors. Up to 12 motors for a Pico 2. For robotics and industrial automation.

IntermediateFull instructions provided4 hours313
Raspberry Pico PIO Stepper Motor driver: 4 motors per PIO

Things used in this project

Hardware components

Raspberry Pi Pico
Raspberry Pi Pico
×1
Stepper motor driver board A4988
SparkFun Stepper motor driver board A4988
×1
BOOST-DRV8711 DRV8711 Stepper Motor Driver BoosterPack
Texas Instruments BOOST-DRV8711 DRV8711 Stepper Motor Driver BoosterPack
×1
Bench Power Supply, DC
Bench Power Supply, DC
×1
Breadboard (generic)
Breadboard (generic)
×1
Stepper Motor, Mini Step
Stepper Motor, Mini Step
×1

Software apps and online services

Raspberry Pi Pico C SDK
RP2040 PIO emulator

Story

Read more

Schematics

schematic with allegro A4988 stepper motor driver

The firmware source that matches this schematic: https://github.com/jancumps/pio_a4988_stepper

Code

stepper library

C++ classes that use PIO state machines to control your stepper motors. The library is automatically downloaded and built if you make one of the example projects.

Example with Allegro A4988 driver IC

This is the firmware that matches the schematic in this project.

Example with Texas Instruments DRV8711 driver IC

This is the firmware that matches uses a Texas Instruments DRV8711 driver IC. The github readme points to instructions and schematics.

Credits

Jan Cumps
23 projects • 24 followers
Thanks to Shabaz Yousef.

Comments