ST STM32 User Manual

ST STM32 User Manual

Motor-control pack using the foc algorithm for three-phase, low-voltage, and low‑current motor evaluation
Hide thumbs Also See for STM32:
Table of Contents

Advertisement

Quick Links

STM32 motor-control pack using the FOC algorithm for three-phase, low-voltage,
Introduction
The
P-NUCLEO-IHM03
pack is a motor-control kit based on the
with the STM32 Nucleo board through the ST morpho connector, the power board (based on the
STPIN family) provides a motor-control solution for three-phase, low-voltage, PMSM motors. This is shown in
power supply that is also provided.
The STSPIN830 device on the power board is a compact and versatile FOC-ready driver for a three-phase motor. It supports
both single-shunt and three-shunt architectures, and embeds a PWM current controller with user-settable values of reference
voltage and off time. With a dedicated mode input pin, the device offers the freedom to decide whether to drive it through six
inputs (one for each power switch), or the more common three PWM directly driven inputs. In addition, it integrates both the
control logic and a fully protected low-R
affordable and flexible way for users to try out new concepts and build prototypes with the STM32G4 microcontroller. It does not
require any separate probe, as it integrates the STLINK-V3E debugger and programmer.
This motor-control evaluation kit is fully configurable to support closed-loop control (FOC only). It can be used in either a speed-
sensor mode (Hall or encoder), or in a speed-sensorless mode. It is compatible with both single-shunt and three-shunt current-
sense topologies.
Picture is not contractual.
UM2538 - Rev 2 - June 2023
For further information contact your local STMicroelectronics sales office.
X-NUCLEO-IHM16M1
, triple-half-bridge power stage. The
DS(on)
Figure 1.
P-NUCLEO-IHM03 pack
and low‑current motor evaluation
and
NUCLEO-G431RB
STSPIN830
NUCLEO-G431RB
control board provides an
UM2538
User manual
boards. Used
driver of the
Figure 1
with the
www.st.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32 and is the answer not in the manual?

Questions and answers

Summary of Contents for ST STM32

  • Page 1: Figure 1. P-Nucleo-Ihm03 Pack

    X-NUCLEO-IHM16M1 NUCLEO-G431RB boards. Used with the STM32 Nucleo board through the ST morpho connector, the power board (based on the STSPIN830 driver of the STPIN family) provides a motor-control solution for three-phase, low-voltage, PMSM motors. This is shown in...
  • Page 2: Features

    ® ◦ ARDUINO Uno V3 expansion connector ◦ ST morpho extension pin headers for full access to all STM32 I/Os – On-board STLINK-V3E debugger/programmer with USB re-enumeration capability: mass storage, Virtual COM port, and debug port – 1 user and 1 reset push-buttons •...
  • Page 3: Ordering Information

    UM2538 Ordering information Ordering information To order the P-NUCLEO-IHM03 Nucleo pack, refer to Table 1. Additional information is available from the datasheet and reference manual of the target STM32. Table 1. List of available products Order code Board Board reference Target STM32 •...
  • Page 4: Table 4. Nucleo Board Codification Explanation

    Table 4. Nucleo board codification explanation NUCLEO-XXYYZT Description Example: NUCLEO-G431RB MCU series in STM32 32-bit Arm Cortex MCUs STM32G4 series STM32G431xx MCUs belong to the STM32G4x1 MCU product line in the series product line STM32 package pin count: 64 pins •...
  • Page 5: Development Environment

    X-CUBE-MCSDK STM32Cube Expansion Package, is preloaded in the STM32 flash memory for easy demonstration of the device peripherals in standalone mode. The latest versions of the demonstration source code and associated documentation can be downloaded from www.st.com. UM2538 - Rev 2...
  • Page 6: Conventions

    UM2538 Conventions Conventions Table 5 provides the conventions used for the ON and OFF settings in the present document. Table 5. ON/OFF conventions Convention Definition Jumper ON Jumper fitted Jumper OFF Jumper not fitted Jumper [1-2] Jumper fitted between pin 1 and pin 2 Solder bridge ON Connections closed by 0 Ω...
  • Page 7: Getting Started (Basic User)

    UM2538 Getting started (basic user) Getting started (basic user) System architecture P-NUCLEO-IHM03 kit is based on the usual four-block architecture for a motor-control system: • Control block: it interfaces the user commands and configuration parameters to drive a motor. The P- NUCLEO-IHM03 kit is based on the NUCLEO-G431RB control board that provides all the needed signals to perform the proper motor-driving control algorithm (for instance FOC).
  • Page 8: Configure And Run The Motor Control From The Stm32 Nucleo Motor-Control Pack

    UM2538 Configure and run the motor control from the STM32 Nucleo motor-control pack Configure and run the motor control from the STM32 Nucleo motor-control pack P-NUCLEO-IHM03 Nucleo pack is a complete hardware development platform for the STM32 Nucleo ecosystem to evaluate a motor-control solution with a single motor.
  • Page 9: Figure 4. Motor Connection With X-Nucleo-Ihm16M1

    UM2538 Configure and run the motor control from the STM32 Nucleo motor-control pack Connect the three motor wires U,V,W to the CN1 connector as shown in Figure Figure 4. Motor connection with X-NUCLEO-IHM16M1 UM2538 - Rev 2 page 9/25...
  • Page 10: Figure 5. Power-Supply Connection For X-Nucleo-Ihm16M1

    UM2538 Configure and run the motor control from the STM32 Nucleo motor-control pack Select the jumper configuration on the power board to choose the desired control algorithm (FOC) as described below: On the NUCLEO-G431RB board, check the jumper settings: JP5 on position [1-2] for 5V_STLK source, JP8 (VREF) on position [1-2], JP6 (IDD) ON.
  • Page 11: Hardware Settings

    They can be used to connect the X-NUCLEO-IHM16M1 power board to the NUCLEO-G431RB control board. All signals and power pins for the MCU are available on the ST morpho connectors. For further details, refer to the “ST morpho connectors” section in [3].
  • Page 12: Upload The Firmware Example

    NUCLEO-G431RB and restart by the default condition. There are two ways to do it: • Drag-and-drop procedure (suggested), as detailed in Section 5.4.1 • Through the STM32CubeProgrammer (STM32CubeProg) tool (free download available from the STMicroelectronics website at www.st.com), as shown in Section 5.4.2 UM2538 - Rev 2 page 12/25...
  • Page 13: Drag-And-Drop Procedure

    Plug the NUCLEO-G431RB board to the host PC using a USB Type-C or Type-A to Micro-B cable. If the ST-LINK driver is correctly installed, the board is recognized as an external memory device called “Nucleo” or any similar name. Drag and drop the binary file of the firmware demonstration (P-NUCLEO-IHM003.out contained in the X- CUBE-SPN7 Expansion Package) into the “Nucleo”...
  • Page 14: Demonstration Usage

    UM2538 Demonstration usage Click on the [Download] button (refer to Figure Figure 8. STM32CubeProgrammer download Press the reset button (B2) on the NUCLEO-G431RB board to start using the motor. Demonstration usage This section describes how to use the setup to spin the motor: Press the reset button (black) (NUCLEO-G431RB board) Press the user button (blue) to start the motor (NUCLEO-G431RB board) Check that the motor starts spinning and that LEDs D8, D9, and D10 are turned on (X-NUCLEO-IHM16M1...
  • Page 15: Foc Control Algorithm Settings (Advanced User)

    FOC control algorithm settings (advanced user) P-NUCLEO-IHM03 pack supports the ST FOC library. No hardware modification is needed to run the motor provided in a three-shunt current-sensing mode. To use the FOC in a single-shunt configuration, the user must reconfigure the...
  • Page 16: References

    Compact and versatile three-phase and three-sense motor driver datasheet (DS12584). STM32 MC SDK software expansion for STM32Cube data brief (DB3548). Getting started with STM32 motor control SDK v5.x user manual (UM2374). How to use STM32 motor control SDSK v6.0 profiler user manual (UM3016) UM2538 - Rev 2 page 16/25...
  • Page 17: P-Nucleo-Ihm03 Nucleo Pack Product Information

    B01. The second line shows the board serial number used for traceability. Parts marked as “ES” or “E” are not yet qualified and therefore not approved for use in production. ST is not responsible for any consequences resulting from such use. In no event will ST be liable for the customer using any of these engineering samples in production.
  • Page 18: P-Nucleo-Ihm03 Product History

    UM2538 P-NUCLEO-IHM03 product history P-NUCLEO-IHM03 product history Table 10. Product history Order Product Product details Product change description Product limitations code identification MCU: • STM32G431RBT6 silicon revision "Z" MCU errata sheet: • STM32G431xx/441xx PNIHM03$AT1 Initial revision No limitation device errata (ES0431) Board: •...
  • Page 19: Board Revision History

    UM2538 Board revision history Board revision history Table 11. Board revision history Board reference Board variant and revision Board change description Board limitations G431RB-C04 Initial revision No limitation • LEDs references updated due MB1367 (control board) to obsolescence. G431RB-C05 No limitation •...
  • Page 20: Federal Communications Commission (Fcc) And Ised Canada Compliance

    UM2538 Federal Communications Commission (FCC) and ISED Canada Compliance Statements Federal Communications Commission (FCC) and ISED Canada Compliance Statements FCC Compliance Statement Part 15.19 This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) this device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation.
  • Page 21: Revision History

    UM2538 Revision history Table 12. Document revision history Date Revision Changes 19-Apr-2019 Initial release. Added P-NUCLEO-IHM03 Nucleo pack product information, including: • Product marking • P-NUCLEO-IHM03 product history • Board revision history 20-Jun-2023 Updated System requirements Development toolchains. Updated Ordering information and Codification.
  • Page 22: Table Of Contents

    System architecture ............7 Configure and run the motor control from the STM32 Nucleo motor-control pack ..8 Hardware settings .
  • Page 23: List Of Tables

    UM2538 List of tables List of tables Table 1. List of available products............. . . 3 Table 2.
  • Page 24: List Of Figures

    UM2538 List of figures List of figures Figure 1. P-NUCLEO-IHM03 pack ............. 1 Figure 2.
  • Page 25 ST’s terms and conditions of sale in place at the time of order acknowledgment. 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’...

Table of Contents