STM32-MAT-based brushless direct current motor control code automatic generation method

A DC motor and control code technology, which is applied in motor generator control, electronic commutation motor control, and control of electromechanical brakes. threshold, improve development efficiency, and improve the effect of transplanting efficiency

Pending Publication Date: 2022-07-15
HANGZHOU DIANZI UNIV
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the 32-bit MCU has many command operations, and the sof

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • STM32-MAT-based brushless direct current motor control code automatic generation method
  • STM32-MAT-based brushless direct current motor control code automatic generation method
  • STM32-MAT-based brushless direct current motor control code automatic generation method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] Next, the present invention will be described in detail with reference to specific embodiments and accompanying drawings.

[0025] The development boards used in the present invention include X-NUCLEO-IHM07M1 3SH and NUCLEO-F103RB officially launched by ST, wherein X-NUCLEO-IHM07M1 3SH is a motor drive board specially used for PMSM and BLDC, and the motor drive board drive chip model for L6230. The model of the brushless DC motor is 2836, the motor has two sets of wires (Hall sensor wire and motor three-phase wire), the working voltage is 24V, and the maximum speed is 12000rpm.

[0026] like figure 1 As shown, the automatic generation method of brushless DC motor control code based on STM32-MAT includes the following steps:

[0027] Step 1: Open the STM32CubeMX software, select the special NUCLEO-F103RB project template, create a new Cube project, and select the STM32F103RB based on the ARM Cortex-M3 core for the chip model.

[0028] Step 2: RCC interface configurati...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an automatic generation method of a brushless direct current motor control code based on STM32-MAT. According to the method, an engineering file is established in STM32CubeMX, and setting of the model and pins of a chip is completed; the method comprises the following steps of: in Matlabamp; the method comprises the following steps: designing an algorithm module of a control system on a Simulink, establishing a blank Model, finding a toolbox of STM32-MAT from a Simulink Library Browser, and dragging an STM32 Config module in an MCU CONFIG into a model file; the method comprises the following steps: establishing a model for automatically generating codes by utilizing a Matlab function module and an element of STM32-MAT, and clicking Build to generate corresponding codes; and opening compilation, and programming into a hardware chip for verification. According to the invention, the development efficiency is improved, and code transplantation among different chips is realized.

Description

technical field [0001] The invention belongs to the technical field of brushless direct current motor control, in particular to a method for automatically generating a portable C code for brushless direct current motor control based on STM32-MAT, so as to facilitate the realization of a control algorithm and speed up the process from design to implementation of motor control. process. Background technique [0002] With the rapid development of integrated circuit technology, 32-bit MCU with high performance, multi-function and low power consumption has gradually replaced 8-bit MCU in embedded system design and has become the first choice. However, the 32-bit MCU command operations are many, and the system's software and hardware design becomes more complex. STM32 series microcontroller, as an embedded application product based on ARM Cortex-M3 core, also faces the same problem. To this end, STMicroelectronics (ST) has launched STM32CubeMX software to improve the development...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H02P7/28H02P21/18H02P21/14G06F8/30
CPCH02P7/28H02P21/18H02P21/14G06F8/31
Inventor 王家军杨智成辛壮壮
Owner HANGZHOU DIANZI UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products