> **Source:** Core Electronics is an Australian maker-electronics retailer and manufacturer based in Newcastle, NSW, run by a team of makers and educators. We design and manufacture our own product lines (PiicoDev, CE originals) and are official retailers for iconic maker and industrial brands including Raspberry Pi, Arduino, Adafruit, SparkFun and DFRobot. Orders ship Australia-wide from our Newcastle warehouse. Prices are in AUD and include GST. Pricing, stock and dispatch on this page are generated from the store's live catalog. Full machine-readable index: https://core-electronics.com.au/llms.txt

# 4Tronix PiStep2 Quad Stepper Motor Control Board for Raspberry Pi

**Type:** Product page · **SKU:** CE06227 · **Brand:** [4tronix](https://core-electronics.com.au/brands/4tronix-australia)
**Page:** https://core-electronics.com.au/4tronix-pistep2-quad-stepper-motor-control-board-for-raspberry-pi.html ([markdown](https://core-electronics.com.au/4tronix-pistep2-quad-stepper-motor-control-board-for-raspberry-pi.html.md))

This neat little board plugs directly into the Raspberry Pi GPIO header and provides 2 or 4 connectors for small stepper motors

## Pricing

- **Price:** $21.80 (inc GST) — $19.82 AUD, exc GST
- **Quantity discounts:** 10+ $19.03 (exc GST) · 25+ $18.43 (exc GST)

## Availability & dispatch

- Available with a lead time — expect dispatch between Aug 17 and Aug 24.

## How to buy

- **Build a cart:** compose `https://core-electronics.com.au/cart/link?items=CE06227:1` (comma-separated SKU:qty pairs) and share the link. Opening it shows a confirmation page with live pricing and stock before anything is added to the cart.
- **Verify the cart first:** fetch `https://core-electronics.com.au/cart/link/CE06227:1.md` for live line prices (inc & exc GST, quantity discounts applied), stock and dispatch estimates, and totals. Append `/to/{AU-postcode}` (or `/to/{country-code}:{postcode}`) before `.md` for delivery options and prices to that destination. Unknown, retired, or out-of-stock SKUs are flagged. (Query form `cart/link.md?items=...` also works but some robots parsers refuse query strings here.)
- **Checkout** is completed on-site and includes a captcha at the payment step. Share the cart link; checkout takes it from there.
- **Search the catalogue:** `https://core-electronics.com.au/search/{query}.md` (URL-encode the query; pages 2-3 at `search/{query}/{page}.md`; `search.md?q=` also works)
- **Payment methods, purchase orders, policies and contact details:** https://core-electronics.com.au/llms.txt
## Description

This neat little board plugs directly into the Raspberry Pi GPIO header and provides 2 or 4 connectors for small stepper motors

- Fully Assembled - No Soldering Required
- Raspberry Pi Zero Form Factor - works with all versions of Raspberry Pi with 40pin GPIO connector
- Stepper motors and Raspberry Pi not included
 
### Various Power Options:

1. Powered from the Raspberry Pi 5V
2. From the 2-pin Terminal (whatever voltage is required for the motors)
3. Micro-USB - 5V only
 
### Pinout is simple:

- Physical pins 11, 12, 13, 15 for Motor A (GPIO 17, 18, 27, 22)
- Physical pins 16, 18, 22, 7 for Motor B (GPIO 23, 24, 25, 04)
- Physical pins 33, 32, 31, 29 for Motor C (GPIO 13,12,6,5)
- Physical Pins 38, 37, 36, 35 for Motor D (GPIO 20,26,16,19)
 
Each pin has an associated white LED so you can see the stepper signals going through

### Power Supply Alternatives

- Jumper VCC-VSTP (default). Power from the motors is taken from the Raspberry Pi 5V line 
    - Micro-USB into Raspberry Pi. 5V for the Pi and the stepper motors goes through a poly-fuse which can trip if 2 motors are used simultaneously
    - Micro-USB into the PiStep board. 5V for both the Pi and the stepper motors is provided directly from the 5V USB input so no problems with 2 motors at once
- Jumper VSTP-VIN. Power for the motors is provided from the 2-pin screw terminal, so can be any voltage that the steppers can handle. Ensure you use the correct polarity! We recommend to keep it below 12V. You will find that the stepper motors can go up to 9V and will be able to step faster, the higher the voltage that is applied, but there will be some deterioration of the life of the stepper motor at a higher voltage.
 
### Python Programming

Please see the excellent example here for some pointers. You will need to change the pin numbers as above and also change the speed so it steps at a visible rate. You may also want to remove the print statements to speed it up. The lines in Red below are changed from the original to operate Motor A.

\# Use BCM GPIO references
\# instead of physical pin numbers
GPIO.setmode(GPIO.BCM)

\# Define GPIO signals to use
\# Pins 18,22,24,26
\# GPIO24,GPIO25,GPIO8,GPIO7
StepPins = \[17,18,27,22\]

\# Set all pins as output
for pin in StepPins:
 print "Setup pins"
 GPIO.setup(pin,GPIO.OUT)
 GPIO.output(pin, False)

\# Define some settings
StepCounter = 0
WaitTime = 0.01

### ScratchGPIO Programming

These pins are identical to those required by ScratchGPIO and therefore can easily be driven using simple Scratch commands:

\- Set motor type for Scratch to be Stepper motor

\- Set the position of the stepper motor A

\- Set the speed of the stepper motor A

## Images

- [Product image 1](https://core-electronics.com.au/media/catalog/product/c/e/ce06227-1.jpg)
