Universal motor speed regulation module

By designing a universal motor speed regulation module, supporting a variety of motor speed sensors and feedback modes, the problem of narrow application scope and many factors in the existing technology is solved, and the precise regulation of motor speed and current is achieved, and suitable for a variety of working conditions. , reduces costs and improves the versatility of applications.

CN118971683APending Publication Date: 2024-11-15CHENGDU HUANYUXIN TECH
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202411047960.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The scope of application of existing motor speed control modules is not wide enough, and a variety of factors need to be considered, such as operating voltage, current, ambient temperature, dimensional space and cost, limiting their application.

Method used

A universal motor speed regulation module is designed, including MCU unit, drive circuit and serial port unit, supporting a variety of motor speed sensor types, and achieving motor speed through dual closed-loop control and different feedback modes (pulse, sine wave and sensorless mode) and precise control of current, suitable for brushed and brushless motors.

Benefits of technology

This module is suitable for a variety of working conditions, including sensors and sensorless feedback control, suitable for Hall sensors, encoders and other sensors, supports remote update parameters, low cost, simple structure, suitable for industrial and military fields, achieving better results Wide application and standardized management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118971683A_ABST
    Figure CN118971683A_ABST
Patent Text Reader

Abstract

A universal motor speed regulation module relates to the technical field of motor control and comprises an MCU unit, a driving circuit, a serial port unit and a conditioning circuit, the serial port unit is used for sending a feedback mode, a target rotating speed and the like to the MCU unit through the serial port unit, and the conditioning circuit is used for receiving an input motor feedback signal, filtering the motor feedback signal, limiting the amplitude of the motor feedback signal and then sending the motor feedback signal to the MCU unit. The MCU unit is used for determining a corresponding port to receive the motor feedback signal processed by the conditioning circuit according to a set feedback mode, and is also used for carrying out speed loop and current loop double-closed-loop control calculation according to the motor feedback signal, generating PWM signals with different duty ratios according to a calculation result and sending the PWM signals to the driving circuit; and the driving circuit is used for amplifying the PWM signal and directly driving a motor of which the speed needs to be regulated. The method is suitable for sensor feedback control and sensorless feedback control, the universality is higher, and standardized management can be carried out.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of motor control, and in particular to a universal motor speed regulation module. Background Art

[0002] At present, motor speed control modules are widely used in the fields of industry, medical treatment, national defense, etc. As the scope of application gradually expands, most motor speed control modules have a limited scope of application and can only be applied under specific working conditions. In addition, many factors need to be considered, including operating voltage, operating current, ambient temperature, size space, cost control, and motor type adaptation, which limits the application of motor speed control modules. Summary of the invention

[0003] Based on the above problems, the purpose of the present invention is to provide a universal motor speed control module, which can be applicable to brushed motor and brushless motor speed control systems, and is applicable to various motor speed sensor types such as Hall sensor, magnetic encoder, optical encoder or sensorless control.

[0004] The technical solution adopted by the present invention to achieve its invention purpose is a universal motor speed control module, including an MCU unit, a drive circuit, a serial port unit, and a conditioning circuit, wherein:

[0005] The serial port unit is used to send the feedback mode, target speed, brushed motor or brushless motor type, motor pole pair number, and PID parameters set by the user through the host computer to the MCU unit, and is used to transmit the working status of the speed regulation module back to the host computer;

[0006] The conditioning circuit is used to receive the input motor feedback signal and filter and limit the amplitude of the signal before sending it to the MCU unit;

[0007] The MCU unit is used to determine that the corresponding port receives the motor feedback signal processed by the conditioning circuit according to the set feedback mode, and is also used to perform speed loop and current loop dual closed-loop control calculations according to the motor feedback signal, and generate PWM signals with different duty cycles according to the calculation results and send them to the drive circuit;

[0008] The driving circuit is used to amplify the PWM signal and directly drive the motor that needs to be speed-regulated.

[0009] Furthermore, the feedback mode includes a pulse feedback mode, a sinusoidal wave feedback mode and a sensorless feedback mode.

[0010] Furthermore, the MCU unit includes a speed converter, a speed comparison unit, a speed PID regulator, a current comparison unit, a current PID regulator, and a PWM unit, wherein:

[0011] The speed converter is used to calculate the current speed of the motor according to the feedback signal of the motor sensor and send it to the speed comparison unit;

[0012] The speed comparison unit is used to compare the current speed of the motor with the set target speed, and then obtain the speed error and send it to the speed PID regulator;

[0013] The speed PID regulator is used to adjust the output of the speed PID regulator as a current reference signal according to the size of the speed error, and send the output result to the current comparison unit;

[0014] The current comparison unit is used to compare the output of the speed PID regulator with the current feedback signal of the motor, and then obtain the current error and send it to the current PID regulator;

[0015] The current PID regulator is used to adjust the output of the current PID regulator according to the magnitude of the current error, and send the output result to the PWM unit;

[0016] The PWM unit is used to generate PWM signals with different duty cycles according to the output of the current PID regulator and send them to the drive circuit.

[0017] As a further improvement, the MCU unit has a common IO interface. The process of calculating the current speed of the motor in the pulse feedback mode is as follows: receiving the motor sensor pulse feedback signal through the common IO interface of the MCU unit, and calculating the current speed of the motor by counting the number of pulses.

[0018] As another improvement, the MCU unit has an ADC acquisition port. The process of calculating the current speed of the motor in the sinusoidal wave feedback mode is as follows: receiving the sinusoidal wave feedback signal of the motor sensor through the ADC acquisition port of the MCU unit, calculating the sensor position signal, and then calculating the current speed of the motor through the time and position information.

[0019] The working process and principle of the present invention are:

[0020] Pulse feedback mode: Working in pulse feedback mode, the feedback sensor may be a Hall sensor, photoelectric encoder or other type of sensor, which is identified as an ordinary IO interface of the MCU and counts the number of pulses. The current speed of the motor can be calculated and then compared with the set target speed. The speed error is obtained and sent to the speed PID regulator. The calculation result and the current sampling feedback signal are used for inner loop control. If the working current is abnormal, overcurrent or insufficient current, the PWM duty cycle can be modulated again. Finally, PWM with different duty cycles is output according to the calculation result to drive the motor to rotate.

[0021] Sine wave feedback mode: Working in the sine wave feedback mode, the feedback sensor may be a rotary transformer or a magnetic encoder that outputs analog quantities. It is identified as the ADC acquisition port of the MCU and the sensor position signal is calculated. The current speed of the motor can be calculated through the comprehensive calculation of the time and position information, and then compared with the set target speed. The speed error is obtained and sent to the speed PID regulator. The calculation result and the current sampling feedback signal are used for inner loop control. If the working current is abnormal, overcurrent or insufficient current, the PWM duty cycle can be modulated again. Finally, PWM with different duty cycles is output according to the calculation result to drive the motor to rotate.

[0022] Sensorless feedback mode: Working in sensorless feedback mode, no position or speed feedback sensor is installed on the motor. When the target speed is given, no speed error signal is actually obtained through the speed PID regulator, and it continues to be sent to the current loop control loop. The phase current change of each phase is used as the basis for motor commutation. The motor position information is calculated through the current and the motor speed is obtained after comprehensive calculation with the time. After the calculation, the PWM duty cycle is modulated, and finally PWM with different duty cycles is output according to the calculation results to drive the motor to rotate.

[0023] The beneficial effects of the present invention are:

[0024] The motor speed control module of the present invention is suitable for sensor feedback control and sensorless feedback control; suitable for various sensor feedback working conditions such as Hall sensors, encoders and rotary transformers; suitable for brushed motor and brushless motor control; can remotely update key parameters such as motor pole pairs and control type; has stronger versatility, effectively controls costs, and can be managed in a standardized manner. Regardless of the industrial control field or the military product field, this module can work normally under various working conditions, and uses a circuit with a domestically produced MCU+driver architecture as the control core, has a simple structure, is packaged with a bare core, and can be miniaturized. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 This is a schematic diagram of the overall structure of Example 1 of the present invention;

[0026] Figure 2 This is a schematic diagram of the control framework of Example 1 of the present invention. DETAILED DESCRIPTION

[0027] In order to more clearly understand the above-mentioned objects, features and advantages of the present invention, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0028] Figures 1-2A specific implementation of the present invention is shown: a universal motor speed control module, including an MCU unit, a drive circuit, a serial port unit, a conditioning circuit, and a power supply circuit, wherein:

[0029] The serial port unit is used to send the feedback mode, target speed, brushed motor or brushless motor type, motor pole pair number, and PID parameters set by the user through the host computer to the MCU unit, and is used to transmit the working status of the speed regulation module back to the host computer;

[0030] The conditioning circuit is used to receive input motor feedback signals including pulse signals and analog signals, and filter and limit the amplitude of the signals before sending them to the MCU unit, thereby protecting the MCU from being affected by the input signals;

[0031] The MCU unit is used to determine that the corresponding port receives the motor feedback signal processed by the conditioning circuit according to the set feedback mode, and is also used to perform speed loop and current loop dual closed-loop control calculations according to the motor feedback signal, and generate PWM signals with different duty cycles according to the calculation results and send them to the drive circuit; the MCU unit adopts the 48PIN MCU independently developed by Chengdu Huanyuxin Technology Co., Ltd., and mainly uses the on-chip ADC converter, serial port, timer, IO external interrupt and other hardware resources;

[0032] In this embodiment, the feedback modes include a pulse feedback mode, a sine wave feedback mode and a sensorless feedback mode;

[0033] The MCU unit includes a speed converter, a speed comparison unit, a speed PID regulator, a current comparison unit, a current PID regulator, and a PWM unit, wherein:

[0034] The speed converter is used to calculate the current speed of the motor according to the feedback signal of the motor sensor and send it to the speed comparison unit;

[0035] The speed comparison unit is used to compare the current speed of the motor with the set target speed, and then obtain the speed error and send it to the speed PID regulator;

[0036] The speed PID regulator is used to adjust the output of the speed PID regulator as a current reference signal according to the size of the speed error, and send the output result to the current comparison unit;

[0037] The current comparison unit is used to compare the output of the speed PID regulator with the current feedback signal of the motor, and then obtain the current error and send it to the current PID regulator;

[0038] The current PID regulator is used to adjust the output of the current PID regulator according to the magnitude of the current error, and send the output result to the PWM unit;

[0039] The PWM unit is used to generate PWM signals with different duty cycles according to the output of the current PID regulator and send them to the drive circuit;

[0040] The driving circuit is used to amplify the PWM signal and directly drive the motor that needs speed regulation; the driving circuit adopts the bridge driver chip HYX7113 independently developed by Chengdu Huanyuxin Technology Co., Ltd.;

[0041] In this embodiment, there is also a power supply circuit for providing power supply voltage to the MCU unit and the drive circuit, etc., and the high-efficiency DC / DC independently developed by Chengdu Huanyuxin Technology Co., Ltd. is used to generate 12V to supply the drive circuit, and the linear regulator generates 3.3V to supply the MCU unit;

[0042] In this embodiment, the MCU unit has a common IO interface. The process of calculating the current speed of the motor in the pulse feedback mode is as follows: receiving the motor sensor pulse feedback signal through the common IO interface of the MCU unit, and calculating the current speed of the motor by counting the number of pulses.

[0043] The MCU unit also has an ADC acquisition port. The process of calculating the current speed of the motor in the sinusoidal wave feedback mode is as follows: receiving the sinusoidal wave feedback signal of the motor sensor through the ADC acquisition port of the MCU unit, calculating the sensor position signal, and then calculating the current speed of the motor through the time quantity and position information.

[0044] In the control program of this embodiment, double closed-loop control is adopted, PWM frequency is set to 20KHz, PID control cycle is 10mS, ADC sampling cycle is 100us, and the target value is sampled 100 times in each control cycle, and the 20 maximum values ​​and 20 minimum values ​​are discarded and averaged to ensure the accuracy of the target value. This embodiment can work in pulse feedback mode, sine wave feedback mode and sensorless feedback mode.

[0045] The above embodiments of the present invention are merely examples for illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes and modifications can be made based on the above description. It is impossible to list all the embodiments here. Any obvious changes or modifications derived from the technical solution of the present invention are still within the scope of protection of the present invention.

Claims

1. A universal motor speed control module, characterized in that: It includes MCU unit, drive circuit, serial port unit and conditioning circuit, among which: The serial port unit is used to send the feedback mode, target speed, brushed motor or brushless motor type, motor pole pair number, and PID parameters set by the user through the host computer to the MCU unit, and is used to transmit the working status of the speed regulation module back to the host computer; The conditioning circuit is used to receive the input motor feedback signal and filter and limit the amplitude of the signal before sending it to the MCU unit; The MCU unit is used to determine that the corresponding port receives the motor feedback signal processed by the conditioning circuit according to the set feedback mode, and is also used to perform speed loop and current loop dual closed-loop control calculations according to the motor feedback signal, and generate PWM signals with different duty cycles according to the calculation results and send them to the drive circuit; The driving circuit is used to amplify the PWM signal and directly drive the motor that needs to be speed-regulated.

2. A universal motor speed control module according to claim 1, characterized in that: The feedback modes include a pulse feedback mode, a sine wave feedback mode and a sensorless feedback mode.

3. A universal motor speed control module according to claim 2, characterized in that: The MCU unit includes a speed converter, a speed comparison unit, a speed PID regulator, a current comparison unit, a current PID regulator, and a PWM unit, wherein: The speed converter is used to calculate the current speed of the motor according to the feedback signal of the motor sensor and send it to the speed comparison unit; The speed comparison unit is used to compare the current speed of the motor with the set target speed, and then obtain the speed error and send it to the speed PID regulator; The speed PID regulator is used to adjust the output of the speed PID regulator as a current reference signal according to the size of the speed error, and send the output result to the current comparison unit; The current comparison unit is used to compare the output of the speed PID regulator with the current feedback signal of the motor, and then obtain the current error and send it to the current PID regulator; The current PID regulator is used to adjust the output of the current PID regulator according to the magnitude of the current error, and send the output result to the PWM unit; The PWM unit is used to generate PWM signals with different duty cycles according to the output of the current PID regulator and send them to the drive circuit.

4. A universal motor speed control module according to claim 3, characterized in that: The MCU unit has a common IO interface. The process of calculating the current speed of the motor in the pulse feedback mode is as follows: receiving the motor sensor pulse feedback signal through the common IO interface of the MCU unit, and calculating the current speed of the motor by counting the number of pulses.

5. The universal motor speed control module according to claim 3, characterized in that: The MCU unit has an ADC acquisition port. The process of calculating the current speed of the motor in the sinusoidal wave feedback mode is as follows: receiving the sinusoidal wave feedback signal of the motor sensor through the ADC acquisition port of the MCU unit, calculating the sensor position signal, and then calculating the current speed of the motor through the time quantity and position information.

Citation Information

Cited By

  • Powder pressing motor control method and beverage machine

    CN119523298A

  • Control method of a powder compression motor and a beverage machine

    CN119523298B

  • Low-voltage small motor rotating speed monitoring method based on UART communication

    CN122178781A

  • A low-voltage small motor rotating speed monitoring method based on UART communication

    CN122178781B