Motor controller and method and motor drive device

By applying voltage between the V phase and W phase of the motor and detecting current, calculating and selecting the motor constant, the high cost and complexity problem of obtaining the motor constant in the prior art is solved, and the reliability and cost reduction of the motor constant is achieved .

CN119030388APending Publication Date: 2024-11-26SANKEN ELECTRIC CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310587371.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-23
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

The method of obtaining motor constants in the prior art is costly and complex, requiring professional operation, and cannot effectively reduce the cost of motor users.

Method used

The traditional current sensor detection process is omitted by applying a DC voltage or AC voltage between the V phase and W phase of the motor, detecting the DC current and AC current, and calculating and selecting the pre-stored motor constant.

Benefits of technology

The acquisition process of motor constants is simplified, the cost is reduced, and the reliability of the selected motor constants is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030388A_ABST
    Figure CN119030388A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a motor controller and method and a motor driving device. The motor controller includes: a storage unit that stores a plurality of sets of preset motor constants; a detection unit that applies a first DC voltage between a V-phase and a W-phase of the motor and detects a DC current, or applies a second DC voltage and an AC voltage to the motor and detects an AC voltage and an AC current; a calculation unit that calculates one or more motor constants of the motor on the basis of a detection result of the detection unit; and a selection unit that selects a set of motor constants for the motor from the plurality of sets of motor constants stored in the storage unit on the basis of the one or more motor constants calculated by the calculation unit. Therefore, the motor constants can be obtained in a simple mode, the cost of a motor user is reduced, and the reliability of the selected motor constants is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of motor control technology, and more particularly to a motor controller and method, and a motor drive device. Background Art

[0002] At present, brushless direct current (BLDC) motors have been widely used, and corresponding motor drive devices can perform sensorless vector control, for example, improving motor efficiency without a position sensor (such as a Hall sensor).

[0003] In some motor drive devices, in order to drive the motor without using a position sensor, the maximum driving power of the motor can be obtained by detecting or identifying the motor constants. These motor constants include, for example: the resistance component R a , d-axis inductance component L d , q-axis inductance component L q , reverse voltage constant etc.

[0004] It should be noted that the above introduction to the technical background is only for the convenience of providing a clear and complete description of the technical solutions of the present application and for the convenience of understanding by those skilled in the art. It cannot be considered that the above technical solutions are well known to those skilled in the art simply because they are described in the background technology section of the present application. Summary of the invention

[0005] The inventors found that the motor constants can be obtained in the prior art by the following methods. For example, when the motor drive device is connected to the motor, the motor constants are detected one by one by using expensive current sensors. This method is not only costly, but also complicated in the detection process and requires professional operators to operate.

[0006] In response to at least one of the above problems, embodiments of the present application provide a motor controller and method, and a motor drive device.

[0007] According to one aspect of an embodiment of the present application, there is provided a motor controller, comprising:

[0008] A storage unit storing a plurality of preset motor constants;

[0009] a detection unit that applies a first DC voltage between a V phase and a W phase of the motor and detects a DC current, or applies a second DC voltage and an AC voltage to the motor and detects an AC voltage and an AC current;

[0010] a calculation unit, which calculates one or more motor constants of the motor according to the detection result of the detection unit;

[0011] A selection unit selects a set of motor constants for the motor from the plurality of sets of motor constants stored in the storage unit according to the one or more motor constants calculated by the calculation unit.

[0012] According to another aspect of an embodiment of the present application, a motor drive device is provided for performing sensorless vector control on a motor, wherein the motor drive device includes a drive circuit and a power transistor, wherein the motor drive device also includes the motor controller as described above.

[0013] According to another aspect of an embodiment of the present application, there is provided a motor control method, including:

[0014] Store multiple sets of pre-set motor constants;

[0015] Applying a first DC voltage between a V phase and a W phase of the motor and detecting a DC current, or applying a second DC voltage and an AC voltage to the motor and detecting an AC voltage and an AC current;

[0016] Calculate one or more motor constants of the motor according to the detection result;

[0017] A set of motor constants is selected for the motor from the stored plurality of sets of motor constants based on the calculated one or more motor constants.

[0018] One of the beneficial effects of the embodiment of the present application is: storing multiple sets of pre-set motor constants in the motor controller; applying a first DC voltage between the V phase and the W phase of the motor and detecting the DC current, or applying a second DC voltage and an AC voltage to the motor and detecting the AC voltage and the AC current; calculating one or more motor constants of the motor according to the detection results; and selecting a set of motor constants for the motor from the stored multiple sets of motor constants according to the calculated one or more motor constants. Thus, the motor constants can be obtained in a simple manner, reducing the cost of the motor user and ensuring the reliability of the selected motor constants.

[0019] With reference to the following description and accompanying drawings, the specific embodiments of the present application are disclosed in detail, indicating the way in which the principles of the present application can be adopted. It should be understood that the embodiments of the present application are not limited in scope. Within the scope of the spirit and clauses of the appended claims, the embodiments of the present application include many changes, modifications and equivalents.

[0020] Features described and / or illustrated with respect to one embodiment may be used in the same or similar manner in one or more other embodiments, combined with features in other embodiments, or substituted for features in other embodiments.

[0021] It should be emphasized that the term “include / comprises” when used herein refers to the presence of features, integers, steps or components, but does not exclude the presence or addition of one or more other features, integers, steps or components. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The elements and features described in one figure or one implementation of the present application embodiment may be combined with the elements and features shown in one or more other figures or implementations. In addition, in the accompanying drawings, similar reference numerals represent corresponding parts in several figures and can be used to indicate corresponding parts used in more than one implementation.

[0023] Figure 1 is a schematic diagram of a motor controller according to an embodiment of the present application;

[0024] Figure 2 is a schematic diagram of a motor drive device and a motor according to an embodiment of the present application;

[0025] Figure 3 is a schematic diagram of the waveform of the interphase inductance of an embodiment of the present application;

[0026] Figure 4 is another schematic diagram of the waveform of the interphase inductance according to an embodiment of the present application;

[0027] Figure 5 is a schematic diagram of the positional relationship between the dq axis and the α-β axis in an embodiment of the present application;

[0028] Figure 6 is another schematic diagram of the positional relationship between the dq axis and the α-β axis in an embodiment of the present application;

[0029] Figure 7 is a schematic diagram of a magnetic flux path of an embodiment of the present application;

[0030] Figure 8 is L in the embodiment of the present application q A schematic diagram of the measuring points;

[0031] Fig. 9 is a schematic diagram of an equivalent circuit of a motor according to an embodiment of the present application;

[0032] Fig.10 is another schematic diagram of an equivalent circuit of a motor according to an embodiment of the present application;

[0033] Fig.11 It is a schematic diagram of AC voltage and AC current;

[0034] Fig.12 is another schematic diagram of AC voltage and AC current;

[0035] Fig.13is a schematic diagram of the selection of motor constants in an embodiment of the present application;

[0036] Fig.14 is a schematic diagram of a motor control method according to an embodiment of the present application. DETAILED DESCRIPTION

[0037] With reference to the accompanying drawings, the above and other features of the present application will become apparent through the following description. In the description and the accompanying drawings, specific embodiments of the present application are specifically disclosed, which show some embodiments in which the principles of the present application can be adopted. It should be understood that the present application is not limited to the described embodiments. On the contrary, the present application includes all modifications, variations and equivalents falling within the scope of the attached claims.

[0038] In the embodiments of the present application, the terms "first", "second", etc. are used to distinguish different elements in terms of title, but do not indicate the spatial arrangement or temporal order of these elements, etc., and these elements should not be limited by these terms. The term "and / or" includes any one and all combinations of one or more of the associated listed terms. The terms "comprising", "including", "having", etc. refer to the presence of the stated features, elements, components or components, but do not exclude the presence or addition of one or more other features, elements, components or components.

[0039] In the embodiments of the present application, the singular forms "a", "the", etc. include plural forms and should be broadly understood as "a kind" or "a type" rather than being limited to the meaning of "one"; in addition, the term "said" should be understood to include both singular and plural forms, unless the context clearly indicates otherwise. In addition, the term "according to" should be understood as "at least in part according to...", and the term "based on" should be understood as "at least in part based on...", unless the context clearly indicates otherwise.

[0040] In the embodiment of the present application, the motor drive device and the motor may be separate devices, provided by the motor drive device manufacturer and the motor manufacturer respectively. The motor is, for example, a brushless DC motor, including a U phase, a V phase, and a W phase; the motor drive device performs sensorless vector control on the motor; but the present application is not limited thereto.

[0041] Embodiments of the first aspect

[0042] Embodiments of the present application provide a motor controller and a motor drive device.

[0043] Figure 1 is a schematic diagram of a motor controller according to an embodiment of the present application. Figure 1 As shown, the motor controller 100 includes a storage unit 101 , a detection unit 102 , a calculation unit 103 and a selection unit 104 .

[0044] The storage unit 101 stores a plurality of pre-set groups of motor constants; the detection unit 102 applies a first DC voltage between the V phase and the W phase of the motor and detects the DC current, or applies a second DC voltage and an AC voltage to the motor and detects the AC voltage and the AC current; the calculation unit 103 calculates one or more motor constants of the motor according to the detection result of the detection unit 102; the selection unit 104 selects a group of motor constants for the motor from the plurality of groups of motor constants stored in the storage unit 101 according to the one or more motor constants calculated by the calculation unit 103.

[0045] It is worth noting that the above Figure 1 The motor controller of the embodiment of the present application is only schematically described, but the present application is not limited thereto. For example, the connection relationship between the modules or components can be appropriately adjusted, and other modules or components can be added, or some modules or components can be reduced. Those skilled in the art can make appropriate modifications based on the above content, and are not limited to the above attached. Figure 1 Records of.

[0046] According to the above embodiment, the motor constant corresponding to the motor can be automatically obtained by applying a first DC voltage between the V phase and the W phase of the motor or applying a second DC voltage and an AC voltage to the motor, the detection process of the motor constant can be omitted, and the motor constant can be obtained in a simple manner; in the process of determining the motor constant, there is no need to use expensive current sensors, which can reduce the cost of motor users; in addition, the motor constant is calculated by applying a first DC voltage between the V phase and the W phase of the motor or applying a second DC voltage and an AC voltage to the motor, and a group of motor constants are selected according to the calculated motor constants, which can ensure the reliability of the selected motor constants.

[0047] In the embodiment of the present application, the motor controller 100 is, for example, a control circuit including a microprocessor and a memory, and may be a digital processing circuit, etc. The motor controller 100 may be part of a motor drive device, which may drive a variety of motors, each of which corresponds to a set of motor constants.

[0048] For example, before the motor drive device is shipped, the manufacturer may store multiple sets of corresponding motor constants in the storage unit 101 for the multiple motors supported. For example, the multiple sets of motor constants may be high-precision motor constants obtained by measuring the multiple motors supported by the motor drive device in advance. For the specific method of obtaining the multiple sets of motor constants, reference may be made to the relevant technology, which will not be described in detail here.

[0049] By applying voltage to the motor in a prescribed form, the approximate value of the motor constant is calculated according to the detection result, and a group of motor constants corresponding to the motor is selected from multiple groups of motor constants that have been precisely measured in advance according to the calculation result. In this way, the process of obtaining the motor constants of the motor can be simplified, the cost of use can be reduced, and the reliability of the obtained motor constants can be guaranteed.

[0050] Figure 2 is a schematic diagram of a motor drive device and a motor according to an embodiment of the present application. Figure 2 As shown, the motor driving device 201 performs sensorless vector control on the motor 202. The motor driving device 201 includes a driving circuit 110 and a power transistor 120; in addition, the motor driving device 201 also includes a motor controller 100. For the specific contents of the driving circuit 110 and the power transistor 120, reference can be made to the relevant technology, which will not be described in detail here.

[0051] like Figure 2 As shown, in the embodiment of the present application, only the DC current or AC voltage and AC current passing through the shunt resistor can be detected, without the need for a position sensor (such as a Hall sensor) or a current sensor between the motor drive device 201 and the motor 202.

[0052] It is worth noting that the above Figure 2 The motor drive device and the motor of the embodiment of the present application are only schematically described, but the present application is not limited thereto. For example, the connection relationship between the modules or components can be appropriately adjusted, and other modules or components can be added, or some modules or components can be reduced. Those skilled in the art can make appropriate modifications based on the above content, and are not limited to the above attached. Figure 2 About Figure 2 For the circuit connections and specific components, please refer to the relevant technology.

[0053] The motor controller, the motor drive device and the motor according to the embodiment of the present application are exemplarily described above, and the motor constants are exemplarily described below.

[0054] In some embodiments, the one or more motor constants calculated by the calculation unit 103 according to the detection result of the detection unit 102 may include at least the q-axis inductance component of the motor 202. According to the calculated q-axis inductance component, the group of motor constants corresponding to the motor 202 can be accurately selected from the pre-stored multiple groups of motor constants.

[0055] The present application is not limited thereto, and the calculated motor constant may be one or more than one, or the calculated motor constant may also include other motor constants, for example, the motor constant may also include the resistance component R of the motor. aand / or d-axis inductance component L d Etc. Selecting a set of motor constants from a plurality of pre-stored sets of motor constants based on a plurality of calculated motor constants can further improve the accuracy of the selection. a and / or d-axis inductance component L d The motor constant is selected based on the resistance component R a , d-axis inductance component L d and the q-axis inductance component L q These three factors can further improve the accuracy of selecting motor constants.

[0056] In some embodiments, the q-axis inductance component may be determined in various ways. For example, a first DC voltage may be applied between the V phase and the W phase of the motor and the DC current may be detected, and the q-axis inductance component of the motor may be calculated based on the detected DC current (method 1); for another example, a second DC voltage and an AC voltage may be applied to the motor and the AC voltage and AC current may be detected, and the q-axis inductance component of the motor may be calculated based on the detected AC voltage and AC current (method 2); and so on.

[0057] The above-mentioned methods of determining the q-axis inductance component are exemplarily described below.

[0058] Method 1:

[0059] In some embodiments, the detection unit 102 allows a DC current to flow between the V phase and the W phase of the motor, and detects a change in the DC current within a preset time period; the calculation unit 103 calculates the q-axis inductance component according to the change. Thus, the q-axis inductance component of the motor to be used can be accurately calculated.

[0060] In some embodiments, the DC current shows a trend of gradually increasing or decreasing during the preset time period, thereby accurately determining the rate of change of the DC current during the preset time period, and thus accurately calculating the q-axis inductance component.

[0061] Figure 3 is a schematic diagram of the waveform of the phase-to-phase inductance of an embodiment of the present application, Figure 4 FIG. 1 is another schematic diagram of the waveform of the phase-to-phase inductance of an embodiment of the present application. Figure 3 and Figure 4 As shown, the change of the phase-to-phase inductance can be a sine wave, and there is the following relationship between the phase-to-phase inductance and the d-axis inductance component and the q-axis inductance component of the motor:

[0062]

[0063] Among them, L uv is the inductance between the V phase and the U phase of the motor, L d is the d-axis inductance component of the motor, Lq is the q-axis inductance component of the motor, and θ represents the position.

[0064] According to formula 1, L uv The maximum value is 2L q , L uv The minimum value is 2L d .

[0065] according to Figure 3 and Figure 4 , the inductance L between the V phase and U phase of the motor uv The maximum value of the inductance L between the V phase and the W phase of the motor vw The maximum value of the inductance L between the W phase and the U phase of the motor wu The maximum value of is equal; and the inductance L between the V phase and the U phase of the motor uv The minimum value of the inductance L between the V phase and the W phase of the motor vw The minimum value of the inductance L between the W phase and the U phase of the motor wu Therefore, L vw The maximum value is 2L q , L vw The minimum value is 2L d ; L wu The maximum value is 2L q , L wu The minimum value is 2L d .

[0066] The q-axis inductance component of the motor can be calculated by using the relationship between the maximum value of the motor's phase-to-phase inductance and the q-axis inductance component. Similarly, the d-axis inductance component of the motor can also be calculated by using the relationship between the minimum value of the motor's phase-to-phase inductance and the d-axis inductance component. vw The maximum value is 2L q Taking the calculation of the q-axis inductance component by the relationship as an example, the method of determining the q-axis inductance component is exemplarily described.

[0067] Figure 5 is a schematic diagram of the positional relationship between the dq axis and the α-β axis in an embodiment of the present application, Figure 6 FIG. 2 is another schematic diagram of the positional relationship between the dq axis and the α-β axis in the embodiment of the present application. Figure 5 As shown, there is an angle θ1 between the d-axis and the α-axis of the motor, and θ1≠0; Figure 6 As shown, the angle θ1 between the d-axis and the α-axis of the motor is 0.

[0068] Figure 7 is a schematic diagram of the magnetic flux path of an embodiment of the present application, Figure 8 is L in the embodiment of the present application qA schematic diagram of the measurement points. Figure 7 and Figure 8 As shown, when the angle θ1 between the motor's d-axis and α-axis is 0, the U-phase current i u , V phase current i v And W phase current i w Satisfies the following relationship:

[0069] i u =0,i v =-i w (Formula 2)

[0070] The magnetic flux of the armature winding passes through the smallest magnetic resistance (L vw That is, when using L vw The maximum value is 2L q When the q-axis inductance component is calculated based on the relationship, the angle θ1 between the d-axis and the α-axis of the motor is 0. In other words, the detection unit 102 detects the DC current when the d-axis and the α-axis of the motor coincide with each other and the q-axis and the β-axis coincide with each other.

[0071] In V vw and L vw There exists the following relationship:

[0072]

[0073] Among them, L uv is the inductance between the V phase and the U phase of the motor, V vw is the first DC voltage applied between the V phase and the U phase of the motor, L q is the q-axis inductance component of the motor, Δi is the current change, and Δt is the time change.

[0074] According to formula 3, L q It can be expressed as follows:

[0075]

[0076] Since V vw is a known value, is a measurable value, so after determining In the case of the value of, L can be obtained according to the above formula 4 q The value of .

[0077] Fig. 9 Schematic diagram of an equivalent circuit of a motor according to an embodiment of the present application. Fig. 9 As shown, a voltage V (ie, a first DC voltage) can be applied between the V phase and the W phase of the motor, so that a DC current I flows between the V phase and the W phase. aDetect the current I1 at time t1 and use the shunt resistor R a Detect the current I2 at time t2. Calculate Δt and Δi based on the detection results, where Δt = t2-t1, Δi = I2-I1. Calculate L based on voltage V, Δt and Δi using formula 4 q .

[0078] Among them, between the detection time t1 and t2, the current I may show a trend of gradually increasing or gradually decreasing. For example, after the voltage V is applied and before the current I reaches a saturation state, the change of the current I within a preset time period is detected. Among them, the current I may be a V-phase current, or may also be a W-phase current.

[0079] In some embodiments, a voltage V (i.e., a first DC voltage) may be applied between the V phase and the W phase of the motor in various ways. For example, the voltage V may be applied between the V phase and the W phase multiple times in an alternating manner, and the average value of multiple detection values ​​of the DC current I may be used to determine the change in the current I within a preset time period. Thus, the q-axis inductance component L may be further increased. q The accuracy of the calculation results.

[0080] For example, a voltage V may be applied between the V phase and the W phase in the following manner: the U phase is turned off, a voltage is applied to the V phase (turn on duty), and the lower arm of the W phase is turned on, so that a DC current I flows from the V phase to the W phase; the U phase is turned off, the V lower arm is turned on, and the W phase lower arm is turned on, so that the DC current I=0; the U phase is turned off, the V lower arm is turned on, and a voltage is applied to the W phase, so that a DC current I flows from the W phase to the V phase; the U phase is turned off, the V lower arm is turned on, and the W phase lower arm is turned on, so that the DC current I=0. The present application is not limited thereto, and a voltage V may be applied between the V phase and the W phase in other manners.

[0081] The voltage V applied between the V phase and the W phase may be a pulse voltage. The duty cycle of the pulse voltage may be 87.5%, or 75%, or 50%. The present application is not limited thereto, and the duty cycle of the pulse voltage may also be other values.

[0082] In one detection cycle, the voltage V may be applied between the V phase and the W phase for multiple times. For example, if one detection cycle is 600us, the voltage V may be applied between the V phase and the W phase 12 times. The change amount of the current I in the preset time period may be determined by using one detection result in the detection cycle, or the change amount of the current I in the preset time period may be determined by using the average value of multiple detection results.

[0083] It is worth noting that the above is only for the calculation of the q-axis inductance component L in the embodiment of the present application by way 1. qThe above-mentioned formulas are schematically described, but the present application is not limited thereto. For example, the above-mentioned formulas can be appropriately adjusted, and other formulas or methods in related technologies can also be used. Those skilled in the art can make appropriate modifications based on the above-mentioned content, and are not limited to the above-mentioned exemplary implementation methods. In addition, the meaning of each parameter in the above-mentioned formula can also be referred to related technologies.

[0084] Method 2:

[0085] In some embodiments, the detection unit 102 applies a second DC voltage to the d-axis of the motor, applies an AC voltage to the q-axis of the motor, and detects the AC voltage and AC current of the V-phase and / or W-phase of the motor; the calculation unit 103 calculates the q-axis inductance component according to the AC voltage and the AC current. Thus, the q-axis inductance component of the motor to be used can be accurately calculated.

[0086] In some embodiments, the detection unit 102 can detect the peak-to-peak value of the AC voltage and the peak-to-peak value of the AC current; the calculation unit 103 can calculate the phase difference between the AC voltage and the AC current according to the peak-to-peak value of the AC voltage and the peak-to-peak value of the AC current, and calculate the q-axis inductance component according to the phase difference. The present application is not limited to this, and the phase difference between the AC voltage and the AC current can also be calculated in other ways to further calculate the q-axis inductance component.

[0087] In some embodiments, when the q-axis inductance component is calculated using the AC voltage and the AC current, the d-axis of the motor can be kept in a state of being coincident with the α-axis, that is, the angle θ1 between the d-axis and the α-axis is kept at 0. In other words, a second DC voltage can be applied to the d-axis of the motor to keep the rotor of the motor at a position where the d-axis coincides with the α-axis and the q-axis coincides with the β-axis, and a smaller AC voltage is applied to the q-axis of the motor, and the detection unit 102 detects the AC voltage and the AC current.

[0088] The following explains that when θ1 = 0, the d-axis current i d and q-axis current i q With U phase current i u , V phase current i v and W phase current i w The relationship between.

[0089] U phase current i u , V phase current i v and W phase current i w It can be expressed as follows:

[0090] i u =Isin(ωt)

[0091]

[0092]

[0093] Where ω is the current i u 、i v and i w Angular frequency, I current i u 、i v and i w The maximum value of .

[0094] α axis current i α and the β-axis current i β It can be obtained by the U phase current i u , V phase current i v and W phase current i w express:

[0095]

[0096]

[0097] d-axis current i d and q-axis current i q The α-axis current i α and the β-axis current i β express:

[0098] i d =i α cosθ1+i β sinθ1

[0099] i q =-i α sinθ1+i β cosθ1 (Equation 7)

[0100] When θ1 = 0, the d-axis current i d and q-axis current i q It can be expressed as follows:

[0101]

[0102]

[0103] The following explains that when θ1 = 0, the d-axis voltage v d and q-axis voltage v q With U phase voltage v u 、V phase voltage v v and W phase voltage v w , and U phase current i u , V phase current i v and W phase current i w The relationship between.

[0104] d-axis voltage vd and q-axis voltage v q and d-axis current i d and q-axis current i q The following relationship exists:

[0105]

[0106]

[0107]

[0108] Where ω1 is the angular frequency of the rotor.

[0109] When the rotor is stationary, ω1 = 0. Therefore, the above formula 9 can be transformed into:

[0110]

[0111]

[0112] Therefore, the q-axis voltage v q It can be expressed as:

[0113]

[0114]

[0115] Furthermore, the q-axis voltage v q It can be expressed as:

[0116]

[0117] When applying AC theory to the V-phase voltage vv, the following relationship holds:

[0118]

[0119]

[0120]

[0121] X=ωLq=Z sinθ

[0122]

[0123] Where, f is the frequency of the V-phase voltage vv and the W-phase voltage vw, θ is the phase difference between the V-phase voltage vv (AC voltage) and the AC current V-phase current iv (AC current), V V is the peak value of the V-phase voltage vv (AC voltage), I V is the peak value of V-phase current iv (AC voltage), Z is impedance, and X is reactance.

[0124] Since f is a known value, θ is a measurable value, and Z is a value that can be calculated based on the measured values ​​of the V-phase voltage vv and the V-phase current iv. Therefore, L can be obtained according to the above formula 13. q The value of .

[0125] In some embodiments, according to Formula 11 and Formula 12, the V-phase voltage vv and the W-phase voltage vw are respectively q Therefore, the q-axis inductance L can also be calculated by measuring the W-phase AC component of the motor. q The specific calculation method can refer to the above calculation of q-axis inductance L using V-phase AC component. q The method will not be described in detail here.

[0126] Fig.10 is another schematic diagram of an equivalent circuit of a motor according to an embodiment of the present application. Fig.10 As shown, a second DC voltage can be applied to the d-axis of the motor to keep the rotor at a position where the d-axis coincides with the α-axis and the q-axis coincides with the β-axis; an AC voltage is applied to the q-axis of the motor, and the AC voltage and AC current of the V-phase and / or W-phase of the motor are detected, and the peak value V of the AC voltage is determined according to the peak value V V , the peak value of the AC current I V , the frequency f of the AC voltage and AC current, the phase difference θ between the AC voltage and AC current, calculate the q-axis inductance component L q .

[0127] For example, the peak-to-peak value (PP value) of the V-phase voltage vv and the peak-to-peak value (PP value) of the V-phase current iv can be detected, thereby calculating the phase difference θ between the V-phase voltage vv and the V-phase current iv. The present application is not limited thereto, and the phase difference θ can also be determined in other ways.

[0128] Fig.11 This is a schematic diagram of AC voltage and AC current. Fig.11 As shown in (a), the peak value of the AC voltage V V is 8.9V, the peak value of the AC current I V is 80.2mA, and the frequency f of the AC voltage and AC current is 120Hz (the period T is 8.33msec). Fig.11 As shown in (b), in one cycle, the time t' during which the AC voltage leads the AC current is 1.5 msec.

[0129] Based on the above information, the q-axis inductance component L can be calculated as follows q :

[0130] θ=-1.5msec×120Hz×360°=-64.8°

[0131]

[0132] X L =Z×sinθ=111×sin64.8°=100.4=2πfL q

[0133]

[0134] Fig.12 is another schematic diagram of AC voltage and AC current. Fig.12 As shown in (a), the peak value of the AC voltage V V is 12.2V, the peak value of the AC current I V is 128.9mA, and the frequency f of the AC voltage and AC current is 120Hz (the period T is 8.33msec). Fig.12 As shown in (b), in one cycle, the time t' during which the AC voltage leads the AC current is 1.88 msec.

[0135] Based on the above information, the q-axis inductance component L can be calculated as follows q :

[0136] θ=-1.88msec×120Hz×360°=-81°

[0137]

[0138] X L =94.65×sin81°=93.5=2πfL

[0139]

[0140] In some embodiments, when calculating the q-axis inductance component L q When the q-axis inductance component L is calculated, the average value of the multiple detection results of the AC current and AC voltage can be used to further improve the q-axis inductance component L. q For example, the q-axis inductance component L is calculated based on the average of the three detection results of AC current and AC voltage. q The present application is not limited thereto, and calculation can also be performed based on a single test result.

[0141] It is worth noting that the above is only for the calculation of the q-axis inductance component L in the embodiment of the present application by way 2. qThe above-mentioned formulas are schematically described, but the present application is not limited thereto. For example, the above-mentioned formulas can be appropriately adjusted, and other formulas or methods in related technologies can also be used. Those skilled in the art can make appropriate modifications based on the above-mentioned content, and are not limited to the above-mentioned exemplary implementation methods. In addition, the meaning of each parameter in the above-mentioned formula can also be referred to related technologies.

[0142] In some embodiments, the motor constant includes a resistance component R a and / or d-axis inductance component L d In the case of a and the d-axis inductance component L d For example, a DC current can be made to flow between the V phase and the W phase of the motor. After applying the DC voltage for a certain period of time, the DC current is detected when the inductance component of the motor is saturated. The resistance component R is calculated based on the DC current. a Alternatively, the d-axis inductance component L is calculated in a manner similar to the above-mentioned method 1 or method 2. d , which will not be described in detail here.

[0143] For another example, a DC current may be made to flow from the U phase of the motor to the V phase and the W phase. After applying the DC voltage for a certain period of time, the V phase current and the W phase current are detected when the inductance component of the motor is saturated. The resistance component R is calculated based on the V phase current and the W phase current. a Alternatively, direct current is made to flow from the U phase of the motor to the V phase and the W phase, and the elapsed time from the first moment when the direct voltage is applied to the second moment when the sum of the V phase current and the W phase current reaches a predetermined value is detected; and the d-axis inductance component L is calculated based on the elapsed time. d The specific calculation method can refer to the relevant technology and will not be described in detail here.

[0144] In some embodiments, the selection unit 104 selects a certain group of motor constants as the motor constants of the motor when the q-axis inductance component calculated by the calculation unit 103 is within the range of the q-axis inductance component of a certain group of motor constants, and / or the resistance component calculated by the calculation unit 103 is within the range of the resistance component of a certain group of motor constants among the multiple groups of motor constants, and / or the d-axis inductance component calculated by the calculation unit 103 is within the range of the d-axis inductance component of a certain group of motor constants.

[0145] The calculated motor constant is the resistance component R a and the q-axis inductance component L q Take as an example to illustrate the selection of motor constants. Fig.13 is a schematic diagram of the motor constant selection of the embodiment of the present application, for example, with two sets of pre-stored motor constants (such as Fig.13As shown in the motor constants 601 and 602 in FIG. 1 , which correspond to motor 1 and motor 2 respectively), the resistance component R of the first group of motor constants is a and the q-axis inductance component L q The range is shown in 601, and the resistance component R a The minimum value is Ra_MIN_1, the maximum value is Ra_MAX_1, and the q-axis inductance component L q The minimum value is Lq_MIN_1, and the maximum value is Lq_MAX_1; the resistance component R of the second group of motor constants a and the q-axis inductance component L q The range is shown in 602, and the resistance component R a The minimum value is Ra_MIN_2, the maximum value is Ra_MAX_2, and the q-axis inductance component L q The minimum value is Lq_MIN_2 and the maximum value is Lq_MAX_2.

[0146] like Fig.13 As shown, if the calculated resistance component R a and the q-axis inductance component L q As shown in 611, if it is within the range shown in 601, the selection unit 104 can use the first set of motor constants as the motor constants of the motor; if the calculated resistance component R a and the q-axis inductance component L q As shown in 612 , if it is within the range shown in 602 , the selection unit 104 can use the second set of motor constants as the motor constants of the motor.

[0147] Fig.13 The example of multiple motor constants that satisfy the corresponding conditions at the same time is used for explanation, but the present application is not limited thereto. For example, one or several time constants may be given priority in the selection. q When the d-axis inductance component is within the range of a certain set of motor constants, the certain set of motor constants is selected as the motor constant of the motor.

[0148] The above only takes the value range of the motor constant as an example to schematically illustrate how to select the motor constant, but the present application is not limited thereto. For example, the calculation unit 103 can also calculate the resistance component R a and / or d-axis inductance component L d and / or q-axis inductance component L q The first ratio of and the resistance component R of each set of motor constants in the plurality of sets of motor constants are calculated. a and / or d-axis inductance component L d and / or q-axis inductance component L qand, the selection unit 104 selects a set of motor constants whose second ratio is closest to the first ratio as the motor constant of the motor.

[0149] In some embodiments, the storage unit 101 may also pre-store multiple groups of control constants. For example, the storage unit 101 may correspondingly store multiple groups of motor constants and multiple groups of control constants. The control constants include, for example, information for controlling the motor, such as control gain, etc.

[0150] In some embodiments, the selection unit 104 may select a group of control constants corresponding to the current motor from multiple groups of control constants stored in the storage unit 101 according to the calculated one or more motor constants. The method of calculating one or more motor constants and the method of selecting a group of motor constants according to the calculated one or more motor constants may refer to the above content and will not be repeated here.

[0151] The above embodiments are merely exemplary of the embodiments of the present application, but the present application is not limited thereto, and appropriate modifications may be made based on the above embodiments. For example, the above embodiments may be used alone, or one or more of the above embodiments may be combined.

[0152] It can be seen from the above embodiments that a plurality of pre-set motor constants are stored in the motor controller; a first DC voltage is applied between the V phase and the W phase of the motor and a DC current is detected, or a second DC voltage and an AC voltage are applied to the motor and an AC voltage and an AC current are detected; one or more motor constants of the motor are calculated according to the detection results; and a group of motor constants is selected for the motor from the stored plurality of motor constants according to the calculated one or more motor constants. Thus, the motor constant corresponding to the motor can be automatically obtained by applying a first DC voltage between the V phase and the W phase of the motor or applying a second DC voltage and an AC voltage to the motor, the detection process of the motor constant can be omitted, and the motor constant can be obtained in a simple manner; in the process of determining the motor constant, there is no need to use an expensive current sensor, which can reduce the cost of the motor user; in addition, the motor constant is calculated by applying a first DC voltage between the V phase and the W phase of the motor or applying a second DC voltage and an AC voltage to the motor, and a group of motor constants is selected according to the calculated motor constant, which can ensure the reliability of the selected motor constant.

[0153] Embodiments of the second aspect

[0154] The present application also provides a motor control method, which can be performed by a motor controller or a motor drive device. The second aspect of the embodiment corresponds to the motor controller or the motor drive device described in the first aspect of the embodiment. The same content as the first aspect of the embodiment is not repeated here.

[0155] Fig.14 is a schematic diagram of a motor control method according to an embodiment of the present application. Fig.14 As shown, the motor control method includes:

[0156] 1401, storing multiple sets of pre-set motor constants;

[0157] 1402, applying a first DC voltage between a V phase and a W phase of the motor and detecting a DC current, or applying a second DC voltage and an AC voltage to the motor and detecting an AC voltage and an AC current;

[0158] 1403, calculating one or more motor constants of the motor according to the detection result;

[0159] 1404 . Select a set of motor constants for the motor from the stored multiple sets of motor constants based on the calculated one or more motor constants.

[0160] It is worth noting that the above Fig.14 The embodiments of the present application are only schematically described, but the present application is not limited thereto. For example, the execution order of the various operations can be appropriately adjusted, and other operations can be added or some operations can be reduced. Those skilled in the art can make appropriate modifications based on the above content, and are not limited to the above appended claims. Fig.14 Records of.

[0161] In some embodiments, the one or more motor constants include at least a q-axis inductance component of the motor.

[0162] In some embodiments, a first DC voltage is applied between the V phase and the W phase of the motor and the DC current is detected, and one or more motor constants of the motor are calculated based on the detection results, including: allowing the DC current to flow between the V phase and the W phase of the motor, and detecting a change in the DC current within a preset time period, and calculating the q-axis inductance component based on the change.

[0163] In some embodiments, within the preset time period, the DC current tends to gradually increase or decrease.

[0164] In some embodiments, a second DC voltage and an AC voltage are applied to the motor and the AC voltage and the AC current are detected, and one or more motor constants of the motor are calculated based on the detection results, including: applying a second DC voltage to the d-axis of the motor, applying an AC voltage to the q-axis of the motor, and detecting the AC voltage and the AC current of the V-phase and / or W-phase of the motor, and calculating the q-axis inductance component based on the AC voltage and the AC current.

[0165] In some embodiments, the AC voltage and AC current of the V phase and / or W phase of the motor are detected, and the q-axis inductance component is calculated based on the AC voltage and the AC current, including: measuring the peak-to-peak value of the AC voltage and the peak-to-peak value of the AC current; calculating the phase difference between the AC voltage and the AC current based on the peak-to-peak value of the AC voltage and the peak-to-peak value of the AC current, and calculating the q-axis inductance component based on the phase difference.

[0166] In some embodiments, the DC current is detected, or the AC voltage and the AC current are detected, when the d-axis of the motor coincides with the α-axis and the q-axis coincides with the β-axis.

[0167] In some embodiments, the one or more motor constants also include a resistance component and / or a d-axis inductance component of the motor.

[0168] In some embodiments, when the calculated resistance component is within the range of the resistance component of a certain group of motor constants among the multiple groups of motor constants, and / or the calculated d-axis inductance component is within the range of the d-axis inductance component of the certain group of motor constants, and / or the calculated q-axis inductance component is within the range of the q-axis inductance component of the certain group of motor constants, the certain group of motor constants is selected as the motor constant of the motor.

[0169] An embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to implement the motor control method as described in the above embodiment.

[0170] The above embodiments are merely exemplary of the embodiments of the present application, but the present application is not limited thereto, and appropriate modifications may be made based on the above embodiments. For example, the above embodiments may be used alone, or one or more of the above embodiments may be combined.

[0171] It can be seen from the above embodiments that a plurality of pre-set motor constants are stored in the motor controller; a first DC voltage is applied between the V phase and the W phase of the motor and a DC current is detected, or a second DC voltage and an AC voltage are applied to the motor and an AC voltage and an AC current are detected; one or more motor constants of the motor are calculated according to the detection results; and a group of motor constants is selected for the motor from the stored plurality of motor constants according to the calculated one or more motor constants. Thus, the motor constant corresponding to the motor can be automatically obtained by applying a first DC voltage between the V phase and the W phase of the motor or applying a second DC voltage and an AC voltage to the motor, the detection process of the motor constant can be omitted, and the motor constant can be obtained in a simple manner; in the process of determining the motor constant, there is no need to use an expensive current sensor, which can reduce the cost of the motor user; in addition, the motor constant is calculated by applying a first DC voltage between the V phase and the W phase of the motor or applying a second DC voltage and an AC voltage to the motor, and a group of motor constants is selected according to the calculated motor constant, which can ensure the reliability of the selected motor constant.

[0172] The above devices and methods of the embodiments of the present application can be implemented by hardware, or by hardware combined with software. The present application relates to such a computer-readable program, which, when executed by a logic component, enables the logic component to implement the above-mentioned devices or components, or enables the logic component to implement the various methods or steps described above. The present application also relates to a storage medium for storing the above program, such as a hard disk, a disk, an optical disk, a DVD, a flash memory, etc.

[0173] The method / device described in conjunction with the embodiments of the present application may be directly embodied as hardware, a software module executed by a processor, or a combination of the two. For example, one or more of the functional block diagrams shown in the figure and / or one or more combinations of the functional block diagrams may correspond to various software modules of the computer program flow or to various hardware modules. These software modules may correspond to the various steps shown in the figure, respectively. These hardware modules may be implemented by solidifying these software modules, for example, using a field programmable gate array (FPGA).

[0174] The software module may be located in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. A storage medium may be coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium; or the storage medium may be an integral part of the processor. The processor and the storage medium may be located in an ASIC. The software module may be stored in a memory of a mobile terminal or in a memory card that can be inserted into the mobile terminal. For example, if a device (such as a mobile terminal) uses a large-capacity MEGA-SIM card or a large-capacity flash memory device, the software module may be stored in the MEGA-SIM card or the large-capacity flash memory device.

[0175] For one or more of the functional blocks described in the drawings and / or one or more combinations of functional blocks, it can be implemented as a general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component or any appropriate combination thereof for performing the functions described in the present application. For one or more of the functional blocks described in the drawings and / or one or more combinations of functional blocks, it can also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in communication with a DSP, or any other such configuration.

[0176] The present application is described above in conjunction with specific implementation methods, but it should be clear to those skilled in the art that these descriptions are exemplary and are not intended to limit the scope of protection of the present application. Those skilled in the art can make various modifications and variations to the present application based on the spirit and principles of the present application, and these modifications and variations are also within the scope of the present application.

Claims

1. A motor controller, characterized in that: The motor controller comprises: A storage unit storing a plurality of preset motor constants; a detection unit that applies a first DC voltage between a V phase and a W phase of the motor and detects a DC current, or applies a second DC voltage and an AC voltage to the motor and detects an AC voltage and an AC current; a calculation unit, which calculates one or more motor constants of the motor according to the detection result of the detection unit; A selection unit selects a set of motor constants for the motor from the plurality of sets of motor constants stored in the storage unit according to the one or more motor constants calculated by the calculation unit.

2. The motor controller according to claim 1, characterized in that: The one or more motor constants include at least a q-axis inductance component of the motor.

3. The motor controller according to claim 2, characterized in that: The detection unit allows the DC current to flow between the V phase and the W phase of the motor, and detects a change in the DC current within a preset time period; The calculation unit calculates the q-axis inductance component based on the change amount.

4. The motor controller according to claim 3, characterized in that: During the preset time period, the DC current tends to gradually increase or decrease.

5. The motor controller according to claim 2, characterized in that: The detection unit applies a second DC voltage to the d-axis of the motor, applies an AC voltage to the q-axis of the motor, and detects the AC voltage and AC current of the V-phase and / or W-phase of the motor; The calculation unit calculates the q-axis inductance component based on the AC voltage and the AC current.

6. The motor controller according to claim 5, characterized in that: The detection unit detects the peak-to-peak value of the AC voltage and the peak-to-peak value of the AC current; The calculation unit calculates a phase difference between the AC voltage and the AC current based on a peak-to-peak value of the AC voltage and a peak-to-peak value of the AC current, and calculates the q-axis inductance component based on the phase difference.

7. The motor controller according to claim 2, characterized in that: The detection unit detects the DC current, or detects the AC voltage and the AC current in a state where the d-axis and the α-axis of the motor coincide with each other and the q-axis and the β-axis of the motor coincide with each other.

8. The motor controller according to claim 2, characterized in that: The one or more motor constants also include a resistance component and / or a d-axis inductance component of the motor.

9. The motor controller according to claim 8, characterized in that: The selection unit selects the certain group of motor constants as the motor constant of the motor when the resistance component calculated by the calculation unit is within the range of the resistance component of a certain group of motor constants among the multiple groups of motor constants, and / or the d-axis inductance component calculated by the calculation unit is within the range of the d-axis inductance component of the certain group of motor constants, and / or the q-axis inductance component calculated by the calculation unit is within the range of the q-axis inductance component of the certain group of motor constants.

10. A motor drive device for performing sensorless vector control on a motor, the motor drive device comprising a drive circuit and a power transistor, characterized in that: The motor drive device further comprises a motor controller as claimed in any one of claims 1 to 9.

11. A motor control method, characterized in that: The motor control method comprises: Store multiple sets of pre-set motor constants; Applying a first DC voltage between a V phase and a W phase of the motor and detecting a DC current, or applying a second DC voltage and an AC voltage to the motor and detecting an AC voltage and an AC current; Calculate one or more motor constants of the motor according to the detection result; A set of motor constants is selected for the motor from the stored plurality of sets of motor constants based on the calculated one or more motor constants.

12. The motor control method according to claim 11, characterized in that: The one or more motor constants include at least a q-axis inductance component of the motor.

13. The motor control method according to claim 12, characterized in that: Applying a first DC voltage between a V phase and a W phase of the motor and detecting a DC current, and calculating one or more motor constants of the motor according to the detection result, comprises: The direct current is made to flow between the V phase and the W phase of the motor, and a change amount of the direct current within a preset time period is detected, and the q-axis inductance component is calculated according to the change amount.

14. The motor control method according to claim 12, characterized in that: Applying a second DC voltage and an AC voltage to the motor and detecting the AC voltage and the AC current, and calculating one or more motor constants of the motor according to the detection results, comprises: A second DC voltage is applied to the d-axis of the motor, an AC voltage is applied to the q-axis of the motor, and the AC voltage and AC current of the V-phase and / or W-phase of the motor are detected. The q-axis inductance component is calculated based on the AC voltage and the AC current.

15. The motor control method according to claim 12, characterized in that: In a state where the d-axis of the motor coincides with the α-axis and the q-axis coincides with the β-axis, the DC current is detected, or the AC voltage and the AC current are detected.

16. The motor control method according to claim 12, characterized in that: The one or more motor constants also include a resistance component and / or a d-axis inductance component of the motor.

17. The motor control method according to claim 16, characterized in that: When the calculated resistance component is within the range of the resistance component of a certain group of motor constants among the multiple groups of motor constants, and / or the calculated d-axis inductance component is within the range of the d-axis inductance component of the certain group of motor constants, and / or the calculated q-axis inductance component is within the range of the q-axis inductance component of the certain group of motor constants, the certain group of motor constants is selected as the motor constant of the motor.