This application claims priority to and the benefit of Korean Patent Application No. 10-2013-0096842 filed in the Korean Intellectual Property Office on Aug. 14, 2013, the entire contents of which are incorporated herein by reference.
(a) Technical Field
The present disclosure relates to an apparatus for controlling a vehicle, and a control method thereof, and more particularly, to apparatus and method for controlling a vehicle with improved motor control performance by easily determining whether to automatically correct an offset value upon determination of a resolver offset while the vehicle is running.
(b) Description of the Related Art
In general, a motor control unit (MCU) is used to control a motor provided in an electric vehicle or a hybrid vehicle. To this end, a resolver is used to measure the absolute position of the rotor with respect to the stator of the vehicle motor.
A resolver is a type of transformer, in which when an excitation voltage is applied to a primary winding to rotate the axis of the resolver, a magnetic coupling coefficient is changed to generate a voltage that changes an amplitude of a carrier in a secondary winding. In this case, windings are arranged such that the generated voltage is changed in the form of sinusoidal waves of sine and cosine with respect to a rotation angle of the axis. Thus, a rotation angle of the resolver may be calculated by reading a carrier amplitude ratio between a sine output and a cosine output.
The resolver operating based on the foregoing principle detects speed information and phase of the motor and provides position information regarding the rotor to an MCU, where position information regarding the rotor is used as information for generating torque and speed commands.
However, measuring an absolute position of the rotor with respect to the stator by using the resolver generates an offset due to various factors such as assembly tolerance between the resolver and the motor, inaccuracy in the position of a coil within the resolver, and the like,
The generated offset makes it impossible to measure an accurate absolute position of the rotor with respect to the stator. Thus, the motor cannot be controlled normally.
Conventionally, in order to correct offset generated in the resolver, waveforms of a line-to-line back electromotive force of the motor and the resolver are analyzed using a measurement instrument such as an oscilloscope, and the offset value with respect to the sensing error is thereby corrected.
However, such a method is performed through manual operation by an operator, requiring much time to correct the offset. Thereby, workload of the operator is increased, and an offset value of every vehicle is required to be corrected, which is impractical. In addition, different offset correction values may be obtained according to differing skills of operators.
The above information disclosed in this Background section is only for enhancement of understanding of the background of the invention and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art.
The present invention has been made in an effort to provide an apparatus of controlling a vehicle provided with a motor and a control method thereof having advantages of precisely calculating a resolver offset and monitoring the same when a vehicle is running.
The present invention has been made in an effort to provide an apparatus and method for controlling a vehicle provided with a motor having advantages of enhancing control performance of a motor by providing an accurately calculated resolver offset to a motor control unit (MCU).
The present invention has been made in an effort to provide an apparatus and method for controlling a vehicle provided with a motor having advantages of reducing cost for fabricating a vehicle by calculating a resolver offset generated during a vehicle installation process by software, rather than correcting it using external equipment.
An exemplary embodiment of the present invention provides an apparatus of controlling a vehicle provided with a motor, including: a current command generator configured to determine first and second axes currents according to driving conditions; a current controller configured to generate first and second axes voltages by using the first and second axes currents generated by the current command generator and first and second axes feedback currents; an axis converter configured to convert the first and second axes voltages into 3-phase voltages, convert 3-phase feedback currents into first and second axes feedback currents, and transmit the converted 3-phase voltages and the converted first and second axes feedback currents to the current controller; a pulse width modulation (PWM) generator configured to receive the 3-phase voltages from the axis converter and generate corresponding 3-phase signals; a PWM inverter configured to generate 3-phase currents from the 3-phase signals and transmit the 3-phase currents as 3-phase feedback currents to the axis converter; a motor configured to be driven upon receiving the 3-phase currents from the PWM inverter; a resolver configured to detect a phase of the motor and transmit the detected phase of the motor to the current command generator and the axis converter; and a resolver offset determining unit configured to calculate a resolver offset value α by using a D axis voltage value vd and a Q axis voltage value vq sensed at a certain speed of the motor, mapping data with respect to a current command or a torque command at the certain speed of the motor, and an offset candidate value.
The mapping data may be generated by a D axis voltage value and a Q axis voltage value calculated in a state in which a resolver offset is corrected over a temperature and a current command or a torque command in a certain testing environment and a D axis voltage value and a Q axis voltage value when zero current controlling is performed in a state in which a resolver offset is corrected.
The resolver offset value α may be calculated by the following equation:
Here, α is a resolver offset value, α* is an offset candidate value, vd is a D axis voltage value, vq is a Q axis voltage value, vd-resolver is a D axis voltage value output from mapping data, and vq-resolver-zero is a Q axis voltage value output from the mapping data after zero current controlling.
The resolver offset value α may be calculated by the following equation:
Here, α is a resolver offset value, α* is an offset candidate value, vq is a Q axis voltage value, vq-resolver is a Q axis voltage value output from mapping data, and vq-resolver-zero is a Q axis voltage value output from the mapping data after zero current controlling.
The resolver offset value α may be calculated by the following equation:
Here, α is a resolver offset value, α* is an offset candidate value, vd is a D axis voltage value, vq is a Q axis voltage value, vd-resolver is a D axis voltage value output from mapping data, vq-resolver is a Q axis voltage value output from the mapping data, and vq-resolver-zero is a Q axis voltage value output from the mapping data after zero current controlling.
Another embodiment of the present invention provides a method for controlling a vehicle provided with a motor, including: determining whether a rotational speed of a motor has reached a particular rotational speed; when it is determined that the motor has reached the particular rotational speed, determining whether a feedback current has been converged according to a type of mapping data; and when it is determined that the feedback current has been converged, calculating a resolver offset value α by using a D axis voltage value and a Q axis voltage value of the motor, mapping data of a current command and a torque command at a certain speed of the motor, and an offset candidate value.
the resolver offset value α may be calculated by equation of
wherein α is a resolver offset value, α* is an offset candidate value, vd is a D axis voltage value, vq is a Q axis voltage value, vd-resolver is a D axis voltage value output from mapping data, and vq-resolver-zero is a Q axis voltage value output from the mapping data after zero current controlling.
the resolver offset value α may be calculated by the following equation:
wherein α is a resolver offset value, α* is an offset candidate value, vq is a Q axis voltage value, vq-resolver is a Q axis voltage value output from mapping data, and vq-resolver-zero is a Q axis voltage value output from the mapping data after zero current controlling.
the resolver offset value α is calculated by the following equation:
wherein α is a resolver offset value, α* is an offset candidate value, vd is a D axis voltage value, vq is a Q axis voltage value, vd-resolver is a D axis voltage value output from mapping data, vq-resolver is a Q axis voltage value output from the mapping data, and vq-resolver-zero is a Q axis voltage value output from the mapping data after zero current controlling.
The following drawings appended to the specification illustrate embodiments of the present invention to serve a technical concept of the present invention to be understood easily together with detailed descriptions of the present invention, so the present invention should not be meant to restrict the invention to the matters illustrated in the accompanying drawings.
Hereinafter, the present invention will be described more fully hereinafter with reference to the accompanying drawings, in which exemplary embodiments of the invention are shown. As those skilled in the art would realize, the described embodiments may be modified in various different ways, all without departing from the spirit or scope of the present invention.
To clarify the present invention, portions irrespective of description are limited and like numbers refer to like elements throughout the specification.
The vehicle having a motor may be applied to a hybrid vehicle, an electric vehicle, or a fuel cell vehicle. In this case, the motor 110 may be configured to simultaneously perform driving and charging.
The motor 110, serving to provide dynamic force (or power) to the vehicle, is controlled by the MCU 130. The MCU 130 includes an inverter that converts direct current (DC) into alternating current (AC) of variable frequency and variable voltage, and a controller that controls current and voltage.
The resolver 120, a motor position sensor for measuring a position of a rotor of a motor, transmits rotational position information of the motor 110 to the MCU 130, and the MCU 130 controls current and voltage to be supplied to the motor 110 on the basis of the rotational position information.
The MCU may be provided as one or more processors operating under control of a pre-set program, and the pre-set program may be configured to perform each operation of a method of controlling a vehicle provided with a motor according to an embodiment of the present invention.
The current command generator 210 determines a D axis current and a Q axis current according to driving conditions of the vehicle. To this end, the current command generator 210 has a D axis current map and a Q axis current map. Thus, when a torque T* required for current driving conditions and a current speed ω of the motor 110 are input to the current command generator 210, the current command generator 210 calculates a D axis current id* and a Q axis current iq* corresponding to the torque and the speed of the motor.
The current controller 220 calculates a D axis voltage Vd* and a Q axis voltage Vq* by using the D axis current id* and the Q axis current iq* and a D axis feedback current id and a Q axis feedback current ig delivered from the current command generator 210.
The axis converter 230 receives the D axis voltage Vd* and the Q axis voltage Vq* from the current controller 220 and converts the received voltages into a 3-phase AC voltages Va*, Vb*, and Vc*. Also, the axis converter 230 receives 3-phase ACs ia, ib, and ic applied to the motor 110 as feedback currents and converts the received feedback currents into a D axis feedback current id and a Q axis feedback current iq.
The PWM generator 240 converts the 3 phase AC voltages Va*, Vb*, and Vc* from the axis converter 2300 and converts the same into 3-phase switching signals Sa, Sb, and Sc.
The PWM inverter 250 includes a plurality of switching elements. The PWM inverter 250 receives the 3-phase switching signals Sa, Sb, and Sc from the PWM generator 240 and converts the same into 3-phase ACs ia, ib, and ic.
The motor 110 is driven upon receiving the 3-phase ACs ia, ib, and ic from the PWM inverter 250.
The resolver 120 is installed in the motor 110 to detect the phase of the motor 110, and delivers the detected phase to the axis converter 230 and the current command generator 210.
The resolver offset determining unit 260 determines an offset of the resolver 120 by using a torque command and a current command delivered from the current command generator 210, a current and a speed fed back from the motor 110, monitored D axis and Q axis voltages, and the like.
In an embodiment of the present invention, a resolver offset is calculated during zero current controlling or even during a basic torque control section, while the vehicle is running.
The speed determining unit 310 monitors a current speed and torque command of the motor 110, and determines whether the motor has reached a particular speed. The sensing and convergence calculating unit 320 senses a torque command, a current command, a voltage command, and feedback current, and determines whether the feedback current has been converged. Also, the resolver offset calculating unit 3330 calculates an offset of the resolver by using the sensed speed and voltage of the motor 110.
Hereinafter, a method of calculating an offset of the resolver will be described in detail. First, a voltage equation of the motor related to the resolver while the vehicle is running has the relationship of Equation 1.
Here, R is resistance applied to the motor, Ld is D axis inductance, Lq is Q axis inductance, ΨF is a magnitude of magnetic flux, a is an actual offset, α* is an offset candidate value, Vd is a D axis voltage, Vq is a Q axis voltage, and ω is an angular velocity of a rotor. Here, the offset candidate value α* is a value stored in the MCU, rather than an actual resolver offset value.
A voltage equation in a certain rotational speed ωREF′ of the motor rotor has the relationship of Equation 2.
In this case, in Equation 2, when zero current controlling is performed in a certain testing environment, rather than in a state in which the motor is installed in the vehicle, a D axis current and a Q axis current are converged to 0, so Equation 2 has the relationship of Equation 3.
vd=−ωREFΨF sin(α−α*)
vq=+ωREFΨF cos(α−α*) (Equation 3)
A resolver offset value in the certain testing environment can be obtained from Equation 3. Here, when the calculated resolver offset value is substituted for Equation 2 and Equation 3, Equation 2 and Equation 3 may be modified as follows.
The voltage values calculated in Equation 4 and Equation 5 are values according to temperature and current commands at different certain motor speeds. Thus, the voltage values may be configured as a map according to the speed and temperature of the motor and a change in the current command.
Resistance R and a magnitude ΨF of magnetic flux are variables related to temperature, and inductance DeletedTextsandDeletedTextsare variables related to a current amount. Thus, mapping data may be secured by using a D axis current, a Q axis current, and temperature information at the certain speed DeletedTextsof the motor rotor.
Namely, the voltage values calculated by Equation 4 are a D axis voltage value and a Q axis voltage value calculated in a state in which a resolver offset was corrected over the temperature and current commands in the certain testing environment, and the voltage values calculated by Equation 4 are a D axis voltage value and a Q axis voltage value when zero current controlling was performed in a state in which the resolver offset was corrected.
In general, in the case of a current command, since it is configured as a map corresponding to required torque, vd and vq mapping data may be secured by using a torque command. Also, the rotational speed of the motor may be used to secure mapping data at a certain rotational speed of the motor.
Namely, mapping data may be secured by a temperature and current command, by a temperature and torque command, or by a temperature, a current command, and a speed of the motor.
As a vd vq mapping method, any one the method using a current command and the method using a torque command as described above may be selected, and it is important to output vd-resolver, vq-resolver and vq-resolver-zero according to required circumstances.
Thereafter, in order to obtain a resolver offset value in a state in which the motor is actually installed in the vehicle, the following process may be performed by using Equation 3 and Equation 4.
First, When Equation 2 is subtracted from Equation 4, the relationship of Equation 6 is obtained.
vd-resolver=−ωREFΨF sin(α−α*)
vq-resolver=+ωREFΨF cos(α−α*)−ωREFΨF (Equation 6)
Here, when the value ωREFΨF obtained from Equation 6 is substituted for Equation 6, Equation 6 is modified as follows.
A resolver offset value α as represented by Equation 8 may be obtained by applying Equation 9.
The resolver offset value α calculated through Equation 8 to Equation 10 may be continuously monitored while the vehicle is running, and may be corrected as necessary, whereby control performance of the motor can be enhanced.
Hereinafter, a process of calculating an offset of the vehicle provided with the motor according to an embodiment of the present invention will be described with reference to
As illustrated in
When it is determined that the rotational speed of the motor rotor has reached the certain rotational speed in the speed determining operation, the sensing and convergence determining unit 320 determines whether a reference is a current command or a torque command according to a type of the mapping data, determines whether a feedback current has converged, and subsequently outputs a D axis voltage value vd and a Q axis voltage value vq to the resolver offset calculating unit 330 (S20).
The resolver offset calculating unit 330 calculates a resolver offset value α by using the D axis voltage value vd and the Q axis voltage value vq output from the sensing and convergence determining unit 320 and vd-resolver and vq-resolver output from the mapping data, through Equation 8 to Equation 10 (S30).
According to embodiments of the present invention as described above, since whether an offset of the resolver is appropriate is continuously monitored while a vehicle is running and an offset of the resolver is provided to the MCU, accuracy of motor control can be enhanced.
Also, since a resolver offset generated during a process of installing the motor in a vehicle is calculated by software, rather than being corrected by external equipment, and provided to the MCU which automatically controls the motor according to the resolver offset, cost incurred for manufacturing the vehicle can be reduced.
While this invention has been described in connection with what is presently considered to be practical exemplary embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, but, on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
10-2013-0096842 | Aug 2013 | KR | national |
Number | Name | Date | Kind |
---|---|---|---|
8853979 | Wu et al. | Oct 2014 | B2 |
Number | Date | Country |
---|---|---|
2002-136171 | May 2002 | JP |
2012-136202 | Jul 2012 | JP |
10-1093517 | Dec 2011 | KR |
10-2013-0060047 | Jun 2013 | KR |
Number | Date | Country | |
---|---|---|---|
20150048765 A1 | Feb 2015 | US |