Getting started with the X-NUCLEO-IHM13A1 low voltage dual brush
expansion based on STSPIN250 for STM32 Nucleo
DC motor driver
Introduction
The X-NUCLEO-IHM13A1 is a low voltage brush DC motor driver expansion board based on the
STSPIN250 for STM32 Nucleo.
It provides an affordable and easy-to-use solution for the implementation of portable motor driving
applications such as thermal printers, robotics and toys.
The X-NUCLEO-IHM13A1 is compatible with the Arduino UNO R3 connector and most STM32 Nucleo
boards.
Figure 1: X-NUCLEO-IHM13A1 expansion board for STM32 Nucleo
www.st.com
Contents
UM2148
2/14
DocID030083 Rev 1
Contents
1 Hardware and software requirements ............................................ 5
2 Getting started ................................................................................. 6
3 Hardware description and configuration ....................................... 7
3.1 Selecting the STM32 Nucleo board ................................................... 8
3.2 Selecting reference voltage ............................................................... 9
4 Bill of materials .............................................................................. 10
The main features of the X-NUCLEO-IHM13A1 expansion board are:
• Low voltage range from 1.8 V to 10 V
• Current up to 2.6 A r.m.s.
• Current control with adjustable off-time
• Full protection overcurrent and short circuit protection
• Thermal shutdown
• Compatible with Arduino UNO R3 connector
• Compatible with STM32 Nucleo boards
• RoHS compliant
To use the STM32 Nucleo development boards with the X-NUCLEO-IHM13A1 expansion
board, the following software and hardware specifications are required:
•a PC/Laptop with Microsoft Windows (7 and above) to install the software package (X-
CUBE-SPN13)
• an X-NUCLEO-IHM13A1 expansion board
• an STM32 Nucleo development board (NUCLEO-F401RE, NUCLEO-F334R8,
NUCLEO-F030R8 or NUCLEO-L053R8)
•a type A USB to mini-B USB cable to connect the STM32 Nucleo board to the
PC/Laptop
• the X-CUBE-SPN13 software package (available on www.st.com)
• an IDE chosen from among IAR Embedded Workbench for ARM (EWARM), Keil
microcontroller development kit (MDK-ARM) and system workbench for STM32
Nucleo project
• a DC motor with compatible voltage and current ratings for the STSPIN250 driver
• an external power supply or external battery able to provide the right voltage for the
DC motor used.
Getting started
UM2148
6/14
DocID030083 Rev 1
2 Getting started
The X-NUCLEO-IHM13A1 expansion board is a DC motor driver covering a wide range of
applications.
The maximum ratings of the expansion board are:
• Power stage supply voltage (VS) from 1.8 to 10 V
• Motor phase current up to 2.6 A rms.
To start your project with the expansion board:
1. Check the jumper position based on your configuration (see Section 3.2: "Selecting
reference voltage").
2. Connect the X-NUCLEO-IHM13A1 to the STM32 Nucleo board through Arduino UNO
R3 Connectors (CN5, CN6, CN8 and CN9).
3. Supply the board through the input 1 (Vin) and 2 (GND) of the connector J1. The D3
(red) LED will turn on.
4. Develop your application using the examples provided with the firmware library (XCUBE-SPN13).
Visit www.st.com for supporting material regarding the STSPIN250 DC motor driver and
STM32 Nucleo web pages (www.st.com/stm32nucleo).
UM2148
Hardware description and configuration
DocID030083 Rev 1
7/14
3 Hardware description and configuration
Figure 2: X-NUCLEO-IHM13A1 switch and connector positions
Table 1: Arduino UNO R3 connector table
Connector Pin
(1)
Signal Remarks
1 REF
CN5
2 RESET
7 Ground
3 ENABLE
CN9
6 PWM
7 PH
2 VDD
CN6
6 Ground
7 Ground
CN8 1 REF
Notes:
(1)
All the non-listed pins are not connected
Table 2: ST morpho connector table
Connector Pin
(1)
Signal Remarks
See Section 3.2: "Selecting reference voltage"
See Section 3.2: "Selecting reference voltage"
CN10
9 Ground
19 RESET
Hardware description and configuration
UM2148
8/14
DocID030083 Rev 1
Connector Pin
(1)
Signal Remarks
21 REF
25 PH
27 PWM
33 ENABLE
12 VDD
20 Ground
CN7
22 Ground
28 REF
Notes:
(1)
All the non-listed pins are not connected
Table 3: J1 connector, switches and test points
Name Pin Label Description
See Section 3.2: "Selecting reference voltage"
See Section 3.2: "Selecting reference voltage"
J1
J2
1 - 2 Vin -
GND
1 -
A+, A- Motor A phases connection
2
Motor power supply
TP1 - GND Ground
TP2 - VIN Motor power supply
TP3 - VDD
Digital power supply (by default 3.3 V coming from STM32 Nucleo
board)
3.1 Selecting the STM32 Nucleo board
The X-NUCLEO-IHM13A1 expansion board offers native support for the following STM32
Nucleo development boards:
• NUCLEO-F401RE
• NUCLEO-F334R8
• NUCLEO-F030R8
• NUCLEO-L053R8
UM2148
Hardware description and configuration
DocID030083 Rev 1
9/14
These signals must be used by all expansion boards stacked on the
3.2 Selecting reference voltage
The reference voltage for the current limiter circuitry of the STSPIN250 can be selected
through dedicated resistors shown below.
Table 4: Reference voltage selection
Signal R17 R20 Connector Remarks
REF 200 kΩNot mounted CN8 pin1
REF Not mounted 200 kΩCN5 pin1 NUCLEO-F030R8
X-NUCLEO-IHM13A1.
Default
NUCLEO-F401RE or
NUCLEO-F334R8 or
NUCLEO-L053R8
Bill of materials
UM2148
10/14
DocID030083 Rev 1
4 Bill of materials
Item Q.ty Reference Value Description Manufacturer Part number
1 1 CN5
2 2 CN6, CN9
3 2
4 1 CN8
5 1 C1
6 1 C2
7 1 C3
8 1 C4
9 1 C5
10 1 C6
11 1 C7
12 1 C8
13 2 D1, D2 YELLOW LED, 805
14 1 D3 RED LED, 805
15 2 J1, J2
16 3
17 1 R1
18 2 R2, R20 NP RES, 603 N.A. R_NP_0603
19 1 R3
20 1 R4
21 4
CN7,
CN10
M1, M2,
M3
R5, R16,
R18, R19
SSQ-110-
04-F-S
SSQ-108-
04-F-S
NP HEADER SAMTEC ESQ-119-24-G-D
SSQ-106-
04-F-S
3.3 nF,
50 V, ±15%
2.2 µF,
16 V, ±20%
NP, 16 V,
±20%
22 µF,
16 V, ±20%
1nF, 50 V,
±15%
10 nF,
50 V, ±15%
22 nF,
50 V, ±5%
2.2 nF,
50 V, ±15%
6912135100
02
OPTICAL_
TARGET
0R, 1/8 W,
±5%
18 kΩ, 1/10
W, ±5%
39 kΩ, 1/10
W, ±5%
330 R,
1/10W, ±5%
HEADER SAMTEC SSQ-110-04-F-S
HEADER SAMTEC SSQ-108-04-F-S
HEADER SAMTEC SSQ-106-04-F-S
CER, 603 N.A. 3.3NF_50V_X7R_0603
CER, 603 N.A. 2.2UF_16V_X5R_0603
ALU,
D5_H11_P2
ALU,
L4.5_W4.5
CER, 603 N.A. 1NF_50V_X5R_0603
CER, 603 N.A. 10NF_50V_X7R_0603
CER, 603 N.A. 22NF_50V_X7R_0603
CER, 603 N.A. 2.2NF_50V_X7R_0603
SCREW
OPTICAL_TA
RGET
RES, 805 N.A. 0R_5%_0805
RES, 603 N.A. 18K_5%_0603
RES, 603 N.A. 39K_5%_0603
RES, 603 N.A. 330R_5%_0603
WURTH
ELECTRONIK
WURTH
ELECTRONIK
WURTH
ELEKTRONIK
WURTH
ELEKTRONIK
WURTH
ELEKTRONIK
N.A. OPTICAL_TARGET
860010372002
865080340003
150080YS75000
150080RS75000
691213510002
UM2148
Bill of materials
DocID030083 Rev 1
11/14
Item Q.ty Reference Value Description Manufacturer Part number
22 2 R6, R8
23 2 R10, R21
0R68,
1/3 W, ±1%
47 kΩ, 1/10
W, ±5%
1 kΩ,
24 1 R11
1/10 W,
±5%
25 4 R12, R13
2.2 kΩ,
1/8 W, ±5%
200 kΩ,
26 1 R17
1/10 W,
±1%
27 3
TP1, TP2,
TP3
S1751-46R TEST POINT HARWIN S1751-46R
28 1 U1 STSPIN250
29 1 U2
SN74LVC1
G125DCKR
RES, 805 N.A. 0R68_1%_0805_0.33W
RES, 603 N.A. 47K_5%_0603
RES, 603 N.A. 1K_5%_0603
RES, 805 N.A. 2.2K_5%_0805
RES, 603 N.A. 200K_1%_0603
DRIVER,
QFN16
LOGIC,
SOT353
STMICROELEC
TRONICS
TEXAS
INSTRUMENTS
STSPIN250
SN74LVC1G125DCKR
Schematic diagram
UM2148
12/14
DocID030083 Rev 1
A+
A-
FOR EVALUATION ONL Y
ROHS COMPLIANT 2002/95/ IE C
EN
REF
PH
PWM
GN D
VDDGN D
GN
D
RST
GN D
Vi
n
C3 (THT) or C4 (SMD)
Double foot p rin t
VDD
GN DVIN
X-NUCLEO-IH M13A 1
REF selectNUCLEO F0 : R17 = NP - R20 200 K
NUCLEO F4 : R17 = 200K - R20 N P
NUCLEO L0 : R17 = 200K - R20 N P
Vbat
VDD
VDD
VDD
VDD
VD
D
Vba
t
V
DD
VDD
R2
1
47
K
C6
10
NF
R8
0
R
68
D2
Y
ELLO
W
TP1
1
CN
8
SSQ
-106-
04-F
-S
1
2
3
4
5
6
R
13
2.
2K
M
1
OPT
ICA
L_TA
RGE
T
CN
1
0
ESQ
-119-24-G-D
1
3
5
7
9
11
13
15
17
19
2
1
23
25
27
29
31
33
35
37
2
4
6
8
10
12
14
16
18
20
2
2
24
26
28
30
32
34
36
38
0
52NIPSTS1U
STB
Y
14
EN
_FAU
LT
13
PH
1
P
WM
2
NC
16
NC
1
5
REF
11
TOFF
12
VS
6
OUTA 1
3
OUTA 2
5
SENSE A
4
OUTB 1
10
OUTB 2
8
SENSE B
9
G
ND
7
EPAD
17
R6
0R68
C2
2.2UF
M2
OPTICA L_TARG ET
R16
330R
M3
OPTICA L_TARG ET
CN5
SSQ-110-04 -F-S
1
2
3
4
5
6
7
8
9
10
C5
1NF
U2
SN74LVC 1G125DCK R
OEn
1
IN
2
GND
3
VCC
5
OUT
4
C7
22NF
R1
0R
R18
330R
R17
200K
R4
39K
R11
1K
TP3
1
J1
1
2
D3
RED
R2
0
N
P
R3
18K
J2
1
2
C8
2
.2
N
F
CN7
ESQ-
119-24
-G-
D
1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
37
246
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
R1
9
330R
D1
YELLOW
R1
0
47K
CN6
SSQ-108-04 -F-S
1
2
345
678
R5
330R
C1
3.3NF
R12
2.2K
+
C3
22UF
CN9
SSQ-108-04 -F-S
1
2
3
4
5
6
7
8
R2
NP
+
C4
22UF
TP2
1
OUT-B+
OUT-B-
OUT-A+
OUT-A-
SENSE B
SENSE A
STBY
EN_FA ULT
REF
TOFF
PWM
PH
GSPG2211161510SG
5 Schematic diagram
Figure 3: X-NUCLEO-IHM13A1 circuit schematic
UM2148
Revision history
DocID030083 Rev 1
13/14
6 Revision history
Date Version Changes
01-Dec-2016 1 Initial release.
Table 5: Document revision history
UM2148
14/14
DocID030083 Rev 1
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 different from the information set forth herein shall void any warranty granted by ST for such product.
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.