Multi-split direct current brushless motor driving method and related equipment

Through a microcontroller adjusting the PWM signal according to the Hall feedback signal of the DC brushless motor, and directly controlling multiple DC brushless motors is solved, and the problems of low motor control efficiency and high cost in the existing technology are achieved, and efficient and accurate motor driving is achieved.

CN118900057APending Publication Date: 2024-11-05ZHEJIANG KANGLI AUTOMATIC CONTROL TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410885535.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

In the prior art, the intermediate module is required to realize the conversion between the microcontroller and the power drive device and generate the clock corresponding to each SPWM pulse, and the control system does not have Hall feedback capability, resulting in low working efficiency and high generation cost of the motor control system. .

Method used

Multiple brushless DC motors are controlled simultaneously by a single microcontroller, the speed is confirmed according to the Hall feedback signals of each motor, and the PWM signal is adjusted, and the control signals are generated through different channels to drive the motor, so as to achieve synchronization and precise control, avoiding the intermediate modules to perform Port conversion.

Benefits of technology

It improves the working efficiency of the motor, realizes the precise control of the one-to-multi-motor, and reduces the cost of components use and production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118900057A_ABST
    Figure CN118900057A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of motor control, and relates to a multi-split direct current brushless motor driving method and related equipment, and the method comprises the steps: obtaining a Hall feedback signal according to the rotation state of each direct current brushless motor; determining the rotating speed of the motor in the current state according to the Hall feedback signal fed back by each path of direct current brushless motor; adjusting the duty ratio of the PWM signal based on the motor rotating speed of each path of direct current brushless motor to determine a target PWM signal; respectively generating a first PWM control signal and a second PWM control signal according to a target PWM signal of the direct current brushless motor, and correspondingly outputting the first PWM control signal and the second PWM control signal to an upper bridge arm and a lower bridge arm of the power control circuit; and controlling the conduction state of the bridge arm according to the received control signal, and driving the connected direct-current brushless motor based on the conduction state of the bridge arm. According to the invention, multi-split motor control is realized, the Hall feedback capability is provided, accurate control is more favorably realized, the working efficiency of the motor is improved, the use of components is reduced, and the production cost can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention is applicable to the technical field of motor control, and in particular relates to a one-to-many direct current brushless motor driving method and related equipment. Background Art

[0002] With the rapid development of textile technology and the continuous expansion of market demand, higher requirements are placed on the efficiency and precision of textile equipment. In the field of textile machinery, the traditional chenille machine includes cutting and twisting steps in the production process, and the yarn twisting part and cutting part often rely on the control of the motor.

[0003] Application number: 201210145046.3, invention name: In the prior art of one-to-many control system of industrial frequency converter for textile machinery and implementation method, the system includes a single-chip microcomputer module, an FPGA module, a human-machine interface device, a serial communication device, a power drive device and a three-phase motor device, the human-machine interface device is connected through the input and output interface of the single-chip microcomputer module; the serial communication device is connected through the CAN communication interface of the single-chip microcomputer module; the single-chip microcomputer module is connected to the FPGA through the SPI interface, and the FPGA module is connected to the power drive device through the input and output interface; the power drive device is connected to the corresponding three-phase motor in the three-phase motor device through the pins of the internal intelligent power chip, and the power drive device has multiple intelligent power control modules, marked as IPM i , i=1,2,......,n; the three-phase motor device includes a plurality of three-phase motors, which are marked as three-phase motor 1, three-phase motor 2...three-phase motor i. It can be seen that although the prior art can realize multi-channel motor control to drive the yarn to twist and cut, it is necessary to use the FPGA module as an intermediate module to realize the conversion between the single-chip microcomputer and the power drive device, and it is also necessary to generate a clock corresponding to each SPWM pulse based on the intermediate module, and it also does not have the Hall feedback capability, which will lead to the problem of low working efficiency and high generation cost of the motor control system. Summary of the invention

[0004] The purpose of the present invention is to solve the problems in the prior art that the motor control system has low working efficiency and high generation cost due to the need for an intermediate module to realize the conversion between a single-chip microcomputer and a power driving device and the generation of a clock corresponding to each SPWM pulse based on the intermediate module, and the control system does not have a Hall feedback capability, thereby proposing a one-to-many DC brushless motor driving method and related equipment. The method uses a single single-chip microcomputer to simultaneously control multiple DC brushless motors, and confirms the current speed of each DC brushless motor according to the Hall feedback signal of each DC brushless motor, and then adjusts the PWM signal for controlling the rotation of the DC brushless motor according to the speed. For the control of each DC brushless motor, the single-chip microcomputer generates a first PWM control signal and a second PWM control signal through different channels according to the adjusted target PWM signal, so as to switch the PWM signals of each channel to be output to the power control circuit driving the DC brushless motor, thereby realizing the output function of the motor drive, and then each DC brushless motor can be synchronously driven and accurately controlled through the power control circuit connected to each DC brushless motor in a one-to-one correspondence. In each motor control process, the single-chip microcomputer obtains the Hall feedback signal and directly sends the control signal to the power drive circuit through multiple channels. No intermediate module is required for port conversion in the entire control process. It not only realizes one-to-multiple motor control and has Hall feedback capability, but is also more conducive to achieving precise control and improving the working efficiency of the motor. It also reduces the use of components and can reduce production costs.

[0005] In a first aspect, the present invention provides a technical solution: a one-to-many brushless DC motor driving method, comprising the following steps: S1. Obtaining the Hall feedback signals corresponding to the respective DC brushless motors according to the rotation states of the respective DC brushless motors; S2, determining the motor speed in the current state according to the Hall feedback signal fed back by each brushless DC motor through a single chip microcomputer; S3, adjusting the duty cycle of the PWM signal based on the motor speed of each DC brushless motor, and determining a target PWM signal corresponding to each DC brushless motor; S4, generating a first PWM control signal and a second PWM control signal respectively according to the target PWM signal corresponding to each brushless DC motor by the single-chip microcomputer, outputting the first PWM control signal to the upper bridge arm of the power control circuit correspondingly connected to the brushless DC motor, and outputting the second PWM control signal to the lower bridge arm of the power control circuit correspondingly connected to the brushless DC motor; S5. Control the conduction state of the bridge arm of the power control circuit according to the first PWM control signal and the second PWM control signal, and drive the connected DC brushless motor based on the conduction state of the bridge arm of the power control circuit.

[0006] Furthermore, the S1: acquiring the Hall feedback signal corresponding to each DC brushless motor according to the rotation state of each DC brushless motor, comprises: Obtaining a start instruction sent by the application layer, and starting each of the brushless DC motors to rotate at a preset start speed according to the start instruction; The Hall feedback signal generated by each brushless DC motor rotating at the preset starting speed is sampled based on the Hall effect sensor, and the Hall feedback signal is sent to the single-chip microcomputer based on the EXTI channel of the single-chip microcomputer. The Hall feedback signal includes the three-phase Hall state signal of the brushless DC motor.

[0007] Furthermore, the S2: determining the motor speed in the current state according to the Hall feedback signal fed back by each of the brushless DC motors through the single chip microcomputer includes: Acquire the three-phase Hall state signal fed back by the Hall effect sensor of each brushless DC motor; The time corresponding to the motor rotating at a preset angle is calculated according to the edge change period of the rising edge and the falling edge of the three-phase Hall state signal, and the current motor speed of the DC brushless motor corresponding to the three-phase Hall state signal is calculated according to the time.

[0008] Furthermore, the step S3: adjusting the duty cycle of the PWM signal based on the motor speed of each DC brushless motor to determine a target PWM signal corresponding to each DC brushless motor includes: Input the motor speed of each brushless DC motor and the preset starting speed into a PI controller embedded in the single-chip microcomputer to perform speed PI calculation to determine the PI speed calculation result; The PI speed calculation result is converted into a duty cycle of a PWM wave to generate a target PWM signal corresponding to each of the brushless DC motors.

[0009] Further, the single-chip microcomputer includes a plurality of groups of channel output units, each group of the channel output units includes a PWM channel and a GPIO channel, and in S4: generating a first PWM control signal and a second PWM control signal respectively according to the target PWM signal corresponding to each brushless DC motor by the single-chip microcomputer includes: In the same channel output unit, a PWM channel based on the timing module of the single-chip microcomputer generates the first PWM control signal according to the received target PWM signal, and a GPIO channel based on the single-chip microcomputer generates the second PWM control signal according to the received target PWM signal, wherein the first PWM signal includes three PWM signals for controlling the upper bridge arm of the power control circuit, and the second PWM signal includes three PWM signals for controlling the lower bridge arm of the power control circuit.

[0010] Further, the upper bridge arm includes a first power tube, a second power tube and a third power tube, the lower bridge arm includes a fourth power tube, a fifth power tube and a sixth power tube, and S5: controlling the bridge arm conduction state of the power control circuit according to the first PWM control signal and the second PWM control signal, and driving the connected DC brushless motor based on the bridge arm conduction state of the power control circuit, includes: When driving and controlling each group of the brushless DC motors, the power control circuit controls the forward rotation or reverse rotation of the first power tube, the second power tube and the third power tube according to the three PWM signals output by the PWM channel, and controls the forward rotation or reverse rotation of the fourth power tube, the fifth power tube and the sixth power tube according to the three PWM signals output by the GPIO channel; The three-phase control signal output by the power control circuit to the brushless DC motor is updated according to the forward or reverse state of the first power tube, the second power tube, the third power tube, the fourth power tube, the fifth power tube and the sixth power tube in the power control circuit, and the brushless DC motor is driven according to the updated three-phase control signal.

[0011] Furthermore, in the driving process of multiple groups of DC brushless motors based on the synchronous control of the single chip microcomputer, three DC brushless motors in a rotational coordination relationship are a combined control unit, and the combined control unit includes DC brushless motors of different functional types.

[0012] In a second aspect, another technical solution provided by the present invention is: a one-to-many brushless DC motor driving device, the device comprising: A starting module, used for respectively obtaining the Hall feedback signal corresponding to each DC brushless motor according to the rotation state of each DC brushless motor; A speed determination module, used for determining the motor speed in a current state according to the Hall feedback signal fed back by each brushless DC motor through a single chip microcomputer; A signal adjustment module, used to adjust the duty cycle of the PWM signal based on the motor speed of each DC brushless motor, and determine a target PWM signal corresponding to each DC brushless motor; a signal generating module, configured to generate a first PWM control signal and a second PWM control signal respectively according to the target PWM signal corresponding to each brushless DC motor through the single-chip microcomputer, output the first PWM control signal to an upper bridge arm of a power control circuit correspondingly connected to the brushless DC motor, and output the second PWM control signal to a lower bridge arm of the power control circuit correspondingly connected to the brushless DC motor; A driving module is used to control the conduction state of the bridge arm of the power control circuit according to the first PWM control signal and the second PWM control signal, and drive the connected DC brushless motor based on the conduction state of the bridge arm of the power control circuit.

[0013] In the third aspect, another technical solution provided by the present invention is: an electronic control device for a spinning machine, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of a one-to-many DC brushless motor driving method described in the first aspect are implemented.

[0014] In a fourth aspect, another technical solution provided by the present invention is: a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of a one-to-many DC brushless motor driving method described in the first aspect are implemented.

[0015] The beneficial effects achieved by the present invention are as follows: by using a single single-chip microcomputer to simultaneously control multiple DC brushless motors, the current rotation speed of each DC brushless motor is respectively confirmed according to the Hall feedback signal of each DC brushless motor, and then the PWM signal for controlling the rotation of the DC brushless motor is adjusted according to the rotation speed. For the control of each DC brushless motor, the single-chip microcomputer generates a first PWM control signal and a second PWM control signal through different channels according to the adjusted target PWM signal, so as to switch the PWM signals of each channel to be output to the power control circuit driving the DC brushless motor, so as to realize the output function of the motor drive, and then each DC brushless motor can be synchronously driven and precisely controlled through the power control circuit connected to each DC brushless motor in a one-to-one correspondence. In each motor control process, the single-chip microcomputer obtains the Hall feedback signal and directly sends the control signal to the power drive circuit through multiple channels. The intermediate module is not required to perform port conversion in the entire control process, which not only realizes the control of one-to-multiple motors and has the Hall feedback capability, but also is more conducive to realizing precise control, improving the working efficiency of the motor, and reducing the use of components, which can reduce production costs.

[0016] The above invention content is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Other features, objects and advantages of the present invention will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings. The drawings are only for the purpose of illustrating preferred embodiments and are not to be considered as limiting the present invention. Also, the same reference symbols are used throughout the drawings to represent the same parts.

[0018] Figure 1 It is a flow chart of a one-to-many brushless DC motor driving method provided by an embodiment of the present invention; Figure 2 is a flow chart of the closed-loop speed control of a brushless DC motor provided by an embodiment of the present invention; Figure 3 It is a circuit module connection diagram of a one-to-many brushless DC motor driving method provided by an embodiment of the present invention; Figure 4 It is a structural schematic diagram of a one-to-many brushless DC motor driving device provided by an embodiment of the present invention; Figure 5 It is a schematic diagram of an electronic control device for a spinning machine provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0019] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific implementation method described herein is only an optimal embodiment of the present invention, which is only used to explain the present invention and does not limit the scope of protection of the present invention. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0020] Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the operations (or steps) as sequential processes, many of the operations (or steps) therein can be implemented in parallel, concurrently, or simultaneously. In addition, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the drawings; the process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0021] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. It should also be understood that in various embodiments of the present invention, the size of the sequence number of each process does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0022] It should be understood that in the present invention, "plurality" refers to two or more than two. "And / or" is merely a variable relationship that describes associated objects, indicating that three relationships may exist. For example, and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated with each other are in an "or" relationship. "Contains A, B and C", "Contains A, B, C" means that A, B, and C are all included, "Contains A, B or C" means that one of A, B, and C is included, and "Contains A, B and / or C" means that any one, any two, or any three of A, B, and C are included.

[0023] It should be understood that in the present invention, "B corresponding to A", "B corresponding to A", "A corresponds to B" or "B corresponds to A" means that B is associated with A and B can be determined based on A. Determining B based on A does not mean determining B based only on A, but B can also be determined based on A and / or other information. A and B match when the similarity between A and B is greater than or equal to a preset threshold.

[0024] Embodiment 1 Please refer to Figure 1 , Figure 1 The present invention provides a method for driving a one-to-many brushless DC motor, comprising the following steps: S1. Acquire Hall feedback signals corresponding to each brushless DC motor according to the rotation state of each brushless DC motor.

[0025] The one-to-many DC brushless motor driving method provided in this embodiment is suitable for driving scenarios of DC brushless motors of textile machines, and is particularly suitable for intelligent electronic control systems for chenille yarn molding control. It should be noted that the intelligent electronic control system for chenille yarn molding control includes driving multiple DC brushless motors and multiple stepper motors, etc. Therefore, in addition to being able to use the one-to-many DC brushless motor driving method to drive multiple DC brushless motors, it is also possible to realize one-to-many driving of multiple stepper motors.

[0026] Specifically, in the multi-channel DC brushless motor driving process based on the synchronous control of the single-chip microcomputer, the three DC brushless motors with a rotational coordination relationship are a combined control unit, and the combined control unit includes DC brushless motors of different functional types. The single-chip microcomputer includes multiple groups of channel output units, and one group of channel output units corresponds to controlling a group of DC brushless motors. Therefore, the three DC brushless motors in a combined control unit need to be controlled by three groups of channel output units respectively. In this embodiment, when a one-to-many DC brushless motor driving method is used in a chenille spinning machine, a combined control unit includes a 1-way rotary motor and a 2-way spindle motor, and the spindle motor includes a correspondingly arranged left spindle motor and a right spindle motor. A certain rotational coordination relationship is maintained between the return motor and the spindle motor, such as maintaining a speed ratio for synchronous rotation to ensure that the yarn twist and molding are consistent. Among them, the rotary motor is used to realize the rotary head cutting function, and the rotary motor rotates at a high speed to repeatedly cut a strand of original yarn on the scissors to cut into a short yarn at one end. The spindle motor is used for yarn twisting, and after twisting by the spindle motor, a full chenille yarn is obtained.

[0027] More specifically, the Hall feedback signal may refer to a signal for detecting the rotor position information of a brushless DC motor, which is generated by a Hall Effect Sensor inside the brushless DC motor and used to control the operation of the motor. The specific working principle is: when a current passes through a conductor and a magnetic field is applied in a direction perpendicular to the current, a potential difference is generated in a direction perpendicular to the current and the magnetic field. In a brushless DC motor, a Hall Effect sensor is mounted on the stator of the motor to detect the position of the permanent magnet on the rotor. When the brushless DC motor is running, the permanent magnet on the rotor rotates with the rotation of the motor, and the Hall Effect sensor detects the position change of the permanent magnet and generates a corresponding Hall signal. Based on the Hall signal, the microcontroller can accurately control the operation of the motor, for example, adjusting the speed of the motor, changing the direction of rotation of the motor, etc. In this way, the brushless DC motor can achieve efficient, precise and smooth operation.

[0028] The control process of the brushless DC motor includes the startup acceleration stage, the operation stage, and the shutdown deceleration stage. The rotation speed of the brushless DC motor is different in different stages. After the brushless DC motor is started, the Hall effect sensor in each brushless DC motor will detect the rotor position information of the brushless DC motor and feed it back to the microcontroller.

[0029] Optionally, combined Figure 2 As shown, S1: specifically includes: S11, obtaining a start instruction sent by the application layer, and starting each DC brushless motor to rotate at a preset start speed according to the start instruction; S12, sampling the Hall feedback signals generated by each brushless DC motor rotating at a preset starting speed based on the Hall effect sensor, and sending the Hall feedback signals to the single-chip microcomputer based on the EXTI channel of the single-chip microcomputer, wherein the Hall feedback signals include the three-phase Hall state signals of the brushless DC motor.

[0030] Specifically, before starting, each brushless DC motor is in a stop waiting state. After receiving the start command sent by the application layer, each brushless DC motor is started to enter the running state, and the functional modules of the driver are initialized at the same time. For the rotation of the brushless DC motor, a given target speed (preset start speed) can be obtained from the upper-level program, and the rotation is controlled based on the given target speed during the startup phase. After the brushless DC motor starts to rotate, a Hall feedback signal will be generated. On the single-chip microcomputer, each group of channel output units includes an EXTI channel, and the Hall feedback signal is used as the input of the EXTI channel of the single-chip microcomputer. Based on the EXTI channel, the Hall feedback signal generated by the brushless DC motor can be received to realize speed feedback. Among them, the brushless DC motor can be a three-phase brushless DC motor, and the Hall feedback signal fed back by the three-phase brushless DC motor includes three-phase Hall state signals a, b, and c.

[0031] In this embodiment, by utilizing each group of channel output units on a single-chip microcomputer to respectively control each brushless DC motor, one-to-multiple motor control can be achieved, which is more conducive to improving work efficiency; and after the brushless DC motor is started, the EXTI channel in each group of channel output units is used as the receiving end of the Hall feedback signal, which has a Hall feedback function to realize motor speed feedback, and combining the motor speed to control the motor rotation is conducive to improving the control accuracy.

[0032] S2. Determine the motor speed in the current state according to the Hall feedback signal fed back by each brushless DC motor through the single chip microcomputer.

[0033] Specifically, after the MCU obtains the Hall feedback signal through the EXTI channel, it can convert the Hall feedback signal to determine the motor speed in the current state. The current state refers to the time when the Hall feedback signal is collected to achieve consistency between the motor speed and the collected Hall feedback signal.

[0034] Optionally, S2: specifically includes: S21, obtaining the three-phase Hall state signal fed back by the Hall effect sensor of each brushless DC motor; S22, calculating the time corresponding to the motor rotating at a preset angle according to the edge change period of the rising edge and the falling edge of the three-phase Hall state signal, and calculating the current motor speed of the brushless DC motor corresponding to the three-phase Hall state signal according to the time.

[0035] Specifically, after the single-chip microcomputer obtains the three-phase Hall state signal fed back by the Hall effect sensor of each brushless DC motor, it can calculate the time required for each brushless DC motor to rotate a preset angle by monitoring the edge change period of the rising edge or falling edge of the Hall feedback signal respectively, and then calculate the motor speed of the brushless DC motor in the current state, where the preset angle can be 120°.

[0036] In this embodiment, by directly monitoring the three-phase Hall state signal output by the Hall effect sensor, the speed change of the brushless DC motor can be reflected in real time and accurately. Since the Hall sensor has the characteristics of high precision and fast response, high-precision measurement of the motor speed can be achieved. Calculation based on the edge change cycle of the signal can quickly respond to changes in the motor speed. Whether it is during motor startup, acceleration, deceleration or stable operation, timely speed feedback can be provided. By accurately measuring the motor speed, an accurate Hall feedback signal can be provided for the single-chip microcomputer analysis and control, thereby achieving more precise control and improving the control efficiency of the single-chip microcomputer over the brushless DC motor.

[0037] S3. Adjust the duty cycle of the PWM signal based on the motor speed of each DC brushless motor to determine a target PWM signal corresponding to each DC brushless motor.

[0038] Specifically, the duty cycle of the PWM signal used to control the rotation of the motor can be adjusted according to the motor speed. The target PWM signal generated after the adjustment is then applied to the brushless DC motor to achieve precise control of the speed or direction of the motor.

[0039] Optionally, combined Figure 2 As shown, S3: specifically includes: S31, inputting the motor speed of each brushless DC motor and the preset starting speed into the PI controller embedded in the single-chip microcomputer to perform speed PI calculation, and determining the PI speed calculation result; S32, converting the PI speed calculation result into a duty cycle of a PWM wave, and generating a target PWM signal corresponding to each DC brushless motor.

[0040] Specifically, the above three-phase Hall state signals a, b, and c are square waves with a phase difference of 120°. For a brushless DC motor, the rotor phase of the brushless DC motor can be divided into 6 phases by combining the three Hall state signals. According to the Hall state signals, it can be determined which phase the rotor of the brushless DC motor is currently in, so as to determine what kind of excitation the stator coil of the brushless DC motor needs to provide to generate a positive torque on the rotor, where the excitation can also be understood as a PWM control signal output by the microcontroller to control the rotation of the motor. Therefore, it is necessary to adjust the duty cycle of the PWM signal according to the feedback of the three-phase Hall state signals a, b, and c to generate corresponding excitation to control the rotation of the rotor.

[0041] More specifically, for each PWM signal adjustment, the single-chip microcomputer calculates the current motor speed according to the change of the three-phase Hall state signal of the corresponding motor a, b, c, and inputs the preset starting speed of the motor and the calculated motor speed into the PI controller (proportional-integral controller) of the speed loop built into the single-chip microcomputer for speed PI operation, and converts the PI speed operation result of the speed PI controller into the duty cycle of the PWM wave. Based on the above method, the target PWM signal corresponding to each DC brushless motor can be generated, and then the PWM outputs of each channel can be switched according to the target PWM signal. The PWM signal outputs of each channel are used to control the conduction or cutoff of different switch tubes in the power drive circuit, so as to realize six-step phase switching control.

[0042] In this embodiment, a PI (proportional-integral) controller is used to perform speed PI calculation. The PI controller combines proportional control and integral control, can quickly respond to changes in speed, quickly adjust the output and eliminate steady-state errors, achieve precise control of the speed of the DC brushless motor, and optimize the dynamic performance of the motor. The PI speed calculation result is converted into a duty cycle of a PWM wave, thereby changing the average voltage or current of the motor, and then the speed and torque of the motor can be accurately controlled.

[0043] S4. Generate a first PWM control signal and a second PWM control signal respectively according to the target PWM signal corresponding to each brushless DC motor through the single-chip microcomputer, output the first PWM control signal to the upper bridge arm of the power control circuit connected to the brushless DC motor, and output the second PWM control signal to the lower bridge arm of the power control circuit connected to the brushless DC motor.

[0044] Specifically, the first PWM control signal and the second PWM control signal are generated by different channels, and the bridge arms of the power control circuits they control are different. The single-chip microcomputer generates the first PWM control signal and the second PWM control signal through different channels and then outputs them to different access points of the power control circuit to control the state of each switch tube.

[0045] Optionally, combined Figure 3 As shown, in S4: the first PWM control signal and the second PWM control signal are generated by the single chip microcomputer according to the target PWM signal corresponding to each brushless DC motor, specifically including: In the same channel output unit, the PWM channel of the timing module based on the single-chip microcomputer generates a first PWM control signal according to the received target PWM signal, and the GPIO channel based on the single-chip microcomputer generates a second PWM control signal according to the received target PWM signal, wherein the first PWM signal includes three PWM signals for controlling the upper bridge arm of the power control circuit, and the second PWM signal includes three PWM signals for controlling the lower bridge arm of the power control circuit.

[0046] Specifically, the single-chip microcomputer includes multiple groups of channel output units, each group of channel output units includes a PWM channel and a GPIO channel, and also includes an EXTI channel. In the control process of a DC brushless motor, a corresponding group of channel output units is required. The first PWM control signal can be generated by using the PWM channel of the TIM module of the single-chip microcomputer. The first PWM control signal includes 3 PWM signals for controlling the upper bridge arm of the power control circuit; the second PWM control signal can be generated by using 3 GPIO channels. The second PWM control signal also includes 3 PWM signals for controlling the lower bridge arm of the power control circuit. Each PWM control signal controls the state of a switch tube. Therefore, the upper bridge arm and the lower bridge arm have 3 switch tubes respectively, for a total of six switch tubes.

[0047] Combination Figure 3As shown, three PWM control signals are generated through the TIM1_PWM channel in the first group of channel output units to control the upper bridge arm of the power drive circuit 1, and three PWM control signals are generated through the GPIO channel to control the lower bridge arm of the power drive circuit 1. The power drive circuit 1 outputs three-phase control signals U, V, and W according to the on and off states of the six switch tubes to control the rotation of the DC brushless motor 1; three PWM control signals are generated through the TIM2_PWM channel in the second group of channel output units to control the upper bridge arm of the power drive circuit 2, and three PWM control signals are generated through the GPIO channel. The power drive circuit 1 is controlled by the signal, and the power drive circuit 2 outputs the U, V, W three-phase control signals according to the on and off states of the six switch tubes to control the rotation of the DC brushless motor 2, ..., through the TIMx_PWM channel in the Nth group of channel output units, 3 PWM control signals are generated to control the upper bridge arm of the power drive circuit n, and through the GPIO channel, 3 PWM control signals are generated to control the lower bridge arm of the power drive circuit n, and the power drive circuit n outputs the U, V, W three-phase control signals according to the on and off states of the six switch tubes to control the rotation of the DC brushless motor n. The control of multiple DC brushless motors with Hall feedback is realized by a single chip microcomputer. By controlling the upper bridge arm and the lower bridge arm of the power drive circuit respectively, the output function of the motor drive can be realized.

[0048] In this embodiment, the single-chip microcomputer has a high degree of integration and flexibility, and complex control logic and algorithms are conveniently implemented. Through programming, based on the target PWM signal corresponding to each brushless DC motor, the output of the first PWM control signal can be accurately controlled by using the PWM channel and the output of the second PWM control signal can be accurately controlled by using the GPIO channel. Then, the upper bridge arm and the lower bridge arm of the power control circuit are controlled separately, so that more precise motor control can be achieved. For example, when the upper bridge arm or the lower bridge arm of a certain phase of the DC brushless motor needs to stop rotating, the motor can be braked or reversed. The single-chip microcomputer includes multiple groups of channel output units, each of which controls one DC brushless motor. Therefore, it is possible to achieve one-to-many DC brushless motor control based on the same single-chip microcomputer, which is more efficient and less costly.

[0049] S5. Control the conduction state of the bridge arm of the power control circuit according to the first PWM control signal and the second PWM control signal, and drive the connected DC brushless motor based on the conduction state of the bridge arm of the power control circuit.

[0050] Specifically, after the first PWM control signal and the second PWM control signal control the on / off state of the power control circuit, the power control circuit will output U, V, and W three-phase voltages to the DC brushless motor accordingly, driving the DC brushless motor to perform drive control according to the received voltage.

[0051] Optionally, S5: specifically includes: S51, when driving and controlling each group of brushless DC motors, the power control circuit controls the forward rotation or reverse rotation of the first power tube, the second power tube and the third power tube according to the three PWM signals output by the PWM channel, and controls the forward rotation or reverse rotation of the fourth power tube, the fifth power tube and the sixth power tube according to the three PWM signals output by the GPIO channel; S52, updating the three-phase control signal output by the power control circuit to the DC brushless motor according to the forward or reverse state of the first power tube, the second power tube, the third power tube, the fourth power tube, the fifth power tube and the sixth power tube in the power control circuit, and driving the DC brushless motor according to the updated three-phase control signal.

[0052] Specifically, the upper bridge arm of each power driving circuit includes a first power tube T1, a second power tube T2 and a third power tube T3, and the lower bridge arm includes a fourth power tube T4, a fifth power tube T5 and a sixth power tube T6, and each power tube as a switch tube can be a MOSFET tube. Combined with the following Table 1, the first power tube T1 is the upper tube of the first pair of H bridges, the fourth power tube T4 is the lower tube of the first pair of H bridges; the second power tube T2 is the upper tube of the second pair of H bridges, and the fifth power tube T5 is the lower tube of the second pair of H bridges; the third power tube T3 is the upper tube of the third pair of H bridges, and the sixth power tube T6 is the lower tube of the third pair of H bridges. The three Hall feedback signals of each brushless DC motor are A, B, and C. The six-step commutation control logic of the brushless DC motor can switch the PWM output switch tube according to the following table 1. By switching the corresponding switching states of the first power tube T1, the second power tube T2, the third power tube T3, the fourth power tube T4, the fifth power tube T5 and the sixth power tube T6 in sequence, the brushless DC motor can be controlled to rotate. Table 1 Six-step commutation switching logic table angle 30-90 90-150 150-210 210-270 270-330 330-30 ABC state 101 100 110 010 011 001 ABC Value 5 4 6 2 3 1 Forward switch T1, T4 T1, T6 T3, T6 T3, T2 T5, T2 T5, T4 Reverse switch T3, T2 T5, T2 T5, T4 T1, T4 T1, T6 T3, T6

[0053] More specifically, the above-mentioned six-step commutation control logic of the brushless DC motor is a method for controlling the motor rotor to rotate according to a predetermined sequence. Among them, the rotor of the brushless DC motor is equipped with a permanent magnet, and the stator is equipped with a three-phase winding. To explain the working principle more clearly, taking the brushless DC motor 1 as an example, the basic steps of the six-step commutation control logic of the brushless DC motor 1 are as follows: Initial state: In the initial state, one of the phases of the brushless DC motor 1 is connected to the positive pole of the power supply, the other phase is connected to the negative pole of the power supply, and the third phase is suspended, for example: A phase is connected to the positive pole of the power supply, B phase is connected to the negative pole of the power supply, and C phase is suspended; Step 1: Keep A phase connected to the positive pole of the power supply, disconnect B phase (suspended), and connect C phase to the negative pole of the power supply. This will generate a rotating magnetic field in the DC brushless motor 1, causing the rotor of the DC brushless motor 1 to start rotating to a specific position; Step 2: disconnect phase A, connect phase B to the negative pole of the power supply, and phase C to the positive pole of the power supply, which will continue to drive the rotor of the DC brushless motor 1 to rotate in the set direction; Steps 3 to 6: repeat the above process, but change the phase connected to the positive and negative poles of the power supply each time, so as to generate a continuous rotating magnetic field in the DC brushless motor 1, thereby maintaining the continuous rotation of the rotor of the DC brushless motor 1. In each step, it is necessary to accurately control the connection and disconnection of each phase with the power supply to ensure that the motor rotates in the expected direction and speed. In this embodiment, it is achieved by a single-chip microcomputer. The single-chip microcomputer is used as a controller and uses a pre-programmed algorithm to generate a control signal to control the switch in the power drive circuit. Based on the above-mentioned six-step commutation control logic of the DC brushless motor, the rotation of each DC brushless motor connected to the single-chip microcomputer can be accurately controlled.

[0054] Optionally, in order to improve the reliability of the system, a fault monitoring module may be added to the system. The fault monitoring module may include current sensors, voltage sensors, power sensors, temperature sensors, etc., which are used to monitor whether the line has or may have a short circuit fault, the current / voltage is out of range, the temperature exceeds the maximum value range, etc., and timely initiate an early warning to prevent damage to components or equipment, thereby improving the reliability and safety of the system.

[0055] In the embodiment of the present invention, by using each channel output unit on a single chip to control each brushless DC motor respectively, multiple channel output units on the same single chip can realize one-to-many brushless DC motor control with Hall feedback, which is more conducive to improving work efficiency and reducing production costs. After the brushless DC motor is started, the EXTI channel in each channel output unit is used as the receiving end of the Hall feedback signal, with the Hall feedback function, to realize the motor speed feedback, and by directly monitoring the three-phase Hall state signal output by the Hall effect sensor, the speed change of the brushless DC motor can be reflected in real time and accurately. Since the Hall sensor has the characteristics of high precision and fast response, it can realize high-precision measurement of the motor speed. By accurately measuring the motor speed, it can provide accurate Hall feedback signals for the single chip analysis control, thereby realizing more accurate motor rotation control. The PI controller is used to perform speed PI calculation. The PI controller combines proportional control and integral control, can quickly respond to the change of speed, quickly adjust the output and eliminate steady-state errors, realize accurate control of the speed of the brushless DC motor, and optimize the dynamic performance of the motor. The PI speed calculation result is converted into the duty cycle of the PWM wave, thereby changing the average voltage or current of the motor, and then the speed and torque of the motor can be accurately controlled. The single-chip microcomputer has a high degree of integration and flexibility, and complex control logic and algorithms can be easily implemented. Through programming, based on the target PWM signal corresponding to each DC brushless motor, the output of the first PWM control signal can be accurately controlled by using the PWM channel and the output of the second PWM control signal can be accurately controlled by using the GPIO channel, and then the upper bridge arm and the lower bridge arm of the power control circuit can be controlled respectively, so as to achieve more precise motor drive control.

[0056] Embodiment 2 Please refer to Figure 4 , Figure 4 1 is a schematic diagram of a one-to-many DC brushless motor drive device provided by an embodiment of the present invention. A one-to-many DC brushless motor drive device M40 includes: The starting module M401 is used to obtain the Hall feedback signal corresponding to each DC brushless motor according to the rotation state of each DC brushless motor; The speed determination module M402 is used to determine the motor speed in the current state according to the Hall feedback signal fed back by each brushless DC motor through the single chip microcomputer; The signal adjustment module M403 is used to adjust the duty cycle of the PWM signal based on the motor speed of each DC brushless motor, and determine the target PWM signal corresponding to each DC brushless motor; The signal generating module M404 is used to generate a first PWM control signal and a second PWM control signal respectively according to the target PWM signal corresponding to each brushless DC motor through the single-chip microcomputer, output the first PWM control signal to the upper bridge arm of the power control circuit connected to the brushless DC motor, and output the second PWM control signal to the lower bridge arm of the power control circuit connected to the brushless DC motor; The driving module M405 is used to control the conduction state of the bridge arm of the power control circuit according to the first PWM control signal and the second PWM control signal, and drive the connected DC brushless motor based on the conduction state of the bridge arm of the power control circuit.

[0057] The one-to-many brushless DC motor driving device provided in the embodiment of the present invention can implement each process in the one-to-many brushless DC motor driving method described above, and can achieve the same beneficial effects. To avoid repetition, it will not be described here.

[0058] The embodiment of the present invention also provides a spinning machine electronic control device, which can also be called an electronic device. The spinning machine electronic control device can be used as a central intelligent control system of the spinning machine. Figure 5 , Figure 5 Schematic diagram of the electronic control device for a spinning machine provided in an embodiment of the present invention. The electronic control device D50 for a spinning machine includes: a processor D501, a memory D502, and a computer program stored in the memory D502 and executable on the processor D501. The processor D501 calls the computer program stored in the memory D502 to execute each step of a one-to-many DC brushless motor driving method provided in an embodiment of the present invention, and can achieve the same technical effect, as described in the above embodiment, which will not be repeated here.

[0059] It should be pointed out that those skilled in the art can understand that an electronic control device for a spinning machine in an embodiment of the present invention is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a digital signal processor (DSP), an embedded device, etc. The electronic device can be a computing device such as a desktop computer, a notebook, a handheld computer, and a cloud server. The electronic device can perform human-computer interaction through a keyboard, a mouse, a remote control, a touchpad, or a voice-controlled device.

[0060] An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes and steps in a one-to-many DC brushless motor driving method provided by an embodiment of the present invention are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0061] It should be noted that the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory may be an internal storage unit of an electronic device, such as a hard disk or memory of the electronic device. In other embodiments, the memory may also be an external storage device of an electronic device, such as a plug-in hard disk equipped on the electronic device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory may also include both the internal storage unit of the electronic device and its external storage device. In this embodiment, the memory is generally used to store operating devices and various application software installed in the electronic device, such as a program code of a one-to-many DC brushless motor driving method, etc. In addition, the memory may also be used to temporarily store various types of data that have been output or are to be output.

[0062] Those skilled in the art can understand that the implementation of all or part of the processes in the one-to-many DC brushless motor driving method of the above embodiment can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of various embodiments of the one-to-many DC brushless motor driving method. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0063] The above specific implementation is a preferred implementation of a one-to-many DC brushless motor driving method of the present invention, and is not intended to limit the specific implementation scope of the present invention. The scope of the present invention includes but is not limited to this specific implementation. All equivalent changes made in accordance with the shape and structure of the present invention are within the protection scope of the present invention.

[0064] The specific implementation described above is a preferred implementation of a one-to-many DC brushless motor driving method of the present invention, and is not intended to limit the specific implementation scope of the present invention. The scope of the present invention includes but is not limited to this specific implementation. All equivalent changes made in accordance with the shape and structure of the present invention are within the protection scope of the present invention.

Claims

1. A one-to-many brushless DC motor driving method. It is characterized in that The following steps are involved: S1. Obtaining the Hall feedback signals corresponding to the respective DC brushless motors according to the rotation states of the respective DC brushless motors; S2, determining the motor speed in the current state according to the Hall feedback signal fed back by each brushless DC motor through a single chip microcomputer; S3, adjusting the duty cycle of the PWM signal based on the motor speed of each DC brushless motor, and determining a target PWM signal corresponding to each DC brushless motor; S4, generating a first PWM control signal and a second PWM control signal respectively according to the target PWM signal corresponding to each brushless DC motor by the single-chip microcomputer, outputting the first PWM control signal to the upper bridge arm of the power control circuit correspondingly connected to the brushless DC motor, and outputting the second PWM control signal to the lower bridge arm of the power control circuit correspondingly connected to the brushless DC motor; S5. Control the conduction state of the bridge arm of the power control circuit according to the first PWM control signal and the second PWM control signal, and drive the connected DC brushless motor based on the conduction state of the bridge arm of the power control circuit.

2. A one-to-many brushless DC motor driving method as claimed in claim 1, It is characterized in that S1: acquiring the Hall feedback signals corresponding to the respective DC brushless motors according to the rotation states of the respective DC brushless motors, including: Obtaining a start instruction sent by the application layer, and starting each of the brushless DC motors to rotate at a preset start speed according to the start instruction; The Hall feedback signal generated by each brushless DC motor rotating at the preset starting speed is sampled based on the Hall effect sensor, and the Hall feedback signal is sent to the single-chip microcomputer based on the EXTI channel of the single-chip microcomputer. The Hall feedback signal includes the three-phase Hall state signal of the brushless DC motor.

3. A one-to-many brushless DC motor driving method as claimed in claim 2, It is characterized in that S2: determining the motor speed in the current state according to the Hall feedback signal fed back by each brushless DC motor through the single chip microcomputer, including: Acquire the three-phase Hall state signal fed back by the Hall effect sensor of each brushless DC motor; The time corresponding to the motor rotating at a preset angle is calculated according to the edge change period of the rising edge and the falling edge of the three-phase Hall state signal, and the current motor speed of the DC brushless motor corresponding to the three-phase Hall state signal is calculated according to the time.

4. A one-to-many brushless DC motor driving method as claimed in claim 2, It is characterized in that S3: adjusting the duty cycle of the PWM signal based on the motor speed of each DC brushless motor to determine the target PWM signal corresponding to each DC brushless motor, including: Input the motor speed of each brushless DC motor and the preset starting speed into a PI controller embedded in the single-chip microcomputer to perform speed PI calculation to determine the PI speed calculation result; The PI speed calculation result is converted into a duty cycle of a PWM wave to generate a target PWM signal corresponding to each of the brushless DC motors.

5. A one-to-many brushless DC motor driving method as claimed in claim 1, It is characterized in that The single-chip microcomputer includes a plurality of groups of channel output units, each group of the channel output units includes a PWM channel and a GPIO channel, and in S4: generating a first PWM control signal and a second PWM control signal respectively according to the target PWM signal corresponding to each brushless DC motor by the single-chip microcomputer, including: In the same channel output unit, a PWM channel based on the timing module of the single-chip microcomputer generates the first PWM control signal according to the received target PWM signal, and a GPIO channel based on the single-chip microcomputer generates the second PWM control signal according to the received target PWM signal, wherein the first PWM signal includes three PWM signals for controlling the upper bridge arm of the power control circuit, and the second PWM signal includes three PWM signals for controlling the lower bridge arm of the power control circuit.

6. A one-to-many brushless DC motor driving method as claimed in claim 5, It is characterized in that The upper bridge arm includes a first power tube, a second power tube and a third power tube, the lower bridge arm includes a fourth power tube, a fifth power tube and a sixth power tube, and S5: controlling the bridge arm conduction state of the power control circuit according to the first PWM control signal and the second PWM control signal, and driving the connected DC brushless motor based on the bridge arm conduction state of the power control circuit, including: When driving and controlling each group of the brushless DC motors, the power control circuit controls the forward rotation or reverse rotation of the first power tube, the second power tube and the third power tube according to the three PWM signals output by the PWM channel, and controls the forward rotation or reverse rotation of the fourth power tube, the fifth power tube and the sixth power tube according to the three PWM signals output by the GPIO channel; The three-phase control signal output by the power control circuit to the brushless DC motor is updated according to the forward or reverse state of the first power tube, the second power tube, the third power tube, the fourth power tube, the fifth power tube and the sixth power tube in the power control circuit, and the brushless DC motor is driven according to the updated three-phase control signal.

7. A one-to-many brushless DC motor driving method as claimed in any one of claims 1 to 6, It is characterized in that In the driving process of multiple groups of DC brushless motors based on the synchronous control of the single chip microcomputer, three DC brushless motors in a rotational coordination relationship form a combined control unit, and the combined control unit includes DC brushless motors of different functional types.

8. A one-to-many brushless DC motor drive device, It is characterized in that The device includes: A starting module, used for respectively obtaining the Hall feedback signal corresponding to each DC brushless motor according to the rotation state of each DC brushless motor; A speed determination module, used for determining the motor speed in a current state according to the Hall feedback signal fed back by each brushless DC motor through a single chip microcomputer; A signal adjustment module, used to adjust the duty cycle of the PWM signal based on the motor speed of each DC brushless motor, and determine a target PWM signal corresponding to each DC brushless motor; a signal generating module, configured to generate a first PWM control signal and a second PWM control signal respectively according to the target PWM signal corresponding to each brushless DC motor through the single-chip microcomputer, output the first PWM control signal to an upper bridge arm of a power control circuit correspondingly connected to the brushless DC motor, and output the second PWM control signal to a lower bridge arm of the power control circuit correspondingly connected to the brushless DC motor; A driving module is used to control the conduction state of the bridge arm of the power control circuit according to the first PWM control signal and the second PWM control signal, and drive the connected DC brushless motor based on the conduction state of the bridge arm of the power control circuit.

9. An electronic control device for a spinning machine, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the one-to-many brushless DC motor driving method as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the steps of a one-to-many brushless DC motor driving method as claimed in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Indoor unit and air conditioning apparatus

    CN106687751A

  • Direct-current brushless motor driving method

    CN113364363A

  • Controller used for driving hub-type micro blade electric vehicle

    CN203172455U

  • Motor drive control device, motor drive control system, and motor drive control method

    US20220021322A1