CONTROL DEVICE AND CONTROL METHOD

DE112022006151T5Pending Publication Date: 2024-10-02NIDEC CORP(JP)
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
DE112022006151
Authority / Receiving Office
DE · DE
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-12-24
Filing Date
2022-12-20
Publication Date
2024-10-02

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

A control device controls an N-phase inverter, which applies a voltage to each of N phases when N is an odd number of three or more. The control device includes a current detection unit and a computation unit. If a phase to which a (N + 1) / 2-t largest voltage is applied at a given current detection time is defined as an intermediate phase, the current detection unit detects a current from each of the (N - 1) phases other than the intermediate phase. The computation unit calculates a current value for the intermediate phase based on a detection result from the current detection unit.
Need to check novelty before this filing date? Find Prior Art

Description

Control device and control method

[0001] The present disclosure relates to a control device and a control method.

[0002] 2. Description of the Related Art Conventionally, microcomputers that control three-phase brushless motors are known (for example, see Patent Document 1).

[0003] In a conventional microcontroller, a PWM generator modulates a 16 kHz carrier wave (triangular wave) based on a voltage command value and outputs a PWM signal for each phase to an inverter circuit. The inverter circuit drives a motor. A shunt resistor is inserted between the emitter of the IGBT on the lower arm of the inverter circuit and ground, and the emitter of the IGBT is connected to the input terminal of an amplifier bias circuit.

[0004] In addition, in conventional microcontrollers, three-phase current signals are provided to two A / D converters, and each converter switches between inputs of one of the current signals and performs A / D conversion, thereby simultaneously obtaining A / D converted values ​​for two phases. Since current detection using a shunt resistor is only possible while the IGBT on the lower arm is on, A / D conversion is performed when the PWM carrier wave reaches the trough of the triangular wave. If two of the three-phase currents can be detected, the remaining phase can be estimated.

[0005] Japanese Patent Application Laid-Open No. 2003-164197

[0006] However, in conventional microcontrollers, of the three phase voltages during two-phase modulated wave energization, at the current detection time, the current of the middle phase corresponding to the second largest phase voltage and the current of the minimum phase corresponding to the smallest phase voltage are detected.

[0007] In particular, the inventors of the present application have found that fluctuations in the current of the middle phase are greater than fluctuations in the current of the smallest phase. Additionally, the inventors of the present application have found that current disturbances are more likely to occur near the zero crossings of the current. Based on this finding, the error in the detection result of the current of the middle phase may be greater than the error in the detection result of the current of the smallest phase. In other words, with conventional microcomputers, variations may occur in the detection values ​​of the currents flowing through each phase.

[0008] The present disclosure has been made in view of the above-mentioned problems, and has an object to provide a control device and a control method that can suppress variations in the detected values ​​of the currents flowing through the phases.

[0009] A control device exemplary of the present disclosure controls an N-phase inverter that applies a voltage to each of N phases, where N is an odd number equal to or greater than 3. The control device includes a current detection unit and a calculation unit. The current detection unit detects currents in (N-1) phases other than the intermediate phase among the currents applied to the N phases when the phase that applies the (N+1) / 2 largest voltage at a current detection time is defined as an intermediate phase. The calculation unit calculates a current value of the current in the intermediate phase based on the detection result of the current detection unit.

[0010] An exemplary control method of the present disclosure is executed by a control device that controls an N-phase inverter that applies a voltage to each of N phases, where N is an odd number greater than or equal to 3. The control method includes a current detection step and a calculation step. In the current detection step, when a phase that applies the (N+1) / 2 largest voltage among the voltages applied to each of the N phases at a current detection time is defined as an intermediate phase, currents of (N-1) phases other than the current of the intermediate phase are detected among the currents of the N phases. In the calculation step, a current value of the current of the intermediate phase is calculated based on the detection result in the current detection step.

[0011] According to the exemplary embodiment of the present disclosure, it is possible to suppress variations in the detected values ​​of the currents flowing through the phases.

[0012] FIG. 1 is a block diagram showing a motor module according to a first embodiment of the present disclosure. FIG. 2 is a diagram showing waveforms of voltages (three-phase modulation) applied to each phase and waveforms of currents of each phase in the first embodiment. FIG. 3 is a circuit diagram showing a three-phase inverter according to the first embodiment. FIG. 4 is a diagram showing an example of voltages (three-phase modulation), carrier waves, and compare values ​​applied to each phase in the first embodiment. FIG. 5 is a diagram showing transitions of an intermediate phase, a maximum phase, and a minimum phase in an electrical angle range of 0 degrees E to 360 degrees E in the first embodiment. FIG. 6 is a diagram showing an example of voltages (three-phase modulation), carrier waves, compare values, and second gate signals applied to each phase in the first embodiment. FIG. 7 is a diagram showing another example of voltages (three-phase modulation), carrier waves, compare values, and second gate signals applied to each phase in the first embodiment. FIG. 8 is a diagram showing a current detection unit according to the first embodiment. FIG. 9 is a diagram illustrating an example of a voltage (two-phase modulation min type), a carrier wave, a compare value, and a second gate signal applied to each phase in a first modified example of the first embodiment. FIG. 10 is a diagram illustrating another example of a voltage (two-phase modulation min type), a carrier wave, a compare value, and a second gate signal applied to each phase in a first modified example of the first embodiment. FIG. 11 is a diagram illustrating an example of a voltage (two-phase modulation min-max type), a carrier wave, a compare value, and a second gate signal applied to each phase in a second modified example of the first embodiment. FIG. 12 is a diagram illustrating another example of a voltage (two-phase modulation min-max type), a carrier wave, a compare value, and a second gate signal applied to each phase in a second modified example of the first embodiment. FIG. 13 is a block diagram illustrating a motor module according to a second embodiment of the present disclosure. FIG. 14 is a diagram illustrating an example of a carrier wave and a compare value according to the second embodiment. FIG. 15 is a diagram illustrating another example of a carrier wave and a compare value according to the second embodiment. Fig. 16 is a flowchart showing a phase determination process for determining a phase in which a current is to be directly detected in embodiment 2. Fig. 17 is a flowchart showing a current value calculation process for calculating a current value of an undetected current in embodiment 2. Fig. 18 is a diagram showing an example of a voltage (five-phase modulation), a carrier wave, and a compare value to be applied to each phase in embodiment 2.Fig. 19 is a diagram showing changes in the order of magnitude of P1 phase to P5 phase in the electrical angle range of 0 [degE] to 360 [degE] in five-phase modulation according to embodiment 2. Fig. 20 is a diagram showing a motor module according to embodiment 3 of the present disclosure. Fig. 21 is a diagram showing a current sensor unit according to embodiment 3. Fig. 22 is a diagram showing a current sensor unit according to embodiment 4 of the present disclosure. Fig. 23 is a diagram showing a current detection unit according to embodiment 4.

[0013] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. In the drawings, the same or corresponding parts are designated by the same reference characters and description thereof will not be repeated.

[0014] (First embodiment) A motor module 200 according to a first embodiment of the present disclosure will be described with reference to Figures 1 to 8. Figure 1 is a block diagram showing a motor module 200 according to the first embodiment.

[0015] As shown in FIG. 1 , the motor module 200 includes a control device 100 and a three-phase motor M3. The control device 100 controls a three-phase inverter 1 that applies voltages Vu, Vv, and Vw to the three phases, respectively. The three phases are a U-phase, a V-phase, and a W-phase. The voltage Vu is a U-phase voltage, the voltage Vv is a V-phase voltage, and the voltage Vw is a W-phase voltage. Hereinafter, the voltages Vu, Vv, and Vw may be referred to as applied voltages Vu, Vv, and Vw. In the example of FIG. 1 , the control device 100 includes the three-phase inverter 1. The three-phase inverter 1 is connected to a DC power supply unit PW.

[0016] In this specification, as an example, the three-phase inverter 1 applies voltages Vu, Vv, and Vw of different phases to the U, V, and W phases of the three-phase motor M3 to drive the three-phase motor M3. Currents Iu, Iv, and Iw corresponding to the voltages Vu, Vv, and Vw flow through the U, V, and W phases of the three-phase motor M3. The current Iu is the U-phase current, the current Iv is the V-phase current, and the current Iw is the W-phase current.

[0017] The three-phase motor M3 includes three-phase coils CLu, CLv, and CLw. Coil CLu is a U-phase coil, coil CLv is a V-phase coil, and coil CLw is a W-phase coil. The three-phase motor M3 is, for example, a brushless DC motor. The three-phase motor M3 has U-phase, V-phase, and W-phase. Regarding the polarities of currents Iu, Iv, and Iw, the polarity of current flowing from the three-phase inverter 1 to the neutral point NP of the three-phase motor M3 is positive, and the polarity of current flowing from the neutral point NP to the three-phase inverter 1 is negative.

[0018] The three-phase inverter 1 may drive other electrical equipment, not limited to the three-phase motor M3. The three-phase inverter 1 may also be disposed outside the control device 100.

[0019] FIG. 2 shows waveforms of voltages Vu, Vv, and Vw applied to each phase and waveforms of currents Iu, Iv, and Iw of each phase. As shown in FIG. 2, waveform diagram F1 shows voltages Vu, Vv, and Vw applied to each phase. In waveform diagram F1, the horizontal axis represents electrical angle [degE], and the vertical axis represents voltages Vu, Vv, and Vw. For ease of explanation, the vertical axis of waveform diagram F1 represents voltage values ​​normalized by input voltage V1-V2, and voltages Vu, Vv, and Vw range in value from 0 to 1. As shown in waveform diagram F1, voltages Vu, Vv, and Vw are sinusoidal. The voltages Vu, Vv, and Vw are in phase with one another. In embodiment 1, energization is performed using a three-phase modulation method.

[0020] Waveform diagram F2 shows the currents Iu, Iv, and Iw of each phase. In waveform diagram F2, the horizontal axis represents the electrical angle [degE], and the vertical axis represents the currents Iu, Iv, and Iw [a.u.]. The phases of the currents Iu, Iv, and Iw lag behind the phases of the voltages Vu, Vv, and Vw, respectively. Waveform diagram F2 shows that the currents Iu, Iv, and Iw are disturbed near the zero crossing Z of the currents Iu, Iv, and Iw.

[0021] The zero crossing Z occurs at the intermediate phase of the voltages Vu, Vv, and Vw. The intermediate phase is the phase in which the second-largest voltage among the voltages Vu, Vv, and Vw is applied. For example, at a timing when the electrical angle is approximately 60 degrees E, the intermediate phase is the phase (W-phase) in which the second-largest voltage Vw is applied. For example, at a timing when the electrical angle is approximately 180 degrees E, the intermediate phase is the phase (U-phase) in which the second-largest voltage Vu is applied. For example, at a timing when the electrical angle is approximately 300 degrees E, the intermediate phase is the phase (V-phase) in which the second-largest voltage Vv is applied.

[0022] In the first embodiment, of the currents Iu, Iv, and Iw, the currents of two phases other than the middle phase are detected, and the current of the middle phase is calculated based on the current values ​​of the currents of the two phases other than the middle phase. As a result, errors in the current of the middle phase caused by the zero crossing Z, etc. can be suppressed. The two phases other than the middle phase are the maximum phase and the minimum phase.

[0023] The maximum phase is the phase to which the largest voltage of the voltages Vu, Vv, and Vw is applied. For example, at a timing when the electrical angle is approximately 60 degrees E, the maximum phase is the phase (U phase) to which the largest voltage Vu is applied. For example, at a timing when the electrical angle is approximately 180 degrees E, the maximum phase is the phase (V phase) to which the largest voltage Vv is applied. For example, at a timing when the electrical angle is approximately 300 degrees E, the maximum phase is the phase (W phase) to which the largest voltage Vw is applied.

[0024] The minimum phase is the phase to which the smallest voltage of voltages Vu, Vv, and Vw is applied. For example, at a timing when the electrical angle is approximately 60 degrees E, the minimum phase is the phase (V phase) to which the smallest voltage Vv is applied. For example, at a timing when the electrical angle is approximately 180 degrees E, the minimum phase is the phase (W phase) to which the smallest voltage Vw is applied. For example, at a timing when the electrical angle is approximately 300 degrees E, the minimum phase is the phase (U phase) to which the smallest voltage Vu is applied.

[0025] Returning to FIG. 1 , the control device 100 further includes a calculation unit 21 and a current detection unit 26. When the phase to which the second-largest voltage is applied at the current detection time among the voltages Vu, Vv, and Vw applied to each of the three phases is defined as an intermediate phase, the current detection unit 26 detects currents of two phases other than the intermediate phase among the currents Iu, Iv, and Iw of the three phases. The two phases other than the intermediate phase are the maximum phase and the minimum phase. The maximum phase is the phase to which the largest voltage is applied among the voltages Vu, Vv, and Vw applied to each of the three phases at the current detection time. The minimum phase is the phase to which the smallest voltage is applied among the voltages Vu, Vv, and Vw applied to each of the three phases at the current detection time. In the first embodiment, the current detection unit 26 detects currents of the maximum phase and the minimum phase, which have smaller current fluctuations and disturbances than the intermediate phase, among the currents Iu, Iv, and Iw, rather than the current of the intermediate phase, which has relatively large current fluctuations and disturbances. Therefore, errors in the detection results of the currents Iu, Iv, and Iw that are directly detected are suppressed.

[0026] The calculation unit 21 then calculates the current value Imid of the intermediate phase current based on the detection result of the current detection unit 26. Specifically, the calculation unit 21 calculates the current value Imid of the intermediate phase current from the sum Isum of the current value of the maximum phase current and the current value of the current of the minimum phase based on Kirchhoff's law. Imid = -Isum. As described above, in the first embodiment, the calculation unit 21 calculates the intermediate phase current from the detection results of the maximum and minimum phase currents Iu, Iv, and Iw, which have reduced detection result errors compared to the intermediate phase current. In other words, the intermediate phase current is detected indirectly. Therefore, errors in the detection results of the intermediate phase current can be reduced compared to when the intermediate phase current is directly detected. As a result, variations in the detection values ​​of the currents Iu, Iv, and Iw flowing through each phase can be reduced.

[0027] The control device 100 further includes a carrier wave generating unit 22, a driving unit 23, a comparing unit 24, and a switching unit 25. Specifically, the control device 100 includes an inverter control unit 2. The inverter control unit 2 includes a calculating unit 21, a carrier wave generating unit 22, a driving unit 23, a comparing unit 24, a switching unit 25, and a current detecting unit 26. The inverter control unit 2 is, for example, a microcomputer. The microcomputer is, for example, a hardware circuit configured with a processor such as a CPU (Central Processing Unit), a semiconductor memory, an ASIC (Application Specific Integrated Circuit), an A / D converter (ADC: Analog-to-Digital Converter), and various electronic components.

[0028] Specifically, each of the calculation unit 21, the carrier wave generation unit 22, the drive unit 23, the comparison unit 24, and the switching unit 25 may be realized by wired logic in a microcomputer, by a processor executing a computer program stored in a semiconductor memory, or by a combination thereof. Also, for example, the current detection unit 26 is realized by an A / D converter.

[0029] Next, the driver 23 and the three-phase inverter 1 will be described with reference to FIGS. 1 and 3. FIG. 3 is a circuit diagram showing the three-phase inverter M3. As shown in FIG. 3, the driver 23 outputs a PWM (Pulse Width Modulation) signal Spwm to the three-phase inverter 1. As a result, the three-phase inverter 1 is driven by the PWM signal Spwm. The PWM signal Spwm includes first gate signals G1u, G1v, and G1w and second gate signals G2u, G2v, and G2w.

[0030] Specifically, the three-phase inverter 1 includes three switching units Uu, Uv, and Uv. The switching units Uu, Uv, and Uv apply voltages Vu, Vv, and Vw to the three phases, respectively. Specifically, the switching units Uu, Uv, and Uv apply voltages Vu, Vv, and Vw of different phases to three-phase coils CLu, CLv, and CLw ( FIG. 1 ), respectively. The switching units Uu, Uv, and Uv are connected in parallel between a first power supply line LN1 and a second power supply line LN2.

[0031] Each of the switching units Uu, Uv, and Uv includes a first switching element SW1 on the first voltage V1 side of the DC power supply unit PW and a second switching element SW2 on the second voltage V2 side of the DC power supply unit PW. The second switching element SW2 is connected in series with the first switching element SW1. Specifically, the first switching element SW1 and the second switching element SW2 are connected in series between a first power supply line LN1 and a second power supply line LN2. A first voltage V1 is supplied to the first power supply line LN1 from the DC power supply unit PW. A second voltage V2 is supplied to the second power supply line LN2 from the DC power supply unit PW. In the example of FIG. 1 , the second voltage V2 is smaller than the first voltage V1. For example, the second voltage V2 is a ground voltage (0 V).

[0032] Here, the control device 100 further includes three electrical resistance units Ru, Rv, and Rw for detecting the currents Iu, Iv, and Iw of the three phases, respectively. The electrical resistance units Ru, Rv, and Rw may be individually or collectively referred to as an electrical resistance unit R. Specifically, the control device 100 includes a current sensor unit 3 for detecting the currents Iu, Iv, and Iw of the three phases, respectively. The current sensor unit 3 includes the electrical resistance units Ru, Rv, and Rw. Therefore, the first switching element SW1, the second switching element SW2, and the electrical resistance unit Ru of the switching unit Uu are connected in series between the first power supply line LN1 and the second power supply line LN2. The first switching element SW1, the second switching element SW2, and the electrical resistance unit Rv of the switching unit Uv are connected in series between the first power supply line LN1 and the second power supply line LN2. The first switching element SW1, the second switching element SW2 and the electrical resistance part Rw of the switching unit Uw are connected in series between the first power supply line LN1 and the second power supply line LN2.

[0033] Each of the first switching element SW1 and the second switching element SW2 is a semiconductor switching element. In the example of Fig. 3, each of the first switching element SW1 and the second switching element SW2 is an IGBT (insulated gate bipolar transistor). However, each of the first switching element SW1 and the second switching element SW2 may be another type of transistor, such as a field effect transistor.

[0034] The collector of the first switching element SW1 is connected to the first power supply line LN1. The emitter of the first switching element SW1 and the collector of the second switching element SW2 are connected at a connection point N.

[0035] The connection point N of the switching unit Uu is connected to the coil CLu (FIG. 1) of the three-phase motor M3. The connection point N of the switching unit Uv is connected to the coil CLv (FIG. 1) of the three-phase motor M3. The connection point N of the switching unit Uw is connected to the coil CLw (FIG. 1) of the three-phase motor M3.

[0036] The emitter of the second switching element SW2 of the switching unit Uu is connected to one terminal of the electrical resistance portion Ru at a connection point N1. The emitter of the second switching element SW2 of the switching unit Uv is connected to one terminal of the electrical resistance portion Rv at a connection point N2. The emitter of the second switching element SW2 of the switching unit Uw is connected to one terminal of the electrical resistance portion Rw at a connection point N3. The other terminals of the electrical resistance portions Ru, Rv, and Rw are connected to the second power supply line LN2.

[0037] The first gate signals G1u, G1v, and G1w are input to the gates of the first switching elements SW1 of the switching units Uu, Uv, and Uw, respectively. The first switching elements SW1 of the switching units Uu, Uv, and Uw are turned on when the first gate signals G1u, G1v, and G1w are at a high level. The first switching elements SW1 of the switching units Uu, Uv, and Uw are turned off when the first gate signals G1u, G1v, and G1w are at a low level.

[0038] The second gate signals G2u, G2v, and G2w are input to the gates of the second switching elements SW2 of the switching units Uu, Uv, and Uw, respectively. The second switching elements SW2 of the switching units Uu, Uv, and Uw are turned on when the second gate signals G2u, G2v, and G2w are at a high level, and turned off when the second gate signals G2u, G2v, and G2w are at a low level.

[0039] The polarities of the second gate signals G2u, G2v, and G2w are basically opposite to the polarities of the first gate signals G1u, G1v, and G1w, respectively. That is, the second gate signals G2u, G2v, and G2w and the first gate signals G1u, G1v, and G1w are basically complementary to each other. However, with respect to the first gate signals G1u, G1v, and G1w and the second gate signals G2u, G2v, and G2w, a period (dead time) during which both the first gate signal and the second gate signal are at a low level may be provided when the first switching element SW1 and the second switching element SW2 are switched on and off. The dead time is provided to prevent a short circuit between the first power supply line LN1 and the second power supply line LN2 due to the influence of the rise time and fall time required for each of the first switching element SW1 and the second switching element SW2.

[0040] A rectifying element D is connected in parallel to each of the first switching element SW1 and the second switching element SW2, with the cathode on the first power supply line LN1 side and the anode on the second power supply line LN2 side. When field effect transistors are used as the first switching element SW1 and the second switching element SW2, parasitic diodes may be used as the rectifying elements.

[0041] Continuing with reference to FIG. 3 , the electrical resistance units Ru, Rv, and Rw will be described. The electrical resistance units Ru, Rv, and Rw are resistance components (e.g., resistive elements) for detecting currents Iu, Iv, and Iw flowing through the three-phase coils CLu, CLv, and CLw ( FIG. 1 ), respectively, via the three-phase inverter 1. In the first embodiment, the control device 100 can be implemented inexpensively by using the electrical resistance units Ru, Rv, and Rw as current sensors. Each of the electrical resistance units Ru, Rv, and Rw is, for example, a shunt resistor. Specifically, at each current detection time, two of the three electrical resistance units Ru, Rv, and Rw are used.

[0042] The electrical resistance units Ru, Rv, and Rw are arranged corresponding to the switching units Uu, Uv, and Uw, respectively. The electrical resistance unit Ru is arranged between the second switching element SW2 of the switching unit Uu and the DC power supply unit PW. The electrical resistance unit Rv is arranged between the second switching element SW2 of the switching unit Uv and the DC power supply unit PW. The electrical resistance unit Rw is arranged between the second switching element SW2 of the switching unit Uw and the DC power supply unit PW.

[0043] The control device 100 further includes signal lines LNu, LNv, and LNw. The signal line LNu extends from a connection point N1 of the electrical resistance unit Ru to the current detection unit 26. The signal line LNv extends from a connection point N2 of the electrical resistance unit Rv to the current detection unit 26. The signal line LNw extends from a connection point N3 of the electrical resistance unit Rw to the current detection unit 26.

[0044] When detecting the current Iu, the current detection unit 26 detects the potential difference across the electrical resistance unit Ru through which the current Iu flows via the signal line LNu. The potential difference across the electrical resistance unit Ru is caused by a voltage drop across the electrical resistance unit Ru. The current detection unit 26 then converts the potential difference across the electrical resistance unit Ru into a current to obtain the current value of the current Iu. Note that, in order to detect the current Iu using the electrical resistance unit Ru, the second switching element SW2 of the switching unit Uu must be on. Alternatively, the calculation unit 21 may convert the potential difference across the electrical resistance unit Ru into the current Iu.

[0045] When detecting the current Iv, the current detection unit 26 detects the potential difference across the electrical resistance unit Rv through which the current Iv flows via the signal line LNv. The current detection unit 26 then converts the potential difference across the electrical resistance unit Rv into a current to obtain the current value of the current Iv. Note that, in order to detect the current Iv using the electrical resistance unit Rv, the second switching element SW2 of the switching unit Uv must be on. Alternatively, the calculation unit 21 may convert the potential difference across the electrical resistance unit Rv into the current Iv. Otherwise, the detection of the current Iv is similar to the detection of the current Iu.

[0046] When detecting the current Iw, the current detection unit 26 detects the potential difference across the electrical resistance unit Rw through which the current Iw flows via the signal line LNw. The current detection unit 26 then converts the potential difference across the electrical resistance unit Rw into a current to obtain the current value of the current Iw. Note that, in order to detect the current Iw using the electrical resistance unit Rw, the second switching element SW2 of the switching unit Uw must be on. Alternatively, the calculation unit 21 may convert the potential difference across the electrical resistance unit Rw into the current Iw. Otherwise, the detection of the current Iw is similar to the detection of the current Iu.

[0047] The control device 100 further includes a capacitor C. The capacitor C is connected between the first power supply line LN1 and the second power supply line LN2. The capacitor C stabilizes the power supply current from the DC power supply unit PW.

[0048] 1 , the calculation unit 21 calculates voltage command values ​​Vbu, Vbv, and Vbw corresponding to the U phase, V phase, and W phase, respectively, and outputs the voltage command values ​​Vbu, Vbv, and Vbw to the comparison unit 24.

[0049] The voltage command values ​​Vbu, Vbv, and Vbw respectively indicate the voltage values ​​of the voltages Vu, Vv, and Vw output by the three-phase inverter 1. Therefore, the voltage command values ​​Vbu, Vbv, and Vbw substantially coincide with the voltage values ​​of the voltages Vu, Vv, and Vw output by the three-phase inverter 1. In particular, the voltage command values ​​Vbu, Vbv, and Vbw indicate voltage values ​​that the voltages Vu, Vv, and Vw applied to the U phase, V phase, and W phase, respectively, should follow. In this specification, the voltage command values ​​Vbu, Vbv, and Vbw are substantially synonymous with the applied voltages Vu, Vv, and Vw.

[0050] The calculation unit 21 calculates compare values ​​CMu, CMv, and CMw based on the voltage command values ​​Vbu, Vbv, and Vbw. Therefore, the compare values ​​CMu, CMv, and CMw correspond to the voltage command values ​​Vbu, Vbv, and Vbw, respectively. The compare values ​​CMu, CMv, and CMw directly or indirectly indicate the duty cycles of the first gate signals G1u, G1v, and G1w in the PWM signal Spwm. Specifically, the duty cycles indicate the ratios of the on-time of the first switching elements SW1 of each phase to a predetermined PWM period Tpwm. The PWM period Tpwm is the period of the PWM signal Spwm. Specifically, the PWM period Tpwm is the period of the first gate signals G1u, G1v, and G1w and the second gate signals G2u, G2v, and G2w. The calculation unit 21 outputs the comparison values ​​CMu, CMv, and CMw to the drive unit 23 .

[0051] The carrier wave generating unit 22 generates a carrier wave CA. The carrier wave generating unit 22 outputs the carrier wave CA to the driving unit 23. The carrier wave CA is, for example, a triangular wave. Note that the waveform of the carrier wave CA is not particularly limited.

[0052] FIG. 4 shows an example of the voltages Vu, Vv, and Vw applied to each phase, the carrier wave CA, and the compare values ​​CMu, CMv, and CMw. Waveform diagram F10 in FIG. 4 shows the voltages Vu, Vv, and Vw applied to the U, V, and W phases. In waveform diagram F10, the horizontal axis represents the electrical angle [degE], and the vertical axis represents the voltages Vu, Vv, and Vw. The vertical axis of waveform diagram F10 represents the voltage value normalized by the input voltage V1-V2, and the voltages Vu, Vv, and Vw range from 0 to 1. This value also represents the duty value, which is the ratio of the on-time of the first switching element SW1 of each phase to the PWM period Tpwm. As shown in waveform diagram F10, the voltages Vu, Vv, and Vw are sinusoidal. The voltages Vu, Vv, and Vw are in different phases.

[0053] In FIG. 4, the right area of ​​waveform chart F10 shows the carrier wave CA and the compare values ​​CMu, CMv, and CMw in the electrical angle range (time range) shown in area A1 of waveform chart F10.

[0054] As shown in Figure 4, the PWM period Tpwm is equal to the period of the carrier wave CA. In the example of Figure 4, the period from one minimum point of the carrier wave CA to the next minimum point represents the PWM period Tpwm. The PWM period Tpwm is not limited to, but may be, for example, 50 μs. Note that the start and end points of the PWM period Tpwm are not limited to the minimum points of the carrier wave CA and can be set arbitrarily.

[0055] The control period Tcnt is determined by the period of the carrier wave CA. The control period Tcnt is a period for updating the duty value of the PWM signal Spwm. Therefore, the duty value of the PWM signal Spwm is updated every control period Tcnt. In other words, the compare values ​​CMu, CMv, CMw and the voltage command values ​​Vbu, Vbv, Vbw are updated every control period Tcnt. The control period Tcnt is longer than the PWM period Tpwm. In the example of FIG. 4, the control period Tcnt is an integer multiple of the PWM period Tpwm. However, the control period Tcnt does not have to be an integer multiple of the PWM period Tpw. The compare values ​​CMu, CMv, CMw determined every control period Tcnt may be updated, for example, at a timing determined by the microcomputer used as the inverter control unit 2. In this case, the timing determined by the microcomputer is, for example, the minimum point of the carrier wave CA. The control period Tcnt is not particularly limited, but is, for example, 200 μs. In the example of FIG. 4, the start and end points of the control period Tcnt are the minimum points of the carrier wave CA. The start and end points of the control period Tcnt are not limited to the minimum points of the carrier wave CA, and can be set arbitrarily.

[0056] Returning to FIG. 1 , the driver 23 generates a PWM signal Spwm based on the carrier wave CA and the compare values ​​CMu, CMv, and CMw. Specifically, the driver 23 compares each of the compare values ​​CMu, CMv, and CMw with the carrier wave CA and generates the PWM signal Spwm based on the comparison result. This will be described in detail later. The driver 23 then outputs the PWM signal Spwm to the three-phase inverter 1 to drive the three-phase inverter 1. As a result, the three-phase inverter 1 applies voltages Vu, Vv, and Vw, which are indicated by voltage command values ​​Vbu, Vbv, and Vbw, respectively, to the three-phase coils CLu, CLv, and CLw.

[0057] Furthermore, the driving unit 23 generates a trigger TG in synchronization with the carrier wave CA and outputs it to the current detecting unit 26. The trigger TG indicates to the current detecting unit 26 that a current detection time has arrived. For example, the driving unit 23 generates a trigger TG at the timing when a maximum point occurs in the carrier wave CA and outputs the trigger TG to the current detecting unit 26. Note that the event for generating the trigger TG is not limited to a maximum point and can be set arbitrarily.

[0058] The current detection unit 26 detects the current via the current sensor unit 3 in response to the trigger TG generated by the drive unit 23. The time at which the trigger TG is generated is the current detection time. Specifically, as shown in FIG. 4 , the current detection unit 26 detects the currents of each phase flowing through the two electrical resistance units R connected to the two second switching elements SW2 ( FIG. 3 ) that are turned on at a current detection time td synchronized with the carrier wave CA for generating the PWM signal Spwm. In the example of FIG. 4 , the current detection time td is the time at which a maximum point of the carrier wave CA occurs. Note that, in this specification, the electrical angle [degE] can be considered to represent time in terms of an angle.

[0059] For ease of explanation, the magnitude relationship between the compare values ​​CMu, CMv, and CMw is set to match the magnitude relationship between the voltage command values ​​Vbu, Vbv, and Vbw (applied voltages Vu, Vv, and Vw) in the example of Fig. 4. Therefore, for ease of explanation, the comparison unit 24 in Fig. 1 will be described by regarding the lines representing the compare values ​​CMu, CMv, and CMw in Fig. 4 as lines representing the voltage command values ​​Vbu, Vbv, and Vbw (applied voltages Vu, Vv, and Vw).

[0060] The comparator 24 compares the voltage command values ​​Vbu, Vbv, and Vbw of the three phases at each current detection time td to determine the order of magnitude of each of the voltage command values ​​Vbu, Vbv, and Vbw. In other words, the comparator 24 compares the voltages Vu, Vv, and Vw applied to the U phase, V phase, and W phase, respectively, at each current detection time td to determine the order of magnitude of each of the voltages Vu, Vv, and Vw. In other words, the comparator 24 determines the middle phase, maximum phase, and minimum phase from among the U phase, V phase, and W phase. For example, in the center control period Tcnt in FIG. 4 , the W phase is the middle phase, the V phase is the maximum phase, and the U phase is the minimum phase.

[0061] FIG. 5 is a diagram showing transitions of the intermediate phase, maximum phase, and minimum phase in the electrical angle range of 0 degrees E to 360 degrees E. The horizontal and vertical axes in FIG. 5 are the same as the horizontal and vertical axes of the waveform diagram F10 shown in FIG. 4. In the example of FIG. 5, the combination of the intermediate phase, maximum phase, and minimum phase changes every 60 degrees E. For example, in the electrical angle range of 150 degrees E to 210 degrees E, the comparator 24 determines the U phase as the intermediate phase, the V phase as the maximum phase, and the W phase as the minimum phase.

[0062] Next, the driver 23, comparator 24, switch 25, and current detector 26 will be described with reference to FIGS. 1, 6, and 7. FIG. 6 shows examples of voltages Vu, Vv, and Vw applied to each phase, carrier wave CA, compare values ​​CMu, CMv, and CMw, and second gate signals G2u, G2v, and G2w. Waveform diagram F20 in FIG. 6 shows voltages Vu, Vv, and Vw applied to the U phase, V phase, and W phase. The horizontal and vertical axes of waveform diagram F20 are the same as the horizontal and vertical axes of waveform diagram F10 in FIG. 4.

[0063] In Fig. 6, the right region of waveform diagram F20 shows the carrier wave CA and the compare values ​​CMu, CMv, and CMw for the electrical angle range (time range) shown in region A2 of waveform diagram F10. Also shown are second gate signals G2u, G2v, and G2w to be applied to the second switching elements SW of the switching units Uu, Uv, and Uw, respectively, corresponding to the carrier wave CA and the compare values ​​CMu, CMv, and CMw. For convenience, in Fig. 6, as in Fig. 4, the comparison unit 24 will be described by regarding the lines representing the compare values ​​CMu, CMv, and CMw as lines representing the voltage command values ​​Vbu, Vbv, and Vbw (applied voltages Vu, Vv, and Vw).

[0064] 6 , the driver 23 compares the compare value CMu with the carrier wave CA, the compare value CMv with the carrier wave CA, and the compare value CMw with the carrier wave CA in each PWM period Tpwm. As a result, first gate signals G1u, G1v, G1w and second gate signals G2u, G2v, G2w are generated. In the first embodiment, the driver 23 generates the first gate signals G1u, G1v, G1w and second gate signals G2u, G2v, G2w by a center-aligned method.

[0065] 6, when the compare value CMu is less than the level of the carrier wave CA, the drive unit 23 sets the second gate signal G2u to a high level (the first gate signal G1u to a low level). On the other hand, when the compare value CMu is equal to or greater than the level of the carrier wave CA, the drive unit 23 sets the second gate signal G2u to a low level (the first gate signal G1u to a high level).

[0066] 6, when the compare value CMv is less than the level of the carrier wave CA, the drive unit 23 sets the second gate signal G2v to a high level (the first gate signal G1v to a low level). On the other hand, when the compare value CMv is equal to or greater than the level of the carrier wave CA, the drive unit 23 sets the second gate signal G2v to a low level (the first gate signal G1v to a high level).

[0067] 6, when the compare value CMw is less than the level of the carrier wave CA, the drive unit 23 sets the second gate signal G2w to a high level (the first gate signal G1w to a low level). On the other hand, when the compare value CMw is equal to or greater than the level of the carrier wave CA, the drive unit 23 sets the second gate signal G2w to a low level (the first gate signal G1w to a high level).

[0068] The comparator 24 determines the intermediate phase, maximum phase, and minimum phase based on the comparison result of the voltage command values ​​Vbu, Vbv, and Vbw for each current detection time td. In the example of Fig. 6, at the current detection time td, the intermediate phase is the W phase corresponding to the voltage command value Vbw, the maximum phase is the V phase corresponding to the voltage command value Vbv, and the minimum phase is the U phase corresponding to the voltage command value Vbu.

[0069] 6, the switching unit 25 determines, at each current detection time td, whether or not the period Tm during which the second switching element SW2 of the switching unit Uv for applying a voltage to the maximum phase (V-phase) is on is shorter than the period Td that is preset for detecting the current by the current detection unit 26. In the example of FIG. 6, the switching unit 25 determines that the period Tm is equal to or longer than the period Td.

[0070] 6, the current detection unit 26 detects the current Iv of the maximum phase (V phase) other than the intermediate phase (W phase) and the current Iu of the minimum phase (U phase) via the electrical resistance units Rv and Ru at current detection time td. Note that at current detection time td, the second gate signals G2u and G2v are at a high level, turning on the second switching elements SW2 of the switching units Uu and Uv. Therefore, the currents Iu and Iv flow through the electrical resistance units Ru and Rv, respectively.

[0071] FIG. 7 is a diagram showing other examples of the voltages Vu, Vv, and Vw applied to each phase, the carrier wave CA, the compare values ​​CMu, CMv, and CMw, and the second gate signals G2u, G2v, and G2w. Waveform diagram F30 in FIG. 7 shows the voltages Vu, Vv, and Vw applied to the U phase, V phase, and W phase. The horizontal and vertical axes of waveform diagram F30 are the same as those of waveform diagram F20 in FIG. 6. In FIG. 7, the right region of waveform diagram F30 shows the carrier wave CA and the compare values ​​CMu, CMv, and CMw for the electrical angle range (time range) shown in region A3 of waveform diagram F30. Otherwise, FIG. 7 can be interpreted in the same way as FIG. 6.

[0072] As shown in the example of Figure 7, if the switching unit 25 determines that the period Tm during which the second switching element SW2 of the switching unit Uv for applying the voltage Vv to the maximum phase (V phase) is on within the PWM period Tpwm is shorter than the period Td that is preset for detecting the current by the current detection unit 26, the current detection unit 26 detects the current Iw of the intermediate phase (W phase) instead of the maximum phase (V phase), and the calculation unit 21 calculates the current value of the current Iv of the maximum phase (V phase) based on the detection results of the current Iw of the intermediate phase (W phase) and the current Iu of the minimum phase (U phase).

[0073] As described above with reference to Fig. 7 , even if the current detection unit 26 cannot detect the maximum phase current because the duty value of the first gate signal (first gate signal G1v in the example of Fig. 7 ) applied to the first switching element SW1 of the maximum phase is close to 100%, the current values ​​of the three-phase currents Iu, Iv, and Iw can be detected by substituting the current of the intermediate phase. Specifically, the calculation unit 21 calculates the current value Imax of the maximum phase current from the sum Isum of the current value of the minimum phase current and the current value of the intermediate phase current based on Kirchhoff's law, where Imax = -Isum.

[0074] Note that the fact that the period Tm during which the second switching element SW2 of the maximum phase is on within the PWM period Twpm is shorter than the period Td indicates that the period during which the first switching element SW1 of the maximum phase is on within the PWM period Twpm is long. In this case, the duty value of the first gate signal (first gate signal G1v in the example of FIG. 7) applied to the first switching element SW1 of the maximum phase is close to 100%.

[0075] At current detection time td, the second gate signals G2u and G2w are at a high level, turning on the second switching elements SW2 of the switching units Uu and Uw. This causes currents Iu and Iw to flow through the electrical resistance elements Ru and Rw, respectively. As a result, the current detection unit 26 can detect the currents Iu and Iw via the electrical resistance elements Ru and Rw.

[0076] Next, the current detection unit 26 will be described with reference to FIG. 8 . FIG. 8 is a diagram showing the current detection unit 26. As shown in FIG. 8 , the current detection unit 26 includes a first detector 31, a second detector 32, an amplifier 33u, an amplifier 33v, an amplifier 33w, a first selection unit 41, and a second selection unit 42. The first detector 31 includes a sample-and-hold unit 311 and a detection unit 312. The second detector 32 includes a sample-and-hold unit 321 and a detection unit 322. The first selection unit 41 includes three switching elements 51, 52, and 53. The second selection unit 42 includes three switching elements 61, 62, and 63.

[0077] At the time of current detection, when the phase to which the largest voltage is applied among the voltages Vu, Vv, and Vw applied to the three phases is defined as the maximum phase, the first detector 31 detects the maximum phase current among the currents Iu, Iv, and Iw of the three phases. On the other hand, at the time of current detection, when the phase to which the smallest voltage is applied among the voltages Vu, Vv, and Vw applied to the three phases is defined as the minimum phase, the second detector 32 detects the minimum phase current among the currents Iu, Iv, and Iw of the three phases.

[0078] As described above with reference to FIG. 8 , according to the first embodiment, by providing dedicated detectors (first detector 31 and second detector 32) for the maximum and minimum phases, respectively, the currents detected by each detector are stable throughout the entire detection period. As a result, the current detection accuracy can be improved throughout the entire detection period. Furthermore, the current values ​​of the three-phase currents Iu, Iv, and Iw can be obtained using two detectors.

[0079] Specifically, as shown in FIGS. 3 and 8, the amplifiers 33u, 33v, and 33w are connected to signal lines LNu, LNv, and LNw, respectively.

[0080] When the second switching element SW2 of the switching unit Uu is in an on state at the time of current detection, a voltage signal SGu corresponding to the current Iu flowing through the electrical resistance portion Ru is input from the signal line LNu to the amplifier 33u. That is, a voltage signal SGu having a level corresponding to the potential difference across the electrical resistance portion Ru is input from the signal line LNu to the amplifier 33u.

[0081] The amplifier 33u amplifies the voltage signal SGu and outputs the amplified voltage signal SGua to the first selector 41 and the second selector 42. The amplifier 33u includes an amplifier such as an operational amplifier, for example.

[0082] When the second switching element SW2 of the switching unit Uv is in an on state at the current detection time, a voltage signal SGv corresponding to the current Iv flowing through the electrical resistance portion Rv is input from the signal line LNv to the amplifier portion 33v. That is, a voltage signal SGv having a level corresponding to the potential difference across the electrical resistance portion Rv is input from the signal line LNv to the amplifier portion 33v.

[0083] The amplifier 33v amplifies the voltage signal SGv and outputs the amplified voltage signal SGva to the first selector 41 and the second selector 42. The amplifier 33v includes an amplifier such as an operational amplifier, for example.

[0084] When the second switching element SW2 of the switching unit Uw is in the on state at the time of current detection, a voltage signal SGw corresponding to the current Iw flowing through the electrical resistance portion Rw is input from the signal line LNw to the amplifier portion 33w. That is, a voltage signal SGw having a level corresponding to the potential difference between both ends of the electrical resistance portion Rw is input from the signal line LNw to the amplifier portion 33w.

[0085] The amplifier 33w amplifies the voltage signal SGw and outputs the amplified voltage signal SGwa to the first selector 41 and the second selector 42. The amplifier 33w includes an amplifier such as an operational amplifier, for example.

[0086] The first selection unit 41, under the control of the switching unit 25, selects one of the amplifiers 33u, 33v, and 33w and connects the selected amplifier to the sample-and-hold unit 311 of the first detector 31. Specifically, the switching element 51, under the control of the switching unit 25, electrically connects or disconnects the amplifier 33u and the sample-and-hold unit 311. The switching element 52, under the control of the switching unit 25, electrically connects or disconnects the amplifier 33v and the sample-and-hold unit 311. The switching element 53, under the control of the switching unit 25, electrically connects or disconnects the amplifier 33w and the sample-and-hold unit 311.

[0087] The second selection unit 42, under the control of the switching unit 25, selects one of the amplifiers 33u, 33v, and 33w and connects the selected amplifier to the sample-and-hold unit 321 of the second detector 32. Specifically, the switching element 61, under the control of the switching unit 25, electrically connects or disconnects the amplifier 33u and the sample-and-hold unit 321. The switching element 62, under the control of the switching unit 25, electrically connects or disconnects the amplifier 33v and the sample-and-hold unit 321. The switching element 63, under the control of the switching unit 25, electrically connects or disconnects the amplifier 33w and the sample-and-hold unit 321.

[0088] The switching unit 25 controls the first selection unit 41 and the second selection unit 42. Specifically, when the switching unit 25 determines to detect the maximum phase and minimum phase currents, the switching unit 25 controls the first selection unit 41 so that the voltage signal representing the current value of the maximum phase current among the voltage signals SGua, SGva, and SGwa is input to the sample-and-hold unit 311 of the first detector 31. As a result, the first selection unit 41 inputs only the voltage signal representing the current value of the maximum phase current to the sample-and-hold unit 311. Then, in response to the trigger TG of the driving unit 23, the sample-and-hold unit 311 starts sampling the voltage signal representing the current value of the maximum phase current.

[0089] The sample-and-hold unit 311 then ends sampling of the voltage signal when a period Td has elapsed since the start of sampling. The period Td is preset in the current detection unit 26 and is an essential period required for detecting the current by the first detector 31. The sample-and-hold unit 311 is, for example, a sample-and-hold circuit including an element such as a capacitor.

[0090] The detector 312 converts the voltage signal sampled by the sample-and-hold unit 311 into a digital signal. That is, the detector 312 converts the voltage signal indicating the potential difference across the electrical resistance unit R into a digital signal and outputs the digital signal to the calculator 21. The calculator 21 converts the potential difference across the electrical resistance unit R indicated by the digital signal into a current value, thereby obtaining the current value of the maximum phase current. In this way, the detector 312 detects the maximum phase current.

[0091] Additionally, when the switching unit 25 determines to detect the maximum and minimum phase currents, it controls the second selection unit 42 so that the voltage signal representing the current value of the minimum phase current among the voltage signals SGua, SGva, and SGwa is input to the sample-and-hold unit 321 of the second detector 32. As a result, the second selection unit 42 inputs only the voltage signal representing the current value of the minimum phase current to the sample-and-hold unit 321. Then, in response to the trigger TG of the drive unit 23, the sample-and-hold unit 321 starts sampling the voltage signal representing the current value of the minimum phase current.

[0092] The sample-and-hold unit 321 then stops sampling the voltage signal when a period Td has elapsed since the start of sampling. The period Td is preset in the current detection unit 26 and is an essential period required for the second detector 32 to detect the current. The sample-and-hold unit 321 is, for example, a sample-and-hold circuit including an element such as a capacitor.

[0093] The detector 322 converts the voltage signal sampled by the sample-and-hold unit 321 into a digital signal. That is, the detector 322 converts the voltage signal indicating the potential difference across the electrical resistance unit R into a digital signal and outputs the digital signal to the calculator 21. The calculator 21 converts the potential difference across the electrical resistance unit R indicated by the digital signal into a current value, thereby obtaining the current value of the minimum phase current. In this way, the detector 322 detects the minimum phase current.

[0094] On the other hand, when the switching unit 25 determines to detect the currents of the middle phase and the minimum phase, it controls the first selection unit 41 so that the voltage signal representing the current value of the middle phase current among the voltage signals SGua, SGva, and SGwa is input to the sample-and-hold unit 311 of the first detector 31. Then, in response to the trigger TG of the driving unit 23, the sample-and-hold unit 311 starts sampling the voltage signal representing the current value of the middle phase current.

[0095] Then, the sample-and-hold unit 311 ends sampling of the voltage signal when a period Td has elapsed since the start of sampling.

[0096] The detection unit 312 converts the voltage signal sampled by the sample-and-hold unit 311 into a digital signal. That is, the detection unit 312 converts the voltage signal indicating the potential difference across the electrical resistance unit R into a digital signal and outputs the digital signal to the calculation unit 21. The calculation unit 21 converts the potential difference across the electrical resistance unit R indicated by the digital signal into a current value, thereby obtaining the current value of the intermediate phase current. In this way, the detection unit 312 detects the intermediate phase current.

[0097] In addition, when it is determined to detect the middle and minimum phase currents, the switching unit 25 controls the second selection unit 42 so that a voltage signal representing the current value of the minimum phase current among the voltage signals SGua, SGva, and SGwa is input to the sample-and-hold unit 321 of the second detector 32. Otherwise, the minimum phase current detection process when it is determined to detect the middle and minimum phase currents is similar to the minimum phase current detection process when it is determined to detect the maximum and minimum phase currents.

[0098] Each of the detectors 312 and 322 is, for example, an A / D converter. However, each of the first detector 31 and the second detector 32 may be an A / D converter. Also, each of the detectors 312 and 322 may convert the potential difference across the electrical resistance portion R into a current value.

[0099] (First Modification) A first modification of the first embodiment will be described with reference to Figures 9 and 10. The first modification mainly differs from the first embodiment, which performs energization by three-phase modulation, in that a two-phase modulation min type modulation method is adopted. The following mainly describes the differences between the first modification and the first embodiment.

[0100] Waveform diagram F40 in Fig. 9 shows voltages Vu, Vv, and Vw applied to the U, V, and W phases. The horizontal and vertical axes of waveform diagram F20 are the same as those of waveform diagram F10 in Fig. 4. As shown in waveform diagram F40, the two-phase minimum modulation method is a modulation method in which the waveforms of the voltages Vu, Vv, and Vw applied to each phase have a period in which one of the three phases is fixed to off. The control device 100 according to the first modification performs energization using the two-phase minimum modulation method.

[0101] 9, the carrier wave CA and the compare values ​​CMu, CMv, and CMw in the electrical angle range (time range) shown in area A4 of waveform chart F40 are shown in the right region of waveform chart F40. The rest of FIG. 9 can be read in the same way as FIG. 6.

[0102] The comparator 24 determines the intermediate phase, maximum phase, and minimum phase based on the comparison result of the voltage command values ​​Vbu, Vbv, and Vbw for each current detection time td. In the example of Fig. 9, at the current detection time td, the intermediate phase is the W phase corresponding to the voltage command value Vbw, the maximum phase is the V phase corresponding to the voltage command value Vbv, and the minimum phase is the U phase corresponding to the voltage command value Vbu.

[0103] 9, the switching unit 25 determines, at each current detection time td, whether or not the period Tm during which the second switching element SW2 of the switching unit Uv for applying a voltage to the maximum phase (V-phase) is on is shorter than the period Td that is preset for detecting the current by the current detection unit 26. In the example of FIG. 9, the switching unit 25 determines that the period Tm is equal to or longer than the period Td.

[0104] 9 , the current detection unit 26 detects the current Iv of the maximum current phase (V phase) other than the middle phase (W phase) and the current Iu of the minimum current phase (U phase) via the electrical resistance units Rv and Ru, respectively, at current detection time td. The calculation unit 21 then calculates the middle phase current Iw based on the maximum phase current Iv and the minimum phase current Iu. Therefore, according to the first modification, even when the two-phase modulation min type modulation method is employed, variations in the detected values ​​of the currents Iu, Iv, and Iw flowing through each phase can be reduced compared to when the middle phase current is directly detected.

[0105] FIG. 10 shows other examples of the voltages Vu, Vv, and Vw (two-phase modulation min type) applied to each phase, the carrier wave CA, the compare values ​​CMu, CMv, and CMw, and the second gate signals G2u, G2v, and G2w. A waveform diagram F50 in FIG. 10 shows the voltages Vu, Vv, and Vw applied to the U, V, and W phases. The horizontal and vertical axes of the waveform diagram F50 are the same as those of the waveform diagram F20 in FIG. 6. In FIG. 10, the right region of the waveform diagram F50 shows the carrier wave CA and the compare values ​​CMu, CMv, and CMw for the electrical angle range (time range) shown in region A5 of the waveform diagram F50. The rest of FIG. 10 can be interpreted in the same way as FIG. 6.

[0106] As shown in the example of Figure 10, if the switching unit 25 determines that the period Tm during which the second switching element SW2 of the switching unit Uv for applying the voltage Vv to the maximum phase (V phase) is on within the PWM period Tpwm is shorter than the period Td that is preset for detecting current by the current detection unit 26, the current detection unit 26 detects the current Iw of the intermediate phase (W phase) instead of the maximum phase (V phase), and the calculation unit 21 calculates the current value of the current Iv of the maximum phase (V phase) based on the detection results of the current Iw of the intermediate phase (W phase) and the current Iu of the minimum phase (U phase).

[0107] As described above with reference to FIG. 10 , according to the first modification, in a two-phase modulation min type modulation scheme, even if the current detection unit 26 cannot detect the current of the maximum phase because the duty value of the first gate signal (first gate signal G1v in the example of FIG. 10 ) applied to the first switching element SW1 of the maximum phase is close to 100%, the current values ​​of the three-phase currents Iu, Iv, and Iw can be detected by substituting the current of the intermediate phase.

[0108] (Second Modification) A second modification of the first embodiment will be described with reference to Figures 11 and 12. The second modification mainly differs from the first embodiment, which performs energization by three-phase modulation, in that a two-phase modulation min-max type modulation method is adopted. The following mainly describes the differences between the second modification and the first embodiment.

[0109] Waveform diagram F60 in FIG. 11 shows voltages Vu, Vv, and Vw applied to the U, V, and W phases. The horizontal and vertical axes of waveform diagram F60 are the same as those of waveform diagram F10 in FIG. 4. As shown in waveform diagram F60, the two-phase min-max modulation modulation method is a modulation method in which the waveforms of voltages Vu, Vv, and Vw applied to each phase have a period in which one of the three phases is fixed to ON and a period in which one of the three phases is fixed to OFF. The control device 100 according to the second modification performs energization using the two-phase min-max modulation modulation method.

[0110] 11, the carrier wave CA and the compare values ​​CMu, CMv, and CMw in the electrical angle range (time range) shown in area A6 of waveform chart F60 are shown in the right region of waveform chart F60. Otherwise, the way to read Fig. 11 is the same as that of Fig. 6.

[0111] The comparator 24 determines the intermediate phase, maximum phase, and minimum phase based on the comparison result of the voltage command values ​​Vbu, Vbv, and Vbw for each current detection time td. In the example of Fig. 11, at the current detection time td, the intermediate phase is the W phase corresponding to the voltage command value Vbw, the maximum phase is the V phase corresponding to the voltage command value Vbv, and the minimum phase is the U phase corresponding to the voltage command value Vbu.

[0112] 11 , the switching unit 25 determines, at each current detection time td, whether or not the period Tm during which the second switching element SW2 of the switching unit Uv for applying a voltage to the maximum phase (V-phase) is on is shorter than the period Td that is preset for detecting the current by the current detection unit 26. In the example of FIG. 11 , the switching unit 25 determines that the period Tm is equal to or longer than the period Td.

[0113] 11 , the current detection unit 26 detects the current Iv of the maximum phase (V phase) other than the middle phase (W phase) and the current Iu of the minimum phase (U phase) via the electrical resistance units Rv and Ru, respectively, at current detection time td. The calculation unit 21 then calculates the middle phase current Iw based on the maximum phase current Iv and the minimum phase current Iu. Therefore, according to the second modification, even when a two-phase min-max modulation modulation method is employed, variations in the detected values ​​of the currents Iu, Iv, and Iw flowing through each phase can be reduced compared to when the middle phase current is directly detected.

[0114] FIG. 12 shows other examples of the voltages Vu, Vv, and Vw applied to the respective phases, the carrier wave CA, the compare values ​​CMu, CMv, and CMw, and the second gate signals G2u, G2v, and G2w. A waveform diagram F70 in FIG. 12 shows the voltages Vu, Vv, and Vw applied to the U phase, V phase, and W phase. The horizontal and vertical axes of the waveform diagram F70 are the same as those of the waveform diagram F20 in FIG. 6. In FIG. 12, the right region of the waveform diagram F70 shows the carrier wave CA and the compare values ​​CMu, CMv, and CMw for the electrical angle range (time range) shown in region A7 of the waveform diagram F70. The rest of FIG. 12 can be interpreted in the same way as FIG. 6.

[0115] In the example of FIG. 12 , in the two-phase min-max modulation scheme, the second gate signal G2v is at zero level. Therefore, at current detection time td, the second switching element SW2 of the switching unit Uv is off. As a result, the switching unit 25 determines that the period Tm during which the second switching element SW2 of the switching unit Uv is on to apply the voltage Vv to the maximum phase (V phase) is shorter than the period Td, which is preset within the PWM cycle Tpwm for current detection by the current detection unit 26. Therefore, the current detection unit 26 detects the current Iw of the middle phase (W phase) instead of the maximum phase (V phase), and the calculation unit 21 calculates the current value of the current Iv of the maximum phase (V phase) based on the detection results of the current Iw of the middle phase (W phase) and the current Iu of the minimum phase (U phase).

[0116] As described above with reference to FIG. 12 , according to the second modification, in a two-phase min-max modulation type modulation scheme, even if the current detection unit 26 cannot detect the current of the maximum phase because the duty value of the first gate signal (first gate signal G1v in the example of FIG. 12 ) applied to the first switching element SW1 of the maximum phase is 100%, the current values ​​of the three-phase currents Iu, Iv, and Iw can be detected by substituting the current of an intermediate phase.

[0117] 13 to 17, a motor module 200A according to a second embodiment of the present disclosure will be described. The second embodiment differs mainly from the first embodiment in which the motor module 200 controls the three-phase inverter 1A in that the motor module 200A according to the second embodiment controls the N-phase inverter 1A. The following mainly describes the differences between the second embodiment and the first embodiment.

[0118] FIG. 13 is a block diagram showing a motor module 200A according to a second embodiment. As shown in FIG. 13, the motor module 200A includes a control device 100A and an N-phase motor MN. In this specification, "N" represents an odd number equal to or greater than three. When N is an odd number equal to or greater than three, the control device 100A controls an N-phase inverter 1A that applies voltages Va1 to VaN to the N phases. In the example shown in FIG. 13, the control device 100A includes the N-phase inverter 1A. The N-phase inverter 1A is connected to a DC power supply unit PW. In this specification, as an example, the N-phase inverter 1A applies voltages Va1 to VaN of different phases to the respective phases of the N-phase motor MN to drive the N-phase motor MN. Hereinafter, the voltages Va1 to VaN may be referred to as applied voltages Va1 to VaN. Currents Ia1 to IaN corresponding to the voltages Va1 to VaN flow through the respective phases of the N-phase motor MN.

[0119] The N-phase motor MN includes N-phase coils CL1 to CLN. The N-phase motor MN is, for example, a brushless DC motor. The N-phase motor MN has phases P1 to PN. Regarding the polarity of the currents Ia1 to IaN, the polarity of the current flowing from the N-phase inverter 1A to the neutral point NP of the N-phase motor MN is positive, and the polarity of the current flowing from the neutral point NP to the N-phase inverter 1A is negative. Note that the object driven by the N-phase inverter 1A is not limited to the N-phase motor MN, and may be other electrical equipment. Furthermore, the N-phase motor MN may be disposed outside the control device 100A.

[0120] The control device 100A further includes a calculation unit 21 and a current detection unit 26. When the phase to which the (N+1) / 2 highest voltage is applied at the current detection time among the voltages Va1 to VaN applied to the N phases is defined as the intermediate phase, the current detection unit 26 detects the currents of the (N-1) phases other than the intermediate phase among the currents Ia1 to IaN of the N phases. Specifically, when the phase to which the (N+1) / 2 highest voltage is applied at the current detection time among the voltages Va1 to VaN applied to the N-phase coils CL1 to CLN is defined as the intermediate phase, the current detection unit 26 detects the currents of the (N-1) phases other than the intermediate phase among the currents Ia1 to IaN of the N phases. In this way, in the second embodiment, the current detection unit 26 detects the currents of the other (N-1) phases, which have smaller current fluctuations and disturbances than the intermediate phase, rather than the current of the intermediate phase, which has relatively large current fluctuations and disturbances. Therefore, errors in the detection results of the currents Ia1 to IaN that are directly detected are suppressed.

[0121] The calculation unit 21 calculates the current value Imid of the middle phase current based on the detection result of the current detection unit 26. Specifically, the calculation unit 21 calculates the current value Imid of the middle phase current from the sum Isum of the current values ​​of the (N-1) phases other than the middle phase based on Kirchhoff's law. Imid = -Isum. As described above, in the second embodiment, the calculation unit 21 calculates the middle phase current from the detection results of the other (N-1) phases among the currents Ia1 to IaN, which have less error in the detection results than the middle phase. In other words, the middle phase current is detected indirectly. Therefore, the error in the detection results of the middle phase current can be reduced compared to when the middle phase current is directly detected. As a result, the variation in the detection values ​​of the currents Ia1 to IaN flowing through each phase, including the middle phase and the other (N-1) phases, can be reduced.

[0122] The control device 100A will be described with continued reference to Fig. 13. The N-phase inverter 1A includes N switching units U1 to UN.

[0123] The N switching units U1 to UN apply voltages Va1 to VaN to the N phases, respectively. Specifically, the N switching units U1 to UN apply voltages Va1 to VaN of different phases to the N phase coils CL1 to CLN, respectively.

[0124] Each of the switching units U1 to UN includes a first switching element SW1 on the first voltage V1 side of the DC power supply unit PW and a second switching element SW2 on the second voltage V2 side of the DC power supply unit PW. The second switching element SW2 is connected in series with the first switching element SW1. In the example of FIG. 1, the second voltage V2 is smaller than the first voltage V1. For example, the second voltage V2 is the ground voltage (0 V).

[0125] Typically, the N-phase inverter 1A is driven by a PWM signal Spwm. The PWM signal Spwm includes N first gate signals G11 to G1N that drive the first switching elements SW1 of the switching units U1 to UN, respectively, and N second gate signals G21 to G2N that drive the second switching elements SW2 of the switching units U1 to UN, respectively. In this case, for example, each of the first switching elements SW1 and the second switching elements SW2 is a semiconductor switching element. For example, each of the first switching elements SW1 and the second switching elements SW2 is an IGBT (insulated gate bipolar transistor). Note that each of the first switching elements SW1 and the second switching elements SW2 may be another type of transistor, such as a field effect transistor.

[0126] The polarities of the second gate signals G21 to G2N are basically opposite to the polarities of the first gate signals G11 to G1N, respectively. In other words, the second gate signals G21 to G2N and the first gate signals G11 to G1N are basically complementary to each other. However, as with the three-phase configuration described with reference to FIG. 3, a dead time may be provided.

[0127] The control device 100A further includes a current sensor unit 3A for detecting the currents Ia1 to IaN of the N phases. The current sensor unit 3A includes N electrical resistance units R1 to RN for detecting the currents Ia1 to IaN of the N phases. Each of the electrical resistance units R1 to RN, or the collective term for these, may be referred to as an electrical resistance unit R. The electrical resistance units R1 to RN are resistance components (e.g., resistive elements) for detecting the currents flowing through the N-phase coils CL1 to CLN, respectively, via the N-phase inverter 1A. At each current detection time, (N-1) electrical resistance units R of the N electrical resistance units R1 to RN are used.

[0128] The electrical resistance portions R1 to RN are arranged corresponding to the switching units U1 to UN, respectively, and are arranged between the second switching element SW2 of the corresponding one of the switching units U1 to UN and the DC power supply portion PW.

[0129] The control device 100A further includes a carrier wave generating unit 22, a driving unit 23, a comparing unit 24, and a switching unit 25. Specifically, the control device 100A includes an inverter control unit 2. The inverter control unit 2 includes a calculating unit 21, a carrier wave generating unit 22, a driving unit 23, a comparing unit 24, a switching unit 25, and a current detecting unit 26. The inverter control unit 2 is, for example, a microcomputer. For example, the current detecting unit 26 is realized by an A / D converter.

[0130] The calculation unit 21 calculates voltage command values ​​Vb1 to VbN. When the N phases constituting the N phases are defined as "P1 phase to PN phase," the calculation unit 21 calculates voltage command values ​​Vb1 to VbN corresponding to the P1 phase to PN phase, respectively. The calculation unit 21 outputs the voltage command values ​​Vb1 to VbN to the comparison unit 24.

[0131] The voltage command values ​​Vb1 to VbN respectively indicate the voltage values ​​of the voltages Va1 to VaN output by the N-phase inverter 1A. Therefore, the voltage command values ​​Vb1 to VbN substantially coincide with the voltage values ​​of the voltages Va1 to VaN output by the N-phase inverter 1A. More specifically, the voltage command values ​​Vb1 to VbN indicate the voltage values ​​that the voltages Va1 to VaN applied to the P1 phase to PN phase constituting the N phase should follow. In this specification, the voltage command values ​​Vb1 to VbN and the applied voltages Va1 to VaN are substantially synonymous.

[0132] The calculation unit 21 calculates compare values ​​CM1 to CMN based on the voltage command values ​​Vb1 to VbN. Therefore, the compare values ​​CM1 to CMN correspond to the voltage command values ​​Vb1 to VbN, respectively. The compare values ​​CM1 to CMN directly or indirectly indicate the duty values ​​of the first gate signals G11 to G1N in the PWM signal Spwm, respectively. The calculation unit 21 outputs the compare values ​​CM1 to CMN to the drive unit 23. Specifically, the duty values ​​indicate the ratio of the on-time of the first switching element SW1 of each phase to a preset PWM period Tpwm.

[0133] The carrier wave generating unit 22 generates a carrier wave CA. The carrier wave generating unit 22 outputs the carrier wave CA to the driving unit 23. The carrier wave CA is, for example, a triangular wave. Note that the waveform of the carrier wave CA is not particularly limited.

[0134] Fig. 14 is a diagram showing an example of the carrier wave CA and the compare values ​​CM1 to CMN. In Fig. 14, "n" represents an integer smaller than N and larger than 1. As shown in Fig. 14, the PWM period Tpwm is equal to the period of the carrier wave CA. Otherwise, the PWM period Tpwm of the second embodiment is the same as the PWM period Tpwm of the first embodiment.

[0135] Furthermore, the control period Tcnt is determined by the period of the carrier wave CA. The control period Tcnt is a period for updating the duty value of the PWM signal Spwm. Therefore, the duty value of the PWM signal Spwm is updated every control period Tcnt. The control period Tcnt is longer than the PWM period Tpwm. Otherwise, the control period Tcnt of the second embodiment is the same as the control period Tcnt of the first embodiment.

[0136] 13 , the driver 23 generates a PWM signal Spwm based on the carrier wave CA and the compare values ​​CM1 to CMN. The driver 23 then outputs the PWM signal Spwm to the N-phase inverter 1A to drive the N-phase inverter 1A. As a result, the N-phase inverter 1A applies voltages Va1 to VaN indicated by the voltage command values ​​Vb1 to VbN, respectively, to the N-phase coils CL1 to CLN, respectively.

[0137] Specifically, as shown in FIG. 14 , the driver 23 compares each of the compare values ​​CM1 to CMN with the carrier wave CA and generates the PWM signal Spwm based on the comparison results. More specifically, the driver 23 determines, for each of the compare values ​​CM1 to CMN, whether the compare value is equal to or greater than the level of the carrier wave CA. The driver 23 then activates or deactivates each of the first gate signals G11 to G1N in the PWM signal Spwm based on the determination results for each of the compare values ​​CM1 to CMN. As a result, the duty values ​​of the N first gate signals G11 to G1N are set according to the compare values ​​CM1 to CMN. The first switching element SW1 to which an activated first gate signal is applied is turned on. The first switching element SW1 to which an inactivated first gate signal is applied is turned off.

[0138] 14, for ease of explanation, the magnitude relationship between the compare values ​​CM1 to CMN is made to match the magnitude relationship between the voltage command values ​​Vb1 to VbN (applied voltages Va1 to VaN). Therefore, for ease of explanation of the comparison unit 24 in FIG. 13, the line representing the compare values ​​CM1 to CMN in FIG. 14 will be regarded as the line representing the voltage command values ​​Vb1 to VbN (applied voltages Va1 to VaN).

[0139] The comparator 24 compares the voltage command values ​​Vb1 to VbN of the P1 to PN phases constituting the N phase with each other at each current detection time td and determines the order of magnitude of each of the voltage command values ​​Vb1 to VbN of the P1 to PN phases. In other words, the comparator 24 compares the voltages Va1 to VaN applied to the P1 to PN phases, respectively, with each other at each current detection time td and determines the order of magnitude of each of the voltages Va1 to VaN applied to the P1 to PN phases. In other words, the comparator 24 determines the middle phase and the maximum phase from among the P1 to PN phases. The comparator 24 may also determine the minimum phase. For example, in the central control period Tcnt of FIG. 14 , the PN phase is the middle phase, the Pn phase is the maximum phase, and the P1 phase is the minimum phase.

[0140] The intermediate phase is a phase to which the (N+1) / 2-largest voltage command value is set at current detection time td among voltage command values ​​Vb1 to VbN for P1 phase to PN phase that constitute N phase. In other words, the intermediate phase is a phase to which the (N+1) / 2-largest voltage is applied at current detection time td among voltages Va1 to VaN that are applied to P1 phase to PN phase, respectively.

[0141] The maximum phase is the phase to which the largest voltage command value is set at the current detection time td among the voltage command values ​​Vb1 to VbN for the P1 to PN phases that make up the N phase. In other words, the maximum phase is the phase to which the largest voltage is applied at the current detection time td among the voltages Va1 to VaN that are applied to the P1 to PN phases, respectively.

[0142] The minimum phase is the phase to which the smallest voltage command value is set at the current detection time among the voltage command values ​​Vb1 to VbN for the P1 to PN phases that make up the N phase. In other words, the minimum phase is the phase to which the smallest voltage is applied at the current detection time td among the voltages Va1 to VaN that are applied to the P1 to PN phases, respectively.

[0143] Here, as an example, in FIG. 14 , focus is placed on the control period Tcnt in the center of FIG. 14 . In this case, the Pn phase is the maximum phase. The switching unit 25 in FIG. 13 determines whether the period Tm, during which the second switching element SW2 of the switching unit Un for applying the voltage Van to the Pn phase, which is the maximum phase, is on, is shorter than the period Td preset for detecting current by the current detection unit 26. If the switching unit 25 determines that the period Tm is not shorter than the period Td, that is, if the switching unit 25 determines that the period Tm is equal to or longer than the period Td, it determines to detect the current of each of the (N−1) phases other than the middle phase.

[0144] In the example of FIG. 14, when the compare value CMn is less than the level of the carrier wave CA, the drive section 23 activates the second gate signal G2n to turn on the second switching element SW2 of the switching unit Un.

[0145] FIG. 15 is a diagram showing another example of the carrier wave CA and the compare values ​​CM1 to CMN. As shown in FIG. 15, the Pn phase is the maximum phase, as an example. The switching unit 25 in FIG. 13 determines whether the period Tm during which the second switching element SW2 of the maximum phase is on is shorter than the period Td preset for detecting current by the current detection unit 26. If the switching unit 25 determines that the period Tm is shorter than the period Td, it determines to detect the current of each of the (N-1) phases other than the maximum phase. In other words, in this case, the current of the intermediate phase is detected instead of the maximum phase.

[0146] 13, the current detection unit 26 detects the current via the current sensor unit 3 in response to the trigger TG generated by the drive unit 23. The time when the trigger TG is generated is the current detection time.

[0147] Specifically, when the switching unit 25 determines to detect the current of each of the (N-1) phases other than the middle phase, the current detecting unit 26 detects the current of each of the (N-1) phases other than the middle phase in response to the trigger TG generated by the driving unit 23. Then, the current detecting unit 26 outputs a signal indicating the current value of each of the (N-1) phases other than the middle phase to the calculating unit 21. The calculating unit 21 calculates the current value of the middle phase current based on the current value of each of the (N-1) phases other than the middle phase.

[0148] On the other hand, when the switching unit 25 determines to detect the current of each of the (N-1) phases other than the maximum phase, the current detection unit 26 detects the current of each of the (N-1) phases other than the maximum phase in response to the trigger TG generated by the drive unit 23. Then, the current detection unit 26 outputs a signal indicating the current value of each of the (N-1) phases other than the maximum phase to the calculation unit 21. The calculation unit 21 calculates the current value of the maximum phase current based on the current values ​​of each of the (N-1) phases other than the maximum phase. Specifically, the calculation unit 21 calculates the current value Imax of the maximum phase current from the sum Isum of the current values ​​of the (N-1) phases other than the maximum phase based on Kirchhoff's law. Imax = -Isum.

[0149] As explained above with reference to Figures 13 and 15, even if the duty value of the first gate signal applied to the first switching element SW1 of the maximum phase is close to or 100% and therefore it is not possible for the current detection unit 26 to detect the current of the maximum phase, the current values ​​of the N-phase currents Ia1 to IaN can be detected by substituting the current of an intermediate phase.

[0150] Note that the fact that the period Tm during which the second switching element SW2 of the maximum phase is on within the PWM period Twpm is shorter than the period Td indicates that the period during which the first switching element SW1 of the maximum phase is on within the PWM period Twpm is long. In this case, the duty value of the first gate signal G1n of the maximum phase is close to 100%.

[0151] Furthermore, the fact that the period Tm during which the second switching element SW2 of the maximum phase is on within the PWM period Twpm is zero means that the first switching element SW1 of the maximum phase is on for the entire period of the PWM period Twpm. In this case, the duty value of the first gate signal applied to the first switching element SW1 of the maximum phase is 100%.

[0152] Next, the phase determination process will be described with reference to Fig. 13 and Fig. 16. Fig. 4 is a flowchart showing the phase determination process for determining the phase in which current is directly detected. As shown in Fig. 16, the phase determination process includes steps S1 to S7. The phase determination process is repeatedly executed for each control period Tcnt.

[0153] As shown in FIGS. 13 and 16, in step S1, the calculation unit 21 calculates voltage command values ​​Vb1 to VbN that indicate the applied voltages Va1 to VaN, respectively.

[0154] Next, in step S2, the calculation unit 21 calculates the compare values ​​CM1 to CMN based on the voltage command values ​​Vb1 to VbN.

[0155] Next, in step S3, the comparison unit 24 compares the voltage command values ​​Vb1 to VbN for the P1 to PN phases to determine the order of magnitude of each of the voltage command values ​​Vb1 to VbN for the P1 to PN phases. The comparison unit 24 then determines the phase for which the largest voltage command value is set among the voltage command values ​​Vb1 to VbN as the maximum phase. The comparison unit 24 also determines the phase for which the (N+1) / 2 largest voltage command value is set among the voltage command values ​​Vb1 to VbN as the middle phase.

[0156] In other words, the comparator 24 compares the voltages Va1 to VaN applied to the P1 to PN phases and determines which of the voltages Va1 to VaN is the largest. The comparator 24 then determines the phase to which the largest voltage is applied among the voltages Va1 to VaN applied to the P1 to PN phases as the maximum phase. The comparator 24 also determines the phase to which the (N+1) / 2 largest voltage is applied among the voltages Va1 to VaN applied to the P1 to PN phases as the intermediate phase.

[0157] Next, in step S4, the switching unit 25 determines whether the ON period Tm of the second switching element SW2 corresponding to the maximum phase is shorter than a period Td preset for the current detection unit 26 to detect the current.

[0158] If it is determined in step S4 that the ON period Tm is not shorter than the period Td (No), the process proceeds to step S5. In other words, if it is determined in step S4 that the ON period Tm is equal to or longer than the period Td, the process proceeds to step S5.

[0159] Next, in step S5, the switching unit 25 determines to detect the current of (N-1) phases other than the intermediate phase. For example, the switching unit 25 sets a flag indicating that the current of (N-1) phases other than the intermediate phase is to be detected.

[0160] On the other hand, if it is determined in step S4 that the on-period Tm is shorter than the period Td (Yes), the process proceeds to step S6.

[0161] Next, in step S6, the switching unit 25 determines to detect the current of (N-1) phases other than the maximum phase. For example, the switching unit 25 sets a flag indicating that the current of (N-1) phases other than the maximum phase is to be detected.

[0162] Next, in step S7 after steps S5 and S6, the calculation unit 21 sets the compare values ​​CM1 to CMN calculated in step S2 in the drive unit 23. Then, the process ends.

[0163] Here, the compare values ​​CM1 to CMN set in the drive unit 23 in step S7 executed in a certain control period Tcnt are reflected by the drive unit 23 in the next control period Tcnt or at a timing determined by the microcomputer used as the inverter control unit 2. Furthermore, the decisions made in steps S5 and S6 executed in a certain control period Tcnt are reflected by the switching unit 25 and the current detection unit 26 in the next control period Tcnt or at a timing determined by the microcomputer used as the inverter control unit 2.

[0164] Next, the current value calculation process will be described with reference to Fig. 13 and Fig. 17. Fig. 17 is a flowchart showing the current value calculation process for calculating the current value of an undetected current. As shown in Fig. 17, the current value calculation process includes steps S11 to S17. The current value calculation process is repeatedly executed for each PWM period Tpwm. Steps S11 to S17 correspond to an example of a "control method executed by a control device."

[0165] 13 and 17, in step S11, the switching unit 25 determines whether it has been determined to detect the current of (N-1) phases other than the maximum phase. That is, the switching unit 25 determines whether a flag indicating that the current of (N-1) phases other than the maximum phase is detected has been set.

[0166] If it is determined in step S11 that it has not been determined to detect the current of (N-1) phases other than the maximum phase (No), the process proceeds to step S12. In other words, if it is determined in step S11 that it has been determined to detect the current of (N-1) phases other than the middle phase, the process proceeds to step S12.

[0167] Next, in step S12, the current detection unit 26 determines whether or not the current detection time has arrived, that is, whether or not the drive unit 23 has output a trigger TG.

[0168] If it is determined in step S12 that the current detection time has not yet arrived (No), the process repeats step S12.

[0169] On the other hand, if it is determined in step S12 that the current detection time has arrived (Yes), the process proceeds to step S13.

[0170] Next, in step S13, the current detection unit 26 detects the currents of the (N-1) phases other than the intermediate phase. Step S13 corresponds to an example of a "current detection step."

[0171] Next, in step S14, the calculation unit 21 calculates the current value of the intermediate phase based on the detection results of the currents of the (N-1) phases other than the intermediate phase. Step S14 corresponds to an example of a "calculation step." Then, the process ends.

[0172] On the other hand, if it is determined in step S11 that it has been decided to detect the current of (N-1) phases other than the maximum phase (Yes), the process proceeds to step S15.

[0173] Next, in step S15, the current detection unit 26 determines whether the current detection time has arrived, that is, whether the drive unit 23 has output a trigger TG.

[0174] If it is determined in step S15 that the current detection time has not arrived (No), the process repeats step S15.

[0175] On the other hand, if it is determined in step S15 that the current detection time has arrived (Yes), the process proceeds to step S16.

[0176] Next, in step S16, the current detection unit 26 detects the currents of the (N-1) phases other than the maximum phase.

[0177] Next, in step S17, the calculation unit 21 calculates the current value of the maximum phase current based on the detection results of the currents of the (N-1) phases other than the maximum phase, and then the process ends.

[0178] Next, an example where N is "5" and the N phase is five will be described with reference to Fig. 18 and Fig. 19. Fig. 18 is a diagram showing an example of voltages Va1, Va2, Va3, Va4, and Va5 applied to the five phases, a carrier wave CA, and compare values ​​CM1, CM2, CM3, CM4, and CM5 in the second embodiment.

[0179] The waveform diagram F100 in FIG. 18 shows voltages Va1, Va2, Va3, Va4, and Va5 applied to the P1, P2, P3, P4, and P5 phases, respectively. In the waveform diagram F100, the horizontal axis represents the electrical angle [degE], and the vertical axis represents the voltages Va1 to Va5. The vertical axis of the waveform diagram F100 represents the voltage value normalized by the input voltage V1-V2, and the voltages Va1 to Va5 range from 0 to 1. This value also represents the duty value, which is the ratio of the on-time of the first switching element SW1 of each phase to the PWM period Tpwm. As shown in the waveform diagram F100, the voltages Va1 to Va5 are sinusoidal. The voltages Va1 to Va5 are in different phases. In the example of FIG. 18, current is supplied using five-phase modulation.

[0180] 18, the carrier wave CA and the compare values ​​CM1 to CM5 in the electrical angle range (time range) shown in the area A10 of the waveform chart F100 are shown in the right area of ​​the waveform chart F100. The compare values ​​CM1 to CM5 and the voltage command values ​​Vb1 to Vb5 (applied voltages Va1 to Va5) are updated every control period Tcnt.

[0181] The driver 23 compares each of the compare values ​​CM1 to CM5 with the carrier wave CA in each PWM cycle Tpwm. As a result, first gate signals G11 to G15 and second gate signals G21 to G25 are generated. In the second embodiment, the driver 23 generates the first gate signals G11 to G15 and second gate signals G21 to G25 by a center-aligned method.

[0182] Here, in explaining the comparison unit 24, in FIG. 18 as well, as in the case of FIG. 4, for convenience, the straight lines showing the comparison values ​​CM1 to CM5 will be considered as straight lines showing the voltage command values ​​Vb1 to Vb5 (applied voltages Va1 to Va5).

[0183] The comparator 24 compares the five-phase voltage command values ​​Vb1 to Vb5 with each other at each current detection time td, and determines the order of magnitude of each of the voltage command values ​​Vb1 to Vb5. Focusing on the control period Tcnt in the center of Fig. 18, the comparator 24 determines the voltage command value Vb3 to be the largest, the voltage command value Vb2 to be the second largest, the voltage command value Vb4 to be the third largest, the voltage command value Vb1 to be the fourth largest, and the voltage command value Vb5 to be the fifth largest.

[0184] Therefore, the comparison unit 24 determines the phase to which the voltage command value Vb3 is set as the maximum phase, and the phase to which the voltage command value Vb4 is set as the middle phase. As a result, the current detection unit 26 detects the currents of the four phases other than the middle phase P4. Specifically, the current detection unit 26 detects the current Ia1 of the P1 phase, the current Ia2 of the P2 phase, the current Ia3 of the P3 phase (maximum phase), and the current Ia5 of the P5 phase via the electrical resistance units R1, R2, R3, and R5.

[0185] Then, the calculation unit 21 calculates the current value of the intermediate phase current Ia4 based on the current values ​​of the currents Ia1, Ia2, Ia3, and Ia5.

[0186] 19 is a diagram showing changes in the order of magnitude of the P1 to P5 phases in the electrical angle range of 0 [degE] to 360 [degE] in five-phase modulation. The horizontal and vertical axes in FIG. 19 are the same as the horizontal and vertical axes of the waveform diagram F100 shown in FIG. 18. In FIG. 19, the order of magnitude is shown from 1 to 5 for each of the P1 to P5 phases. As shown in FIG. 19, the order of magnitude of the P1 to P5 phases changes for each predetermined electrical angle [degE].

[0187] As described above with reference to Figures 18 and 19, as an example, when performing five-phase modulation current supply, the currents of the four phases other than the middle phase are detected and the current of the middle phase is calculated, thereby suppressing variations in the detection values ​​of the five-phase currents Ia1 to Ia5.

[0188] 20 and 21 , a motor module 200B according to a third embodiment of the present disclosure will be described. The third embodiment differs mainly from the first embodiment, which includes a resistance-type current sensor unit 3, in that the third embodiment includes a clamp-type current sensor unit 3B. The following mainly describes the differences between the third embodiment and the first embodiment.

[0189] Fig. 20 is a diagram showing a motor module 200B according to a third embodiment. As shown in Fig. 20, the motor module 200B includes a control device 100B. The control device 100B includes a current sensor unit 3B for detecting the currents Iu, Iv, and Iw of the three phases. The current sensor unit 3B is, for example, a clamp type. The current sensor unit 3B is disposed between the three-phase inverter 1 and the three-phase motor M3.

[0190] Fig. 21 is a diagram showing a current sensor unit 3B according to embodiment 3. As shown in Fig. 21, the current sensor unit 3B includes a magnetic core CPu for detecting a U-phase current Iu, a magnetic core CPv for detecting a V-phase current Iv, a magnetic core CPw for detecting a W-phase current, current sensors MGu, MGv, and MGw. For example, the magnetic cores CPu, CPv, and CPw surround lines Lu, Lv, and Lw, respectively.

[0191] The magnetic core CPu is arranged on the line Lu. The line Lu is an electric wire connecting the connection point N in the switching unit Uu and the U-phase coil CLu. The magnetic core CPu detects a magnetic flux corresponding to the current value of the current Iu flowing through the line Lu. For example, the magnetic flux is proportional to the current value. The magnetic core CPu is connected to the current sensor MGu. The current sensor MGu converts the magnetic flux detected by the magnetic core CPu into a voltage signal SGu and outputs the voltage signal SGu to the current detection unit 26. The voltage signal SGu represents the current value of the current Iu flowing through the line Lu. The current sensor MGu is connected to the amplifier unit 33u in FIG. 8 by a signal line LNu. Therefore, as in the first embodiment, the voltage signal SGu is input to the amplifier unit 33u. The current sensor MGu includes a magnetic sensor such as a Hall element. To ensure magnetic flux detection accuracy, the current sensor MGu is disposed, for example, near the magnetic core CPu or at the magnetic core CPu.

[0192] The magnetic core CPv is arranged on the line Lv. The line Lv is an electric wire connecting the connection point N in the switching unit Uv and the V-phase coil CLv. The magnetic core CPv detects magnetic flux corresponding to the current value of the current Iv flowing through the line Lv. For example, the magnetic flux is proportional to the current value. The current sensor MGv converts the magnetic flux detected by the magnetic core CPv into a voltage signal SGv and outputs the voltage signal SGv to the current detection unit 26. The voltage signal SGv represents the current value of the current Iv flowing through the line Lv. The current sensor MGv is connected to the amplifier unit 33v of FIG. 8 via a signal line LNv. Therefore, as in the first embodiment, the voltage signal SGv is input to the amplifier unit 33u. The current sensor MGv includes, for example, a magnetic sensor such as a Hall element. To ensure magnetic flux detection accuracy, the current sensor MGv is arranged, for example, near or at the magnetic core CPv.

[0193] The magnetic core CPw is disposed on the line Lw. The line Lw is an electric wire connecting the connection point N in the switching unit Uw and the W-phase coil CLw. The magnetic core CPw detects magnetic flux corresponding to the current value of the current Iw flowing through the line Lw. For example, the magnetic flux is proportional to the current value. The current sensor MGw converts the magnetic flux detected by the magnetic core CPw into a voltage signal SGw and outputs the voltage signal SGw to the current detection unit 26. The voltage signal SGw represents the current value of the current Iw flowing through the line Lw. The current sensor MGw is connected to the amplifier 33w of FIG. 8 via a signal line LNw. Therefore, as in the first embodiment, the voltage signal SGw is input to the amplifier 33w. The current sensor MGw includes, for example, a magnetic sensor such as a Hall element. To ensure magnetic flux detection accuracy, the current sensor MGw is disposed, for example, near or at the magnetic core CPw.

[0194] As described above with reference to FIGS. 20 and 21 , according to the third embodiment, the lines Lu, Lv, and Lw are connected to the connection points N of the switching units Uu, Uv, and Uw, respectively. The maximum and minimum phase currents of the currents Iu, Iv, and Iw flow from the lines Lu, Lv, and Lw into the current sensor unit 3B. Therefore, the current detection unit 26 can detect the maximum and minimum phase currents via the current sensor unit 3B, regardless of whether the second switching element SW2 is on or off. In other words, the current detection unit 26 can detect the maximum and minimum phase currents without being restricted by the second switching element SW2.

[0195] (Fourth Embodiment) A motor module 200B according to a fourth embodiment of the present disclosure will be described with reference to Figures 20, 22, and 23. The overall configuration of the motor module 200B according to the fourth embodiment is similar to the overall configuration of the motor module 200B according to the third embodiment shown in Figure 20. The fourth embodiment differs mainly from the third embodiment in that the current sensor unit 3B of the fourth embodiment includes electrical resistance units Ru, Rv, and Rw. The following mainly describes the differences between the fourth embodiment and the third embodiment.

[0196] Fig. 22 is a diagram showing a current sensor unit 3B according to the fourth embodiment. As shown in Fig. 22, the current sensor unit 3B includes electrical resistance units Ru, Rv, and Rw for detecting three-phase currents Iu, Iv, and Iw, respectively. The configurations of the electrical resistance units Ru, Rv, and Rw are similar to those of the electrical resistance units Ru, Rv, and Rw in Fig. 3, for example. In the fourth embodiment, a current detection unit 26A, which will be described later, is provided instead of the current detection unit 26 shown in Figs. 20 and 21.

[0197] The electrical resistance unit Ru is disposed on the line Lu through which the U-phase current Iu flows. The line Lu extends from the connection point N of the switching unit Uu to the coil CLu (FIG. 20). That is, the electrical resistance unit Ru is connected between the connection point N and the coil CLu. The electrical resistance unit Rv is disposed on the line Lv through which the V-phase current Iv flows. The line Lv extends from the connection point N of the switching unit Uv to the coil CLv (FIG. 20). That is, the electrical resistance unit Rv is connected between the connection point N and the coil CLv. The electrical resistance unit Rw is disposed on the line Lw through which the W-phase current Iw flows. The line Lw extends from the connection point N of the switching unit Uw to the coil CLw (FIG. 20). That is, the electrical resistance unit Rw is connected between the connection point N and the coil CLw.

[0198] Signal lines Lu1 and Lu2 extend from both ends of the electrical resistance unit Ru to the current detection unit 26A. Therefore, the current detection unit 26A can detect the potential difference across the electrical resistance unit Ru. The potential difference across the electrical resistance unit Ru has a magnitude corresponding to the current Iu flowing through the electrical resistance unit Ru. The current value of the current Iu can be calculated by dividing the potential difference across the electrical resistance unit Ru by the resistance value of the electrical resistance unit Ru. Signal lines Lv1 and Lv2 extend from both ends of the electrical resistance unit Rv to the current detection unit 26A. Therefore, the current detection unit 26A can detect the potential difference across the electrical resistance unit Rv. The potential difference across the electrical resistance unit Rv has a magnitude corresponding to the current Iv flowing through the electrical resistance unit Rv. The current value of the current Iv can be calculated by dividing the potential difference across the electrical resistance unit Rv by the resistance value of the electrical resistance unit Rv. Signal lines Lw1 and Lw2 extend from both ends of the electrical resistance portion Rw to the current detection portion 26A. Therefore, the current detection portion 26A can detect the potential difference between both ends of the electrical resistance portion Rw. The potential difference between both ends of the electrical resistance portion Rw has a magnitude corresponding to the current Iw flowing through the electrical resistance portion Rw. The current value of the current Iw can be calculated by dividing the potential difference between both ends of the electrical resistance portion Rw by the resistance value of the electrical resistance portion Rw.

[0199] Fig. 23 is a diagram showing a current detection unit 26A according to embodiment 4. As shown in Fig. 23, the current detection unit 26A includes differential amplifiers 39u, 39v, and 39w instead of the amplifiers 33u, 33v, and 33w shown in Fig. 8. Each of the differential amplifiers 39u, 39v, and 39w is, for example, a differential amplifier including an operational amplifier or the like.

[0200] Signal lines Lu1 and Lu2 are connected to the differential amplifier 39u. Therefore, the differential amplifier 39u amplifies the potential difference across the electrical resistance unit Ru (FIG. 22) and outputs a voltage signal SGu indicating the amplified potential difference to the first selector 41 and the second selector 42. The processing of the voltage signal SGu after the differential amplifier 39u is similar to the processing of the voltage signal SGu after the amplifier 33u shown in FIG. 8. For example, after the voltage signal SGu is converted into a digital signal by the detector 312 or the detector 322, the calculator 21 calculates the current value of the current Iu by dividing the potential difference across the electrical resistance unit Ru indicated by the digital signal by the resistance value of the electrical resistance unit Ru.

[0201] Signal lines Lv1 and Lv2 are connected to the differential amplifier 39v. Therefore, the differential amplifier 39v amplifies the potential difference across the electrical resistance Rv (FIG. 22) and outputs a voltage signal SGv indicating the amplified potential difference to the first selector 41 and the second selector 42. The processing of the voltage signal SGv after the differential amplifier 39v is similar to the processing of the voltage signal SGv after the amplifier 33v shown in FIG. 8. After the voltage signal SGv is converted into a digital signal by the detector 312 or the detector 322, the calculator 21 calculates the current value of the current Iv by dividing the potential difference across the electrical resistance Rv indicated by the digital signal by the resistance value of the electrical resistance Rv.

[0202] Signal lines Lw1 and Lw2 are connected to the differential amplifier 39w. Therefore, the differential amplifier 39w amplifies the potential difference across the electrical resistance portion Rw (FIG. 22) and outputs a voltage signal SGw indicating the amplified potential difference to the first selector 41 and the second selector 42. The processing of the voltage signal SGw after the differential amplifier 39w is the same as the processing of the voltage signal SGw after the amplifier 33w shown in FIG. 8. After the voltage signal SGw is converted into a digital signal by the detector 312 or the detector 322, the calculator 21 calculates the current value of the current Iw by dividing the potential difference across the electrical resistance portion Rw indicated by the digital signal by the resistance value of the electrical resistance portion Rw.

[0203] As described above with reference to FIG. 22 , according to the fourth embodiment, the lines Lu, Lv, and Lw are connected to the connection points N of the switching units Uu, Uv, and Uw, respectively. The maximum and minimum phase currents of the currents Iu, Iv, and Iw flow from the lines Lu, Lv, and Lw into the current sensor unit 3B. Therefore, the current detection unit 26A can detect the maximum and minimum phase currents via the current sensor unit 3B regardless of whether the second switching element SW2 is on or off. In other words, the current detection unit 26A can detect the maximum and minimum phase currents without being restricted by the second switching element SW2. Furthermore, because the electrical resistance units Ru, Rv, and Rw are used, the control device 100B can be implemented relatively inexpensively.

[0204] The embodiments of the present invention have been described above with reference to the drawings. However, the present invention is not limited to the above embodiments and can be implemented in various forms without departing from the spirit of the present invention. Furthermore, the components disclosed in the above embodiments can be modified as appropriate. For example, some of the components shown in one embodiment may be added to the components of another embodiment, or some of the components shown in one embodiment may be deleted from the embodiment.

[0205] Furthermore, the drawings mainly show each component in a schematic manner to facilitate understanding of the invention, and the thickness, length, number, spacing, etc. of each component shown in the drawings may differ from the actual ones due to the convenience of creating the drawings. Furthermore, the configuration of each component shown in the above embodiment is merely an example and is not particularly limited, and it goes without saying that various modifications are possible within a range that does not substantially deviate from the effects of the present invention.

[0206] 20 to 22, the control device 100B controls the three-phase inverter 1. However, the control device 100B may also control the N-phase inverter 1A. In this case, for example, in FIG. 21, the current sensor unit 3B includes N magnetic cores and N current sensors. For example, in FIG. 22, the current sensor unit 3B includes N electrical resistance units R.

[0207] The present invention can be suitably used in a control device and a control method.

Claims

1. A control device for controlling an N-phase inverter that applies a voltage to each of N phases, where N is an odd number greater than or equal to 3, comprising: a current detection unit that detects the current of each of (N-1) phases other than the intermediate phase among the currents applied to the N phases when the phase that applies the (N+1) / 2 largest voltage at the current detection time is defined as an intermediate phase; and a calculation unit that calculates the current value of the current of the intermediate phase based on the detection result of the current detection unit.

2. The control device according to claim 1, wherein N is "3" and the N phases are three phases.

3. The control device according to claim 2, wherein the current detection unit comprises a first detector and a second detector, and when the phase to which the largest voltage is applied among the voltages applied to each of the three phases at the current detection time is defined as the maximum phase, the first detector detects the current of the largest phase among the currents of each of the three phases, and when the phase to which the smallest voltage is applied among the voltages applied to each of the three phases at the current detection time is defined as the minimum phase, the second detector detects the current of the smallest phase among the currents of each of the three phases.

4. The control device according to claim 3, wherein the N-phase inverter is a three-phase inverter driven by a PWM signal, the three-phase inverter comprising three switching units that apply voltages to the three phases, each of the three switching units comprising: a first switching element on a first voltage side of a DC power supply unit; and a second switching element connected in series with the first switching element and on a second voltage side of the DC power supply unit, the control device further comprising three electrical resistance units for detecting currents of the three phases, the electrical resistance units being connected between the second switching elements and the DC power supply unit, and the current detection units detecting the currents of the phases flowing through the two electrical resistance units respectively connected to the two second switching elements that are turned on at the current detection times synchronized with a carrier wave for generating the PWM signal.

5. The control device described in claim 4, wherein, when it is determined that the period (Tm in Figure 7) during which the second switching element for applying voltage to the maximum phase is on is shorter than the period (Td in Figure 7) preset for detecting current by the current detection unit, the current detection unit detects the current of the intermediate phase instead of the maximum phase, and the calculation unit calculates the current value of the current of the maximum phase based on the detection results of the current of the intermediate phase and the current of the minimum phase.

6. A control method executed by a control device that controls an N-phase inverter that applies voltages to N phases, where N is an odd number greater than or equal to 3, comprising: a current detection step of detecting currents in (N-1) phases other than the intermediate phase among the currents applied to the N phases, where the phase that applies the (N+1) / 2 largest voltage at the current detection time among the voltages applied to the N phases is defined as an intermediate phase; and a calculation step of calculating a current value of the current in the intermediate phase based on the detection result of the current detection step.

Citation Information

Patent Citations

  • Control device for washing machine

    JP2003164197A