Motor rotating speed control method, motor rotating speed control circuit, chip and electronic equipment
By obtaining the current speed and time stamp of the motor, calculating the compensation angle and target angle, high-precision measurement of the motor speed is achieved, and the accuracy of motor control is solved, which is caused by the frequency difference between the excitation signal and the feedback signal, and the accuracy of motor control is improved.
Patent Information
- Application Number
- CN202411236627.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-09-04
AI Technical Summary
In the existing motor speed measurement methods, the difference in sampling frequency between the excitation signal and the feedback signal causes the motor speed measurement accuracy to decrease.
By obtaining the current motor speed and at least three related timestamps, the compensation angle is calculated, and the motor target angle and target speed are obtained, and two compensation calculations are used to improve the speed accuracy.
The measurement accuracy of the motor target speed is improved, the impact of time difference on measurement error is reduced, and the accuracy of motor control is enhanced.
Smart Images

Figure CN119093811A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of motor technology, and in particular to a motor speed control method, a motor speed control circuit, a chip and an electronic device. Background Art
[0002] In the process of measuring the motor speed, the motor control and speed measurement are mostly achieved through a rotary transformer (synchronous resolver), in which the rotary transformer receives the excitation signal and outputs the corresponding feedback signal.
[0003] However, there are always some differences between the expected sampling frequency represented by the excitation signal and the actual sampling frequency represented by the feedback signal. These differences indicate that the calculated motor speed has aged, which reduces the measurement accuracy of the motor speed. Summary of the invention
[0004] In view of the above problems, the embodiments of the present application provide a motor speed control method, a motor speed control circuit, a chip and an electronic device to improve the technical problem of low motor speed measurement accuracy.
[0005] In a first aspect, an embodiment of the present application provides a motor speed control method, which includes: obtaining a current motor speed and at least three timestamps related to motor sampling; calculating a compensation angle based on the current motor speed and at least three timestamps; obtaining a motor target angle based on the compensation angle; and obtaining a motor target speed based on the motor target angle and timestamp.
[0006] In the second aspect, an embodiment of the present application also provides a motor speed control circuit, which includes an acquisition module, a first calculation module, a second calculation module and a third calculation module. The acquisition module is used to obtain the current speed of the motor and at least three timestamps related to motor sampling; the first calculation module is used to calculate the compensation angle based on the current speed of the motor and at least three timestamps; the second calculation module is used to obtain the target angle of the motor based on the compensation angle; the third calculation module is used to obtain the target speed of the motor based on the target angle and timestamp.
[0007] In a third aspect, an embodiment of the present application further provides a chip, which executes the above-mentioned motor speed control method; or, the chip includes the above-mentioned motor speed control circuit.
[0008] In a fourth aspect, an embodiment of the present application further provides an electronic device, which includes a device body and the above-mentioned motor speed control circuit or chip arranged in the device body.
[0009] The motor speed control method, motor speed control circuit, chip and electronic device provided in the embodiments of the present application obtain the current speed of the motor and at least three timestamps related to motor sampling, calculate the compensation angle based on the current speed of the motor and at least three timestamps, and obtain the motor target angle based on the compensation angle. The compensation angle obtained based on the timestamp is more accurate, and the motor target angle is obtained based on the more accurate compensation angle, which improves the accuracy of the motor target angle. Then, the motor target speed is obtained based on the motor target angle and the timestamp, so that the motor target speed is obtained based on the timestamp through two compensation calculations, thereby improving the accuracy of the motor target speed.
[0010] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0012] Figure 1 The working diagram of the rotary transformer and the analog-to-digital converter in the related art is shown.
[0013] Figure 2 A schematic diagram showing the change between the signal and position of the rotary transformer.
[0014] Figure 3 The diagram shows the changes of the sine signal and cosine signal of the rotary transformer.
[0015] Figure 4 A comparison diagram of the sine signal and cosine signal of the rotary transformer is shown.
[0016] Figure 5 A first flow chart of a motor speed control method provided in an embodiment of the present application is shown.
[0017] Figure 6 A schematic flow chart of step S10 is shown.
[0018] Figure 7 A schematic flow chart of step S20 is shown.
[0019] Figure 8 A schematic flow chart of step S21 is shown.
[0020] Fig. 9 A schematic flow chart of step S22 is shown.
[0021] Fig.10 A schematic flow chart of step S23 is shown.
[0022] Fig.11 A schematic flow chart of step S30 is shown.
[0023] Fig.12 A schematic flow chart of step S40 is shown.
[0024] Fig.13 A schematic flow chart of step S41 is shown.
[0025] Fig.14 A second flow chart of the motor speed control method provided in an embodiment of the present application is shown.
[0026] Fig.15 A principle block diagram of a motor speed control circuit provided in an embodiment of the present application is shown.
[0027] Fig.16 Shows the principle block diagram of the acquisition module.
[0028] Fig.17 A schematic diagram of a chip provided in an embodiment of the present application is shown.
[0029] Fig.18 A schematic diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0030] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
[0031] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.
[0032] In the embodiments of the present application, it should be noted that, in this article, relational terms such as first and second, etc. are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.
[0033] Moreover, the terms "comprises," "comprising," or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
[0034] In the description of the embodiments of the present application, words such as "example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "example" or "for example" in the embodiments of the present application is not to be interpreted as being more preferred or having more advantages than another embodiment or design. The use of words such as "example" or "for example" is intended to present relative concepts in a clear manner.
[0035] In addition, the "plurality" in the embodiments of the present application refers to two or more than two. In view of this, in the embodiments of the present application, "plurality" can also be understood as "at least two". "At least one" can be understood as one or more, for example, one, two or more. For example, including at least one means including one, two or more, and there is no limit on which ones are included. For example, including at least one of A, B and C, then A, B, C, A and B, A and C, B and C, or A, B and C can be included.
[0036] It should be noted that in the embodiments of the present application, "connection" can be understood as electrical connection, and the connection between two electrical components can be a direct or indirect connection between the two electrical components. For example, the connection between A and B can be either a direct connection between A and B or an indirect connection between A and B through one or more other electrical components.
[0037] With the rapid development of the new energy vehicle industry, the industry's control requirements for motor control chips are becoming increasingly higher. Motor control chips usually use resolvers, also known as synchronous resolvers, to achieve motor control and speed measurement.
[0038] Among them, Figure 1 As shown, the rotary transformer includes a primary winding on the stator, a rotor, a first secondary winding and a second secondary winding. The primary winding is connected to an excitation signal (EXC), and the excitation signal can be a pulse width modulation (PWM) signal. The first secondary winding outputs a sine signal (SIN), and the second secondary winding outputs a cosine signal (COS). The sine signal and the cosine signal are called feedback signals. The first secondary winding and the second secondary winding can be orthogonal. The analog-to-digital converter can output a corresponding excitation signal according to the sine signal and the cosine signal.
[0039] like Figure 2 , Figure 3 As shown, as the rotor angle (θ) and the excitation signal change, the sine signal and cosine signal will also change periodically.
[0040] However, if Figure 4 As shown, there are differences in phase and amplitude between the ideal sine signal, ideal cosine signal and the actual sine signal, actual cosine signal. There are always some differences between the expected sampling frequency represented by the excitation signal and the actual sampling frequency represented by the feedback signal. These differences indicate that the calculated motor speed has aged, reducing the measurement accuracy of the motor speed.
[0041] like Figure 5 As shown, an embodiment of the present application provides a motor speed control method, which obtains the current speed of the motor and at least three timestamps related to motor sampling, calculates the compensation angle based on the current speed of the motor and at least three timestamps, and obtains the motor target angle based on the compensation angle. The compensation angle obtained based on the timestamp is more accurate, and the motor target angle is obtained based on the more accurate compensation angle, which improves the accuracy of the motor target angle. Then, the motor target speed is obtained based on the motor target angle and the timestamp, so that the motor target speed is obtained through two compensation calculations based on the timestamp, thereby improving the accuracy of the motor target speed.
[0042] The present application provides a method for controlling the speed of a motor. Figures 5 to 16 ,like Figure 5 As shown, the motor speed control method includes the following steps:
[0043] Step S10: Obtain the current speed of the motor and at least three timestamps related to motor sampling.
[0044] Step S20: Calculate the compensation angle based on the current motor speed and at least three timestamps.
[0045] Step S30: obtaining the motor target angle based on the compensation angle.
[0046] Step S40: Obtain the motor target speed based on the motor target angle and timestamp.
[0047] It should be noted that the current speed of the motor can be obtained by calculation or pre-setting.
[0048] In some embodiments, such as Figure 6 As shown, step S10 includes the following steps:
[0049] Step S11: configuring at least three timestamps including a first timestamp, a second timestamp and a third timestamp.
[0050] Step S12: setting the first timestamp to be the timestamp corresponding to the sampling point of the excitation signal connected to the rotary transformer.
[0051] Step S13: setting the second timestamp to be the timestamp corresponding to the sampling point of the sinusoidal signal output by the resolver.
[0052] Step S14: setting the third timestamp to be the timestamp corresponding to the sampling point of the cosine signal output by the resolver.
[0053] Step S15: Based on the same time reference, obtain a first timestamp, a second timestamp, and a third timestamp.
[0054] It should be noted that the sampling point of the excitation signal may be the rising edge or the falling edge of the excitation signal. The timestamp corresponding to the sampling point of the excitation signal may be the moment corresponding to the rising edge or the falling edge of the excitation signal. The sampling point of the sine signal may be the rising edge or the falling edge of the sine signal that triggers the analog-to-digital converter to sample. The timestamp corresponding to the sampling point of the sine signal may be the moment corresponding to the rising edge or the falling edge of the sine signal that triggers the analog-to-digital converter to sample. The sampling point of the cosine signal may be the rising edge or the falling edge of the cosine signal that triggers the analog-to-digital converter to sample. The timestamp corresponding to the sampling point of the cosine signal may be the moment corresponding to the rising edge or the falling edge of the cosine signal that triggers the analog-to-digital converter to sample.
[0055] Among them, steps S12 to S14 are not sequentially ordered and can be performed in different time periods or simultaneously.
[0056] In some embodiments, such as Figure 7 As shown, step S20 includes the following steps:
[0057] Step S21: Obtain a first angle based on the first timestamp, the second timestamp and the current speed of the motor.
[0058] Step S22: Obtain a second angle based on the first timestamp, the third timestamp and the current speed of the motor.
[0059] Step S23: Calculate a compensation angle according to the first angle and the second angle.
[0060] It should be noted that, in this embodiment, the accuracy of the compensation angle can be improved through such a compensation angle calculation process.
[0061] In some embodiments, such as Figure 8 As shown, step S21 includes the following steps:
[0062] Step S211: Obtain a first time difference according to a subtraction result of the first timestamp and the second timestamp.
[0063] Step S212: Obtain a first angle according to the product of the first time difference and the current rotation speed of the motor.
[0064] It should be noted that this embodiment obtains the first angle by multiplying the first time difference between the first timestamp and the second timestamp by the current speed of the motor, which can reduce the measurement error of the first time difference to the target angle of the motor or the target speed of the motor, thereby improving the measurement accuracy of the target angle of the motor or the target speed of the motor.
[0065] In some embodiments, such as Fig. 9 As shown, step S22 includes the following steps:
[0066] Step S221: Obtain a second time difference according to the subtraction result of the first timestamp and the third timestamp.
[0067] Step S222: Obtain a second angle according to the product of the second time difference and the current rotation speed of the motor.
[0068] It should be noted that this embodiment obtains the second angle by multiplying the second time difference between the first timestamp and the third timestamp by the current speed of the motor, which can reduce the measurement error of the second time difference on the target angle of the motor or the target speed of the motor, thereby improving the measurement accuracy of the target angle of the motor or the target speed of the motor.
[0069] In some embodiments, such as Fig.10 As shown, step S23 includes the following steps:
[0070] Step S231: Obtain the sum of the angles according to the addition result of the first angle and the second angle.
[0071] Step S232: Obtain a compensation angle according to the average value of the sum of the angles.
[0072] It should be noted that this embodiment uses the average value of the sum of the first angle and the second angle as the compensation angle, which can comprehensively consider the adverse effects of different time differences on the measurement accuracy of the motor target angle or the motor target speed, thereby improving the measurement accuracy of the motor target angle or the motor target speed.
[0073] In some embodiments, such as Fig.11 As shown, step S30 includes the following steps:
[0074] Step S31: obtaining the initial angle of the motor corresponding to the current rotation speed of the motor through the inverse tangent algorithm.
[0075] Step S32: Obtain the motor target angle according to the sum of the compensation angle and the motor initial angle.
[0076] It should be noted that the initial angle of the motor may be output by an analog-to-digital converter and may be obtained by an inverse tangent algorithm.
[0077] In some embodiments, such as Fig.12 As shown, step S40 includes the following steps:
[0078] Step S41: Obtaining a target motor speed based on a target motor angle and a first timestamp.
[0079] It should be noted that, in this embodiment, the motor target speed is obtained by using the motor target angle based on the first timestamp, and the motor target speed can be compensated again, thereby further improving the measurement accuracy of the motor speed.
[0080] In some embodiments, such as Fig.13 As shown, step S41 includes the following steps:
[0081] Step S411: Obtain the previous motor target angle and the current motor target angle obtained two consecutive times.
[0082] Step S412: Obtain the target angle difference based on the subtraction result of the current motor target angle and the previous motor target angle.
[0083] Step S413: Obtain the motor target speed according to the product of the target angle difference and the first timestamp.
[0084] It should be noted that this embodiment uses the product of the target angle difference between the previous motor target angle and the current motor target angle obtained from two adjacent times and the first timestamp as the motor target speed, which can compensate the motor target speed again, thereby further improving the measurement accuracy of the motor speed.
[0085] In summary, if Fig.14 As shown, the motor speed control method comprises the following steps:
[0086] Start: Fixed-cycle call, with the rotor rotating 360° as one cycle.
[0087] Calculate the delay angle θ1 of the feedback circuit SIN: θ1 = (Tpwm-Tsin) × Speed1. The feedback circuit SIN can be the first secondary winding. Tpwm is the first timestamp. Tsin is the second timestamp. Speed1 is the current speed of the motor.
[0088] Calculate the delay angle θ2 of the feedback circuit COS: θ2 = (Tpwm-Tcos) × Speed1. The feedback circuit COS may be the second secondary winding. Tcos is the third time stamp.
[0089] Calculate the average delay angle θp of the feedback circuit: θp = (θ1 + θ2) / 2.
[0090] Get the initial angle θr of the motor: θr=arctan(sinIn, cosIn), that is, get it through the inverse tangent algorithm.
[0091] Wherein, sinIn is a point value of a sine signal output by the rotary transformer at the time of obtaining the current speed of the motor, and cosIn is a point value of a cosine signal output by the rotary transformer at the time of obtaining the current speed of the motor.
[0092] The average delay angle is compensated to the motor initial angle to obtain the motor target angle θm: θm=θr+θp.
[0093] Record two motor target angles to obtain the motor target speed Speed2: The motor target speed is calculated by multiplying the sampling interval of the excitation signal by the difference between two adjacent motor target angles. The calculation formula is as follows:
[0094] Speed2=(θm1-θm2)×Tpwm.
[0095] Among them, θm1 is the current motor target angle, and θm2 is the previous motor target angle.
[0096] After the motor target speed is obtained, in order to make the running speed of the motor more accurate, the running speed of the motor can be controlled by the motor target speed.
[0097] The present application also provides a motor speed control circuit 100, such as Fig.15 As shown, the motor speed control circuit 100 includes an acquisition module 10, a first calculation module 20, a second calculation module 30 and a third calculation module 40. The acquisition module 10 is used to acquire the current speed of the motor and at least three timestamps related to motor sampling; the first calculation module 20 is used to calculate the compensation angle based on the current speed of the motor and at least three timestamps; the second calculation module 30 is used to obtain the motor target angle based on the compensation angle; the third calculation module 40 is used to obtain the motor target speed based on the motor target angle and timestamp.
[0098] It can be understood that the motor speed control circuit 100 provided in the embodiment of the present application obtains the current speed of the motor and at least three timestamps related to the motor sampling, calculates the compensation angle based on the current speed of the motor and at least three timestamps, and obtains the motor target angle based on the compensation angle. The compensation angle obtained based on the timestamp is more accurate, and the motor target angle is obtained based on the more accurate compensation angle, which improves the accuracy of the motor target angle. Then, the motor target speed is obtained based on the motor target angle and the timestamp, so that the motor target speed is obtained through two compensation calculations based on the timestamp, thereby improving the accuracy of the motor target speed.
[0099] In some embodiments, the at least three timestamps include a first timestamp, a second timestamp, and a third timestamp, such as Fig.16 As shown, the acquisition module 10 includes a general timer 11, and the general timer 11 includes a common time base unit 111, a first timer 112, a second timer 113 and a third timer 114. The common time base unit 111 is used to provide a time reference; the first timer 112 is used to record the timestamp corresponding to the sampling point of the excitation signal connected to the rotary transformer as a first timestamp; the second timer 113 is used to record the timestamp corresponding to the sampling point of the sinusoidal signal output by the rotary transformer as a second timestamp; the third timer 114 is used to record the timestamp corresponding to the sampling point of the cosine signal output by the rotary transformer as a third timestamp.
[0100] The present application embodiment also provides a chip 200, such as Fig.17 As shown, the chip 200 executes the motor speed control method described above; or, the chip 200 includes the motor speed control circuit 100 described above. The chip 200 is also called an integrated circuit (IC), and the chip 200 can be, but is not limited to, a SOC (System on Chip) chip or a SIP (system in package) chip.
[0101] It can be understood that since the chip 200 provided in the embodiment of the present application executes the above-mentioned motor speed control method, or the chip 200 includes the above-mentioned motor speed control circuit 100, it can also obtain the current speed of the motor and at least three timestamps related to the motor sampling, calculate the compensation angle based on the current speed of the motor and at least three timestamps, and obtain the motor target angle based on the compensation angle. This compensation angle obtained based on the timestamp is more accurate, and the motor target angle is obtained based on the more accurate compensation angle, which improves the accuracy of the motor target angle. Then, the motor target speed is obtained based on the motor target angle and the timestamp, so that the motor target speed is obtained based on the timestamp through two compensation calculations, thereby improving the accuracy of the motor target speed.
[0102] The present application embodiment also provides an electronic device 300, such as Fig.18 As shown, the electronic device 300 includes a device body and the above-mentioned motor speed control circuit 100 or chip 200 provided in the device body. The electronic device 300 can be, but is not limited to, a weight scale, a body fat scale, a nutrition scale, an infrared electronic thermometer, a pulse oximeter, a human body composition analyzer, a mobile power supply, a wireless charger, a fast charger, a car charger, an adapter, a display, a USB (Universal Serial Bus) docking station, a stylus, a true wireless headset, a car central control screen, a car, a smart wearable device, a mobile terminal, and a smart home device. Smart wearable devices include, but are not limited to, smart watches, smart bracelets, and cervical massagers. Mobile terminals include, but are not limited to, smart phones, laptops, tablet computers, and POS (point of sales terminal). Smart home devices include, but are not limited to, smart sockets, smart rice cookers, smart sweepers, and smart lights.
[0103] It can be understood that since the electronic device 300 provided in the embodiment of the present application includes the above-mentioned motor speed control circuit 100 or chip 200, it is also possible to obtain the current speed of the motor and at least three timestamps related to the motor sampling, calculate the compensation angle based on the current speed of the motor and at least three timestamps, and obtain the motor target angle based on the compensation angle. This compensation angle obtained based on the timestamp is more accurate, and the motor target angle is obtained based on the more accurate compensation angle, which improves the accuracy of the motor target angle. Then, the motor target speed is obtained based on the motor target angle and the timestamp, so that the motor target speed is obtained based on the timestamp through two compensation calculations, thereby improving the accuracy of the motor target speed.
[0104] The above are only preferred embodiments of the present application, and are not intended to limit the present application in any form. Although the present application has been disclosed as a preferred embodiment as above, it is not intended to limit the present application. Any technical personnel in this field can use the technical contents disclosed above to make some changes or modify them into equivalent embodiments with equivalent changes without departing from the scope of the technical solution of the present application. However, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.
Claims
1. A motor speed control method, characterized in that: The motor speed control method comprises: Obtaining a current speed of the motor and at least three timestamps related to the motor sampling; Calculating a compensation angle based on the current speed of the motor and the at least three timestamps; Obtaining a motor target angle based on the compensation angle; Based on the motor target angle and the timestamp, the motor target speed is obtained.
2. The motor speed control method according to claim 1, characterized in that: The obtaining of the current speed of the motor and at least three timestamps related to the motor sampling includes: Configuring the at least three timestamps to include a first timestamp, a second timestamp, and a third timestamp; Setting the first timestamp to be a timestamp corresponding to a sampling point of an excitation signal connected to the rotary transformer; Setting the second timestamp to be a timestamp corresponding to a sampling point of the sinusoidal signal output by the resolver; Setting the third timestamp to a timestamp corresponding to a sampling point of a cosine signal output by the resolver; Based on the same time reference, the first timestamp, the second timestamp and the third timestamp are acquired.
3. The motor speed control method according to claim 2, characterized in that: The calculating the compensation angle based on the current speed of the motor and the at least three timestamps includes: Obtaining a first angle based on the first timestamp, the second timestamp, and the current speed of the motor; Obtaining a second angle based on the first timestamp, the third timestamp and the current speed of the motor; The compensation angle is calculated according to the first angle and the second angle.
4. The motor speed control method according to claim 3, characterized in that: The obtaining a first angle based on the first timestamp, the second timestamp and the current speed of the motor includes: Obtaining a first time difference according to a subtraction result of the first timestamp and the second timestamp; The first angle is obtained according to the product of the first time difference and the current rotation speed of the motor.
5. The motor speed control method according to claim 3, characterized in that: The obtaining a second angle based on the first timestamp, the third timestamp and the current speed of the motor includes: Obtaining a second time difference according to a subtraction result of the first timestamp and the third timestamp; The second angle is obtained according to the product of the second time difference and the current rotation speed of the motor.
6. The motor speed control method according to claim 3, characterized in that: The calculating the compensation angle according to the first angle and the second angle includes: Obtaining a sum of angles according to a result of adding the first angle to the second angle; The compensation angle is obtained according to the average value of the sum of the angles.
7. The motor speed control method according to claim 1, characterized in that: The obtaining of the motor target angle based on the compensation angle comprises: Obtaining the initial angle of the motor corresponding to the current speed of the motor by using an inverse tangent algorithm; The motor target angle is obtained according to the sum of the compensation angle and the motor initial angle.
8. The motor speed control method according to claim 2, characterized in that: The step of obtaining a target motor speed based on the motor target angle and the timestamp includes: A target motor speed is obtained based on the motor target angle and the first timestamp.
9. The motor speed control method according to claim 8, characterized in that: The obtaining the motor target speed based on the motor target angle and the first timestamp includes: Get the previous motor target angle and the current motor target angle obtained two times; Obtaining a target angle difference according to a subtraction result of the current motor target angle and the previous motor target angle; The motor target speed is obtained according to the product of the target angle difference and the first timestamp.
10. The motor speed control method according to any one of claims 1 to 9, characterized in that: After obtaining the motor target speed based on the motor target angle and the timestamp, the method further includes: The running speed of the motor is controlled by the motor target speed.
11. A motor speed control circuit, characterized in that: The motor speed control circuit comprises: An acquisition module, the acquisition module is used to acquire the current speed of the motor and at least three timestamps related to the motor sampling; A first calculation module, the first calculation module is used to calculate a compensation angle based on the current speed of the motor and the at least three timestamps; A second calculation module, the second calculation module is used to obtain a motor target angle based on the compensation angle; A third calculation module is used to obtain a target speed of the motor based on the target angle of the motor and the timestamp.
12. The motor speed control circuit according to claim 11, characterized in that: The at least three timestamps include a first timestamp, a second timestamp, and a third timestamp, and the acquisition module includes a universal timer, and the universal timer includes: A common time base unit, the common time base unit is used to provide a time reference; A first timer, wherein the first timer is used to record a timestamp corresponding to a sampling point of an excitation signal connected to the rotary transformer as the first timestamp; A second timer, wherein the second timer is used to record a timestamp corresponding to a sampling point of the sinusoidal signal output by the resolver as the second timestamp; A third timer, wherein the third timer is used to record a timestamp corresponding to a sampling point of the cosine signal output by the rotary transformer as the third timestamp.
13. A chip, characterized in that: The chip executes the motor speed control method as described in any one of claims 1 to 10; or, the chip includes the motor speed control circuit as described in any one of claims 11 to 12.
14. An electronic device, characterized in that: The electronic device comprises a device body and the chip according to claim 13 disposed in the device body.
Citation Information
Patent Citations
Rotary transformer signal decoding method and device, equipment and medium
CN115913039A
Vehicle motor resolver angle decoding method, system and device and storage medium
CN116073728A
Motor angle compensation method of single-core processor, motor controller and storage medium
CN117767824A
Sine and cosine signal calibration data adaptive method for soft decoding of motor resolver
CN118589938A
Resolver component for determining angular position of rotor of permanent magnet synchronous motor of car, has calculating unit comparing angle measurement value with angle value with compensation of difference between two sampling time
DE102011009720A1
Cited By
Motor rotation speed control method, motor rotation speed control circuit, chip, and electronic device
WO2026051806A1
