Component guide · Advanced · 3 min read
STM32 Motor Control Expansion Boards

STSPIN230 and STSPIN830 BLDC, STSPIN240 Dual DC, X-NUCLEO-IHM06A1 STSPIN220 Stepper and X-NUCLEO-IHM15A1 Dual DC
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
These ST boards plug into a Nucleo and drive motors with STSPIN chips. STSPIN230 and STSPIN830 drive small three-phase brushless motors, ideally with ST's Motor Control SDK and field-oriented control. STSPIN240 and IHM15A1 drive two brushed DC motors. IHM06A1 uses the STSPIN220 for small low-voltage stepper motors with up to 1/256 microstepping.
Key specs at a glance
- STSPIN230
- 3-phase BLDC, 1.8 to 10V, about 1.3A RMS
- STSPIN830
- 3-phase BLDC, 7 to 45V, about 1A RMS
- STSPIN240
- Dual brushed DC, 1.8 to 10V, about 1.3A per channel
- STSPIN220 (IHM06A1)
- Stepper, 1.8 to 10V, up to 1/256 microstepping
- Control
- PWM, direction and fault pins to the Nucleo
- Software
- X-CUBE-SPN packs, ST Motor Control SDK for BLDC
This part can carry many amps. Use wire thick enough for the current, put a fuse close to the battery, check that connectors are rated for the load and give drivers and motors room to cool. A short at these currents melts wires in seconds.
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1STM STSPIN230 Low Voltage 3-Phase BLDC Motor Driver Board₹1,329
Option 2STMicroelectronics STSPIN240 Dual DC Motor Driver Expansion Board₹1,039
Option 3STSPIN830 BLDC Motor Driver Board for STM32 Nucleo₹2,089
Option 4STMicroelectronics X-NUCLEO-IHM06A1 STSPIN220 Stepper Driver₹1,269
Option 5STMicroelectronics X-NUCLEO-IHM15A1 Dual DC Motor Driver for STM32 Nucleo₹1,619
What the STM32 motor control boards (STSPIN230, STSPIN240, STSPIN830, IHM06A1, IHM15A1) is
STM32 motor control expansion boards, such as the X-NUCLEO-IHM series, add DC, stepper and BLDC motor drivers to STM32 Nucleo boards, used with ST's Motor Control SDK.
Use these to learn ST's motor control tools or prototype a low-voltage product. For hobby robots, the TB6612FNG or SimpleFOC Mini are simpler and have more Arduino examples.
The BLDC boards need a motor profile: run ST's Motor Control Workbench, enter the motor's pole pairs, resistance and inductance, and generate the project.
STM32 motor control boards (STSPIN230, STSPIN240, STSPIN830, IHM06A1, IHM15A1) pinout
The pins on the STM32 motor control boards (STSPIN230, STSPIN240, STSPIN830, IHM06A1, IHM15A1) and what each one does.
| Pin | Function |
|---|---|
| Motor outputs | U, V, W for BLDC or A and B pairs for DC and stepper |
| Motor supply | Screw terminal, separate from USB |
| Uno headers | PWM, enable, direction, fault |
| Current sense | Shunt resistors to Nucleo ADC pins |
| Hall / encoder | Sensor input header on BLDC boards |
- Motor outputs
- U, V, W for BLDC or A and B pairs for DC and stepper
- Motor supply
- Screw terminal, separate from USB
- Uno headers
- PWM, enable, direction, fault
- Current sense
- Shunt resistors to Nucleo ADC pins
- Hall / encoder
- Sensor input header on BLDC boards
Wiring the STM32 motor control boards (STSPIN230, STSPIN240, STSPIN830, IHM06A1, IHM15A1)
Turn the motor supply off before connecting or disconnecting a motor. Low-voltage boards are damaged by 12V supplies.
| STM32 motor control boards (STSPIN230, STSPIN240, STSPIN830, IHM06A1, IHM15A1) pin | Connection | Note |
|---|---|---|
| Motor supply | Screw terminal | Within the board's voltage range |
| Motor | Output terminals | Do not exceed the current rating |
| Nucleo | Stack on Uno headers | Choose the matching Nucleo listed in the manual |
- Motor supply
- Connection:
- Screw terminal
- Note:
- Within the board's voltage range
- Motor
- Connection:
- Output terminals
- Note:
- Do not exceed the current rating
- Nucleo
- Connection:
- Stack on Uno headers
- Note:
- Choose the matching Nucleo listed in the manual
Example code
The pin names here are placeholders: copy the real ones from the board's user manual or use the X-CUBE-SPN example project.
// Pin numbers depend on the board: check the user manual's Arduino pin table
const int PWM_A = D9, DIR_A = D7, PWM_B = D10, DIR_B = D8, EN = D4;
void setup() {
pinMode(EN, OUTPUT); pinMode(DIR_A, OUTPUT); pinMode(DIR_B, OUTPUT);
digitalWrite(EN, HIGH);
}
void loop() {
digitalWrite(DIR_A, HIGH); digitalWrite(DIR_B, HIGH);
analogWrite(PWM_A, 160); analogWrite(PWM_B, 160);
delay(2000);
analogWrite(PWM_A, 0); analogWrite(PWM_B, 0);
delay(1000);
}Setup and tuning
plug onto a Nucleo board's Arduino or Morpho headers.
feed motor power to the expansion board's terminals within its voltage range.
use X-CUBE-SPN for steppers or the Motor Control Workbench for BLDC FOC.
enter motor parameters and run the profiler for FOC.
set current limits before the first spin.
What you need
Shop this list7 of 7 found in our store · ₹10,555
STM STSPIN230 Low Voltage 3-Phase BLDC Motor Driver Board: the part this guide coversSTM STSPIN230 Low Voltage 3-Phase BLDC Motor Driver Board₹1,329
STMicroelectronics STSPIN240 Dual DC Motor Driver Expansion Board: another version this guide coversSTMicroelectronics STSPIN240 Dual DC Motor Driver Expansion Board₹1,039
STSPIN830 BLDC Motor Driver Board for STM32 Nucleo: another version this guide coversSTSPIN830 BLDC Motor Driver Board for STM32 Nucleo₹2,089
STMicroelectronics X-NUCLEO-IHM06A1 STSPIN220 Stepper Driver: another version this guide coversSTMicroelectronics X-NUCLEO-IHM06A1 STSPIN220 Stepper Driver₹1,269
STMicroelectronics X-NUCLEO-IHM15A1 Dual DC Motor Driver for STM32 Nucleo: another version this guide coversSTMicroelectronics X-NUCLEO-IHM15A1 Dual DC Motor Driver for STM32 Nucleo₹1,619
NUCLEO-F446RE: the usual host board for X-NUCLEO expansion boardsSTMicroelectronics NUCLEO-F446RE Development Board₹3,033Closest match, check the specs
Digital multimeter: to check supply and signal voltagesDigital Multimeter₹177
Alternatives and when to choose them
- TB6612FNG: easy dual DC driver.
- SimpleFOC Mini: Arduino BLDC control.
- DRV8825: common stepper driver.
Common mistakes to avoid
- Wrong motor parameters.
- Powering motors from USB.
- No current limit.
- Header mismatch.
Frequently asked questions
How do I run a BLDC motor with an IHM board?
Use the Motor Control Workbench to generate FOC code for your Nucleo.
Which software supports steppers?
The X-CUBE-SPN packages provide drivers and examples for IHM stepper boards.
Why does the motor not start?
The motor parameters or the current limit are wrong for your motor.
Can I power motors from USB?
No. Feed motor power through the expansion board's terminals.
What is FOC?
Field-oriented control, which drives BLDC motors smoothly and efficiently.
Parts for this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.
