Extension board · Motors
Three bipolar stepper motor drivers on one 90 mm square board, for example for the X, Y and Z axes. Each channel is an A5984 driver with its own current trimmer, controlled by STEP and DIR from a single ten-way cable. Motor power of 8 to 36 V comes in on a screw terminal.
| Purpose | Drive three bipolar stepper motors from STEP and DIR signals |
| Drivers | Three A5984GLP, each with two 0.1 Ω sense resistors |
| Motor power | 8 to 36 V DC on a two-way screw terminal, common to the three channels |
| Motor current | One trimmer per channel. Peak current = VREF / 0.8 Ω, 0 to 1.65 A nominal (calculated) |
| Microstepping | Full step to 1/32, set per channel with three 0 Ω positions |
| Control | STEP and DIR per motor and one shared active-low enable, 3.3 V logic |
| Connectors | INPUT Y and CHAIN Y, 2×5 at 1.27 mm (Gadgeteer type Y); three 1×4 motor headers at 2.54 mm; 3.5 mm screw terminal |
| Protection | In the driver chip: overcurrent latch, thermal shutdown, undervoltage lockout. On the board: none for the power input. |
| Cooling | Fan under the board; four fan holes on a 60 mm square |
| Size | 90 × 90 mm, four copper layers, eight 3 mm holes |
| Works with | Smoothieboard V2 Prime, or any controller with 3.3 V STEP and DIR outputs |
| Licence | Open hardware, CERN OHL v1.2 |
Every figure with its basis is in the electrical specifications appendix; hole positions are in the mounting dimensions appendix.
The numbers on the drawing match the list below it. The board is shown from the component side; channel X is at the top, Y in the middle and Z at the bottom.
1Input connector (INPUT Y) — a 2×5, 1.27 mm Gadgeteer Y connector that brings STEP and DIR for all three motors, the shared enable line, 3.3 V and ground from the controller.
2Chain connector (CHAIN Y) — a second connector wired contact for contact to the input. It passes all seven control signals on.
3Motor power terminal — a two-way screw terminal for 8 to 36 V DC. Plus is the upper screw, minus the lower one. There is no reverse-polarity protection.
4Motor X header — four pins for one bipolar motor: coil 1 on 1B and 1A, coil 2 on 2A and 2B.
5Motor Y header — the same four pins for the second motor.
6Motor Z header — the same four pins for the third motor.
7Driver chips — three Allegro A5984 stepper drivers, one per motor, X at the top. Each has an exposed pad soldered to the board on its underside.
8Current trimmers — one trimmer below each driver sets that motor’s current. The single pad on the side facing its driver chip is the wiper, where you measure VREF.
9Microstep positions — three 0603 positions above each driver, from left to right MS3, MS2 and MS1. A fitted link makes that input high.
10Sense resistors — two 0.1 Ω resistors per driver that measure the coil current.
11Supply capacitors — two 47 µF, 63 V capacitors next to each driver.
12Fan holes — four non-plated 3 mm holes on a 60 × 60 mm square, for a fan under the board.
13Board mounting holes — four plated 3 mm holes in the corners, connected to ground.
Connect INPUT Y to the header labelled G_F (J37) on the Smoothieboard V2 Prime (Prime2590 and Prime2660 designs) with a straight ten-way cable. The last column is the name you use for each pin in the configuration file.
| Pin | Signal | What it does | Prime pin (header G_F) |
|---|---|---|---|
| 1 | 3.3 V | Logic supply for the current trimmers and links | 3.3 V |
| 2 | Not connected | The board does not use 5 V | — |
| 3 | X STEP | Motor X moves one microstep on each rising edge | PB1 |
| 4 | X DIR | Motor X direction | PJ4 |
| 5 | Y STEP | Motor Y step | PA4 |
| 6 | Y DIR | Motor Y direction | PG0 |
| 7 | Z STEP | Motor Z step | PJ3 |
| 8 | Z DIR | Motor Z direction | PG1 |
| 9 | ENABLE | All three drivers; low enables, high or unconnected disables | PJ2 |
| 10 | GND | Ground, shared with the motor supply minus | GND |
The pin names are printed beside each header. Pin 1 is 1B, at the bottom of each header.
| Pin | Printed | Coil | Driver output |
|---|---|---|---|
| 4 (top) | 2B | Coil 2 | OUT2B |
| 3 | 2A | Coil 2 | OUT2A |
| 2 | 1A | Coil 1 | OUT1A |
| 1 (bottom) | 1B | Coil 1 | OUT1B |
| Marking | Signal | Notes |
|---|---|---|
| + (upper screw) | Motor supply | 8 to 36 V DC. No polarity protection. |
| − (lower screw) | GND | Common with controller ground and the four corner holes |
A Smoothieboard V2 Prime, or another controller with seven free 3.3 V outputs.
Ten ways, 1.27 mm connector pitch 2×5, wired pin 1 to pin 1.
Up to three bipolar stepper motors with four leads, with 1×4 2.54 mm plugs.
DC, between 8 and 36 V, with a fuse sized for your motors and wiring.
A fan blowing on the underside of the board, which carries no parts. The holes form a 60 mm square; a standard 60 mm fan frame has holes 50 mm apart, so check yours and use a bracket if it differs.
A multimeter and a small insulated screwdriver for the trimmers.
With all power off, mount the board on spacers with the fan underneath, blowing towards the board.
Look at the three positions above each driver and note which are fitted. This decides steps per millimetre.
With all three fitted on a channel, that channel runs at 1/8 step.
Plug the ribbon cable from G_F into INPUT Y and power the controller. Leave motor power and motors disconnected.
About 3.3 V is present between pin 1 of INPUT Y and the minus screw.
Follow Set the current for X, Y and Z.
With everything off, plug in the motors, then connect the supply to the screw terminal, plus to plus. Add the configuration, power up and make a short slow move.
The motor holds firmly once enabled and moves the commanded distance.
Each driver limits its peak coil current to VREF / (8 × 0.1 Ω), so VREF in volts = peak current in amperes × 0.8. VREF comes from the 3.3 V logic supply through the trimmer, so you can set it with only the controller connected. Measure between the trimmer’s single pad (the wiper) and the minus screw, and turn slowly while watching the meter. Take care not to touch a neighbouring pad.
| Peak current you want | Set VREF to | Heat in each sense resistor |
|---|---|---|
| 0.4 A | 0.32 V | 0.02 W |
| 0.6 A | 0.48 V | 0.04 W |
| 0.8 A | 0.64 V | 0.06 W |
| 1.0 A | 0.80 V | 0.10 W |
| 1.2 A | 0.96 V | 0.14 W |
| 1.4 A | 1.12 V | 0.20 W |
| 1.65 A (top of range, nominal) | 1.32 V | 0.27 W |
Motor ratings are usually given as current per phase. Start at about 70 % of that figure, never above it, and check how warm the motor and the board get. The A5984 accuracy is ±5 % at the larger microstep levels.
| You want | Module | Example |
|---|---|---|
| Three axes on this board | Actuator, external driver | 1 |
| An axis that turns the wrong way | Actuator reversed | 2 |
| A different microstep setting | Actuator steps_per_mm | 3 |
| Speed and acceleration limits per axis | Actuator | 4 |
| Only the X channel, other axes unchanged | Actuator | 5 |
| Motor current set from the configuration | None | Not possible: use the trimmers |
| A separate enable per motor | None | Not possible: one enable line serves all three |
These blocks are for SmoothieV2 on a Smoothieboard V2 Prime. Merge them into your existing config.ini, replacing the matching lines; the motors then move off the Prime’s own drivers and onto this board, so unplug them from the Prime. Make sure nothing else in the file uses the G_F pins.
The step values assume 1/8 microstepping, 200-step motors, a 20-tooth, 2 mm pitch belt on X and Y, and an 8 mm lead screw on Z. The ! on the enable pin matches the active-low input. The enable pin belongs to the first actuator, and it switches all three drivers. The longer step pulse gives margin over the driver’s 1 µs minimum.
[actuator]
alpha.driver = external
alpha.step_pin = PB1
alpha.dir_pin = PJ4
alpha.en_pin = PJ2!
alpha.steps_per_mm = 40
beta.driver = external
beta.step_pin = PA4
beta.dir_pin = PG0
beta.en_pin = nc
beta.steps_per_mm = 40
gamma.driver = external
gamma.step_pin = PJ3
gamma.dir_pin = PG1
gamma.en_pin = nc
gamma.steps_per_mm = 200
[system]
step_pulse_us = 2
After a restart, M17 enables the motors and M84 disables them. M18 X disables all three here, because they share the enable line.
[actuator]
beta.reversed = true
Steps per millimetre = motor full steps per turn × microsteps ÷ millimetres moved per turn. For a 200-step motor at 1/16 with a 40 mm-per-turn belt drive, 200 × 16 ÷ 40 = 80.
[actuator]
alpha.steps_per_mm = 80
beta.steps_per_mm = 80
max_rate is in millimetres per minute and acceleration in millimetres per second squared. Start low and raise the values once the axis moves reliably.
[actuator]
alpha.max_rate = 6000
alpha.acceleration = 500
gamma.max_rate = 600
gamma.acceleration = 100
Y and Z keep their existing settings. Leave the unused motor headers empty.
[actuator]
alpha.driver = external
alpha.step_pin = PB1
alpha.dir_pin = PJ4
alpha.en_pin = PJ2!
[system]
step_pulse_us = 2
A bipolar motor has two coils. With the motor unplugged, a multimeter shows a few ohms between the two leads of one coil and an open circuit between coils. Put one coil on 1B and 1A and the other on 2A and 2B. If the motor runs backwards, use example 2, or swap the two leads of one coil with power off.
A higher supply voltage helps a motor keep torque at speed, and does not raise the current set by the trimmer. Leave headroom below 36 V: a motor being slowed or pushed by hand feeds energy back and can raise the supply voltage, and the board has no clamp.
Each rising edge on STEP advances the A5984 by one microstep; its internal translator works out the two coil currents, so the controller only sends pulses and a direction level.
The driver switches each coil on until the voltage on its sense resistor reaches the level set by VREF, then lets the current decay for a short off time and repeats. This is current chopping. On this board a 0 Ω link ties each ROSC pin to ground, which selects the chip’s adaptive decay mode with a 16 µs off time.
All three enable pins share one line with a 10 kΩ pull-up to 3.3 V, so the outputs stay off until the controller drives it low.
Each driver has three 0603 positions above it, from left to right MS3, MS2 and MS1. Fit a 0 Ω resistor or a solder bridge to make the input high; leave it open for low, since the chip has its own pull-down resistors. The parts list fits all nine, giving 1/8 step. Change them only with all power off, then update the steps per millimetre.
| MS3 (left) | MS2 (middle) | MS1 (right) | Resolution |
|---|---|---|---|
| open | open | open | Full step |
| open | open | fitted | Half step |
| open | fitted | open | 1/16 |
| open | fitted | fitted | 1/32 |
| fitted | open | open | Full step (modified) |
| fitted | open | fitted | Half step (modified) |
| fitted | fitted | open | 1/4 |
| fitted | fitted | fitted | 1/8 (parts list) |
CHAIN Y is joined to INPUT Y contact for contact, with no links to cut. This board uses all seven signal pins, so anything plugged into CHAIN Y receives the same signals: a second identical board would repeat the same three movements. Do not connect a device that needs its own pins.
| Pin | Signal | On CHAIN Y |
|---|---|---|
| 1 | 3.3 V | Passed on |
| 2 | 5 V | Not connected on either connector |
| 3 to 8 | STEP and DIR for X, Y, Z | Passed on, used by this board |
| 9 | ENABLE | Passed on, used by this board |
| 10 | GND | Passed on |
The board has no indicator lights. A multimeter on the power terminal and on INPUT Y is the first check.
| Symptom | Check |
|---|---|
| No motor moves or holds | Motor supply of at least 8 V on the terminal; 3.3 V on pin 1; pin 9 goes low after M17; the enable pin line ends in !. |
| Motors are released when they should hold | Remove or add the ! on the enable pin so that enabled means pin 9 low. |
| Motor buzzes or shakes without turning | Coil wiring: each coil on its own pair (1B/1A and 2A/2B). Lower the speed and acceleration. |
| Motor is weak or loses steps | VREF on that channel, then speed, acceleration and supply voltage. |
| Distance is wrong by a factor of 2, 4 or 8 | The microstep positions and steps_per_mm disagree. |
| One motor stops until power is cycled | The driver latched on overcurrent. Remove motor power, look for a short between motor leads or to ground, then power up again. |
| Motors pause after a while, then resume | Thermal shutdown. Check the fan and reduce the current. |
| Nothing works after wiring the supply | Disconnect it and check polarity. A reversed supply can destroy the drivers and capacitors. |
Still stuck? Read how to ask for help or see the general troubleshooting guide.
Five boards drive stepper motors.
| Pololu breakout | Allegro A5984 | Trinamic TMC2660 | Leadshine-like TMC2590 | Three-channel A5984 | |
|---|---|---|---|---|---|
| Specifications | |||||
| Driver | Up to three Pololu A4988 modules | Allegro A5984 | Trinamic TMC2660 | Trinamic TMC2590 with external transistors | Three Allegro A5984 |
| Motors per board | Up to three | One | One | One | Three |
| Motor power connector | XT60 | XT30 | XT30 | Screw terminal | Screw terminal |
| Supply range | 8 to 16 V | 12 to 24 V | 9 to 26 V | 18 to 32 V regulated | 8 to 36 V |
| Driver settings made by | Trimmer on each module | Trimmer RV1 and host lines | STEP, DIR and SPI registers | See its page | A trimmer per motor and microstep links |
| Features | |||||
| Input protection stage with fault lights | |||||
| Host and motor sides isolated | |||||
| Chain socket passes the lines on | |||||
| More than one motor per board | |||||
| Test points table on its page | |||||
| File | What it is |
|---|---|
| Schematic (PDF) | The circuit diagram |
| Parts list (CSV) | Every component with its value, footprint and part number where one is chosen |
| Board drawing (PNG) | The top view used on this page |
| 3D view, top (PNG) | Rendered from the design files; the trimmers have no 3D model |
| 3D view, angled (PNG) | Rendered from the design files; the trimmers have no 3D model |
For drilling a mounting plate or designing an enclosure. Positions are hole centres, in millimetres, measured from the top-left corner with the board seen from the component side. The corner holes are connected to ground: a metal screw or spacer there ties your frame to the supply minus. The inner four are the fan holes and are not connected.
| Hole | X (mm) | Y (mm) | Diameter | Use |
|---|---|---|---|---|
| 1 | 5.00 | 5.00 | 3 mm, plated, connected to GND | Board mounting |
| 2 | 85.00 | 5.00 | 3 mm, plated, connected to GND | Board mounting |
| 3 | 15.00 | 15.00 | 3 mm, not plated | Fan |
| 4 | 75.00 | 15.00 | 3 mm, not plated | Fan |
| 5 | 15.00 | 75.00 | 3 mm, not plated | Fan |
| 6 | 75.00 | 75.00 | 3 mm, not plated | Fan |
| 7 | 5.00 | 85.00 | 3 mm, plated, connected to GND | Board mounting |
| 8 | 85.00 | 85.00 | 3 mm, plated, connected to GND | Board mounting |
The last column gives the basis for each figure. Datasheet values are for the driver chip at 25 °C unless stated.
| Parameter | Applies to | Lower | Nominal | Upper | Basis and conditions |
|---|---|---|---|---|---|
| Motor supply | Power terminal | 8 V | 24 V (example) | 36 V | Board limit; the chip operates from 8 to 40 V |
| Undervoltage lockout, rising | Each driver | 6.3 V | — | 6.85 V | Datasheet |
| Logic supply | Pin 1 | — | 3.3 V | — | Design value |
| Logic supply current | Pin 1 | — | under 1 mA | — | Calculated: trimmers, microstep links and enable pull-up |
| Logic input high | STEP, DIR, ENABLE | 2.0 V | — | — | Datasheet |
| Logic input low | STEP, DIR, ENABLE | — | — | 0.8 V | Datasheet |
| Step pulse, high and low | STEP | 1 µs | — | — | Datasheet |
| Direction setup and hold | DIR | — | 400 ns | — | Datasheet, typical |
| VREF | Each trimmer | 0 V | — | 1.32 V | Simulated with nominal parts |
| Peak current setting, top of trimmer | Each motor | — | 1.65 A | 1.96 A | Simulated; upper value with all tolerances at their worst. A setting, not a continuous rating. |
| Output on-resistance, high plus low side | Each coil | — | 0.64 Ω | 0.86 Ω | Datasheet, at 2 A |
| Conduction heat per driver at 1.0 / 1.65 A peak | Each driver | — | 0.64 / 1.7 W | — | Calculated for sine microstepping with typical on-resistance; switching losses extra |
| Driver supply current | Each driver | — | 7.5 mA | 10 mA | Datasheet, chopping below 50 kHz, motor current excluded |
| Fixed off time | Each driver | 13 µs | 16 µs | 19 µs | Datasheet, ROSC to ground |
| Overcurrent trip | Each output | 2.6 A | — | — | Datasheet minimum; latches off |
| Thermal shutdown | Each driver | — | 165 °C | — | Datasheet, junction temperature; 20 °C hysteresis |
| Part | Limit | Use on this board |
|---|---|---|
| Driver supply and outputs | 40 V absolute maximum | At most 36 V supply, leaving 4 V for transients |
| Driver output current | ±2 A absolute maximum | Setting up to 1.96 A at the worst corner |
| Sense pins | ±0.5 V absolute maximum | 0.20 V at the worst corner (simulated) |
| Sense resistors, 0.1 Ω, 1 W | 1 W | 0.27 W at 1.65 A (calculated with continuous peak current) |
| Supply capacitors, 47 µF | 63 V | 36 V maximum supply |
| 100 nF capacitors | 100 V | 36 V maximum supply |
The current-setting divider of one channel (3.3 V, 75 kΩ, 50 kΩ trimmer) was solved with ngspice, and the datasheet relation applied to the result. The sweep moves the trimmer across its travel. The corner run combines 3.3 V ±3 %, resistors ±1 % and the trimmer’s end-to-end value ±25 %.
| Result | Simulated value | Limit | Outcome |
|---|---|---|---|
| Largest peak current, nominal parts | 1.65 A | 2 A absolute maximum | Within |
| Largest peak current, worst corner | 1.96 A | 2 A absolute maximum | Within, with 2 % margin |
| Sense voltage, worst corner | 0.198 V | 0.5 V | Within |
The corner result does not include the driver’s own current-accuracy error. Motor current waveforms, supply transients, heating and signal integrity were not simulated, because no usable simulation model of the driver was available and thermal results depend on the fan and mounting.
The first page of the driver chip’s datasheet. Click the page to open the PDF.
See also the earlier single description of this three-channel design. See all boards on the extension boards page.