Finite position set control method, device and storage medium based on Hall sensor
Through the finite position set control method based on Hall sensor, using Hall signal and back electromotive force calculation, high-precision position acquisition in the case of no high-cost position sensor is achieved, and the Hall sensor is solved in the sine wave control of permanent magnet motors The problem of difficulty in obtaining precise locations reduces controller performance requirements and control costs.
Patent Information
- Application Number
- CN202211339567.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-26
- Publication Date
- 2024-11-08
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, Hall sensors cannot obtain precise position in the sine wave control of permanent magnet motors, resulting in poor control effects and high-precision position sensors cost, limiting the application of low-cost motor control schemes.
Using a finite position set control method based on Hall sensor, the back electromotive force is calculated, the position and rotation speed is estimated, and the search range is narrowed by using Hall signal. Combined with the finite position set algorithm, iterative calculation is achieved to high accuracy, and no high cost is achieved. Acquisition of the precise position of the position sensor.
It realizes high-precision position information acquisition, reduces the requirements for controller performance, reduces the number of calculation iterations, reduces control costs, and is suitable for reliable operation without high-cost position sensors.
Smart Images

Figure CN115514277B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of permanent magnet motors, and in particular to a finite position set control method, device and storage medium based on a Hall sensor. Background Art
[0002] Permanent magnet motors have simple structures, high efficiency and a wide range of applications. Permanent magnet motors require position feedback for effective control. The higher the position accuracy, the better the control effect. However, high-precision position sensors are expensive, so many low-cost motor control solutions usually use Hall sensors to obtain the position. Usually, Hall sensors are only accurate in a few fixed positions, and can only obtain an approximate position range at other positions, so they are often used for square wave control. When Hall sensors are used for sine wave control, the control effect deteriorates because the accurate position cannot be obtained. The rotor position of the permanent magnet motor varies between 0 and 2πrad and can be discretized with a certain accuracy. Therefore, the finite position set control method can use a limited number of discrete rotor positions and cost functions to confirm the optimal rotor position. The finite position set control method can obtain high-precision position information without a position sensor, but it requires a large number of iterative operations and has high performance requirements for the controller. The Hall signal can obtain the approximate position of the rotor, which helps to narrow the search range. Therefore, when the finite position set control method is applied to a permanent magnet motor equipped with Hall, the Hall sensor can be used to reduce the number of calculation iterations of the finite position set, which greatly reduces the requirements for controller performance of this method.
[0003] Applying the finite position set control method to the Hall permanent magnet motor not only inherits the advantages of the finite position set algorithm that does not require parameter setting and has higher accuracy, but also reduces the performance requirements for the controller, which is of great significance. Summary of the invention
[0004] 1. Technical issues to be resolved
[0005] In view of the shortcomings of the prior art, the present invention provides a finite position set control method, device and storage medium based on Hall sensors. The finite position set algorithm has high precision and does not require parameters, and can achieve reliable operation of permanent magnet motors without position sensors. The low-cost Hall sensors combined with permanent magnet motors can obtain precise positions without high-precision position sensors, while keeping the performance requirements within a reasonable range, thereby achieving reliable operation of permanent magnet motors without high-cost position sensors.
[0006] (II) Technical solution
[0007] To achieve the above objectives, the present invention is implemented through the following technical solutions:
[0008] In one aspect, a finite position set control method based on a Hall sensor is provided, the method comprising:
[0009] Detection and calculation of current and voltage: Detect the three-phase current i of the permanent magnet motor a ,i b ,i c , and after 3s / 2s Clarke transformation, the current i in the two-phase stationary coordinate system is obtained α and i β , detect the DC power supply voltage and the three-phase duty cycle, and obtain the voltage u in the two-phase stationary coordinate system through 3s / 2s Clarke transformation α and u β ;
[0010] Calculation of back electromotive force: Take the voltage and current u in the two-phase stationary coordinate system obtained by the detection and calculation of the current and voltage α 、u β 、i α 、i β , the back electromotive force e in the stationary coordinate system is calculated by the back electromotive force formula α 、e β ;
[0011] Calculation of estimated position and speed: The back EMF e in the stationary coordinate system is α 、e β Calculate the estimated position by predicting a finite set of positions And differentiate to get the estimated speed
[0012] Calculation of feedback current: Take a finite set of positions to predict the estimated position Used for coordinate transformation to obtain the current i in the two-phase rotating coordinate system d 、i q ;
[0013] The motor runs at a controlled speed without a high-cost position sensor: given speed n * The difference between the feedback speed n and the given q-axis current i is obtained through the PI controller. q * , given the d-axis current i d * The reference voltage u in the two-phase stationary coordinate system is calculated by outputting the PI controller and performing a 2r / 2s IPark transformation. α * ,u β * , and finally the SVPWM wave is output to drive the motor rotor to move. The speed regulation operation adjusts the motor speed by changing the given speed.
[0014] Furthermore, in the detection and calculation of the current and voltage, the current i in the two-phase stationary coordinate system is α and i β and the voltage u in the two-phase stationary coordinate system α and u β They are:
[0015]
[0016]
[0017] Where S a , S b , S c is the duty cycle of the controller output, U dc is the DC bus voltage value.
[0018] Furthermore, the specific implementation method of calculating the estimated position and speed is:
[0019] The approximate position of the rotor is obtained through the Hall signal to narrow the search range of the finite position set; the optimal rotor position under the current accuracy is searched through the finite position set to further narrow the search range; by continuous iteration until the accuracy is 1 / 2*π / 18*3^-3=π / 972≈0.003rad, the accuracy meets the requirements, and the optimal position searched at this time is taken as the rotor position angle at the current moment.
[0020] Furthermore, the cost function of the finite position set prediction algorithm in the calculation of the estimated position and speed is:
[0021] Δe0=e 0,ref -e 0i,j (k) = -e α cosθ-e β sinθ.
[0022] In another aspect, there is provided a device comprising:
[0023] one or more processors;
[0024] a memory for storing one or more programs,
[0025] When the one or more programs are executed by the one or more processors, the one or more processors are enabled to perform the Hall sensor-based limited position set control method.
[0026] On the other hand, a computer-readable storage medium storing a computer program is provided, and when the program is executed by a processor, the limited position set control method based on a Hall sensor is implemented.
[0027] (III) Beneficial effects
[0028] (1) The finite position set control method, device and storage medium based on the Hall sensor of the present invention obtains the estimated position through the finite position set algorithm, which has the characteristics of high precision and no need for parameters. The estimated position accuracy can reach 0.003rad, and the influence of undesirable parameters on the operation of the non-high-cost position sensor is avoided, so that the operation of the permanent magnet motor without the high-cost position sensor is more stable and reliable;
[0029] (2) The finite position set control method, device and storage medium based on the Hall sensor of the present invention preliminarily calculates the range of the permanent magnet motor rotor position by using the Hall sensor. Compared with the original finite position set algorithm which requires 64 operations in one control cycle, the finite position set based on the Hall sensor only requires 24 operations to achieve the same accuracy, which reduces the search range required by the finite position set algorithm and reduces the requirements of the finite position set algorithm on the controller performance;
[0030] (3) The limited position set control method, device and storage medium based on the Hall sensor of the present invention can obtain accurate position with only low-cost Hall sensors, without high-cost position sensors such as photoelectric encoders and rotary transformers, thus reducing the cost of effectively controlling the motor;
[0031] (4) The finite position set control method, device and storage medium based on the Hall sensor of the present invention are also applicable to the vector control and direct torque control of permanent magnet synchronous motors with other rotating or linear structures. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is the principle diagram of the finite position set control method based on Hall sensor;
[0033] Figure 2 It is a schematic diagram of the first two iterations of the finite position set control method based on Hall sensor;
[0034] Figure 3 It is a flow chart of the finite position set algorithm based on Hall sensor;
[0035] Figure 4 This is the back EMF waveform diagram in the two-phase stationary coordinate system when the motor is running;
[0036] Figure 5 It is a comparison chart between the actual speed and the estimated speed when the motor is running;
[0037] Figure 6 This is a comparison chart of the actual position and estimated position when the motor is running;
[0038] Figure 7 This is the error diagram of the motor speed estimation when it is running. DETAILED DESCRIPTION
[0039] The following will be combined with the accompanying drawings of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] Example
[0041] like Figure 1-3 As shown, as an embodiment of the present invention, a finite position set control method based on a Hall sensor includes the following steps:
[0042] Step 1: Detection and calculation of current and voltage
[0043] Detect the three-phase current i of the permanent magnet motor a ,i b ,i c , and after 3s / 2s Clarke transformation, the current i in the two-phase stationary coordinate system is obtained α and i β , detect the DC power supply voltage and the three-phase duty cycle, and obtain the voltage u in the two-phase stationary coordinate system through 3s / 2s Clarke transformation α and u β The calculation method is as follows,
[0044]
[0045]
[0046] Where S a , S b , S c is the duty cycle of the controller output, U dc is the DC bus voltage value.
[0047] Step 2, calculation of back EMF:
[0048] Take the voltage and current u in the two-phase stationary coordinate system obtained in step 1 α 、u β 、i α 、i β The back electromotive force is calculated, L and R are the phase inductance and phase resistance parameters of the motor. According to the formula based on the stator voltage of the permanent magnet motor, the two back electromotive forces are expressed as:
[0049]
[0050] Step 3, calculation of estimated position and speed:
[0051] Detect the position sector to which the current Hall signal belongs, and take the median of the current sector range as the starting position for the limited position set search (for example, when the Hall signal is detected in the first sector, the search range of the limited position set will be limited to the range of -π / 6rad to π / 6rad). Then, based on this starting position, take the two opposite potentials e calculated in step 2 α 、e β The cost function is calculated to search for the optimal rotor position under the current accuracy, and this optimal position is used as the starting position for the next accuracy search, narrowing the search range (for example, the optimal rotor position under the current accuracy is 0 rad, and the next search range will be limited to -π / 18rad to π / 18rad. By continuously iterating until the accuracy is 1 / 2*π / 18*3^-3=π / 972≈0.003rad (the number of iterations is 24 times at this time), the accuracy is high enough, and the optimal position searched at this time is taken as the rotor position angle at the current moment And differentiate to get the estimated speed
[0052] Step 4, calculation of feedback current:
[0053] Take the estimated position calculated by the position prediction in step 3 Used for coordinate transformation to obtain the current i in the two-phase rotating coordinate system d 、i q .
[0054] Step 5: The motor runs at a controlled speed without a high-cost position sensor:
[0055] After the motor starts, the position estimation module provides the position and speed, and the speed n is given. * The difference between the feedback speed n and the given q-axis current i is obtained through the PI controller. q * , given the d-axis current i d * The reference voltage u in the two-phase stationary coordinate system is calculated by outputting the PI controller and performing a 2r / 2s IPark transformation. α * ,u β * . Reference voltage u α * ,u β *The switching signal for controlling the inverter is obtained through the space vector modulation module, and the motor winding is connected to the power supply through the inverter. The motor winding is connected to the power supply, and the generated current induces a magnetic field, which interacts with the magnetic field induced by the permanent magnet to generate torque. The torque of the magnetic field generated by the winding is related to the deviation of the speed. When the feedback speed is greater than the given speed, the torque is reduced; conversely, when the feedback speed is less than the given speed, the torque is increased. This method can be used to make the motor run at a given speed, and the motor speed can also be adjusted by changing the given speed.
[0056] Based on the finite position set vector control operation of the Hall sensor, t∈[0,0.04) is the startup phase, followed by the constant speed operation phase, and the given speed is set to 1000r / min. Among them, the measured position and speed do not participate in the motor control, but are only used to compare with the estimated value to verify the estimation accuracy.
[0057] Figure 4 This is the back EMF waveform diagram of the two-phase stationary coordinate system when the motor is running. In the stationary coordinate system, the two back EMFs have high sinusoidality, the same amplitude, and a phase difference of π / 2.
[0058] Figure 5 This is a comparison chart of the actual speed and the estimated speed when the motor is running. The actual speed can reach the given speed in a limited time, and the estimated speed is close to the actual speed. This figure verifies the feasibility of the finite position set vector control operation based on the Hall sensor.
[0059] Figure 6 This is a comparison chart of the actual position and estimated position when the motor is running. The waveforms of the two are basically consistent.
[0060] Figure 7 This is the position estimation error diagram when the motor is running. The estimated error during stable operation is about 0.003rad, which is consistent with the theoretical error.
[0061] As another embodiment of the present invention, there is provided a device, comprising:
[0062] one or more processors;
[0063] a memory for storing one or more programs,
[0064] When the one or more programs are executed by the one or more processors, the one or more processors are enabled to perform the Hall sensor-based limited position set control method.
[0065] As another embodiment of the present invention, a computer-readable storage medium storing a computer program is provided, and when the program is executed by a processor, the finite position set control method based on a Hall sensor is implemented.
[0066] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
Claims
1. A finite position set control method based on Hall sensor, characterized in that: The method comprises: Detection and calculation of current and voltage: Detect the three-phase current i of the permanent magnet motor a ,i b ,i c , and after 3s / 2s Clarke transformation, the current i in the two-phase stationary coordinate system is obtained α and i β , detect the DC power supply voltage and the three-phase duty cycle, and obtain the voltage u in the two-phase stationary coordinate system through 3s / 2s Clarke transformation α and u β ; Calculation of back electromotive force: Take the voltage and current u in the two-phase stationary coordinate system obtained by the detection and calculation of the current and voltage α 、u β 、i α 、i β , the back electromotive force e in the stationary coordinate system is calculated by the back electromotive force formula α 、e β ; Calculation of estimated position and speed: The back EMF e in the stationary coordinate system is α 、e β Compute an estimated position by predicting a finite set of positions And differentiate to get the estimated speed Calculation of feedback current: Take a finite set of positions to predict the estimated position Used for coordinate transformation to obtain the current i in the two-phase rotating coordinate system d 、i q ; The motor runs at a controlled speed without a high-cost position sensor: given speed n * The difference between the feedback speed n and the given q-axis current i is obtained through the PI controller. q * , given the d-axis current i d * The reference voltage u in the two-phase stationary coordinate system is calculated by outputting the PI controller and performing a 2r / 2s IPark transformation. α * ,u β * , and finally output SVPWM wave to drive the motor rotor to move. The speed regulation operation regulates the motor speed by changing the given speed; The specific implementation method of calculating the estimated position and speed is as follows: The approximate position of the rotor is obtained through the Hall signal to narrow the search range of the limited position set; the optimal rotor position under the current accuracy is searched through the limited position set to further narrow the search range; when the accuracy is 1 / 2*π / 18*3^-3=π / 972≈0.003rad through continuous iteration, the accuracy meets the requirements, and the optimal position searched at this time is taken as the rotor position angle at the current moment; It is characterized in that: the cost function of the finite position set prediction algorithm in the calculation of the estimated position and speed is: Δe0=e 0,ref -And 0i,j (k)=-e α cosθ-e β sinθ Where Δe0 is the reference back potential e 0,ref The actual calculated back electromotive force e at the current moment 0i,j The difference between (k) and e α 、e β are the back electromotive force in the two-phase stationary coordinate system respectively, and θ is the rotor electrical angle at the current moment.
2. The finite position set control method based on Hall sensor according to claim 1, characterized in that: In the detection and calculation of the current and voltage, the current i in the two-phase stationary coordinate system is α and i β and the voltage u in the two-phase stationary coordinate system α and u β They are: Where S a , S b , S c is the duty cycle of the controller output, U dc is the DC bus voltage value.
3. A device, characterized in that: include: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors execute the Hall sensor-based finite position set control method as described in any one of claims 1 to 2.
4. A computer-readable storage medium storing a computer program, characterized in that: When the program is executed by a processor, a finite position set control method based on a Hall sensor as described in any one of claims 1 to 2 is implemented.
