Source: https://mokxi.com/parts/biaxialstepper
Updated: 2026-11-22

Part

# Biaxial stepper

Two steppers on one axis, a hand each, like a clock: two pairs of coils, 200 steps a turn.

See every part

- 8 pins
- 6 settings
- In 1 project

Drawn live by the editor's own code, at the size you see it.

At a glance

## The Biaxial stepper in brief

What it is, and every setting the properties panel gives it.

A biaxial stepper is two bipolar stepper motors on one axis, one shaft inside the other, so one body can turn two hands like a clock. It is also called a dual shaft stepper, a coaxial stepper, or a clock stepper. The A1 and B1 pins serve the outer hand's motor, the A2 and B2 pins the inner hand's. Each motor is modeled the same way as a NEMA 17: two coil currents point a field, the rotor follows it the short way around at up to max_steps full steps per second, slips a whole electrical cycle when driven faster, and holds nothing below 5 percent of its rated current. Settings per motor include resistance of 1.5 ohms a coil, current of 1.7 A, 200 steps a turn, and the starting angle of each hand. The model leaves out inductance, back EMF, torque, load, and resonance. Real dual-shaft gauge motors have their own gearing, so set steps to match.

Family

Outputs

Pins

8

resistance

1.5

current

1.7

steps

200

max_steps

1000

angle

0

inner_angle

0

Pins

## 8 pins

Named as the editor names them, so a wire lands where you expect it.

Pin

What it does

A1-

Motor 1, coil A: the outer hand.

A1+

Motor 1, coil A: the outer hand.

B1+

Motor 1, coil B.

B1-

Motor 1, coil B.

A2-

Motor 2, coil A: the inner hand.

A2+

Motor 2, coil A: the inner hand.

B2+

Motor 2, coil B.

B2-

Motor 2, coil B.

How to use it

## How to use the biaxial stepper with an Arduino Uno

The Two hands project turns a biaxial stepper into a clock. Two A4988 boards drive it, one per hand. The outer motor's pins A1+, A1-, B1+ and B1- go to the first driver's 2B, 2A, 1A and 1B pins. The inner motor's pins A2+, A2-, B2+ and B2- go to the second driver's matching pins. Both drivers have VMOT on 12 V, VDD on 5 V, RST linked to SLP, the mode pins left low for full step, and the grounds tied to the Uno's. Each hand then gets its own STEP and DIR signal: pins 3 and 4 for the outer, minutes hand, and pins 5 and 6 for the inner, hours hand.

The sketch runs a minute every second so the motion can be watched. A 200-step hand should turn once in 60 minutes for the outer hand and once in 12 hours for the inner, which works out to m x 200 / 60 and m x 200 / 720 steps after m minutes. Neither count is a whole number per minute, so the sketch keeps a running tally of the steps it owes each hand and pulses STEP until the debt is paid, the way a Bresenham line keeps its error. After paying, it prints the time as hours and minutes, with the minutes zero padded, and waits a second.

With default settings, the serial monitor printed: "Two hands: a minute a second", "0:01" and "0:02". The first line is the banner from setup. Each later line is the clock as hours, a colon and minutes, and one printed minute passes each second.

Things to try: raise steps to match a geared dual-shaft gauge motor, set a different starting angle and inner_angle to see where the hands begin, or swap the two motors' wires and watch the hour hand race round like a minute hand.

Part pin

Goes to

A1+

a4988 drv1 pin 2B

A1-

a4988 drv1 pin 2A

B1+

a4988 drv1 pin 1A

B1-

a4988 drv1 pin 1B

A2+

a4988 drv2 pin 2B

A2-

a4988 drv2 pin 2A

B2+

a4988 drv2 pin 1A

B2-

a4988 drv2 pin 1B

Click to open it in the editor

This is the simulator itself, running here. Click anything to open it in the editor.

Open this project in the editor Read the full tutorial

sketch.ino · Arduino Uno R3 · the first 45 lines

Common errors

## Common Biaxial stepper errors and fixes

What goes wrong

The fix

Swapping the two motors' wires.

Keep A1 and B1 on the outer hand's driver and A2 and B2 on the inner hand's, or the hour hand races round like a minute hand.

Driving both motors from one driver board.

Each motor wants its own pair of H-bridges: two A4988 or DRV8825 boards, or an L298N each in full step.

Setting steps to 200 for a geared dual-shaft gauge motor.

The real gauge motors have gearing of their own, so set steps to match the gearing.

Expecting the simulation to show missed steps from torque, resonance, or back EMF.

The model leaves out inductance, back EMF, torque, load, and resonance; it slips a whole electrical cycle only when driven faster than max_steps.

Questions

## Questions and answers

### what is a biaxial stepper

Two bipolar stepper motors on one axis, one shaft inside the other, so one body turns two hands like a clock. It is also called a dual shaft or coaxial stepper.

### how do you drive a biaxial stepper

Each motor wants its own pair of H-bridges: two A4988 or DRV8825 boards, or an L298N each in full step. Then it is STEP and DIR per hand.

### what are the biaxial stepper's coil resistance and current

Per motor, the same as a NEMA 17: resistance is 1.5 ohms a coil and current is rated 1.7 A.

### does the biaxial stepper model torque

No. The model leaves out inductance, back EMF, torque, load, and resonance. The rotor follows the coil field the short way and slips a whole electrical cycle only when driven faster than max_steps.

How it is modeled

## What is true about the Biaxial stepper, here

In its help article’s own words: what the simulation gets right, and where it stops.

### Modeled

Each motor is the NEMA 17 model on its own four wires: the two coil currents point
a field, the rotor follows it the short way around at up to max_steps, slips a
whole electrical cycle when driven faster, and holds nothing below 5% of its rated
current.

### Not modeled

What the NEMA 17 leaves out: inductance, back EMF, torque and load, and resonance.
The small dual-shaft gauge motors this stands for have gearing of their own; set
steps to match.

From Biaxial stepper, in full.

Projects

## See the Biaxial stepper in a project

One built-in project uses it. It opens in the editor, already wired.

Boards

## The boards it is shown on

This board has a built-in project with the Biaxial stepper in it.

- Arduino Uno R3

Keep going

## Keep going

- Stepper Motor Wiring: 4, 5 and 6 Wire Motors
- Stepper motor, 28BYJ-48 with ULN2003
- Stepper motor, NEMA 17

More parts

## The rest of the bench

Every one of these is drawn and simulated the same way.

Full-size breadboard

A real 0.1 inch grid with the rails and the center channel, 63 columns wide.

Jumper wires

Drag from any pin or hole to any other. Corners snap, and you can drag them.

Power

A supply rail at the voltage you choose.

Ground

The other end of every circuit.

LED

Lights when current flows. Five colors, and the brightness is what your eye would see.

Filament lamp

A tungsten bulb in a holder: an inrush when it is switched on cold, tens of milliseconds to warm up, and dim on half its voltage.

Resistor

Any value you like, with the color bands drawn to match.

ESP32-C3-DevKitM-1

A RISC-V board that runs your firmware at 160 MHz on the real memory map.

Pushbutton

A 12 mm tactile switch. Hold it while the simulation runs.

Raspberry Pi Pico

The RP2040 board on our own Cortex-M0+ core. Pick a program and press Run.

Raspberry Pi Pico W

Raspberry Pi Pico W (RP2040). The same board and the same pinout as a Pico, with the CYW43439 on it. The WiFi is simulated (no radio; real internet through the Cloud panel’s switch), and the on-board LED, which hangs off that chip rather than off GP25, is driven through the same path. Everything else is the Pico.

Raspberry Pi 4 Model B

Raspberry Pi 4 Model B: the 40-pin header, driven by main.py with RPi.GPIO or gpiozero.

See every part

## Wire up the Biaxial stepper

Open the editor and push it into the breadboard. It is free, and it runs on your own machine.

Start building free Open the editor
