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:

Advertisement

STM32 motor-control pack using the FOC algorithm for three-phase, low-voltage,
Introduction
The
P-NUCLEO-IHM03
pack is the motor-control kit based on the
power board with the
STSPIN830
PMSM motors with the addition of the STM32 Nucleo board through the ST morpho connector as illustrated in
NUCLEO-IHM03
is provided with a power supply unit also shown in
The device used on the power board is the STSPIN830. It is a compact and versatile FOC-ready driver for a three-phase motor.
It supports both single- and three-shunt architectures and embeds a PWM current controller based on user-settable values of
reference voltage and OFF time. Thanks to a dedicated MODE input pin, the device offers the freedom to decide whether to
drive it through 6 inputs (one for each power switch) or a more common 3 PWM direct-driving inputs. In addition, it integrates
both the control logic and a fully protected low-RDSon triple-half-bridge power stage. The
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 the closed-loop control (FOC only). It can be used with either a
speed sensor mode (Hall or Encoder), or speed sensorless mode. It is compatible with both 1-shunt and 3-shunt current-sense
topologies.
Picture is not contractual.
UM2538 - Rev 1 - April 2019
For further information contact your local STMicroelectronics sales office.
driver in the STPIN family provides a motor-control solution for three-phase, low-voltage,
Figure 1.
P-NUCLEO-IHM03 pack
and low-current motor evaluation
X-NUCLEO-IHM16M1
and
NUCLEO-G431RB
Figure
1.
NUCLEO-G431RB
UM2538
User manual
boards. The
Figure
1.
P-
board provides an
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 STSPIN830 driver in the STPIN family provides a motor-control solution for three-phase, low-voltage, PMSM motors with the addition of the STM32 Nucleo board through the ST morpho connector as illustrated in Figure NUCLEO-IHM03 is provided with a power supply unit also shown in Figure The device used on the power board is the STSPIN830.
  • 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

    Evaluation tools marked as “ES” or “E” are not yet qualified and therefore not ready to be used as reference design or in production. Any consequences deriving from such usage will not be at ST charge. In no event, ST will be liable for any customer usage of these engineering sample tools as reference design or in production.
  • Page 4: 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 1...
  • Page 5: 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 user commands and configuration parameters to drive a motor. The P- NUCLEO-IHM03 kit is based on the NUCLEO-G431RB board that provides all needed signals to perform the proper motor-driving control algorithm (for instance FOC).
  • Page 6: 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 7: 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 on the CN1 connector as shown in Figure Figure 4. Motor connection with X-NUCLEO-IHM16M1 UM2538 - Rev 1 page 7/27...
  • Page 8 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) closed.
  • Page 9: Hardware Settings

    They can be used to connect this power board to the NUCLEO-G431RB 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”...
  • Page 10: Upload The Firmware Example

    UM2538 Upload the firmware example Part reference Description Hall-encoder sensor connector J2, J3 Current limiter use and configuration External pull-up for sensors JP4, JP7 Current measure mode (1 shunt / 3 shunt) LED status indicator Figure 6. X-NUCLEO-IHM16M1 connectors J5 & J6 Upload the firmware example The example for the motor-control application example is pre-loaded in the NUCLEO-G431RB board.
  • Page 11: Drag-And-Drop Procedure

    On the NUCLEO-G431RB board, set the JP5 jumper in position U5V. Plug the NUCLEO-G431RB board to the host PC using a Type-A to Micro-B USB cable. If the ST-LINK driver is correctly installed, it is recognized as an external memory device called “NUCLEO” or any similar name.
  • Page 12: Demonstration Usage

    UM2538 Demonstration usage 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 LEDs D8, D9, and D10 are turned on (X-NUCLEO-IHM16M1 board)
  • Page 13: 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 3-shunt current-sensing mode. To use the FOC in a 1-shunt configuration, the user must reconfigure...
  • Page 14: Electrical Schematics

    Figure 12. X-NUCLEO-IHM16M1 L6230 driver and BEMF detection circuit • Figure 13. X-NUCLEO-IHM16M1 MCU pin assignment Note: Users are advised to check for the most up-to-date schematics of X-NUCLEO-IHM16M1 NUCLEO-G431RB on STMicroelectronics www.st.com web site. UM2538 - Rev 1 page 14/27...
  • Page 15 X-NUCLEO-IHM16M1 X-NUCLEO-IHM16M1 s che ma tic dia gra ms ve rs ion 1| s he e t 1 Figure 9. X-NUCLEO-IHM16M1 motor driver connections 33µF 33µF 50VNP 330NF EN_FAULT P-MOS VREF VREF EN_FAULT NX3008PBKW TOFF TOFF 10NF STBY OUTW STBY OUTW OUTV INU/INUH...
  • Page 16 X-NUCLEO-IHM16M1 X-NUCLEO-IHM16M1 s che ma tic dia gra ms ve rs ion 1| s he e t 3 Figure 10. X-NUCLEO-IHM16M1 current-sensing conditioning circuit OP303_U 2.2K TSV994 680R SENSEU Curr_fdbk1 0.33R 1/2W 1206 680PF 2.2K Jumper M7 connected 2.2K between J5 pin 1&2 OPEN 61300211121 OP303_V...
  • Page 17 Fig ure 1: X-NUCLEO-IHM16M1 c irc uit s c he matic (1 o f 5) Figure 11. X-NUCLEO-IHM16M1 sensors and shunt resistor circuit S1751-46R VREF TOFF Jumper M6 connected 61300311121 between J3 pin 1&2 NCP18WB473J03RB VREF 180K Roff 3.9K SPEED 220NF VBUS SPEED...
  • Page 18 OPTICAL_TARGET OPTICAL_TARGET OPTICAL_TARGET GU_4xx Fig ure 3: X-NUCLEO-IHM16M1 c irc uit s c he matic (3 o f 5) Figure 12. X-NUCLEO-IHM16M1 L6230 driver and BEMF detection circuit FC681465P S1751-46R S1751-46R S1751-46R 805-1699 691351500003 691311500105 OUT W OUTW OUT V OUTV OUT U OUTU...
  • Page 19 X-NUCLEO-IHM16M1 X-NUCLEO-IHM16M1 s che ma tic dia gra ms ve rs ion 1| s he e t 2 Figure 13. X-NUCLEO-IHM16M1 MCU pin assignment C10_28 PB14 C7_32 PA4 - DAC C10_6 F302 C10_27 PB4 - PWM C7_28 VBUS CURRENT_REF C7_17 PA15 - H1 PC6 - H1 F030...
  • Page 20: References

    STM32G4 Nucleo-64 boards (MB1367) user manual (UM2505). 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.0 user manual (UM2374). UM2538 - Rev 1 page 20/27...
  • Page 21: Appendix A Federal Communications Commission (Fcc) And Industry Canada (Ic)

    UM2538 Federal Communications Commission (FCC) and Industry Canada (IC) Compliance Statements Appendix A Federal Communications Commission (FCC) and Industry Canada (IC) 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 22 UM2538 IC Compliance Statement Étiquette de conformité à la NMB-003 d'Industrie Canada : CAN ICES-3 (B) / NMB-3 (B). UM2538 - Rev 1 page 22/27...
  • Page 23: Revision History

    UM2538 Revision history Table 7. Document revision history Date Version Changes 19-Apr-2019 Initial release. UM2538 - Rev 1 page 23/27...
  • Page 24: Table Of Contents

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

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

    UM2538 List of figures List of figures Figure 1. P-NUCLEO-IHM03 pack ............. 1 Figure 2.
  • Page 27 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’...

This manual is also suitable for:

X-nucleo-ihm16m1Nucleo-g431rbP-nucleo-ihm03

Table of Contents