Getting started with the X-NUCLEO-IHM17M1 low voltage 3-phase brushless DC
motor driver expansion board based on STSPIN233
Introduction
The X-NUCLEO-IHM17M1 is a low voltage three-phase brushless DC motor driver expansion board based on STSPIN233
STM32 Nucleo. It is an affordable and easy-to-use solution with motor driver operation in low voltage battery scenarios, allowing
zero consumption state (such as in thermal printers, robotics, toys, etc..).
The X-NUCLEO-IHM17M1 supports the addition of other boards to a single STM32 Nucleo board through the Arduino UNO R3
and the ST morpho connectors.
Furthermore, the board is designed for six-step and FOC algorithms.
Figure 1. X-NUCLEO-IHM17M1 expansion board
for
UM2360 - Rev 1 - February 2018
For further information contact your local STMicroelectronics sales office.
www
.st.com/
1 Hardware and software requirements
To use the STM32 Nucleo development boards with the X-NUCLEO-IHM17M1 expansion board, the following
software and hardware are required:
•
a Windows PC (XP
•an X-NUCLEO-IHM17M1 expansion board
•an STM32 Nucleo development board (NUCLEO-F030R8, NUCLEO-F103RB, NUCLEO-F302R8 or
NUCLEO-F401RE)
•a type A USB to mini-B USB cable to connect the STM32 Nucleo board to the PC
•the X-CUBE-SPN17 software package (available on www.st.com)
•an IDE chosen among IAR Embedded Workbench for ARM (IAR-EWARM), Keil microcontroller development
kit (MDK-ARM-STM32) and system workbench for STM32 Nucleo project (SW4STM32)
•three-phase brushless DC motor with compatible voltage and current for STSPIN233 driver
•an external power supply or battery able to provide the voltage required by the brushless motor used
, Vista 7 , Win 8, Win 10 ) to install the software package
UM2360
Hardware and software requirements
UM2360 - Rev 1
page 2/18
2 Getting started
UM2360
Getting started
The X-NUCLEO-IHM17M1
applications.
The board maximum ratings are:
Power stage supply voltage from 1.8 to 10 V
•
•Motor phase current up to 1.3 A
To start your project with the board:
ProcedureStep 1.Check the jumper position of your configuration (see Section 3 Hardware description and configuration)
Step 2.Connect the X-NUCLEO-IHM17M1 with the STM32 Nucleo development board through ST morpho
connectors (CN7, CN10)
Step 3.Supply the board through input 2 (Vin) and 1 (GND) of the J2 connector: the D10 (red) LED turns on
Step 4.Develop your application using the examples provided with the firmware library
Further support material is available at STSPIN233 and STM32 Nucleo
expansion board is a three-phase brushless DC motor driver covering a wide range of
rms
UM2360 - Rev 1
page 3/18
3 Hardware description and configuration
CN10 Morpho
connector
EN/FAULT LED
CN5 Arduino UNO R3
connector
CN9 Arduino UNO R3
connector
VDD
STSPIN233
Motor driver
Ground
Speed reference
trimmer
input connector
Ground
CN7 Morpho
connector
CN6 Arduino UNO R3
connector
FOC/6STEP
selection
TSV994 Quad op-amp
Motor connector,
test points and LEDs
Supply connector
3 shunt/1 shunt
VS
CN8 Arduino UNO R3
connector
Hall effect sensor output
pull-up
The figure below shows the board connector and jumper positions.
Figure 2. X-NUCLEO-IHM17M1 jumper and connector positions
UM2360
Hardware description and configuration
UM2360 - Rev 1
The table below shows ST morpho connector detailed pinout.
page 4/18
Hardware description and configuration
Table 1. ST morpho connectors
Connector
Pin
(1)
CN71Enable 1ENU input
2Enable 2ENV input
3Enable 3ENW input
12VDD
16VDD
17H1/Encoder AMounting option R12 (default)
185 V
20Ground
22Ground
28H1/Encoder AMounting option R10
30H2/Encoder B
32Current referenceMounting option R9
34Current feedback 3
35SPEED reference
36BEMF sensing 1
37BEMF sensing 2
38BEMF sensing 3
CN101BEMF GPIOEnable/disable voltage divider
12Stop PWM (ETR)
13Current referenceMounting option R14
14EN/FAULTMounting option R2
15Current feedback 1Mounting option R5 (default)
16Current feedback 1Mounting option R1
21IN2INV input
23IN1INU input
24Current feedback 2
25H3/Encoder Z
26Current feedback 1Mounting option R3
27Current referenceMounting option R11 (default)
28EN/FAULTMounting option R4
29Standby
33IN3INW input
1.
All the non-listed pins are not connected
34Bus voltage feedbackMounting option R7
SignalRemarks
Bus voltage feedbackMounting option R8
EN/FAULTMounting option R6
UM2360
UM2360 - Rev 1
X-NUCLEO-IHM17M1 is equipped with screw connectors for motor and power supply, jumpers for selecting
The
the single-shunt or three-shunt operation and a connector for Hall effect sensors (refer to the table below).
page 5/18
Selecting the STM32 Nucleo board
Table 2. Other connectors, jumpers and test points
ReferencePinsLabelDescription
J21, 2Vin – GNDSupply voltage
J31, 2, 3U – V – WMotor phases
J41, 2, 3-Hall effect sensor/Encoder inputs
JP21, 2Hall effect sensor pull-up
JP31, 2, 33 Sh – 1 ShThree shunt/single shunt topology
JP41, 2, 33 Sh – 1 ShThree shunt/single shunt topology
JP51, 2FOC/6STEP configuration
JP61, 2FOC/6STEP configuration
TP1GNDGround
TP2OUT U test point
TP3OUT V test point
TP4OUT W test point
TP5VDD test point
TP6GNDGround
TP7VSSupply voltage test point
UM2360
3.1 Selecting the STM32 Nucleo board
This expansion board natively supports the following STM32 Nucleo development boards:
•NUCLEO-F401RE
•NUCLEO-F302R8
•NUCLEO-F103RB
•NUCLEO-F030R8
Before starting to work with the development board, check if the proper mounting option is implemented (see
Section 5 Mounting options).
UM2360 - Rev 1
page 6/18
4 Circuit description
UM2360
Circuit description
The STSPIN233 integrates a protected triple half-bridge with low R
phase BLDC motor in very low consumption mode.
The device is protected against overload and short-circuits: short to ground, short to motor supply voltage, short
between the outputs. If one of the failure events occurs, the fault signal is set and the fault LED D10 is lit (red).
The STSPIN233 is compatible with single and three-shunt sensing, and the X-NUCLEO-IHM17M1 expansion
board is designed to provide both topologies. The current feedback signal conditioning is performed by hardware
available on the board and sent to the STM32 Nucleo board through the ST morpho connectors.
Motor speed regulation can be performed by hardware, by acting on trimmer R36. In this way
reference used by STM32 firmware for speed regulation.
X-NUCLEO-IHM17M1 expansion board provides two hardware solutions for motor position feedback: one
The
based on sensors and the other one based on sensorless detection.
4.1 Hall/encoder motor speed sensor
The X-NUCLEO-IHM17M1 expansion board implements the Hall/encoder sensor detection circuit for motor speed
feedback. The motor sensor feedback is connected through the J4 connector and an analog circuit to the STM32
Nucleo board in order to detect the motor rotation.
For sensors requiring external pull-up, three 10 kΩ
voltage (if these are not necessary, you can remove them).
4.2 Sensorless detection
In six-step driving mode, one of the three phases is left in high impedance state: comparing this phase voltage
with the center-tap voltage, we can detect the BEMF zero-crossing.
This signal is acquired through an analog circuit embedded on the expansion board and sent to the STM32
Nucleo board through the ST morpho connectors.
for evaluating a solution for a three-
DS(on)
, you can change the
resistors are already mounted and connected to the VDD
4.3 Bus voltage circuit
The X-NUCLEO-IHM17M1 expansion board provides the hardware bus voltage sensing. This signal is acquired
with a resistor divider from the motor supply voltage (VBUS) and sent to the analog to digital converter
.
UM2360 - Rev 1
page 7/18
5 Mounting options
UM2360
Mounting options
The X-NUCLEO-IHM17M1 provides dif
development boards:
•NUCLEO-F401RE
•NUCLEO-F302R8
•NUCLEO-F103RB
•NUCLEO-F030R8
Board
NUCLEO-
F401RE
(default)
NUCLEO-
F302R8
NUCLEO-
F103RB
NUCLEO-
F030R8
Curr fbk 1Curr refVBUS fbkEN/FAULTEnc. A/H1
R1R3R5R9R11R14R7R8R2R4R6R10R12
NMNM0RNM22kNMNM0RNMNM0RNM0R
NM0RNMNMNM22kNM0RNM0RNMNM0R
NMNM0RNMNMNM0RNMNMNM0R0RNM
NMNM0RNMNMNMNM0RNMNM0RNM0R
ferent mounting options to be compatible with the following STM32 Nucleo
Figure 2. X-NUCLEO-IHM17M1 jumper and connector positions ........................................4
Figure 3. X-NUCLEO-IHM17M1 circuit schematic (1 of 2) ............................................12
Figure 4. X-NUCLEO-IHM17M1 circuit schematic (2 of 2) ............................................13
UM2360 - Rev 1
page 17/18
UM2360
IMPORTANT NOTICE – PLEASE READ CAREFULLY
STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST
products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST
products are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgement.
Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of
Purchasers’ products.
No license, express or implied, to any intellectual property right is granted by ST herein.
Resale of ST products with provisions dif
ST and the ST logo are trademarks of ST. All other product or service names are the property of their respective owners.
Information in this document supersedes and replaces information previously supplied in any prior versions of this document.
ferent from the information set forth herein shall void any warranty granted by ST for such product.