Current detection device, motor control device, and electric power steering device
The current detection device addresses offset current inaccuracies in electric motors by using resistive elements and offset correction calculations, ensuring precise current detection and reducing torque ripple for improved electric power steering performance.
Patent Information
- Application Number
- JP2024500970
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-02-18
- Filing Date
- 2022-12-08
- Publication Date
- 2024-10-04
- Estimated Expiration
- 2042-12-08
AI Technical Summary
Existing current detection systems in electric motors experience offset currents during PWM control, leading to inaccurate current detection and potential torque ripple in electric power steering devices, causing driver discomfort.
A current detection device with resistive elements connected in series to switching elements of a polyphase inverter, calculating offset correction values during PWM control, and updating these values based on current detection during switching element off periods, while avoiding updates during specific duty ratio conditions to maintain accuracy.
Accurate detection of offset currents in electric motors, reducing torque ripple and enhancing steering comfort by correcting current values, thereby improving the control of electric power steering systems.
Smart Images

Figure 0007562038000001 
Figure 0007562038000002 
Figure 0007562038000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a current detection device, a motor control device, and an electric power steering device. [Background technology]
[0002] Pulse Width Modulation (PWM) control is known as a means for driving electric motors. In PWM control, a switching element is turned on and off by a PWM signal with a duty ratio according to a command value, and a voltage according to the duty ratio is applied to the electric motor. The current flowing through the electric motor due to this voltage application is detected by a current detector, and the difference between the target value and the detected current value is used as the deviation for generating a command value. In such a configuration, even if the current to be passed through the electric motor is zero, the current detected by the current detector may not be zero. Such a current is called an offset current, and the detected current value detected by the current detector is the current actually flowing through the electric motor plus the offset current. For this reason, the offset current causes an error in the detected current value by the current detector.
[0003] When an offset error (i.e., an error caused by an offset current) occurs, the detected current value does not match the value of the current actually flowing through the electric motor, making it impossible to control the electric motor current as set. For example, in an electric power steering device that assists the steering of a vehicle, if an offset error occurs during control of an electric motor that generates a steering assist force, torque ripple occurs during steering, which can make the driver feel uncomfortable.
[0004] For this reason, the power steering device of the following Patent Document 1 is provided with a current detection means for detecting a current flowing through a switching element as a current flowing through an electric motor, and a correction means for correcting a detection value by the current detection means. This correction means obtains an offset correction value based on a detection value of a current detected by the current detection means during a period when the switching element is off under PWM control, and corrects a current detected by the current detection means during a period when the switching element is on with the offset correction value. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Patent No. 4474896 specification Summary of the Invention [Problem to be solved by the invention]
[0006] However, when attempting to detect an offset current occurring in a current detector that detects a current flowing through a switching element during PWM control, the offset current may not be detected accurately. The present invention has been made in light of the above-mentioned problems, and has an object to accurately detect an offset current generated in a current detector that detects a current flowing through a switching element of a multi-phase inverter during PWM control. [Means for solving the problem]
[0007] In order to achieve the above object, a current detection device according to one aspect of the present invention includes a current detection unit that detects a current flowing through a switching element of either an upper arm or a lower arm of a PWM-controlled multi-phase inverter based on a voltage drop across a resistor element connected in series to the switching element, a correction value calculation unit that calculates an offset correction value based on a detection value of the current detected by the current detection unit during a period when the switching element is off during PWM control and holds and updates the calculated offset correction value, and a correction unit that corrects the detection value of the current detected by the current detection unit during a period when the switching element is on using the offset correction value held in the correction value calculation unit. When the switching element is a lower-arm switching element and the duty ratio of the PWM control is equal to or lower than a duty ratio lower limit value, or when the switching element is an upper-arm switching element and the duty ratio is equal to or higher than a duty ratio upper limit value, the correction value calculation unit does not update the offset correction value.
[0008] A motor control device according to another aspect of the present invention includes a multi-phase inverter having switching elements, the above-mentioned current detection device that detects a current flowing through the switching elements, and a controller that controls the multi-phase inverter based on a current value detected by the current detection device. An electric power steering device according to still another aspect of the present invention includes the motor control device described above and a polyphase motor controlled by the motor control device, and applies a steering assist force to a steering system of a vehicle by the polyphase motor. Effect of the Invention
[0009] According to the present invention, an offset current occurring in a current detector that detects a current flowing through a switching element of a multi-phase inverter can be detected with high accuracy during PWM control. [Brief description of the drawings]
[0010] [Figure 1] 1 is a configuration diagram showing an overview of an example of an electric power steering device according to an embodiment; [Diagram 2]FIG. 1 is a configuration diagram showing an outline of an example of an electronic control unit (ECU). [Diagram 3] FIG. 2 is a configuration diagram showing an outline of another example of an electronic control unit (ECU). [Figure 4] 4 is a circuit diagram showing an example of a configuration of a current detection unit. FIG. [Diagram 5] FIG. 2 is a block diagram showing an example of a functional configuration of a control calculation unit. [Figure 6] FIG. 4 is a block diagram of an example of a current detection value correction unit. [Figure 7] 13A is a time chart showing the on-period and off-period of the switching element of the lower arm, FIG. 13B is a schematic time chart of the output value of the current detection unit, and FIG. 13C is a schematic time chart of the offset correction value. [Figure 8] 1A is a time chart showing the on-period and off-period of the switching element of the lower arm when the duty ratio is small, and FIG. 1B is a schematic time chart of the output value of the current detection unit. [Figure 9] 11 is a flowchart of an example of a method for setting an offset correction value. [Figure 10] FIG. 2 is a configuration diagram showing an overview of a first modified example of an electric power steering device. [Figure 11] FIG. 11 is a configuration diagram showing an overview of a second modified example of an electric power steering device. [Figure 12] FIG. 11 is a configuration diagram showing an overview of a third modified example of an electric power steering device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] The embodiments of the present invention will be described in detail with reference to the drawings. Note that the embodiments of the present invention shown below are merely examples of devices and methods for embodying the technical idea of the present invention, and the technical idea of the present invention does not limit the configuration, arrangement, etc. of the components to those described below. The technical idea of the present invention can be modified in various ways within the technical scope defined by the claims.
[0012] (composition) 1 is a schematic diagram showing an example of an electric power steering (EPS) device according to an embodiment. A steering shaft (steering shaft, handle shaft) 2 of a steering wheel (steering handle) 1 is connected to steered wheels 8L, 8R via reduction gears (worm gears) 3 constituting a reduction mechanism, universal joints 4a and 4b, a pinion rack mechanism 5, and tie rods 6a and 6b, and further via hub units 7a and 7b.
[0013] The pinion rack mechanism 5 has a pinion 5a connected to a pinion shaft to which steering force is transmitted from the universal joint 4b, and a rack 5b that meshes with this pinion 5a. The rotational motion transmitted to the pinion 5a is converted into linear motion in the vehicle width direction by the rack 5b. The steering shaft 2 is provided with a torque sensor 10 for detecting a steering torque Th. The steering shaft 2 is also provided with a steering angle sensor 14 for detecting a steering angle θh of the steering wheel 1.
[0014] In addition, a motor 20 that assists the steering force of the steering wheel 1 is connected to the steering shaft 2 via a reduction gear 3. In this specification, an example in which the motor 20 is a three-phase motor will be described, but the number of phases of the motor 20 does not have to be three. An electronic control unit (ECU) 30 that controls the electric power steering device is supplied with power from a battery 13 and receives an ignition key signal via an ignition switch 11.
[0015] The ECU 30 calculates a current command value of an assist control command based on the steering torque Th detected by the torque sensor 10, the vehicle speed Vh detected by the vehicle speed sensor 12, and the steering angle θh detected by the steering angle sensor 14, and controls the currents (U-phase current I1u, V-phase current I1v, and W-phase current I1w) supplied to the motor 20 using a voltage control command value obtained by performing compensation, etc. on the current command value. Incidentally, the steering angle sensor 14 is not essential, and the steering angle θh may be calculated by adding the torsion angle of the torsion bar of the torque sensor 10 to the motor rotation angle θm obtained from a rotation angle sensor 21 that detects the rotation angle of the rotating shaft of the motor 20. Also, instead of the steering angle θh, the turning angle of the steered wheels 8L, 8R may be used. For example, the turning angle may be detected by detecting the displacement amount of the rack 5b.
[0016] The ECU 30 includes, for example, a computer including a processor and peripheral components such as a storage device, etc. The processor may be, for example, a CPU (Central Processing Unit) or an MPU (Micro-Processing Unit). The storage device may include any one of a semiconductor storage device, a magnetic storage device, and an optical storage device. The storage device may include a register, a cache memory, a memory such as a ROM (Read Only Memory) and a RAM (Random Access Memory) used as a main memory device. The functions of the ECU 30 described below are realized, for example, by a processor of the ECU 30 executing a computer program stored in a storage device.
[0017] The ECU 30 may be formed of dedicated hardware for executing each of the information processes described below. For example, the ECU 30 may include a functional logic circuit configured in a general-purpose semiconductor integrated circuit, or may have a programmable logic device (PLD) such as a field programmable gate array (FPGA).
[0018] 2 is a schematic diagram illustrating an example of the ECU 30 according to the embodiment. The ECU 30 includes a control calculation unit 31, a gate drive circuit 32a, an inverter 33a, a motor rotation speed calculation unit 34, and current detection units 35a to 35c. The control calculation unit 31 calculates a current command value, which is a control target value of the drive current of the motor 20, based on at least the steering torque Th, and outputs voltage control command values V1u, V1v, and V1w obtained by performing compensation on the current command value to the gate drive circuit 32a. The voltage control command values V1u, V1v, and V1w are a U-phase voltage control command value for the U-phase coil, a V-phase voltage command value for the V-phase coil, and a W-phase voltage command value for the W-phase coil, respectively.
[0019] The gate drive circuit 32a calculates duty ratios Du, Dv, and Dw of PWM signals for driving the U-phase coil, the V-phase coil, and the W-phase coil based on the voltage control command values V1u, V1v, and V1w. The gate drive circuit 32a outputs PWM signals according to the calculated duty ratios Du, Dv, and Dw to the inverter 33a. The inverter 33a includes a three-phase bridge connected between a positive line that is connected to a DC power source Vdc and receives DC power, and a ground line.
[0020] The three-phase bridge includes switching element pairs in which switching elements Q1u1, Q1v1, Q1w1 in upper arms for U-phase, V-phase, and W-phase and switching elements Q1u2, Q1v2, Q1w2 in lower arms for U-phase, V-phase, and W-phase are respectively connected in series with each other. A U-phase current I1u supplied to a U-phase coil of the motor 20 is supplied from a connection point between the switching elements Q1u1 and Q1u2, a V-phase current I1v supplied to a V-phase coil is supplied from a connection point between the switching elements Q1v1 and Q1v2, and a W-phase current I1w supplied to a W-phase coil is supplied from a connection point between the switching elements Q1w1 and Q1w2.
[0021] Shunt resistors r1u, r1v, and r1w are connected in series between the ground wire and the switching elements Q1u2, Q1v2, and Q1w2 of the lower arms of the U, V, and W phases. Current detection units 35a to 35c, which will be described later, can detect the current flowing through the switching elements Q1u2, Q1v2, and Q1w2 of the lower arms by detecting the voltage drops occurring in the shunt resistors r1u, r1v, and r1w. In addition, shunt resistors r1u, r1v, r1w may be provided between the upper arm switching elements Q1u1, Q1v1, Q1w1 of the U phase, V phase, and W phase and the positive side line, and the current detection units 35a to 35c may detect the current flowing through the upper arm switching elements Q1u1, Q1v1, Q1w1.
[0022] The motor rotation speed calculation unit 34 calculates the motor rotation angle θm (for example, the motor electrical angle) of the motor 20 based on the detection signal of the rotation angle sensor 21 and outputs the motor rotation angle θm to the control calculation unit 31. The current detection units 35a to 35c output detection values I1ud, I1vd, and I1wd of the currents flowing through the lower arm switching elements Q1u2, Q1v2, and Q1w2 based on the voltage drops occurring across the shunt resistors r1u, r1v, and r1w. Fig. 4 is a circuit diagram showing an example of the configuration of the current detection unit 35a. The current detection unit 35a includes a differential amplifier circuit 36 that generates a current detection signal according to the magnitude of the voltage drop occurring in the shunt resistor r1u, and a low-pass filter (LPF) 37 connected to the output of the differential amplifier circuit 36. The same is true for the current detection units 35b and 35c. In Fig. 4, Vcc is a predetermined voltage generated by the power generation circuit, and may be, for example, 5 [V].
[0023] In the current detection unit 35a configured in this manner, even if the voltage drop across the shunt resistor r1u is zero (i.e., the current flowing through the shunt resistor r1u is zero), the detection value by the current detection unit 35a may not be zero (i.e., the detection value may include an offset current). Such an offset current is generated due to, for example, aging of the differential amplifier circuit 36 or a change in temperature of the current detection unit 35a.
[0024] FIG. 3 is a configuration diagram showing an outline of another example of the ECU 30 of the embodiment. The ECU 30 of FIG. 3 controls a double-winding motor as the motor 20. The double-winding motor has a double winding in which a first system coil and a second system coil are wound in the same motor housing to rotate a common rotor by the coils of the two systems. The ECU 30 includes a control calculation unit 31, a first system gate drive circuit 32a and a first system inverter 33a that drive the first system coil of the motor 20, a second system gate drive circuit 32b and a second system inverter 33b that drive the second system coil, a motor rotation speed calculation unit 34, and current detection units 35a to 35f. The configuration of the motor rotation speed calculation unit 34 of FIG. 3 is the same as the configuration of the motor rotation speed calculation unit 34 of FIG. 2.
[0025] The control calculation unit 31 calculates a current command value, which is a control target value of the drive current of the motor 20, based on at least the steering torque Th, and outputs voltage control command values V1u, V1v, V1w, V2u, V2v, and V2w obtained by performing compensation on the current command value to the first system gate drive circuit 32a and the second system gate drive circuit 32b. The voltage control command values V1u, V1v, and V1w are the U-phase voltage control command value, V-phase voltage command value, and W-phase voltage command value of the first system coil, respectively, and the voltage control command values V2u, V2v, and V2w are the U-phase voltage control command value, V-phase voltage command value, and W-phase voltage command value of the second system coil, respectively. The first-system gate drive circuit 32a calculates duty ratios Du, Dv, Dw of the U-phase, V-phase, and W-phase of a PWM signal for driving a first-system coil based on the voltage control command values V1u, V1v, and V1w. The first-system gate drive circuit 32a outputs a PWM signal according to the calculated duty ratios Du, Dv, and Dw to the first-system inverter 33a. The configurations of the first-system gate drive circuit 32a, the first-system inverter 33a, and the current detection units 35a to 35c in FIG. 3 are similar to the configurations of the drive circuit 32a, the inverter 33a, and the current detection units 35a to 35c in FIG.
[0026] The second-system gate drive circuit 32b calculates duty ratios Du, Dv, Dw of the U-phase, V-phase, and W-phase of the PWM signal for driving the second-system coil based on the voltage control command values V2u, V2v, V2w. The second-system gate drive circuit 32b outputs the PWM signal according to the calculated duty ratios Du, Dv, Dw to the second-system inverter 33b. The second system inverter 33b includes a three-phase bridge connected between a positive pole side line that is connected to a DC power source Vdc and receives DC power, and a ground line.
[0027] The three-phase bridge includes switching element pairs in which switching elements Q2u1, Q2v1, Q2w1 in upper arms for U-phase, V-phase, and W-phase, and switching elements Q2u2, Q2v2, Q2w2 in lower arms for U-phase, V-phase, and W-phase, are connected in series with each other. U-phase current I2u supplied to the first system coil of the motor 20 is supplied from the connection point of the switching elements Q2u1 and Q2u2, V-phase current I2v is supplied from the connection point of the switching elements Q2v1 and Q2v2, and W-phase current I2w is supplied from the connection point of the switching elements Q2w1 and Q2w2.
[0028] Shunt resistors r2u, r2v, and r2w are connected in series between the ground wire and the switching elements Q2u2, Q2v2, and Q2w2 of the lower arms of the U, V, and W phases. Current detection units 35d to 35f, which will be described later, can detect the current flowing through the switching elements Q2u2, Q2v2, and Q2w2 of the lower arms by detecting the voltage drops occurring in the shunt resistors r2u, r2v, and r2w. In addition, shunt resistors r2u, r2v, r2w may be provided between the switching elements Q2u1, Q2v1, Q2w1 of the upper arms of the U phase, V phase, and W phase and the positive side line, and the current detection units 35d to 35f may detect the current flowing through the switching elements Q2u1, Q2v1, Q2w1 of the upper arms. The current detection units 35d to 35f output detection values I2ud, I2vd, and I2wd of the currents flowing through the lower arm switching elements Q2u2, Q2v2, and Q2w2 based on the voltage drops occurring across the shunt resistors r2u, r2v, and r2w. The configuration of the current detection units 35d to 35f is similar to the configuration of the current detection unit 35a described with reference to FIG.
[0029] Fig. 5 is a block diagram of an example of the functional configuration of the control calculation unit 31. In the following description, only the functional configuration for controlling the single-system inverter 33a will be described. In a configuration having two systems of inverters 33a and 33b as in Fig. 3, the inverters in the two systems are each provided with the functional configuration described below. The control calculation unit 31 includes a current command value calculation unit 40, subtractors 41 and 42, a current limiting unit 43, a proportional-integral (PI) control unit 44, a two-phase / three-phase conversion unit 45, current detection value correction units 46a to 46c, a three-phase / two-phase conversion unit 47, and an angular velocity conversion unit 48, and drives the motor 20 by vector control.
[0030] The current command value calculation unit 40 calculates a q-axis current command value Iq0 and a d-axis current command value Id0 to be passed through the motor 20 based on the steering torque Th, the vehicle speed Vh, the motor rotation angle θm of the motor 20, and the rotation angular velocity ω of the motor 20. On the other hand, the detection values I1ud, I1vd, I1wd of the U-phase current, V-phase current, and W-phase current of the motor 20 detected by the current detection units 35a to 35c are input to current detection value correction units 46a to 46c. The current detection value correctors 46a to 46c calculate the U-phase current I1u, the V-phase current I1v, and the W-phase current I1w by performing correction to remove offset currents from the detection values I1ud, I1vd, and I1wd. The configuration and operation of the current detection value correctors 46a to 46c will be described later.
[0031] The U-phase current I1u, the V-phase current I1v, and the W-phase current I1w are converted by a three-phase / two-phase converter 47 into currents id and iq of the d-q two axes. Subtractors 41 and 42 calculate the q-axis deviation current Δq0 and the d-axis deviation current Δd0 by subtracting the fed-back currents iq and id from the q-axis current command value Iq0 and the d-axis current command value Id0, respectively. The current limiting unit 43 limits the upper limits of the q-axis deviation current Δq0 and the d-axis deviation current Δd0. The limited q-axis deviation current Δq and d-axis deviation current Δd are input to the PI control unit 44.
[0032] The PI control unit 44 calculates voltage command values vq, vd such that the q-axis deviation current Δq and the d-axis deviation current Δd are each set to 0. The two-phase / three-phase conversion unit 45 converts the voltage command values vd, vq into a U-phase voltage control command value V1u, a V-phase voltage command value V1v, and a W-phase voltage command value V1w, respectively, and outputs them to the gate drive circuit 32a. The angular velocity conversion unit 48 calculates the rotational angular velocity ω of the motor 20 based on the change over time in the motor rotational angle θm. The motor rotational angle θm and the rotational angular velocity ω are input to the current command value calculation unit 40 and used for vector control.
[0033] 6 is a block diagram of an example of the current detection value correction unit 46a. The current detection value correction units 46b and 46c have the same configuration as the current detection value correction unit 46a. The current detection value correction unit 46a includes a scale conversion unit 50a, a correction value calculation unit 50b, a subtractor 50c, a gain correction value storage unit 50d, and a multiplier 50e. The scale conversion unit 50a converts the detection value I1ud, which is output from the current detection unit 35a that detects the U-phase current and converted into a digital format, into a current value. For example, the scale conversion unit 50a may convert the detection value I1ud into a current value by multiplying it by a predetermined coefficient.
[0034] The correction value calculation unit 50b dynamically calculates an offset correction value for correcting an offset error (i.e., an error due to an offset current) occurring in the current detection unit 35a during PWM control by the ECU 30, and holds and updates the calculated offset correction value. That is, the correction value calculation unit 50b calculates the offset error periodically or as needed during PWM control, and updates the offset error previously calculated and held with the newly calculated offset error.
[0035] The correction value calculation unit 50b calculates the offset correction value based on the detection value I1ud of the current detected by the current detection unit 35a during the period when the switching element Q1u2 of the lower arm of the U phase is off. For example, the detection value I1ud of the current detected by the current detection unit 35a during the period when the switching element Q1u2 is off may be used as the offset correction value. For example, the correction value calculation unit 50b may calculate, as the offset correction value, an average of detection values output N times by the current detection unit 35a while the switching element Q1u2 is off during a predetermined period (hereinafter sometimes referred to as a "detection value collection period P") during which the detection values I1ud are collected (N is a natural number equal to or greater than 1). In this case, the correction value calculation unit 50b updates the offset correction value it holds with a newly calculated offset correction value for each detection value collection period P.
[0036] For example, if the length of the detection value collection period P is 1 [sec] and the period during which the correction value calculation unit 50b acquires the output of the current detection unit 35a during the period when the switching element Q1u2 is off is 1 [ms], the average of 1,000 detection values may be calculated as the offset correction value. The correction value calculation unit 50b may obtain the output of the current detection unit 35a every PWM period, or every several PWM periods. 7(a) is a time chart showing the on-period and off-period of the switching element Q1u2, FIG. 7(b) is a schematic time chart of the output value I1ud of the current detection unit 35a, and FIG. 7(c) is a schematic time chart of the offset correction value. ON and I OFFare the steady-state value of the output value I1ud during the ON period of the switching element Q1u2 and the steady-state value of the output value I1ud during the OFF period, respectively.
[0037] The correction value calculation unit 50b may acquire the output value I1ud of the current detection unit 35a at each of the sampling times s1, s2, ... sN during one detection value collection period P starting at time t0 and ending at time t1, and calculate the average of the N acquired output values I1ud as the offset correction value. The sampling times s1, s2, . . . sN are, for example, the off period P of the switching element Q1u2. OFF The time may be set to the center of the time.
[0038] FIG. 8(a) is a time chart showing the on-period and off-period of the switching element Q1u2 of the lower arm of the U-phase when the duty ratio Du of the U-phase is small, and FIG. 8(b) is a schematic time chart of the output value of the current detection unit 35a. As shown in Fig. 4, an LPF 37 is provided at the output of the current detection unit 35a. For this reason, when the switching element Q1u2 is switched, the waveform of the output value of the current detection unit 35a becomes rounded, as shown in Fig. 7(b) and Fig. 8(b). Therefore, when the duty ratio Du of the U phase is small, the detection value I1ud during the off period a may not be sampled properly. For example, when the detection value I1ud of the current detection unit 35a is sampled at the sampling time s1 shown in FIG. 8(b), the steady value I OFF Therefore, a detection value larger than
[0039] Therefore, the correction value calculation unit 50b stops updating the offset correction value of the U phase when the duty ratio Du of the U phase is equal to or less than the lower limit Dth (for example, 14%) (in other words, the offset correction value of the U phase is not updated when the duty ratio Du is equal to or less than the lower limit Dth). For example, when detecting that the duty ratio Du of the U phase is equal to or less than the lower limit Dth at any time during a certain detection value collection period P, the correction value calculation unit 50b sets the duty reduction detection flag F1 from off to on. When the duty reduction detection flag F1 is on at the time when the detection value collection period P expires, the correction value calculation unit 50b stops updating the offset correction value of the U phase currently held with the offset correction value calculated based on the detection value I1ud collected during the detection value collection period P (in other words, does not perform the update). The correction value calculation unit 50b may receive duty information regarding the duty ratios Du, Dv, and Dw from the gate drive circuit 32a. Similarly, the V-phase current detection value correction unit 46b stops updating the V-phase offset correction value when the V-phase duty ratio Dv is equal to or lower than the lower limit value Dt (in other words, the V-phase offset correction value is not updated when the duty ratio Dv is equal to or lower than the lower limit value Dt), and the W-phase current detection value correction unit 46c stops updating the W-phase offset correction value when the W-phase duty ratio Dw is equal to or lower than the lower limit value Dt (in other words, the W-phase offset correction value is not updated when the duty ratio Dw is equal to or lower than the lower limit value Dt).
[0040] Also, for example, the correction value calculation unit 50b may stop updating the offset correction value of the U phase when the duty ratio Dv of the V phase or the duty ratio Dw of the W phase is equal to or less than the lower limit value Dth even if the duty ratio Du of the U phase is greater than the lower limit value Dth (in other words, even if the duty ratio Du is greater than the lower limit value Dth, the offset correction value of the U phase is not updated when the duty ratio Dv or the duty ratio Dw is equal to or less than the lower limit value Dth). This is because, when the duty ratios Dv and Dw of the V and W phases are small, the time when the correction value calculation unit 50b obtains the detection value I1ud of the current detection unit 35a and the time when the switching elements are switched on and off in the V and W phases are close to each other, and therefore, there is a risk of avoiding the influence of noise due to switching.
[0041] For example, when the correction value calculation unit 50b detects that the duty ratio Dv or Dw becomes equal to or lower than the lower limit value Dth at any time during a certain detection value collection period P, the correction value calculation unit 50b sets the duty decrease detection flag F1 from OFF to ON. When the duty decrease detection flag F1 is ON at the time when the detection value collection period P expires, the correction value calculation unit 50b stops updating the currently held offset correction value of the U phase with the offset correction value calculated based on the detection values I1ud collected during the detection value collection period P (in other words, the correction value calculation unit 50b does not update the currently held offset correction value of the U phase with the offset correction value calculated based on the detection values I1ud collected during the detection value collection period P).
[0042] Similarly, in the V-phase current detection value correction unit 46b, even if the V-phase duty ratio Dv is greater than the lower limit value Dth, the U-phase and W-phase duty ratios Du, Dw are equal to or less than the lower limit value Dt, the V-phase offset correction value may be stopped from being updated (in other words, even if the duty ratio Dv is greater than the lower limit value Dth, the V-phase offset correction value is not updated if the duty ratios Du, Dw are equal to or less than the lower limit value Dt). Also, in the W-phase current detection value correction unit 46c, even if the W-phase duty ratio Dw is greater than the lower limit value Dt, the W-phase offset correction value may be stopped from being updated if the U-phase and V-phase duty ratios Du, Dv are equal to or less than the lower limit value Dt (in other words, even if the duty ratio Dw is greater than the lower limit value Dt, the W-phase offset correction value is not updated if the duty ratios Du, Dv are equal to or less than the lower limit value Dt). In addition, when the shunt resistors r1u, r1v, and r1w are provided between the switching elements of the upper arms of the U-phase, V-phase, and W-phase and the positive side line, the updating of the offset correction value is stopped when the duty ratio is equal to or greater than the upper limit (in other words, the updating of the offset correction value is not performed when the duty ratio is equal to or greater than the upper limit).
[0043] Furthermore, the correction value calculation unit 50b may prohibit updating of the offset correction value of the U phase based on the detection value I1ud when the detection value I1ud of the current detected by the current detection unit 35a during the period when the switching element Q1u2 is off exceeds the upper limit value Ith (in other words, when the detection value I1ud exceeds the upper limit value Ith, the offset correction value of the U phase is not updated based on the detection value I1ud). The upper limit value Ith may be set appropriately to a magnitude (e.g., 1 ampere) that is not expected to occur as an offset current. For example, the correction value calculation unit 50b sets the U-phase abnormal value detection flag F2u from OFF to ON when it detects that the detection value I1ud exceeds the upper limit value Ith at any time during a certain detection value collection period P. If the U-phase abnormal value detection flag F2u is ON at the expiration time of the detection value collection period P, the correction value calculation unit 50b stops updating the currently held U-phase offset correction value with the offset correction value calculated based on the detection value I1ud collected during the detection value collection period P (in other words, the correction value calculation unit 50b does not update the currently held U-phase offset correction value with the offset correction value calculated based on the detection value I1ud collected during the detection value collection period P).
[0044] The correction value calculation unit 50b may not prohibit updating of the offset correction value of the U phase even when the detection value I1vd of the current detected by the current detection unit 35b during the period when the V-phase switching element Q1v2 is off exceeds the upper limit value Ith, or when the detection value I1wd of the current detected by the current detection unit 35c during the period when the W-phase switching element Q1w2 is off exceeds the upper limit value Ith (in other words, the offset correction value of the U phase may be updated even when the detection value I1vd exceeds the upper limit value Ith or when the detection value I1wd exceeds the upper limit value Ith). This is because even if an abnormal value is detected in the V phase or W phase, there is no problem in calculating the offset correction value if no abnormal value is detected in the U phase.
[0045] Similarly, when the V-phase current detection value correction unit 46b detects that the detection value I1vd of the current detection unit 35b exceeds the upper limit value Ith, the V-phase abnormal value detection flag F2v may be set from off to on to prohibit updating of the V-phase offset correction value due to the detection value I1vd exceeding the upper limit value Ith (in other words, the V-phase offset correction value is not updated due to the detection value I1vd exceeding the upper limit value Ith). Also, when the W-phase current detection value correction unit 46c detects that the detection value I1wd of the current detection unit 35c exceeds the upper limit value Ith, the W-phase abnormal value detection flag F2w may be set from off to on to prohibit updating of the W-phase offset correction value due to the detection value I1wd exceeding the upper limit value Ith (in other words, the W-phase offset correction value is not updated due to the detection value I1wd exceeding the upper limit value Ith).
[0046] 6, the subtractor 50c corrects the detection value I1ud by subtracting the offset correction value held in the correction value calculation unit 50b from the detection value I1ud of the current detected by the current detection unit 35a during the period in which the switching element Q1u2 is on. The multiplier 50e multiplies the result of the subtraction by the correction value calculation unit 50b by a predetermined gain stored in the gain correction value storage unit 50d, and outputs the product as the corrected U-phase current I1u.
[0047] 9 is a flowchart of an example of a method for setting offset correction values in the current detection value correction units 46a to 46c. In the following description of the flowchart, the detection value I1ud of the U-phase current detection unit 35a of the first system and the detection value I2ud of the U-phase current detection unit 35d of the second system are collectively referred to as the "detection value Iud", the detection value I1vd of the V-phase current detection unit 35b of the first system and the detection value I2vd of the V-phase current detection unit 35e of the second system are collectively referred to as the "detection value Ivd", and the detection value I1wd of the W-phase current detection unit 35c of the first system and the detection value I2wd of the W-phase current detection unit 35f of the second system are collectively referred to as the "detection value Iwd".
[0048] In step S1, the duty reduction detection flag F1, the U-phase abnormal value detection flag F2u, the V-phase abnormal value detection flag F2v, and the W-phase abnormal value detection flag F2w are set to OFF, and the value of the count variable CNT is initialized to 0. In step S2, the detection value Iud of the U phase is detected. In step S3, it is determined whether the duty ratio Du of the U phase is equal to or less than the lower limit Dth. If the duty ratio Du of the U phase is equal to or less than the lower limit Dth (step S3: Y), the process proceeds to step S4. If the duty ratio Du of the U phase is not equal to or less than the lower limit Dth (step S3: N), the process proceeds to step S5.
[0049] In step S4, the duty reduction detection flag F1 is set to ON, and then the process proceeds to step S5. In step S5, it is determined whether the detection value Iud of the U phase exceeds the upper limit value Ith. If the detection value Iud of the U phase exceeds the upper limit value Ith (step S5: Y), the process proceeds to step S6. If the detection value Iud of the U phase does not exceed the upper limit value Ith (step S5: N), the process proceeds to step S7. In step S6, the U-phase abnormal value detection flag F2u is set to ON, and then the process proceeds to step S7.
[0050] In step S7, the detection value Ivd of the V phase is detected. In step S8, it is determined whether the V-phase duty ratio Dv is equal to or less than the lower limit Dth. If the V-phase duty ratio Dv is equal to or less than the lower limit Dth (step S8: Y), the process proceeds to step S9. If the V-phase duty ratio Dv is not equal to or less than the lower limit Dth (step S8: N), the process proceeds to step S10. In step S9, the duty reduction detection flag F1 is set to ON, and then the process proceeds to step S10.
[0051] In step S10, it is determined whether the detection value Ivd of the V phase exceeds the upper limit value Ith. If the detection value Ivd of the V phase exceeds the upper limit value Ith (step S10: Y), the process proceeds to step S11. If the detection value Ivd of the V phase does not exceed the upper limit value Ith (step S10: N), the process proceeds to step S12. In step S11, the V-phase abnormal value detection flag F2v is set to ON, and then the process proceeds to step S12.
[0052] In step S12, the detection value Iwd of the W phase is detected. In step S13, it is determined whether the duty ratio Dw of the W phase is equal to or less than the lower limit Dth. If the duty ratio Dw of the W phase is equal to or less than the lower limit Dth (step S13: Y), the process proceeds to step S14. If the duty ratio Dw of the W phase is not equal to or less than the lower limit Dth (step S13: N), the process proceeds to step S15. In step S14, the duty reduction detection flag F1 is set to ON, and then the process proceeds to step S15.
[0053] In step S15, it is determined whether the detection value Iwd of the W phase exceeds the upper limit value Ith. If the detection value Iwd of the W phase exceeds the upper limit value Ith (step S15: Y), the process proceeds to step S16. If the detection value Iwd of the W phase does not exceed the upper limit value Ith (step S15: N), the process proceeds to step S17. In step S16, the W-phase abnormal value detection flag F2w is set to ON, and the process then proceeds to step S17.
[0054] In step S17, it is determined whether the count variable CNT is equal to or greater than N. If the count variable CNT is equal to or greater than N (step S17: Y), it is determined that one detection value collection period P has expired, and the process proceeds to step S19. If the count variable CNT is not equal to or greater than N (step S17: N), the process proceeds to step S18. In step S18, the value of the count variable CNT is incremented by one, and the process returns to step S2.
[0055] In step S19, it is determined whether the duty reduction detection flag F1 is on. If the duty reduction detection flag F1 is on (step S19: Y), the process proceeds to step S26. In this case, the offset correction value of the U phase, the offset correction value of the V phase, and the offset correction value of the W phase are not updated. If the duty decrease detection flag F1 is not on (step S19: N), the process proceeds to step S20.
[0056] In step S20, it is determined whether the U-phase abnormal value detection flag F2u is on. If the U-phase abnormal value detection flag F2u is on (step S20: Y), the process proceeds to step S22. In this case, the offset correction value of the U-phase is not updated. If the U-phase abnormal value detection flag F2u is not on (step S20: N), the process proceeds to step S21. In step S21, a new offset correction value for the U phase is calculated, and the currently held offset correction value is updated. After that, the process proceeds to step S22.
[0057] In step S22, it is determined whether the V-phase abnormal value detection flag F2v is on. If the V-phase abnormal value detection flag F2v is on (step S22: Y), the process proceeds to step S24. In this case, the V-phase offset correction value is not updated. If the V-phase abnormal value detection flag F2v is not on (step S22: N), the process proceeds to step S23. In step S23, a new offset correction value for the V phase is calculated, and the currently held offset correction value is updated. After that, the process proceeds to step S24.
[0058] In step S24, it is determined whether the W-phase abnormal value detection flag F2w is on. If the W-phase abnormal value detection flag F2w is on (step S24: Y), the process proceeds to step S26. In this case, the W-phase offset correction value is not updated. If the W-phase abnormal value detection flag F2w is not on (step S24: N), the process proceeds to step S25. In step S25, a new W-phase offset correction value is calculated, and the currently held offset correction value is updated, after which the process proceeds to step S26. In step S26, it is determined whether or not the ignition switch 11 is turned off. If the ignition switch 11 is turned off (step S26: Y), the process ends. If the ignition switch 11 is not turned off (step S26: N), the process returns to step S1.
[0059] (Modification) In the above explanation, an example has been described in which the rotation angle detection device of the present invention is applied to an electric power steering device of a column assist type, which is a so-called upstream assist type, but the rotation angle detection device of the present invention may also be applied to an electric power steering device of a downstream assist type. Below, configuration examples in which the rotation angle detection device of the present invention is applied to electric power steering devices of a single pinion assist type, a rack assist type, and a dual pinion assist type, as examples of electric power steering devices of the downstream assist type, will be explained. In the case of the downstream assist system, the motor 20, the rotation angle sensor 21, and the ECU 30 may not be separate bodies but may be integrated into an MCU (Motor Control Unit) as shown by the dashed lines in Figs. 10 to 12 for waterproofing purposes.
[0060] 10 shows an example of a configuration in which the rotation angle detection device of the present invention is applied to a single-pinion assist type electric power steering device. A steering wheel 1 is connected to one universal joint 4a of an intermediate shaft via a steering shaft 2. An input shaft 4c of a torsion bar (not shown) is connected to the other universal joint 4b. The pinion rack mechanism 5 includes a pinion gear (pinion) 5a, a rack bar (rack) 5b, and a pinion shaft 5c. The input side shaft 4c and the pinion rack mechanism 5 are connected by a torsion bar (not shown) that twists due to a difference in rotation angle between the input side shaft 4c and the pinion rack mechanism 5. The torque sensor 10 electromagnetically measures the torsion angle of the torsion bar as the steering torque Th of the steering wheel 1. A motor 20 that assists the steering force of the steering wheel 1 is connected to the pinion shaft 5c via a reduction gear 3, and a rotation angle sensor 21 calculates rotation angle information of the motor rotation shaft of the motor 20 in the same manner as in the above embodiment.
[0061] 11 shows an example of a configuration in which the rotation angle detector of the present invention is applied to a rack-assist type electric power steering device. A spiral groove (not shown) is formed on the outer peripheral surface of the rack bar 5b, and a similar lead spiral groove (not shown) is also formed on the inner peripheral surface of the nut 51. A ball screw is formed by arranging multiple rolling elements in the rolling path formed by these spiral grooves. A belt 54 is wound around a drive pulley 52 connected to a rotating shaft 20a of a motor 20 that assists the steering force of the steering wheel 1, and a driven pulley 53 connected to a nut 51, and the rotational motion of the rotating shaft 20a is converted into linear motion of a rack bar 5b. The rotation angle sensor 21 calculates rotation angle information of the motor rotating shaft of the motor 20 in the same manner as in the above embodiment.
[0062] 12 shows a configuration example in which the rotation angle detection device of the present invention is applied to a dual pinion assist type electric power steering device. The dual pinion assist type electric power steering device has a second pinion shaft 55 and a second pinion gear 56 in addition to a pinion shaft 5c and a pinion gear 5a, and a rack bar 5b has first rack teeth (not shown) that mesh with the pinion gear 5a and second rack teeth (not shown) that mesh with the second pinion gear 56. A motor 20 that assists the steering force of the steering wheel 1 is connected to the second pinion shaft 55 via a reduction gear 3, and a rotation angle sensor 21 calculates rotation angle information of the motor rotating shaft of the motor 20 in the same manner as in the above embodiment.
[0063] (Effects of the embodiment) (1) The ECU 30 includes current detection units 35a to 35f that detect a current flowing through a switching element based on a voltage drop of a resistor element connected in series to a switching element of either an upper arm or a lower arm of a PWM-controlled multi-phase inverter, a correction value calculation unit 50b that calculates an offset correction value based on a detection value of a current detected by the current detection units 35a to 35f during a period when the switching element is off during PWM control, and holds and updates the calculated offset correction value, and a correction unit 50c that corrects the detection value of a current detected by the current detection units 35a to 35f during a period when the switching element is on, using the offset correction value held in the correction value calculation unit 50b. When any one of the switching elements is a lower-arm switching element and the duty ratio of the PWM control is equal to or less than a duty ratio lower limit, or when any one of the switching elements is an upper-arm switching element and the duty ratio is equal to or more than a duty ratio upper limit, the correction value calculation unit 50b does not update the offset correction value.
[0064] This makes it possible to avoid a decrease in the detection accuracy of the offset current due to the current detection units 35a-35f being unable to properly sample the detection values during the period when the switching elements of the lower arm are off when the duty ratio is small. Alternatively, it is possible to avoid a decrease in the detection accuracy of the offset current due to the current detection units 35a-35f being unable to properly sample the detection values during the period when the switching elements of the upper arm are off when the duty ratio is large. As a result, the offset current generated in the current detector that detects the current flowing through the switching elements of the multi-phase inverter can be detected with high accuracy during PWM control.
[0065] (2) When any one of the above switching elements is a lower arm switching element and the duty ratio in at least one phase of the multi-phase inverter is equal to or less than the lower duty ratio limit value, or when any one of the above switching elements is an upper arm switching element and the duty ratio in at least one phase of the multi-phase inverter is equal to or more than the upper duty ratio limit value, it is not necessary to update the offset correction value in other phases of the multi-phase inverter. This makes it possible to avoid the influence of noise caused by switching of the switching elements when calculating the offset correction values for the other phases.
[0066] (3) The correction value calculation unit 50b may calculate, as the offset correction value, an average of the detection values of the currents detected by the current detection units 35a to 35f during a predetermined period in which the switching elements are off. This makes it possible to remove minute noise in the detection values of the current detection units 35a to 35f.
[0067] (4) When the detection value of the current detected by the current detection units 35a to 35f during a period in which the switching element is off exceeds the upper limit, the correction value calculation unit 50b does not need to update the offset correction value based on the detection value exceeding the upper limit. This makes it possible to prevent a decrease in the detection accuracy of the offset current due to an abnormal detection value of the current detection units 35a to 35f.
[0068] (5) When the detection value of the current detected by the current detection units 35a to 35f during a period in which the switching elements in one of the phases of the multi-phase inverter are off exceeds an upper limit value, and when the detection value of the current detected by the current detection units 35a to 35f during a period in which the switching elements in another phase of the multi-phase inverter are off does not exceed the upper limit value, the offset correction value in the other phase may be updated. Even if an abnormal value is detected in one phase, calculation of the offset correction value is not hindered if no abnormal value is detected in the other phases. Therefore, by not prohibiting updating of the offset correction value in the other phases, it is possible to prohibit updating of the offset correction value to a necessary extent. [Explanation of symbols]
[0069] 1...steering wheel, 2...steering shaft, 3...reduction gear, 4a, 4b...universal joint, 4c...input side shaft, 5...pinion rack mechanism, 5a...pinion, 5b...rack, 5c...pinion shaft, 6a, 6b...tie rod, 7, 7b...hub unit, 8L, 8R...steered wheels, 10...torque sensor, 11...ignition switch, 12...vehicle speed sensor, 13...battery, 14...steering angle sensor, 20...motor, 20a...rotating shaft, 21...rotation angle sensor, 30...electronic control unit, 31...control calculation unit, 32a...first system gate drive circuit, 32b...second system gate drive circuit, 33a...first system inverter, 3 3b...second system inverter, 34...motor rotation speed calculation unit, 35a to 35f...current detection unit, 36...differential amplifier circuit, 37...low pass filter (LPF), 40...current command value calculation unit, 41, 42, 50c...subtractor, 43...current limiting unit, 44...proportional integral control unit, 45...two-phase / three-phase conversion unit, 46a to 46c...current detection value correction unit, 47...three-phase / two-phase conversion unit, 48...angular velocity conversion unit, 50a...scale conversion unit, 50b...correction value calculation unit, 50c...correction unit, 50d...gain correction value storage unit, 50e...multiplier, 51...nut, 52...driving pulley, 53...driven pulley, 54...belt, 55...second pinion shaft, 56...second pinion gear
Claims
1. a current detection unit that detects a current flowing through a switching element of either an upper arm or a lower arm of a PWM-controlled multi-phase inverter based on a voltage drop across a resistor that is connected in series with the switching element; a correction value calculation unit that calculates an offset correction value based on a detection value of a current detected by the current detection unit during a period in which the switching element is off during PWM control, and holds and updates the calculated offset correction value; a correction unit that corrects a detection value of a current detected by the current detection unit during a period in which the switching element is on, using the offset correction value stored in the correction value calculation unit; When the switching element is a lower arm switching element and the duty ratio of the PWM control is equal to or less than a duty ratio lower limit value, or when the switching element is an upper arm switching element and the duty ratio is equal to or more than a duty ratio upper limit value, the correction value calculation unit does not update the offset correction value, a correction value calculation unit that does not update the offset correction value in other phases of the multi-phase inverter when the switching element is a lower arm switching element and the duty ratio in at least one phase of the multi-phase inverter is equal to or lower than the duty ratio lower limit value, or when the switching element is an upper arm switching element and the duty ratio in at least one phase of the multi-phase inverter is equal to or higher than the duty ratio upper limit value.
2. 2. The current detection device according to claim 1, wherein the correction value calculation unit calculates, as the offset correction value, an average of detection values of the current detected by the current detection unit during a predetermined period in which the switching element is off.
3. The current detection device according to claim 1 or 2, characterized in that, when the detection value of the current detected by the current detection unit during a period in which the switching element is off exceeds an upper limit value, the correction value calculation unit does not update the offset correction value based on the detection value exceeding the upper limit value.
4. 4. The current detection device according to claim 3, wherein the correction value calculation unit updates the offset correction value in one of the phases of the multi-phase inverter when a detection value of the current detected by the current detection unit during a period in which the switching element is off in the other phase of the multi-phase inverter exceeds the upper limit value and when a detection value of the current detected by the current detection unit during a period in which the switching element is off in the other phase of the multi-phase inverter does not exceed the upper limit value.
5. a multi-phase inverter having switching elements; a current detection device for detecting a current flowing through the switching element according to claim 1 or 2; a controller that controls the multi-phase inverter based on a current value detected by the current detection device; A motor control device comprising:
6. The motor control device according to claim 5 ; a polyphase motor controlled by the motor control device; An electric power steering device, characterized in that the polyphase motor applies a steering assist force to a steering system of a vehicle.
7. a current detection unit that detects a current flowing through a switching element of either an upper arm or a lower arm of a PWM-controlled multi-phase inverter based on a voltage drop across a resistor that is connected in series with the switching element; a correction value calculation unit that calculates an offset correction value based on a detection value of a current detected by the current detection unit during a period in which the switching element is off during PWM control, and holds and updates the calculated offset correction value; a correction unit that corrects a detection value of a current detected by the current detection unit during a period in which the switching element is on, using the offset correction value stored in the correction value calculation unit; When the switching element is a lower arm switching element and the duty ratio of the PWM control is equal to or less than a duty ratio lower limit value, or when the switching element is an upper arm switching element and the duty ratio is equal to or more than a duty ratio upper limit value, the correction value calculation unit does not update the offset correction value, the correction value calculation unit does not update the offset correction value based on a detection value exceeding an upper limit value when a detection value of the current detected by the current detection unit during a period in which the switching element is off exceeds an upper limit value. A current detection device comprising:
8. 8. The current detection device according to claim 7, wherein the correction value calculation unit updates the offset correction value in one of the phases of the multi-phase inverter when a detection value of the current detected by the current detection unit during a period in which the switching element is off in the other phase of the multi-phase inverter exceeds the upper limit value and when a detection value of the current detected by the current detection unit during a period in which the switching element is off in the other phase of the multi-phase inverter does not exceed the upper limit value.
9. a multi-phase inverter having switching elements; A current detection device according to claim 7 or 8, which detects a current flowing through the switching element; a controller that controls the multi-phase inverter based on a current value detected by the current detection device; A motor control device comprising:
10. The motor control device according to claim 9 ; a polyphase motor controlled by the motor control device; An electric power steering device, characterized in that the polyphase motor applies a steering assist force to a steering system of a vehicle.
11. A multi-phase inverter having switching elements; A current detection device according to claim 3, which detects a current flowing through the switching element; a controller that controls the multi-phase inverter based on a current value detected by the current detection device; A motor control device comprising:
12. A multi-phase inverter having switching elements; A current detection device according to claim 4, which detects a current flowing through the switching element; a controller that controls the multi-phase inverter based on a current value detected by the current detection device; A motor control device comprising:
Citation Information
Patent Citations
Controller of motor for electric power steering
JP2010207087A
Motor control device
JP2011072151A
Power steering system
JP4474896B2
