Getting started with the X-NUCLEO-IHM09M2 motor control connector expansion
board for STM32 Nucleo
Introduction
The X-NUCLEO-IHM09M2
motor control solutions for three-phase motors by connecting the STM32 Nucleo development board to an external ST motor
control power board, thanks to the ST morpho and motor control connector.
The 34-pin motor control connector is compatible with all major ST motor control power boards, which requires an external
digital section (MCU) to drive a three-phase motor.
The DAC connector supports the user code development and testing with easy access to the MCU peripherals.
An LED is available for fault condition signaling or status indication.
The X-NUCLEO-IHM09M2 is fully compatible with the ST six-step and field-oriented control (FOC) firmware library.
is a motor control connector expansion board for STM32 Nucleo. It provides an easy way to evaluate
Figure 1. X-NUCLEO-IHM09M2 motor control connector expansion board
UM3030 - Rev 1 - July 2022
For further information contact your local STMicroelectronics sales of
fice.
www.st.com
Page 2
1System overview
1.1Main characteristics
The X-NUCLEO-IHM09M2 expansion board is designed for three-phase motor driver applications. It features:
ST motor control connector (34 pins) compatible with ST motor control power boards
•
•STM32 Nucleo compatibility, thanks to ST morpho connectors
•Compatible with the ST six-step and FOC motor control firmware library
•Debug connector for DAC, GPIOs, etc.
•Fully populated board with test points
•LED for fault signaling or status indication
•Potentiometer available (for speed reference)
•PCB type and size:
–PCB material - FR-4
–layout - double layer
–copper thickness - 35 μm
–overall board dimensions - 70 mm x 70 mm
•RoHS compliant
UM3030
System overview
UM3030 - Rev 1
page 2/19
Page 3
2Getting started
2.1System architecture
A generic motor control system consists of the following major blocks:
1.Control block, which accepts the user commands and provides motor control signals to drive a motor
The X-NUCLEO-IHM09M2 adapter connects an STM32 Nucleo development board to a power board that
requires an external digital section.
2.Power block, which is normally in a three-phase inverter topology. It contains all the necessary active power
and analog components to control a low voltage PMSM/BLDC motor.
3.Motor, which is a three-phase brushless motor.
UM3030
Getting started
.
Figure 2. System architecture
2.2Building the system
The X-NUCLEO-IHM09M2 expansion board adapts the STM32 Nucleo development board to the ST motor
control power boards, which require an external digital section to control a three-phase PMSM/BLDC motor
For the regular board operation, plug the expansion board onto the top of the development board (control block)
via the ST morpho connector, as shown below.
.
UM3030 - Rev 1
page 3/19
Page 4
Figure 3. X-NUCLEO-IHM09M2 plugged onto the STM32 Nucleo
UM3030
Building the system
The interconnection between the two boards is fully compatible with a wide range of STM32 Nucleo development
boards. No solder bridge modification is required.
The stacked solution is ready to operate with a compatible power board via a standard 34-pin flat cable.
2.2.1Hardware settings
Set the X-NUCLEO-IHM09M2 J1 jumper of
Jumper/connectorDescription
J734-pin motor control connector
J1DAC/GPIO output
CN7ST morpho connector
CN6Arduino UNO R3 connector
CN8Arduino UNO R3 connector
CN10ST morpho connector
CN5Arduino UNO R3 connector
CN9Arduino UNO R3 connector
D1LED for fault or status indication
f.
Table 1. Jumper, connectors, and LED
UM3030 - Rev 1
page 4/19
Page 5
Figure 4. X-NUCLEO-IHM09M2 - top layer with silk-screen
UM3030
Building the system
UM3030 - Rev 1
The X-NUCLEO-IHM09M2 is equipped with ST morpho connectors. The male pin headers are CN7 and CN10.
These connectors are used to connect the expansion board to the STM32 Nucleo.
The MCU signals and power pins are available on the morpho connector
. For further details, refer to UM1724,
section 5.12.
Table 2. ST morpho connector - CN7
PinDefaultSignalSolder bridge
1PC10NTC bypassR17
2PC11Dissipative brake/OCP disableR19
3PC12
4PD2
5VDD
6E5V
7BOOT0
8GND
9NC/PF6
page 5/19
Page 6
Building the system
PinDefaultSignalSolder bridge
10NC
11NC/PF7
12IOREF
13PA13
14RESET
15PA14
16+3V3
17PA15Encoder A/Hall H1R27
18+5V
19GND
20GND
21PB7
22GND
23PC13
24VIN
25PC14
26NC
27PC15
28PA0Curr_fdbk_PhAR4
29PH0/PF0/PD0
30PA1VBUS_sensingR5
31PH1/PF1/PD1
32PA4DAC_ChR18 (not mounted)
33VLCD/VBAT
34PB0VL_PWMR15
35PC2Temperature feedbackR10
36PC1 or PB9Curr_fdbk_PhB
R9
(1)
37PC3PotentiometerR28
38PC0 or PB8Curr_fdbk_PhC
For further details, refer to UM1724, table 9.
1.
R7
(1)
UM3030
UM3030 - Rev 1
Table 3. ST morpho connector - CN10
PinDefaultSignalSolder bridge
1PC9
2PC8
3PB8
4PC6
5PB9
6PC5
7AVDD
8
U5V
(1)
page 6/19
Page 7
PinDefaultSignalSolder bridge
9GND
10NC
11
PA5
(2)
GPIO/DAC/PWMR21
12PA12
13
PA6
(3)
DIAG/ENABLE/BKIN1R3
14PA11DIAG/ENABLE/BKIN2R1
15
PA7
(4)
UL_PWMR12
16PB12
17PB6
18PB11/NC
19PC7
20GND
21PA9VH_PWMR8
22PB2Red LEDR14
23PA8UH_PWMR6
24PB1WL_PWMR16
25PB10Encoder Z/Hall H3R25
26
PB15
(4)
27PB4PWM/DEBUGR20
28
PB14
(3)
DIAG/ENABLE/BKIN1R2
29PB5GPIO/DAC/PWMR23
30
PB13
(2)
GPIO/DAC/PWMR22
31PB3Encoder B/Hall H2R24
32AGND
33PA10WH_PWMR11
34PC4
35PA2
36NC/PF5
37PA3
38NC/PF4
1. U5V is the 5 V power from the ST-LINK/V2-1 USB connector and it rises above +5 V.
2. For NUCLEO-F302R8 only: pin PA5 is on CN10/pin 30 and PB13 is on CN10/pin 11.
3. For NUCLEO-F302R8 only: pin PA6 is on CN10/pin 28 and PB14 is on CN10/pin 13.
4. For NUCLEO-F302R8 only: pin PA7 is on CN10/pin 26 and PB15 is on CN10/pin 13.
UM3030
Building the system
UM3030 - Rev 1
page 7/19
Page 8
2.2.2Pinout of the motor control connector
15211311711591932933232571327
162223218126102043034242681428
Figure 5. J7 motor control connector (top view)
UM3030
Building the system
The X-NUCLEO-IHM09M2 expansion board supports motor control via the J7 34-pin connector
. This connector
provides all the required control and feedback signals to and from an ST motor power-drive board.
The available signals include the emergency stop, speed or position feedback, three-phase motor current, bus
voltage, and heatsink temperature.
Table 4. J7 pin assignments
PinDefaultFunction
1PA6/PA11DIAG/ENABLE/BKIN1
2GNDDissipative brake/OCP disable
3PA8UH_PWM
4GND
5PA7/PB15UL_PWM
6GND
7PA9VH_PWM
8GND
9PB0VL_PWM
10GND
11PA10WH_PWM
12GND
13PB1WL_PWM
14PA1VBUS_sensing
15PA0Curr_fdbk_PhA
16Not connected
17PC1Curr_fdbk_PhB
18Not connected
19PC0Curr_fdbk_PhC
20Not connected
21PC10NTC bypass
22Not connected
23PC11Dissipative brake/OCP disable
UM3030 - Rev 1
page 8/19
Page 9
PinDefaultFunction
24Not connected
25E5V
26PC2Temperature feedback
27Not connected
28Not connected
29Not connected
30Not connected
31PA15Encoder A/Hall H1
32Not connected
33PB3Encoder B/Hall H2
34PB10Encoder Z/Hall H3
2.2.3DAC settings for debug
For debugging purposes, you can use the DAC peripheral and configure the motor control library to drive the
signal.
For instance, the P
connected to DAC_CH1.
Different pins are available on the J1 connector, according to the STM32 Nucleo development board used.
A4 pin is accessible through the ST morpho connector or J1 connector. This pin is usually
UM3030
Building the system
2.2.4User LED
The X-NUCLEO-IHM09M2 provides a programmable LED (D1) connected on the PB2 pin. It can be used to
signal motor status, faults, etc.
Y
ou have to configure this pin and drive it through the application code you have developed.
UM3030 - Rev 1
page 9/19
Page 10
MC FOC SDK: configuration guide for X-NUCLEO-IHM09M2
3MC FOC SDK: configuration guide for X-NUCLEO-IHM09M2
The X-NUCLEO-IHM09M2 expansion board is compatible with the motor control (MC) FOC SDK, which is a
firmware library and workbench GUI.
No hardware modification is needed to run the motor through this control algorithm.
For the pin configuration, see T
You can connect the STM32 Nucleo to the MC workbench GUI through a virtual COM embedded in the STM32
Nucleo, which allows using the USART2 on PA2 and PA3 pins from the same USB type A to Mini-B USB cable
used to program the STM32 Nucleo.
For further information on the MC FOC SDK, see X-CUBE-MCSDK.
1. This code identifies the X-NUCLEO-IHM09M2 first version. It is printed on the board PCB.
(1)
UM3030
Board versions
Table 6. X-NUCLEO-IHM09M2 versions
X$NUCLEO-IHM09M2 schematic diagramsX$NUCLEO-IHM09M2 bill of materials
UM3030 - Rev 1
page 13/19
Page 14
7Regulatory compliance information
Formal Notice Required by the U.S. Federal Communications Commission
For evaluation only; not FCC approved for resale
FCC NOTICE
This kit is designed to allow:
(1) Product developers to evaluate electronic components, circuitry
determine whether to incorporate such items in a finished product and
(2) Software developers to write software applications for use with the end product.
This kit is not a finished product and when assembled may not be resold or otherwise marketed unless all
required FCC equipment authorizations are first obtained. Operation is subject to the condition that this product
not cause harmful interference to licensed radio stations and that this product accept harmful interference. Unless
the assembled kit is designed to operate under part 15, part 18 or part 95 of this chapter, the operator of the kit
must operate under the authority of an FCC license holder or must secure an experimental authorization under
part 5 of this chapter 3.1.2.
Formal Product Notice Required by Industry Canada Innovation, Science and Economic Development
Canada compliance:
For evaluation purposes only. This kit generates, uses, and can radiate radio frequency energy and has not been
tested for compliance with the limits of computing devices pursuant to Industry Canada (IC) rules.
À des fins d'évaluation uniquement. Ce kit génère, utilise et peut émettre de l'énergie radiofréquence et n'a pas
été testé pour sa conformité aux limites des appareils informatiques conformément aux règles d'Industrie Canada
(IC).
UM3030
Regulatory compliance information
, or software associated with the kit to
Formal product notice required by EU
This device is in conformity with the essential requirements of the Directive 2015/863/EU (RoHS).
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’
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. For additional information about ST trademarks, refer to www
are the property of their respective owners.
Information in this document supersedes and replaces information previously supplied in any prior versions of this document.
s terms and conditions of sale in place at the time of order acknowledgment.
.st.com/trademarks. All other product or service names