JPWO2019142875A1 - Electric power steering device and method for detecting rotation angle of motor for electric power steering device - Google Patents

Electric power steering device and method for detecting rotation angle of motor for electric power steering device Download PDF

Info

Publication number
JPWO2019142875A1
JPWO2019142875A1 JP2019549502A JP2019549502A JPWO2019142875A1 JP WO2019142875 A1 JPWO2019142875 A1 JP WO2019142875A1 JP 2019549502 A JP2019549502 A JP 2019549502A JP 2019549502 A JP2019549502 A JP 2019549502A JP WO2019142875 A1 JPWO2019142875 A1 JP WO2019142875A1
Authority
JP
Japan
Prior art keywords
wave signal
sine wave
cosine wave
correction
cosine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2019549502A
Other languages
Japanese (ja)
Other versions
JP6669318B2 (en
Inventor
恭正 瓜生
恭正 瓜生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NSK Ltd
Original Assignee
NSK Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NSK Ltd filed Critical NSK Ltd
Application granted granted Critical
Publication of JP6669318B2 publication Critical patent/JP6669318B2/en
Publication of JPWO2019142875A1 publication Critical patent/JPWO2019142875A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62DMOTOR VEHICLES; TRAILERS
    • B62D5/00Power-assisted or power-driven steering
    • B62D5/04Power-assisted or power-driven steering electrical, e.g. using an electric servo-motor connected to, or forming part of, the steering gear
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D5/00Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
    • G01D5/12Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means
    • G01D5/14Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing the magnitude of a current or voltage
    • G01D5/20Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing the magnitude of a current or voltage by varying inductance, e.g. by a movable armature
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D5/00Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
    • G01D5/12Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means
    • G01D5/244Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing characteristics of pulses or pulse trains; generating pulses or pulse trains
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P6/00Arrangements for controlling synchronous motors or other dynamo-electric motors using electronic commutation dependent on the rotor position; Electronic commutators therefor
    • H02P6/14Electronic commutators
    • H02P6/16Circuit arrangements for detecting position

Abstract

回転角を高精度に検出することができる電動パワーステアリング装置、及び回転角検出方法を提供する。電動パワーステアリング装置は、モータがステアリングのコラム軸に設けられ、回転角検出装置により検出された回転角を用いてモータを駆動制御することにより、ステアリングの操舵力をトルク制御する。回転角検出装置は、円環状のレゾルバステータと、軸心周りの1周当たり、当該レゾルバステータの内周との間の間隙dが複数回変化する複数の極を有するレゾルバロータとを備え、レゾルバロータの回転に応じて電気角の正弦波信号及び余弦波信号を出力するレゾルバと、正弦波信号及び余弦波信号に基づき、モータの位置を検出する位置検出部と、正弦波信号及び余弦波信号を補正するための第1補正値及び第2補正値が記憶される記憶部(EEPROM)と、を備える。Provided are an electric power steering device capable of detecting a rotation angle with high accuracy, and a rotation angle detection method. In the electric power steering device, a motor is provided on a steering column shaft, and the steering force of the steering is torque-controlled by drivingly controlling the motor using the rotation angle detected by the rotation angle detection device. The rotation angle detection device includes a ring-shaped resolver stator and a resolver rotor having a plurality of poles in which a gap d between the inner circumference of the resolver stator and the inner periphery of the resolver stator changes a plurality of times. A resolver that outputs a sine wave signal and a cosine wave signal of an electrical angle according to the rotation of the rotor, a position detection unit that detects the motor position based on the sine wave signal and the cosine wave signal, and a sine wave signal and a cosine wave signal A storage unit (EEPROM) for storing a first correction value and a second correction value for correcting

Description

本発明は、電動パワーステアリング装置、及び回転角検出方法に関する。   The present invention relates to an electric power steering device and a rotation angle detecting method.

乗用車やトラック等の車両の操舵力を軽減するため、モータによって操舵を補助する、いわゆる電動パワーステアリング(EPS:Electric Power Steering)装置がある。電動パワーステアリング装置は、車両のステアリング機構にモータが発生する補助操舵力を付与する操舵補助制御機能を有している。このような電動パワーステアリング装置において、操舵補助制御の精度を高めるためには、モータの位置(回転角)を高精度に検出する必要がある。また、モータの位置(回転角)を検出する位置センサとしては、単純な構成に起因する堅牢さや耐環境性から、レゾルバが広く用いられる(例えば、特許文献1)。   There is a so-called electric power steering (EPS) device in which steering is assisted by a motor in order to reduce the steering force of vehicles such as passenger cars and trucks. The electric power steering device has a steering assist control function for applying an assist steering force generated by a motor to a steering mechanism of a vehicle. In such an electric power steering apparatus, in order to improve the accuracy of the steering assist control, it is necessary to detect the position (rotation angle) of the motor with high accuracy. Further, as a position sensor for detecting the position (rotation angle) of a motor, a resolver is widely used because of its robustness and environmental resistance due to its simple configuration (for example, Patent Document 1).

特開2011−097679号公報JP, 2011-097679, A

特に、ステアリングに直結されたコラム軸に設けられた減速機を介してステアリングに補助操舵力を付与するコラムアシスト型の電動パワーステアリング装置では、モータのトルクリップル等によって発生する振動がステアリングに伝達し易い。   In particular, in a column-assist type electric power steering device that applies an auxiliary steering force to the steering through a speed reducer provided on a column shaft directly connected to the steering, vibration generated by torque ripple of a motor is transmitted to the steering. easy.

本発明は、上記の課題に鑑みてなされたものであって、回転角を高精度に検出することができる電動パワーステアリング装置、及び回転角検出方法を提供すること、を目的としている。   The present invention has been made in view of the above problems, and an object of the present invention is to provide an electric power steering device and a rotation angle detection method capable of detecting a rotation angle with high accuracy.

上記の目的を達成するため、本発明の一態様に係る電動パワーステアリング装置は、モータがステアリングのコラム軸に設けられ、回転角検出装置により検出された回転角を用いて前記モータを駆動制御することにより、前記ステアリングの操舵力をトルク制御する電動パワーステアリング装置であって、前記回転角検出装置は、円環状のレゾルバステータと、軸心周りの1周当たり、当該レゾルバステータの内周との間の間隙が複数回変化する複数の極を有するレゾルバロータとを備え、前記レゾルバロータの回転に応じて電気角の正弦波信号及び余弦波信号を出力するレゾルバと、前記正弦波信号及び前記余弦波信号に基づき、前記モータの位置を検出する位置検出部と、前記正弦波信号及び前記余弦波信号を補正するための第1補正値及び第2補正値が記憶される記憶部と、を備え、前記位置検出部は、前記第1補正値及び前記第2補正値を算出すると共に、前記第1補正値に基づき、前記正弦波信号及び前記余弦波信号のオフセット電圧及びゲインを補正し、前記第2補正値に基づき、前記正弦波信号及び前記余弦波信号の位相を補正する補正演算処理部と、前記補正演算処理部の出力信号に基づき、前記モータの回転角を算出する角度演算部と、を備え、前記補正演算処理部は、前記第1補正値及び前記第2補正値を算出する補正値算出処理において、前記正弦波信号及び前記余弦波信号の最大値及び最小値に基づき、前記第1補正値を算出し、前記第1補正値に基づき、前記正弦波信号及び前記余弦波信号のオフセット電圧及びゲインを補正した第1正弦波信号及び第1余弦波信号を求め、前記第1正弦波信号及び前記第1余弦波信号の位相をそれぞれ電気角で45度進めた第2正弦波信号及び第2余弦波信号を求め、前記第2正弦波信号及び前記第2余弦波信号の最大値及び最小値に基づき、前記第2補正値を算出し、前記正弦波信号及び前記余弦波信号を補正する補正処理において、前記第1補正値に基づき、前記正弦波信号及び前記余弦波信号のオフセット電圧及びゲインを補正した第1正弦波信号及び第1余弦波信号を求め、前記第1正弦波信号及び前記第1余弦波信号の位相をそれぞれ電気角で45度進めた第2正弦波信号及び第2余弦波信号を求め、前記第2補正値に基づき、少なくとも、前記第2正弦波信号及び前記第2余弦波信号のゲインを補正した第3正弦波信号及び第3余弦波信号を求め、前記第3正弦波信号及び前記第3余弦波信号の位相をそれぞれ電気角で45度遅らせた第4正弦波信号及び第4余弦波信号を求め、前記角度演算部は、前記第4正弦波信号及び前記第4余弦波信号に基づき、前記モータの回転角を算出する。   In order to achieve the above object, in an electric power steering apparatus according to an aspect of the present invention, a motor is provided on a steering column shaft, and the motor is driven and controlled using a rotation angle detected by a rotation angle detection device. As a result, in the electric power steering device that controls the steering force of the steering wheel by torque, the rotation angle detection device includes an annular resolver stator and an inner circumference of the resolver stator per revolution around the axis. A resolver rotor having a plurality of poles in which the gap between them changes a plurality of times, and a resolver that outputs a sine wave signal and a cosine wave signal of an electrical angle in accordance with the rotation of the resolver rotor, and the sine wave signal and the cosine A position detection unit that detects the position of the motor based on a wave signal; and a storage unit that stores a first correction value and a second correction value for correcting the sine wave signal and the cosine wave signal. The position detecting unit calculates the first correction value and the second correction value, and corrects the offset voltage and the gain of the sine wave signal and the cosine wave signal based on the first correction value, A correction calculation processing unit that corrects the phases of the sine wave signal and the cosine wave signal based on a second correction value, and an angle calculation unit that calculates the rotation angle of the motor based on the output signal of the correction calculation processing unit. In the correction value calculation process for calculating the first correction value and the second correction value, the correction calculation processing unit is configured to: based on the maximum value and the minimum value of the sine wave signal and the cosine wave signal, A first correction value is calculated, and a first sine wave signal and a first cosine wave signal in which the offset voltage and the gain of the sine wave signal and the cosine wave signal are corrected are obtained based on the first correction value, and the first correction value is obtained. The second sine wave signal and the second cosine wave signal obtained by advancing the phases of the sine wave signal and the first cosine wave signal by 45 electrical degrees are obtained, and the maximum of the second sine wave signal and the second cosine wave signal is obtained. In the correction process of calculating the second correction value based on the value and the minimum value and correcting the sine wave signal and the cosine wave signal, the sine wave signal and the cosine wave signal of the sine wave signal and the cosine wave signal are calculated based on the first correction value. A second sine wave signal obtained by obtaining a first sine wave signal and a first cosine wave signal whose offset voltage and gain are corrected, and advancing the phases of the first sine wave signal and the first cosine wave signal by 45 electrical degrees. And a second cosine wave signal, and at least a third sine wave signal and a third cosine wave signal in which the gains of the second sine wave signal and the second cosine wave signal are corrected based on the second correction value. , A fourth sine wave signal and a fourth cosine wave signal in which the phases of the third sine wave signal and the third cosine wave signal are delayed by an electrical angle of 45 degrees, respectively, and the angle calculation unit determines the fourth sine wave signal. The rotation angle of the motor is calculated based on the signal and the fourth cosine wave signal.

これにより、正弦波信号及び余弦波信号のオフセット電圧及びゲインを補正するための第1補正値、及び、正弦波信号及び余弦波信号の位相を補正するための第2補正値を得ることができる。また、第1補正値及び第2補正値を用いて、正弦波信号及び余弦波信号のオフセット電圧、ゲイン、及び位相を補正することができる。従って、角度演算部においてモータの位置検出(回転角)を高精度に算出することができる。このため、モータを高精度に駆動制御することができ、電動パワーステアリング装置における操舵補助制御の精度を高めることができる。   Thereby, the first correction value for correcting the offset voltage and the gain of the sine wave signal and the cosine wave signal, and the second correction value for correcting the phases of the sine wave signal and the cosine wave signal can be obtained. . Moreover, the offset voltage, gain, and phase of the sine wave signal and the cosine wave signal can be corrected using the first correction value and the second correction value. Therefore, the angle calculation unit can calculate the position detection (rotation angle) of the motor with high accuracy. Therefore, the motor can be driven and controlled with high precision, and the precision of steering assist control in the electric power steering device can be improved.

上記の目的を達成するため、本発明の一態様に係る電動パワーステアリング装置は、モータがステアリングのコラム軸に設けられ、回転角検出装置により検出された回転角を用いて前記モータを駆動制御することにより、前記ステアリングの操舵力をトルク制御する電動パワーステアリング装置であって、前記回転角検出装置は、円環状のレゾルバステータと、軸心周りの1周当たり、当該レゾルバステータの内周との間の間隙が複数回変化する複数の極を有するレゾルバロータとを備え、前記レゾルバロータの回転に応じて電気角の正弦波信号及び余弦波信号を出力するレゾルバと、前記正弦波信号及び前記余弦波信号に基づき、前記モータの位置を検出する位置検出部と、前記正弦波信号及び前記余弦波信号を補正するための第1補正値及び第2補正値が記憶される記憶部と、を備え、前記位置検出部は、前記第1補正値及び前記第2補正値を算出すると共に、前記第1補正値に基づき、前記正弦波信号及び前記余弦波信号のオフセット電圧及びゲインを補正し、前記第2補正値に基づき、前記正弦波信号及び前記余弦波信号の位相を補正する補正演算処理部と、前記補正演算処理部の出力信号に基づき、前記モータの回転角を算出する角度演算部と、を備え、前記補正演算処理部は、前記第1補正値及び前記第2補正値を算出する補正値算出処理において、前記正弦波信号及び前記余弦波信号の最大値及び最小値に基づき、前記第1補正値を算出し、前記第1補正値に基づき、前記正弦波信号及び前記余弦波信号のオフセット電圧及びゲインを補正した第1正弦波信号及び第1余弦波信号を求め、前記第1正弦波信号及び前記第1余弦波信号の位相をそれぞれ電気角で45度遅らせた第2正弦波信号及び第2余弦波信号を求め、前記第2正弦波信号及び前記第2余弦波信号の最大値及び最小値に基づき、前記第2補正値を算出し、前記正弦波信号及び前記余弦波信号の位相を補正する補正処理において、前記第1補正値に基づき、前記正弦波信号及び前記余弦波信号のオフセット電圧及びゲインを補正した第1正弦波信号及び第1余弦波信号を求め、前記第1正弦波信号及び前記第1余弦波信号の位相をそれぞれ電気角で45度遅らせた第2正弦波信号及び第2余弦波信号を求め、前記第2補正値に基づき、少なくとも、前記第2正弦波信号及び前記第2余弦波信号のゲインを補正した第3正弦波信号及び第3余弦波信号を求め、前記第3正弦波信号及び前記第3余弦波信号の位相をそれぞれ電気角で45度進めた第4正弦波信号及び第4余弦波信号を求め、前記角度演算部は、前記第4正弦波信号及び前記第4余弦波信号に基づき、前記モータの回転角を算出する。   In order to achieve the above object, in an electric power steering apparatus according to an aspect of the present invention, a motor is provided on a steering column shaft, and the motor is driven and controlled using a rotation angle detected by a rotation angle detection device. As a result, in the electric power steering device that controls the steering force of the steering wheel by torque, the rotation angle detection device includes an annular resolver stator and an inner circumference of the resolver stator per revolution around the axis. A resolver rotor having a plurality of poles in which the gap between them changes a plurality of times, and a resolver that outputs a sine wave signal and a cosine wave signal of an electrical angle in accordance with the rotation of the resolver rotor, and the sine wave signal and the cosine A position detection unit that detects the position of the motor based on a wave signal; and a storage unit that stores a first correction value and a second correction value for correcting the sine wave signal and the cosine wave signal. The position detecting unit calculates the first correction value and the second correction value, and corrects the offset voltage and the gain of the sine wave signal and the cosine wave signal based on the first correction value, A correction calculation processing unit that corrects the phases of the sine wave signal and the cosine wave signal based on a second correction value, and an angle calculation unit that calculates the rotation angle of the motor based on the output signal of the correction calculation processing unit. In the correction value calculation process for calculating the first correction value and the second correction value, the correction calculation processing unit is configured to: based on the maximum value and the minimum value of the sine wave signal and the cosine wave signal, A first correction value is calculated, and a first sine wave signal and a first cosine wave signal in which the offset voltage and the gain of the sine wave signal and the cosine wave signal are corrected are obtained based on the first correction value, and the first correction value is obtained. The second sine wave signal and the second cosine wave signal obtained by delaying the phases of the sine wave signal and the first cosine wave signal by 45 degrees in electrical angle are calculated, and the maximum of the second sine wave signal and the second cosine wave signal is obtained. In the correction process of calculating the second correction value based on the value and the minimum value and correcting the phases of the sine wave signal and the cosine wave signal, the sine wave signal and the cosine wave are calculated based on the first correction value. A second sine wave in which a first sine wave signal and a first cosine wave signal in which the offset voltage and the gain of the signal are corrected are obtained and the phases of the first sine wave signal and the first cosine wave signal are delayed by 45 degrees in electrical angle, respectively. Wave signal and second cosine wave signal are obtained, and at least the gain of the second sine wave signal and the second cosine wave signal is corrected based on the second correction value. A signal is obtained, a fourth sine wave signal and a fourth cosine wave signal obtained by advancing the phases of the third sine wave signal and the third cosine wave signal by 45 electrical degrees are obtained, and the angle calculation unit The rotation angle of the motor is calculated based on the four sine wave signal and the fourth cosine wave signal.

これにより、正弦波信号及び余弦波信号のオフセット電圧及びゲインを補正するための第1補正値、及び、正弦波信号及び余弦波信号の位相を補正するための第2補正値を得ることができる。また、第1補正値及び第2補正値を用いて、正弦波信号及び余弦波信号のオフセット電圧、ゲイン、及び位相を補正することができる。従って、角度演算部においてモータの位置検出(回転角)を高精度に算出することができる。このため、モータを高精度に駆動制御することができ、電動パワーステアリング装置における操舵補助制御の精度を高めることができる。   Thereby, the first correction value for correcting the offset voltage and the gain of the sine wave signal and the cosine wave signal, and the second correction value for correcting the phases of the sine wave signal and the cosine wave signal can be obtained. . Moreover, the offset voltage, gain, and phase of the sine wave signal and the cosine wave signal can be corrected using the first correction value and the second correction value. Therefore, the angle calculation unit can calculate the position detection (rotation angle) of the motor with high accuracy. Therefore, the motor can be driven and controlled with high precision, and the precision of steering assist control in the electric power steering device can be improved.

電動パワーステアリング装置の望ましい態様として、前記補正演算処理部は、前記モータの機械角の所定周期において検出される、複数周期の前記正弦波信号の最大値の平均値をSIN0_MAX、複数周期の前記正弦波信号の最小値の平均値をSIN0_MIN、複数周期の前記余弦波信号の最大値の平均値をCOS0_MAX、複数周期の前記余弦波信号の最小値の平均値をCOS0_MINとしたとき、下記式(1)、(2)を用いて、前記第1補正値である第1オフセット補正値SIN_OFFSET1、COS_OFFSET1を算出することが好ましい。   As a desirable mode of the electric power steering apparatus, the correction calculation processing unit is SIN0_MAX, an average value of maximum values of the sine wave signals of a plurality of cycles detected in a predetermined cycle of a mechanical angle of the motor, and the sine of the plurality of cycles. When the average value of the minimum values of the wave signals is SIN0_MIN, the average value of the maximum values of the cosine wave signals of a plurality of cycles is COS0_MAX, and the average value of the minimum values of the cosine wave signals of a plurality of cycles is COS0_MIN, the following equation (1 ) And (2), it is preferable to calculate the first offset correction values SIN_OFFSET1 and COS_OFFSET1 that are the first correction values.

SIN_OFFSET1=(SIN0_MAX+SIN0_MIN)/2・・・(1)   SIN_OFFSET1=(SIN0_MAX+SIN0_MIN)/2 (1)

COS_OFFSET1=(COS0_MAX+COS0_MIN)/2・・・(2)   COS_OFFSET1=(COS0_MAX+COS0_MIN)/2 (2)

これにより、正弦波信号及び余弦波信号のオフセット電圧を補正するための補正値が得られる。   Thereby, the correction value for correcting the offset voltage of the sine wave signal and the cosine wave signal is obtained.

電動パワーステアリング装置の望ましい態様として、前記補正演算処理部は、下記式(3)、(4)を用いて、前記第1補正値である第1ゲイン補正値SIN_GAIN1、COS_GAIN1を算出し、下記式(3)及び(4)において、Nは自然数であることが好ましい。   As a desirable mode of the electric power steering device, the correction calculation processing unit calculates the first gain correction values SIN_GAIN1 and COS_GAIN1 that are the first correction values by using the following expressions (3) and (4), and In (3) and (4), N is preferably a natural number.

SIN_GAIN1=N/(SIN0_MAX−SIN0_MIN)・・・(3)   SIN_GAIN1=N/(SIN0_MAX-SIN0_MIN) (3)

COS_GAIN1=N/(COS0_MAX−COS0_MIN)・・・(4)   COS_GAIN1=N/(COS0_MAX-COS0_MIN) (4)

これにより、正弦波信号及び余弦波信号のゲインを補正するための補正値が得られる。   Thereby, the correction value for correcting the gains of the sine wave signal and the cosine wave signal is obtained.

電動パワーステアリング装置の望ましい態様として、前記補正演算処理部は、前記正弦波信号をSIN0、前記余弦波信号をCOS0としたとき、下記式(5)、(6)を用いて、第1正弦波信号SIN1及び第1余弦波信号COS1を算出することが好ましい。   As a desirable aspect of the electric power steering apparatus, the correction calculation processing unit uses the following equations (5) and (6) when the sine wave signal is SIN0 and the cosine wave signal is COS0. It is preferable to calculate the signal SIN1 and the first cosine wave signal COS1.

SIN1=SIN_GAIN1×(SIN0−SIN_OFFSET1)・・・(5)   SIN1=SIN_GAIN1×(SIN0-SIN_OFFSET1) (5)

COS1=COS_GAIN1×(COS0−COS_OFFSET1)・・・(6)   COS1=COS_GAIN1×(COS0-COS_OFFSET1) (6)

これにより、正弦波信号及び余弦波信号のオフセット電圧及びゲインが補正される。   As a result, the offset voltage and gain of the sine wave signal and the cosine wave signal are corrected.

電動パワーステアリング装置の望ましい態様として、前記補正演算処理部は、下記式(7)、(8)を用いて、第2正弦波信号SIN2及び第2余弦波信号COS2を算出し、前記第2正弦波信号の最大値をSIN2_MAX、前記第2正弦波信号の最小値をSIN2_MIN、前記第2余弦波信号の最大値をCOS2_MAX、前記第2余弦波信号の最小値をCOS2_MINとしたとき、下記式(9)、(10)を用いて、前記第2補正値である第2オフセット補正値SIN_OFFSET2、COS_OFFSET2を算出し、下記式(11)、(12)を用いて、前記第2補正値である第2ゲイン補正値SIN_GAIN2、COS_GAIN2を算出し、下記式(11)及び(12)において、Nは自然数であることが好ましい。   As a desirable mode of the electric power steering apparatus, the correction calculation processing unit calculates the second sine wave signal SIN2 and the second cosine wave signal COS2 by using the following equations (7) and (8), and calculates the second sine wave signal. When the maximum value of the wave signal is SIN2_MAX, the minimum value of the second sine wave signal is SIN2_MIN, the maximum value of the second cosine wave signal is COS2_MAX, and the minimum value of the second cosine wave signal is COS2_MIN, the following equation ( 9) and (10) are used to calculate the second offset correction values SIN_OFFSET2 and COS_OFFSET2, which are the second correction values using the following equations (11) and (12). It is preferable that the 2-gain correction values SIN_GAIN2 and COS_GAIN2 are calculated, and that N is a natural number in the following equations (11) and (12).

SIN2=SIN1−COS1・・・(7)   SIN2=SIN1-COS1 (7)

COS2=COS1+SIN1・・・(8)   COS2=COS1+SIN1 (8)

SIN_OFFSET2=(SIN2_MAX+SIN2_MIN)/2・・・(9)   SIN_OFFSET2=(SIN2_MAX+SIN2_MIN)/2 (9)

COS_OFFSET2=(COS2_MAX+COS2_MIN)/2・・・(10)   COS_OFFSET2=(COS2_MAX+COS2_MIN)/2 (10)

SIN_GAIN2=N/(SIN2_MAX−SIN2_MIN)・・・(11)   SIN_GAIN2=N/(SIN2_MAX-SIN2_MIN) (11)

COS_GAIN2=N/(COS2_MAX−COS2_MIN)・・・(12)   COS_GAIN2=N/(COS2_MAX-COS2_MIN)...(12)

これにより、正弦波信号及び余弦波信号の位相を補正するための補正値が得られる。   Thereby, a correction value for correcting the phases of the sine wave signal and the cosine wave signal is obtained.

電動パワーステアリング装置の望ましい態様として、前記補正演算処理部は、下記式(13)、(14)を用いて、第3正弦波信号SIN3及び第3余弦波信号COS3を算出し、下記式(15)、(16)を用いて、第4正弦波信号SIN4及び第4余弦波信号COS4を算出することが好ましい。   As a desirable mode of the electric power steering apparatus, the correction calculation processing unit calculates the third sine wave signal SIN3 and the third cosine wave signal COS3 by using the following equations (13) and (14), and the following equation (15) ) And (16), it is preferable to calculate the fourth sine wave signal SIN4 and the fourth cosine wave signal COS4.

SIN3=SIN_GAIN2×(SIN2−SIN_OFFSET1)・・・(13)   SIN3=SIN_GAIN2×(SIN2-SIN_OFFSET1) (13)

COS3=COS_GAIN2×(COS2−COS_OFFSET1)・・・(14)   COS3=COS_GAIN2×(COS2-COS_OFFSET1) (14)

SIN4=SIN3+COS3・・・(15)   SIN4=SIN3+COS3 (15)

COS4=COS3−SIN3・・・(16)   COS4=COS3-SIN3 (16)

これにより、正弦波信号及び余弦波信号の位相が補正される。   Thereby, the phases of the sine wave signal and the cosine wave signal are corrected.

電動パワーステアリング装置の望ましい態様として、前記補正演算処理部は、下記式(17)、(18)を用いて、第2正弦波信号SIN2及び第2余弦波信号COS2を算出し、下記式(19)、(20)を用いて、前記第2補正値である第2ゲイン補正値SIN_GAIN2、COS_GAIN2を算出し、下記式(19)及び(20)において、Nは自然数であることが好ましい。   As a desirable mode of the electric power steering apparatus, the correction calculation processing unit calculates the second sine wave signal SIN2 and the second cosine wave signal COS2 by using the following equations (17) and (18), and the following equation (19) ) And (20), the second gain correction values SIN_GAIN2 and COS_GAIN2, which are the second correction values, are calculated, and in the following equations (19) and (20), N is preferably a natural number.

SIN2=SIN1−COS1・・・(17)   SIN2=SIN1-COS1 (17)

COS2=COS1+SIN1・・・(18)   COS2=COS1+SIN1 (18)

SIN_GAIN2=N/(SIN2_MAX−SIN2_MIN)・・・(19)   SIN_GAIN2=N/(SIN2_MAX-SIN2_MIN) (19)

COS_GAIN2=N/(COS2_MAX−COS2_MIN)・・・(20)   COS_GAIN2=N/(COS2_MAX-COS2_MIN) (20)

これにより、正弦波信号及び余弦波信号の位相を補正するための補正値が得られる。   Thereby, a correction value for correcting the phases of the sine wave signal and the cosine wave signal is obtained.

電動パワーステアリング装置の望ましい態様として、前記補正演算処理部は、下記式(21)、(22)を用いて、第3正弦波信号SIN3及び第3余弦波信号COS3を算出し、下記式(23)、(24)を用いて、第4正弦波信号SIN4及び第4余弦波信号COS4を算出することが好ましい。   As a desirable mode of the electric power steering apparatus, the correction calculation processing unit calculates the third sine wave signal SIN3 and the third cosine wave signal COS3 using the following equations (21) and (22), and the following equation (23) ), (24) are used to calculate the fourth sine wave signal SIN4 and the fourth cosine wave signal COS4.

SIN3=SIN_GAIN2×SIN2・・・(21)   SIN3=SIN_GAIN2×SIN2 (21)

COS3=COS_GAIN2×COS2・・・(22)   COS3=COS_GAIN2×COS2 (22)

SIN4=SIN3+COS3・・・(23)   SIN4=SIN3+COS3 (23)

COS4=COS3−SIN3・・・(24)   COS4=COS3-SIN3 (24)

これにより、正弦波信号及び余弦波信号の位相が補正される。   Thereby, the phases of the sine wave signal and the cosine wave signal are corrected.

電動パワーステアリング装置の望ましい態様として、前記補正演算処理部は、下記式(7)’、(8)’を用いて、第2正弦波信号SIN2及び第2余弦波信号COS2を算出し、前記第2正弦波信号の最大値をSIN2_MAX、前記第2正弦波信号の最小値をSIN2_MIN、前記第2余弦波信号の最大値をCOS2_MAX、前記第2余弦波信号の最小値をCOS2_MINとしたとき、下記式(9)’、(10)’を用いて、前記第2補正値である第2オフセット補正値SIN_OFFSET2、COS_OFFSET2を算出し、下記式(11)’、(12)’を用いて、前記第2補正値である第2ゲイン補正値SIN_GAIN2、COS_GAIN2を算出し、下記式(11)’及び(12)’において、Nは自然数であることが好ましい。   As a desirable mode of the electric power steering apparatus, the correction calculation processing unit calculates the second sine wave signal SIN2 and the second cosine wave signal COS2 using the following equations (7)′ and (8)′, 2 When the maximum value of the sine wave signal is SIN2_MAX, the minimum value of the second sine wave signal is SIN2_MIN, the maximum value of the second cosine wave signal is COS2_MAX, and the minimum value of the second cosine wave signal is COS2_MIN: The second offset correction values SIN_OFFSET2 and COS_OFFSET2, which are the second correction values, are calculated using equations (9)′ and (10)′, and the second offset correction values SIN_OFFSET2 and COS_OFFSET2 are calculated using the following equations (11)′ and (12)′. It is preferable that the second gain correction values SIN_GAIN2 and COS_GAIN2, which are two correction values, are calculated, and N is a natural number in the following formulas (11)′ and (12)′.

SIN2=SIN1+COS1・・・(7)’   SIN2=SIN1+COS1 (7)'

COS2=COS1−SIN1・・・(8)’   COS2=COS1-SIN1 (8)'

SIN_OFFSET2=(SIN2_MAX+SIN2_MIN)/2・・・(9)’   SIN_OFFSET2=(SIN2_MAX+SIN2_MIN)/2 (9)'

COS_OFFSET2=(COS2_MAX+COS2_MIN)/2・・・(10)’   COS_OFFSET2=(COS2_MAX+COS2_MIN)/2 (10)'

SIN_GAIN2=N/(SIN2_MAX−SIN2_MIN)・・・(11)’   SIN_GAIN2=N/(SIN2_MAX-SIN2_MIN)...(11)'

COS_GAIN2=N/(COS2_MAX−COS2_MIN)・・・(12)’   COS_GAIN2=N/(COS2_MAX-COS2_MIN)...(12)'

これにより、正弦波信号及び余弦波信号の位相を補正するための補正値が得られる。   Thereby, a correction value for correcting the phases of the sine wave signal and the cosine wave signal is obtained.

電動パワーステアリング装置の望ましい態様として、前記補正演算処理部は、下記式(13)’、(14)’を用いて、第3正弦波信号SIN3及び第3余弦波信号COS3を算出し、下記式(15)’、(16)’を用いて、第4正弦波信号SIN4及び第4余弦波信号COS4を算出することが好ましい。   As a preferable mode of the electric power steering apparatus, the correction calculation processing unit calculates the third sine wave signal SIN3 and the third cosine wave signal COS3 using the following formulas (13)′ and (14)′, It is preferable to calculate the fourth sine wave signal SIN4 and the fourth cosine wave signal COS4 using (15)′ and (16)′.

SIN3=SIN_GAIN2×(SIN2−SIN_OFFSET2)・・・(13)’   SIN3=SIN_GAIN2*(SIN2-SIN_OFFSET2)...(13)'

COS3=COS_GAIN2×(COS2−COS_OFFSET2)・・・(14)’   COS3=COS_GAIN2×(COS2-COS_OFFSET2)...(14)'

SIN4=SIN3−COS3・・・(15)’   SIN4=SIN3-COS3 (15)'

COS4=COS3+SIN3・・・(16)’   COS4=COS3+SIN3 (16)'

これにより、正弦波信号及び余弦波信号の位相が補正される。   Thereby, the phases of the sine wave signal and the cosine wave signal are corrected.

電動パワーステアリング装置の望ましい態様として、前記補正演算処理部は、下記式(17)’、(18)’を用いて、第2正弦波信号SIN2及び第2余弦波信号COS2を算出し、下記式(19)’、(20)’を用いて、前記第2補正値である第2ゲイン補正値SIN_GAIN2、COS_GAIN2を算出し、下記式(19)’及び(20)’において、Nは自然数であることが好ましい。   As a desirable mode of the electric power steering apparatus, the correction calculation processing unit calculates the second sine wave signal SIN2 and the second cosine wave signal COS2 by using the following equations (17)′ and (18)′, The second gain correction values SIN_GAIN2 and COS_GAIN2, which are the second correction values, are calculated using (19)′ and (20)′, and N is a natural number in the following equations (19)′ and (20)′. It is preferable.

SIN2=SIN1+COS1・・・(17)’   SIN2=SIN1+COS1 (17)'

COS2=COS1−SIN1・・・(18)’   COS2=COS1-SIN1 (18)'

SIN_GAIN2=N/(SIN2_MAX−SIN2_MIN)・・・(19)’   SIN_GAIN2=N/(SIN2_MAX-SIN2_MIN)...(19)'

COS_GAIN2=N/(COS2_MAX−COS2_MIN)・・・(20)’   COS_GAIN2=N/(COS2_MAX-COS2_MIN)...(20)'

これにより、正弦波信号及び余弦波信号の位相を補正するための補正値が得られる。   Thereby, a correction value for correcting the phases of the sine wave signal and the cosine wave signal is obtained.

電動パワーステアリング装置の望ましい態様として、前記補正演算処理部は、下記式(21)’、(22)’を用いて、第3正弦波信号SIN3及び第3余弦波信号COS3を算出し、下記式(23)’、(24)’を用いて、第4正弦波信号SIN4及び第4余弦波信号COS4を算出することが好ましい。   As a desirable mode of the electric power steering apparatus, the correction calculation processing unit calculates the third sine wave signal SIN3 and the third cosine wave signal COS3 using the following formulas (21)′ and (22)′, It is preferable to calculate the fourth sine wave signal SIN4 and the fourth cosine wave signal COS4 using (23)′ and (24)′.

SIN3=SIN_GAIN2×SIN2・・・(21)’   SIN3=SIN_GAIN2×SIN2...(21)'

COS3=COS_GAIN2×COS2・・・(22)’   COS3=COS_GAIN2×COS2 (22)'

SIN4=SIN3−COS3・・・(23)’   SIN4=SIN3-COS3 (23)'

COS4=COS3+SIN3・・・(24)’   COS4=COS3+SIN3 (24)'

これにより、正弦波信号及び余弦波信号の位相が補正される。   Thereby, the phases of the sine wave signal and the cosine wave signal are corrected.

電動パワーステアリング装置の望ましい態様として、前記角度演算部は、前記第4正弦波信号SIN4及び前記第4余弦波信号COS4に基づき、前記回転角を算出することが好ましい。   As a desirable mode of the electric power steering device, it is preferable that the angle calculation unit calculates the rotation angle based on the fourth sine wave signal SIN4 and the fourth cosine wave signal COS4.

これにより、モータの位置検出(回転角)を高精度に算出することができる。   Accordingly, the position detection (rotation angle) of the motor can be calculated with high accuracy.

上記の目的を達成するため、本発明の一態様に係る回転角検出方法は、モータの軸心周りの1周当たり、円環状のレゾルバステータの内周との間の間隙が複数回変化する複数の極を有するレゾルバロータの回転に応じて出力される電気角の正弦波信号及び余弦波信号を補正し、当該補正結果に基づき前記モータの回転角を検出する回転角検出方法であって、前記正弦波信号及び前記余弦波信号の最大値及び最小値に基づき、前記正弦波信号及び前記余弦波信号のオフセット電圧及びゲインを補正するための第1補正値を算出し、前記第1補正値に基づき、前記正弦波信号及び前記余弦波信号のオフセット電圧及びゲインを補正した第1正弦波信号及び第1余弦波信号を求め、前記第1正弦波信号及び前記第1余弦波信号の位相をそれぞれ電気角で45度進めた第2正弦波信号及び第2余弦波信号を求め、前記第2正弦波信号及び前記第2余弦波信号の最大値及び最小値に基づき、前記正弦波信号及び前記余弦波信号の位相を補正するための第2補正値を算出する補正値算出処理ステップと、前記第1補正値に基づき、前記正弦波信号及び前記余弦波信号のオフセット電圧及びゲインを補正した第1正弦波信号及び第1余弦波信号を求め、前記第1正弦波信号及び前記第1余弦波信号の位相をそれぞれ電気角で45度進めた第2正弦波信号及び第2余弦波信号を求め、前記第2補正値に基づき、少なくとも、前記第2正弦波信号及び前記第2余弦波信号のゲインを補正した第3正弦波信号及び第3余弦波信号を求め、前記第3正弦波信号及び前記第3余弦波信号の位相をそれぞれ電気角で45度遅らせた第4正弦波信号及び第4余弦波信号を求める補正処理ステップと、前記第4正弦波信号及び前記第4余弦波信号に基づき、前記モータの回転角を算出する回転角算出ステップと、を有する。   In order to achieve the above object, a rotation angle detecting method according to an aspect of the present invention is a method in which a gap between an inner periphery of an annular resolver stator changes a plurality of times per revolution around an axis of a motor. A rotation angle detecting method for correcting a sine wave signal and a cosine wave signal of an electrical angle output according to the rotation of a resolver rotor having a pole, and detecting the rotation angle of the motor based on the correction result, A first correction value for correcting the offset voltage and the gain of the sine wave signal and the cosine wave signal is calculated based on the maximum value and the minimum value of the sine wave signal and the cosine wave signal, and is calculated as the first correction value. Based on the offset voltage and the gain of the sine wave signal and the cosine wave signal, the first sine wave signal and the first cosine wave signal are obtained, and the phases of the first sine wave signal and the first cosine wave signal are respectively calculated. A second sine wave signal and a second cosine wave signal advanced by 45 degrees in electrical angle are obtained, and the sine wave signal and the cosine signal are calculated based on the maximum and minimum values of the second sine wave signal and the second cosine wave signal. A correction value calculation processing step for calculating a second correction value for correcting the phase of the wave signal, and a first correction value for correcting the offset voltage and the gain of the sine wave signal and the cosine wave signal based on the first correction value. A sine wave signal and a first cosine wave signal are obtained, and a second sine wave signal and a second cosine wave signal obtained by advancing the phases of the first sine wave signal and the first cosine wave signal by 45 electrical degrees are obtained, Based on the second correction value, at least a third sine wave signal and a third cosine wave signal obtained by correcting the gains of the second sine wave signal and the second cosine wave signal are obtained, and the third sine wave signal and the third sine wave signal are obtained. A correction processing step of obtaining a fourth sine wave signal and a fourth cosine wave signal in which the phase of the third cosine wave signal is delayed by 45 degrees in electrical angle, respectively, and based on the fourth sine wave signal and the fourth cosine wave signal, A rotation angle calculation step of calculating a rotation angle of the motor.

これにより、正弦波信号及び余弦波信号のオフセット電圧及びゲインを補正するための第1補正値、及び、正弦波信号及び余弦波信号の位相を補正するための第2補正値を得ることができる。また、第1補正値及び第2補正値を用いて、正弦波信号及び余弦波信号のオフセット電圧、ゲイン、及び位相を補正することができる。従って、角度演算部においてモータの位置検出(回転角)を高精度に算出することができる。   Thereby, the first correction value for correcting the offset voltage and the gain of the sine wave signal and the cosine wave signal, and the second correction value for correcting the phases of the sine wave signal and the cosine wave signal can be obtained. . Moreover, the offset voltage, gain, and phase of the sine wave signal and the cosine wave signal can be corrected using the first correction value and the second correction value. Therefore, the angle calculation unit can calculate the position detection (rotation angle) of the motor with high accuracy.

上記の目的を達成するため、本発明の一態様に係る回転角検出方法は、モータの軸心周りの1周当たり、円環状のレゾルバステータの内周との間の間隙が複数回変化する複数の極を有するレゾルバロータの回転に応じて出力される電気角の正弦波信号及び余弦波信号を補正し、当該補正結果に基づき前記モータの回転角を検出する回転角検出方法であって、前記正弦波信号及び前記余弦波信号の最大値及び最小値に基づき、前記正弦波信号及び前記余弦波信号のオフセット電圧及びゲインを補正するための第1補正値を算出し、前記第1補正値に基づき、前記正弦波信号及び前記余弦波信号のオフセット電圧及びゲインを補正した第1正弦波信号及び第1余弦波信号を求め、前記第1正弦波信号及び前記第1余弦波信号の位相をそれぞれ電気角で45度遅らせた第2正弦波信号及び第2余弦波信号を求め、前記第2正弦波信号及び前記第2余弦波信号の最大値及び最小値に基づき、前記正弦波信号及び前記余弦波信号の位相を補正するための第2補正値を算出する補正値算出処理ステップと、前記第1補正値に基づき、前記正弦波信号及び前記余弦波信号のオフセット電圧及びゲインを補正した第1正弦波信号及び第1余弦波信号を求め、前記第1正弦波信号及び前記第1余弦波信号の位相をそれぞれ電気角で45度遅らせた第2正弦波信号及び第2余弦波信号を求め、前記第2補正値に基づき、少なくとも、前記第2正弦波信号及び前記第2余弦波信号のゲインを補正した第3正弦波信号及び第3余弦波信号を求め、前記第3正弦波信号及び前記第3余弦波信号の位相をそれぞれ電気角で45度進めた第4正弦波信号及び第4余弦波信号を求める補正処理ステップと、前記第4正弦波信号及び前記第4余弦波信号に基づき、前記モータの回転角を算出する回転角算出ステップと、を有する。   In order to achieve the above object, a rotation angle detecting method according to an aspect of the present invention is a method in which a gap between an inner periphery of an annular resolver stator changes a plurality of times per revolution around an axis of a motor. A rotation angle detecting method for correcting a sine wave signal and a cosine wave signal of an electrical angle output according to the rotation of a resolver rotor having a pole, and detecting the rotation angle of the motor based on the correction result, A first correction value for correcting the offset voltage and the gain of the sine wave signal and the cosine wave signal is calculated based on the maximum value and the minimum value of the sine wave signal and the cosine wave signal, and is calculated as the first correction value. Based on the offset voltage and the gain of the sine wave signal and the cosine wave signal, the first sine wave signal and the first cosine wave signal are obtained, and the phases of the first sine wave signal and the first cosine wave signal are respectively calculated. A second sine wave signal and a second cosine wave signal delayed by an electrical angle of 45 degrees are obtained, and the sine wave signal and the cosine wave are calculated based on the maximum and minimum values of the second sine wave signal and the second cosine wave signal. A correction value calculation processing step for calculating a second correction value for correcting the phase of the wave signal, and a first correction value for correcting the offset voltage and the gain of the sine wave signal and the cosine wave signal based on the first correction value. A sine wave signal and a first cosine wave signal are obtained, and a second sine wave signal and a second cosine wave signal in which the phases of the first sine wave signal and the first cosine wave signal are delayed by an electrical angle of 45 degrees are obtained, Based on the second correction value, at least a third sine wave signal and a third cosine wave signal obtained by correcting the gains of the second sine wave signal and the second cosine wave signal are obtained, and the third sine wave signal and the third sine wave signal are obtained. On the basis of the correction processing step of obtaining a fourth sine wave signal and a fourth cosine wave signal obtained by advancing the phase of the third cosine wave signal by 45 electrical degrees, respectively, based on the fourth sine wave signal and the fourth cosine wave signal, A rotation angle calculation step of calculating a rotation angle of the motor.

これにより、正弦波信号及び余弦波信号のオフセット電圧及びゲインを補正するための第1補正値、及び、正弦波信号及び余弦波信号の位相を補正するための第2補正値を得ることができる。また、第1補正値及び第2補正値を用いて、正弦波信号及び余弦波信号のオフセット電圧、ゲイン、及び位相を補正することができる。従って、角度演算部においてモータの位置検出(回転角)を高精度に算出することができる。   Thereby, the first correction value for correcting the offset voltage and the gain of the sine wave signal and the cosine wave signal, and the second correction value for correcting the phases of the sine wave signal and the cosine wave signal can be obtained. . Moreover, the offset voltage, gain, and phase of the sine wave signal and the cosine wave signal can be corrected using the first correction value and the second correction value. Therefore, the angle calculation unit can calculate the position detection (rotation angle) of the motor with high accuracy.

本発明によれば、操舵補助制御の精度を高めることができる電動パワーステアリング装置、及び回転角検出方法を提供することができる。   According to the present invention, it is possible to provide an electric power steering apparatus and a rotation angle detection method capable of improving the accuracy of steering assist control.

図1Aは、実施形態に係る電動パワーステアリング装置の構成を示す図である。FIG. 1A is a diagram showing a configuration of an electric power steering device according to an embodiment. 図1Bは、実施形態に係る電動パワーステアリング装置の斜視図である。FIG. 1B is a perspective view of the electric power steering device according to the embodiment. 図1Cは、図1Bに示す電動モータとECU(コントロールユニット)との部分を拡大した拡大斜視図である。FIG. 1C is an enlarged perspective view in which the electric motor and the ECU (control unit) shown in FIG. 1B are enlarged. 図2は、実施形態に係る電動パワーステアリング装置を制御するコントロールユニットのハードウェア構成を示す模式図である。FIG. 2 is a schematic diagram illustrating a hardware configuration of a control unit that controls the electric power steering device according to the embodiment. 図3は、実施形態に係る電動パワーステアリング装置を制御するコントロールユニットの機能的な構成を示す機能ブロック図である。FIG. 3 is a functional block diagram showing a functional configuration of a control unit that controls the electric power steering device according to the embodiment. 図4Aは、レゾルバの第1例を示す概略図である。FIG. 4A is a schematic diagram showing a first example of a resolver. 図4Bは、レゾルバの第2例を示す概略図である。FIG. 4B is a schematic diagram showing a second example of the resolver. 図5は、図4Aに示す第1例のレゾルバにおける位置検出信号及び位相角の関係を示す図である。FIG. 5 is a diagram showing the relationship between the position detection signal and the phase angle in the resolver of the first example shown in FIG. 4A. 図6は、理想的な正弦波信号波形及び余弦波信号波形とレゾルバから出力される正弦波信号波形及び余弦波信号波形の一例を示す図である。FIG. 6 is a diagram showing an example of ideal sine wave signal waveforms and cosine wave signal waveforms and sine wave signal waveforms and cosine wave signal waveforms output from the resolver. 図7は、実施形態に係る位置検出部における補正演算処理部の概略ブロック構成の一例を示す図である。FIG. 7 is a diagram illustrating an example of a schematic block configuration of a correction calculation processing unit in the position detection unit according to the embodiment. 図8は、実施形態に係る電動パワーステアリング装置の初期キャリブレーションにおける位置検出信号の補正値算出処理手順の一例を示すフローチャートである。FIG. 8 is a flowchart showing an example of a correction value calculation processing procedure of the position detection signal in the initial calibration of the electric power steering apparatus according to the embodiment. 図9は、オフセット補正値の概念図である。FIG. 9 is a conceptual diagram of the offset correction value. 図10は、ゲイン補正値の概念図である。FIG. 10 is a conceptual diagram of a gain correction value. 図11は、一次補正処理結果の一例を示す図である。FIG. 11 is a diagram showing an example of the primary correction processing result. 図12は、実施形態において第1正弦波信号と第1余弦波信号との間に位相ずれが生じていない場合の位相変換処理後のベクトル図である。FIG. 12 is a vector diagram after the phase conversion processing when there is no phase shift between the first sine wave signal and the first cosine wave signal in the embodiment. 図13は、実施形態において第1正弦波信号と第1余弦波信号との間にαの位相ずれが生じている場合の位相変換処理後のベクトル図である。FIG. 13 is a vector diagram after the phase conversion processing in the case where the phase shift of α occurs between the first sine wave signal and the first cosine wave signal in the embodiment. 図14は、実施形態に係る電動パワーステアリング装置の実運用時における位置検出信号の補正処理手順の一例を示すフローチャートである。FIG. 14 is a flowchart showing an example of a correction processing procedure of the position detection signal during actual operation of the electric power steering device according to the embodiment. 図15は、実施形態に係る第2補正処理による補正例を示す図である。FIG. 15 is a diagram showing a correction example by the second correction processing according to the embodiment. 図16は、二次補正処理結果の一例を示す図である。FIG. 16 is a diagram showing an example of the secondary correction processing result. 図17は、実施形態に係る補正値算出処理及び補正処理を実施しない場合の電気角誤差を示す図である。FIG. 17 is a diagram showing an electrical angle error when the correction value calculation process and the correction process according to the embodiment are not performed. 図18は、実施形態に係る補正値算出処理及び補正処理における一次補正処理を行った場合の電気角誤差を示す図である。FIG. 18 is a diagram showing an electrical angle error when the primary correction process in the correction value calculation process and the correction process according to the embodiment is performed. 図19は、実施形態に係る補正値算出処理及び補正処理における一次補正処理及び二次補正処理を行った場合の電気角誤差を示す図である。FIG. 19 is a diagram illustrating an electrical angle error when the primary correction process and the secondary correction process in the correction value calculation process and the correction process according to the embodiment are performed. 図20は、実施形態の変形例に係る位置検出部における補正演算処理部の概略ブロック構成の一例を示す図である。FIG. 20 is a diagram illustrating an example of a schematic block configuration of a correction calculation processing unit in the position detection unit according to the modified example of the embodiment. 図21は、実施形態の変形例において第1正弦波信号と第1余弦波信号との間に位相ずれが生じていない場合の位相変換処理後のベクトル図である。FIG. 21 is a vector diagram after the phase conversion process when there is no phase shift between the first sine wave signal and the first cosine wave signal in the modification of the embodiment. 図22は、実施形態の変形例において第1正弦波信号と第1余弦波信号との間にαの位相ずれが生じている場合の位相変換処理後のベクトル図である。FIG. 22 is a vector diagram after the phase conversion processing when there is a phase shift of α between the first sine wave signal and the first cosine wave signal in the modification of the embodiment. 図23は、実施形態の変形例に係る第2補正処理による補正例を示す図である。FIG. 23 is a diagram illustrating a correction example by the second correction process according to the modified example of the embodiment.

以下、発明を実施するための形態(以下、実施形態という)につき図面を参照しつつ詳細に説明する。なお、下記の実施形態により本発明が限定されるものではない。また、下記実施形態における構成要素には、当業者が容易に想定できるもの、実質的に同一のもの、いわゆる均等の範囲のものが含まれる。さらに、下記実施形態で開示した構成要素は適宜組み合わせることが可能である。   Hereinafter, modes for carrying out the invention (hereinafter, referred to as embodiments) will be described in detail with reference to the drawings. The present invention is not limited to the embodiments described below. Further, the constituent elements in the following embodiments include those that can be easily conceived by those skilled in the art, those that are substantially the same, and those that are within the equivalent range. Furthermore, the constituent elements disclosed in the following embodiments can be combined appropriately.

図1Aは、実施形態に係る電動パワーステアリング装置の構成を示す図である。図1Bは、実施形態に係る電動パワーステアリング装置の斜視図である。図1Cは、図1Bに示す電動モータとECU(コントロールユニット)との部分を拡大した拡大斜視図である。電動パワーステアリング装置100は、車両のステアリング機構に補助操舵力を付与するモータ20を有し、ステアリング機構に対する操舵トルクと車速とを少なくとも用いて演算した操舵補助指令値に基づき、モータ20を駆動制御することにより、ステアリング1の操舵力をトルク制御する。   FIG. 1A is a diagram showing a configuration of an electric power steering device according to an embodiment. FIG. 1B is a perspective view of the electric power steering device according to the embodiment. FIG. 1C is an enlarged perspective view in which the electric motor and the ECU (control unit) shown in FIG. 1B are enlarged. The electric power steering apparatus 100 includes a motor 20 that applies an auxiliary steering force to a steering mechanism of a vehicle, and controls the drive of the motor 20 based on a steering assist command value calculated using at least a steering torque for the steering mechanism and a vehicle speed. By doing so, the steering force of the steering wheel 1 is torque-controlled.

このように、電動パワーステアリング装置100は、車両に搭載されて、車両の運転者によるステアリング1の操作を補助するものである。ステアリング1のコラム軸2は、回転中心軸Zを中心に回転可能に支持され、減速ギヤ3、ユニバーサルジョイント4a、4b、ラックアンドピニオン機構5を介して、操舵輪のタイロッド6に連結されている。コラム軸2には、ステアリング1の操舵トルクTを検出するトルクセンサ10が設けられている。また、コラム軸2には減速ギヤ3が取り付けられている。減速ギヤ3は、モータ20の発生するトルクを増加させてコラム軸2へ伝達する。このような構造によって、モータ20が発生するトルクにより、ステアリング1の操舵力が補助される。   As described above, the electric power steering device 100 is mounted on a vehicle to assist the driver of the vehicle in operating the steering wheel 1. The column shaft 2 of the steering wheel 1 is rotatably supported around a rotation center axis Z, and is connected to a tie rod 6 of a steered wheel via a reduction gear 3, universal joints 4a and 4b, and a rack and pinion mechanism 5. . A torque sensor 10 that detects a steering torque T of the steering 1 is provided on the column shaft 2. A reduction gear 3 is attached to the column shaft 2. The reduction gear 3 increases the torque generated by the motor 20 and transmits it to the column shaft 2. With such a structure, the steering force of the steering wheel 1 is assisted by the torque generated by the motor 20.

本実施形態において、電動パワーステアリング装置100は、コラム軸2にモータ20のトルクを伝達するコラムアシスト型の装置である。   In the present embodiment, the electric power steering device 100 is a column assist type device that transmits the torque of the motor 20 to the column shaft 2.

モータ20は、ステアリング1のコラム軸2に設けられている。モータ20は、例えば、ブラシレスモータ又はブラシモータである。電動パワーステアリング装置100を制御するECU(Electronic Control Unit、以下コントロールユニットという)30は、自身に内蔵された電源リレー13を介してバッテリ14から電力の供給を受けるとともに、イグニッションスイッチ11から送信されたイグニッション信号を受信する。また、コントロールユニット30は、トルクセンサ10で検出された操舵トルクTと車速センサ12で検出された車両速度(車速)Vとに基づいて、モータ20の電流指令値を演算する。コントロールユニット30は、モータ20に供給される電流の値(電流検出値)と電流指令値とに基づいて、モータ20の電流検出値が電流指令値に追従するようにモータ20を駆動制御する。このように、コントロールユニット30は、電動パワーステアリング装置100を制御する装置(電動パワーステアリング装置の制御装置)である。   The motor 20 is provided on the column shaft 2 of the steering 1. The motor 20 is, for example, a brushless motor or a brush motor. An ECU (Electronic Control Unit, hereinafter referred to as a control unit) 30 that controls the electric power steering device 100 receives electric power from a battery 14 via a power supply relay 13 incorporated therein, and transmits the electric power from an ignition switch 11. Receives an ignition signal. The control unit 30 also calculates a current command value for the motor 20 based on the steering torque T detected by the torque sensor 10 and the vehicle speed (vehicle speed) V detected by the vehicle speed sensor 12. The control unit 30 drives and controls the motor 20 based on the current value (current detection value) supplied to the motor 20 and the current command value so that the current detection value of the motor 20 follows the current command value. As described above, the control unit 30 is a device (control device for the electric power steering device) that controls the electric power steering device 100.

図1B及び図1Cに示すように、モータ20とECU30とは、近接して配置されている。モータ20は、モータケース21と、モータフランジ22とを備える。モータケース21は、略円筒状の部材であって、例えば金属で形成されている。モータケース21は、不図示のロータ及びステータ等を内蔵している。ロータは、軸心Xを中心に回転する。ステータは、コイルが巻かれている。コイルには、例えば三相交流が供給される。モータフランジ22は、モータケース21の一端の開口を塞ぐ部材である。モータフランジ22は、モータケース21の下側の一端に配置されている。   As shown in FIGS. 1B and 1C, the motor 20 and the ECU 30 are arranged close to each other. The motor 20 includes a motor case 21 and a motor flange 22. The motor case 21 is a substantially cylindrical member, and is made of, for example, metal. The motor case 21 contains a rotor, a stator and the like (not shown). The rotor rotates about the axis X. A coil is wound around the stator. For example, a three-phase alternating current is supplied to the coil. The motor flange 22 is a member that closes an opening at one end of the motor case 21. The motor flange 22 is arranged at one end on the lower side of the motor case 21.

ECU30は、例えば金属で箱状に形成された筐体32に内蔵されている。筐体32は、固定部32aを有する。固定部32aは、例えばボルト等の締結部材によってモータフランジ22に固定されている。これにより、ECU30は、モータ20の近傍に配置される。   The ECU 30 is built in a housing 32 formed of, for example, a metal in a box shape. The housing 32 has a fixing portion 32a. The fixing portion 32a is fixed to the motor flange 22 by a fastening member such as a bolt. As a result, the ECU 30 is arranged near the motor 20.

モータ20には、モータ20の位置(回転角)を検出するための位置センサであるレゾルバ25が設けられる。レゾルバ25については後述する。   The motor 20 is provided with a resolver 25 which is a position sensor for detecting the position (rotation angle) of the motor 20. The resolver 25 will be described later.

図2は、実施形態に係る電動パワーステアリング装置を制御するコントロールユニットのハードウェア構成を示す模式図である。コントロールユニット30は、図2に示すように、電源リレー13と、制御用コンピュータ(MCU)110と、モータ駆動回路15と、モータ電流検出回路16と、位置検出部17等とを備えている。電動パワーステアリング装置100の制御用コンピュータ110は、CPU(Central Processing Unit)101、第1記憶装置としてのRAM(Random Access Memory)102、第2記憶装置としてのROM(Read Only Memory)103、EEPROM(Electrically Erasable Programmable ROM)104、インターフェース(I/F)105、A/D(Analog/Digital)変換器106、PWM(Pulse Width Modulation)コントローラ107等を備え、これらがバス108に接続されている。CPU101は処理装置に相当し、ROM103に記憶された電動パワーステアリング装置100の制御用コンピュータプログラム(以下、制御プログラムという)を実行して、電動パワーステアリング装置100を制御する。   FIG. 2 is a schematic diagram illustrating a hardware configuration of a control unit that controls the electric power steering device according to the embodiment. As shown in FIG. 2, the control unit 30 includes a power supply relay 13, a control computer (MCU) 110, a motor drive circuit 15, a motor current detection circuit 16, a position detection unit 17, and the like. A control computer 110 of the electric power steering apparatus 100 includes a CPU (Central Processing Unit) 101, a RAM (Random Access Memory) 102 as a first storage device, a ROM (Read Only Memory) 103 as a second storage device, and an EEPROM ( An Electrically Erasable Programmable ROM (104), an interface (I/F) 105, an A/D (Analog/Digital) converter 106, a PWM (Pulse Width Modulation) controller 107, etc. are provided, and these are connected to a bus 108. The CPU 101 corresponds to a processing device, and executes a control computer program (hereinafter, referred to as a control program) for the electric power steering device 100 stored in the ROM 103 to control the electric power steering device 100.

ROM103は、制御プログラム、RAM102及びROM103を診断するための診断用コンピュータプログラム(以下、診断プログラムという)及び電動パワーステアリング装置100の制御や診断に用いるデータを記憶する。また、RAM102は、制御プログラム及び診断プログラムを動作させるためのワークメモリとして使用される。EEPROM104は、制御プログラムが入出力する制御データ等を記憶する。制御データは、コントロールユニット30に電源が投入された後にRAM102に展開された制御プログラム上で使用され、所定のタイミングでEEPROM104に上書きされる。   The ROM 103 stores a control program, a diagnostic computer program for diagnosing the RAM 102 and the ROM 103 (hereinafter referred to as a diagnostic program), and data used for controlling and diagnosing the electric power steering device 100. Further, the RAM 102 is used as a work memory for operating the control program and the diagnostic program. The EEPROM 104 stores control data input/output by the control program. The control data is used on the control program expanded in the RAM 102 after the control unit 30 is powered on, and is overwritten in the EEPROM 104 at a predetermined timing.

ROM103、RAM102及びEEPROM104等は、情報を記憶する記憶装置であって、CPU101が直接アクセスできる記憶装置(一次記憶装置)である。また、本実施形態において、EEPROM104は、後述する補正値算出処理及び補正処理において、モータ20の機械角の1周期で検出される電気角の各周期における位置検出信号の最大値の平均値及び最小値の平均値、第1補正値、第2補正値等を記憶する記憶部として機能する。位置検出信号、第1補正値、第2補正値については後述する。   The ROM 103, the RAM 102, the EEPROM 104, and the like are storage devices that store information, and are storage devices (primary storage devices) that the CPU 101 can directly access. In addition, in the present embodiment, the EEPROM 104 uses the correction value calculation process and the correction process described later, and the average value and the minimum value of the maximum values of the position detection signals in each cycle of the electrical angle detected in one cycle of the mechanical angle of the motor 20. It functions as a storage unit that stores the average value, the first correction value, the second correction value, and the like. The position detection signal, the first correction value, and the second correction value will be described later.

A/D変換器106は、トルクセンサ10からの操舵トルクT、モータ電流検出回路16からのモータ20の電流検出値Im及び位置検出部17からのモータ20の回転角θの信号等を入力し、ディジタル信号に変換する。インターフェース105は、CAN(Controller Area Network)等の車載ネットワークに接続されている。インターフェース105は、車速センサ12からの車速Vの信号(車速パルス)を受け付けるためのものである。   The A/D converter 106 inputs the steering torque T from the torque sensor 10, the current detection value Im of the motor 20 from the motor current detection circuit 16, the signal of the rotation angle θ of the motor 20 from the position detector 17, and the like. , Convert to digital signal. The interface 105 is connected to an in-vehicle network such as a CAN (Controller Area Network). The interface 105 is for receiving a signal (vehicle speed pulse) of the vehicle speed V from the vehicle speed sensor 12.

PWMコントローラ107は、モータ20に対する電流指令値に基づいてUVW各相のPWM制御信号を出力する。モータ駆動回路15は、インバータ回路等により構成され、PWMコントローラ107から出力された信号に基づいてモータ20を駆動する。モータ電流検出回路16は、モータ20に供給される電流の値(電流検出値)Imを検出してA/D変換器106に出力する。   The PWM controller 107 outputs a PWM control signal for each phase of UVW based on the current command value for the motor 20. The motor drive circuit 15 is composed of an inverter circuit and the like, and drives the motor 20 based on the signal output from the PWM controller 107. The motor current detection circuit 16 detects the value (current detection value) Im of the current supplied to the motor 20 and outputs it to the A/D converter 106.

位置検出部17は、位置センサ25(本実施形態では、レゾルバ)から出力される位置検出信号から、モータ20の回転角θを求める位置検出処理を行い、A/D変換器106に出力する。本実施形態では、位置検出部17において、位置センサ25から出力される位置検出信号を補正し、補正後の信号に基づき、位置検出処理を行う。なお、位置検出部17は、回路で構成される態様であっても良いし、図2に示す制御用コンピュータ110、より具体的にはCPU101によって実現される態様であっても良い。位置センサ25及び位置検出部17における位置検出信号の補正手法の詳細については後述する。   The position detection unit 17 performs position detection processing for obtaining the rotation angle θ of the motor 20 from the position detection signal output from the position sensor 25 (resolver in this embodiment), and outputs it to the A/D converter 106. In the present embodiment, the position detection unit 17 corrects the position detection signal output from the position sensor 25, and performs position detection processing based on the corrected signal. The position detection unit 17 may be configured by a circuit, or may be implemented by the control computer 110 shown in FIG. 2, more specifically by the CPU 101. The details of the correction method of the position detection signal in the position sensor 25 and the position detection unit 17 will be described later.

図3は、実施形態に係る電動パワーステアリング装置を制御するコントロールユニットの機能的な構成を示す機能ブロック図である。図3を用いて、電動パワーステアリング装置100の制御を説明する。図3に示すように、コントロールユニット30は、アシスト機能部31を有する。   FIG. 3 is a functional block diagram showing a functional configuration of a control unit that controls the electric power steering device according to the embodiment. The control of the electric power steering device 100 will be described with reference to FIG. As shown in FIG. 3, the control unit 30 has an assist function unit 31.

アシスト機能部31は、電流指令値算出部31a、電流制御部31bを有する。電流指令値算出部31aは、操舵トルクT及び車速Vに対応した電流指令値Iを算出する。電流制御部31bは、電流指令値Iと電流検出値Imとの偏差が0に近づくように、比例制御と微分制御と積分制御とのうち少なくとも一つを実行し、電流指令値Iに近づくように制御された電流Imが生成されるように、モータ駆動回路15のゲート駆動信号のデューティ比Dを演算する。モータ駆動回路15は、電流制御部31bが演算したデューティ比DにしたがってPWM制御された電流をモータ20に出力する。モータ電流検出回路16は、モータ20に流れる電流Imを検出する。   The assist function unit 31 includes a current command value calculation unit 31a and a current control unit 31b. The current command value calculation unit 31a calculates a current command value I corresponding to the steering torque T and the vehicle speed V. The current controller 31b executes at least one of proportional control, differential control, and integral control so that the deviation between the current command value I and the detected current value Im approaches 0, and approaches the current command value I. The duty ratio D of the gate drive signal of the motor drive circuit 15 is calculated so that the current Im controlled by the above is generated. The motor drive circuit 15 outputs the current PWM-controlled to the motor 20 according to the duty ratio D calculated by the current controller 31b. The motor current detection circuit 16 detects a current Im flowing through the motor 20.

図3に示すアシスト機能部31は、図2に示す制御用コンピュータ110、より具体的にはCPU101によって実現される。   The assist function unit 31 shown in FIG. 3 is realized by the control computer 110 shown in FIG. 2, more specifically, the CPU 101.

図4Aは、レゾルバの第1例を示す概略図である。図4Bは、レゾルバの第2例を示す概略図である。モータ20の位置検出用の信号である位置検出信号は、図4A又は図4Bに示すレゾルバ(位置センサ)25から出力される。レゾルバ25は、概略構成として、円環状のレゾルバステータ251と、このレゾルバステータ251の内周に沿って、モータシャフト20aの軸心Xを中心として回転するレゾルバロータ252とを備えている。図4Aに示す第1例では、4極のレゾルバ25を例示している。図4Bに示す第2例では、3極のレゾルバ25を例示している。   FIG. 4A is a schematic diagram showing a first example of a resolver. FIG. 4B is a schematic diagram showing a second example of the resolver. A position detection signal which is a signal for detecting the position of the motor 20 is output from the resolver (position sensor) 25 shown in FIG. 4A or 4B. The resolver 25 includes, as a schematic configuration, an annular resolver stator 251, and a resolver rotor 252 that rotates around the axis X of the motor shaft 20a along the inner circumference of the resolver stator 251. In the first example shown in FIG. 4A, the resolver 25 having four poles is illustrated. In the second example shown in FIG. 4B, the resolver 25 having three poles is illustrated.

レゾルバステータ251は、複数のステータコアが積層されて構成され、レゾルバロータ252の外周に沿って等配された複数のティース251aのそれぞれに電機子巻線251bが巻回されている。図4A及び図4Bでは、10個のティース251aを有する構成を例示しているが、ティース251aの数により、本開示が限定されるものではない。   The resolver stator 251 is configured by laminating a plurality of stator cores, and the armature winding 251b is wound around each of the plurality of teeth 251a that are equally arranged along the outer circumference of the resolver rotor 252. 4A and 4B exemplify the configuration having ten teeth 251a, the present disclosure is not limited by the number of teeth 251a.

レゾルバロータ252は、複数のロータコアが積層されて構成される。レゾルバロータ252がモータシャフト20aの軸心Xを中心として回転することで、レゾルバステータ251とレゾルバロータ252との間の間隙dが変化し、レゾルバステータ251の電機子巻線251bに供給される正弦波状の励磁信号に応じた正弦波信号及び余弦波信号が電気角の位置検出信号として出力される。   The resolver rotor 252 is configured by stacking a plurality of rotor cores. When the resolver rotor 252 rotates around the axis X of the motor shaft 20a, the gap d between the resolver stator 251 and the resolver rotor 252 changes, and the sine wave supplied to the armature winding 251b of the resolver stator 251 is changed. A sine wave signal and a cosine wave signal corresponding to the wavy excitation signal are output as the position detection signal of the electrical angle.

図5は、図4Aに示す第1例のレゾルバにおける位置検出信号及び位相角の関係を示す図である。図5に示す(a)は、位置検出信号としての正弦波信号の理想的な波形を示し、図5に示す(b)は、位置検出信号としての余弦波信号の理想的な波形を示し、図5に示す(c)は、位置検出信号の電気角を示し、図5に示す(d)は、モータ20の機械角を示している。   FIG. 5 is a diagram showing the relationship between the position detection signal and the phase angle in the resolver of the first example shown in FIG. 4A. 5A shows an ideal waveform of a sine wave signal as a position detection signal, and FIG. 5B shows an ideal waveform of a cosine wave signal as a position detection signal, 5C shows the electrical angle of the position detection signal, and FIG. 5D shows the mechanical angle of the motor 20.

図5に示す例では、モータ20の機械角θmの1周期Tmにおいて、レゾルバ25により電気角で4周期4Te分の位置検出信号(正弦波信号sinθe、余弦波信号cosθe)が検出される。モータ20の機械角θmの1周期Tmにおいて検出される電気角の位置検出信号の周期Teの数は、レゾルバロータ252を軸心方向に見た形状により決まる。図4Aに示す第1例のレゾルバ25の場合、モータ20の機械角θmの1周期Tmにおいて、レゾルバステータ251とレゾルバロータ252との間の間隙dが4回変化する。すなわち、図4Aに示す第1例のレゾルバ25は、モータ20の機械角θmの1周期Tmにおいて、電気角で4周期4Te分の位置検出信号を出力する4極のレゾルバである。また、図4Bに示す第2例のレゾルバ25の場合、モータ20の機械角θmの1周期Tmにおいて、レゾルバステータ251とレゾルバロータ252との間の間隙dが3回変化する。すなわち、図4Bに示す第2例のレゾルバ25は、モータ20の機械角θmの1周期Tmにおいて、電気角で3周期3Te分の位置検出信号を出力する3極のレゾルバである。なお、本実施形態では、レゾルバ25の極数が2以上である場合を対象としており、レゾルバ25の極数は、2極あるいは5極以上の複数極であっても良い。   In the example shown in FIG. 5, in one cycle Tm of the mechanical angle θm of the motor 20, the resolver 25 detects the position detection signals (sine wave signal sin θe, cosine wave signal cos θe) for 4 cycles of 4 Te in electrical angle. The number of cycles Te of the position detection signal of the electrical angle detected in one cycle Tm of the mechanical angle θm of the motor 20 is determined by the shape of the resolver rotor 252 viewed in the axial direction. In the case of the resolver 25 of the first example shown in FIG. 4A, the gap d between the resolver stator 251 and the resolver rotor 252 changes four times in one cycle Tm of the mechanical angle θm of the motor 20. That is, the resolver 25 of the first example shown in FIG. 4A is a 4-pole resolver that outputs a position detection signal for 4 cycles of 4 Te in electrical angle in one cycle Tm of the mechanical angle θm of the motor 20. Further, in the case of the resolver 25 of the second example shown in FIG. 4B, the gap d between the resolver stator 251 and the resolver rotor 252 changes three times in one cycle Tm of the mechanical angle θm of the motor 20. That is, the resolver 25 of the second example illustrated in FIG. 4B is a three-pole resolver that outputs a position detection signal for three Te cycles in electrical angle in one cycle Tm of the mechanical angle θm of the motor 20. In this embodiment, the case where the number of poles of the resolver 25 is two or more is targeted, and the number of poles of the resolver 25 may be two poles or plural poles of five poles or more.

図6は、理想的な正弦波信号波形及び余弦波信号波形とレゾルバから出力される正弦波信号波形及び余弦波信号波形の一例を示す図である。図6では、図4Aに示す第1例の4極のレゾルバ25を用いた場合の理想的な正弦波信号波形及び余弦波信号波形とレゾルバ25から出力される実際の正弦波信号波形及び余弦波信号波形を例示している。図6に示す(a)は、理想的な正弦波信号sinθidの波形を示し、図6に示す(b)は、理想的な余弦波信号cosθidの波形を示し、図6に示す(c)は、レゾルバ25から出力される実際の正弦波信号sinθreの一例を示し、図6に示す(d)は、レゾルバ25から出力される実際の余弦波信号cosθreの一例を示している。図6に示す(c)及び(d)では、図4Aに示す第1例の4極のレゾルバ25において、モータシャフト20aの軸心X(図4A参照)から偏心している例を示している。   FIG. 6 is a diagram showing an example of ideal sine wave signal waveforms and cosine wave signal waveforms and sine wave signal waveforms and cosine wave signal waveforms output from the resolver. In FIG. 6, ideal sine wave signal waveforms and cosine wave signal waveforms when the four-pole resolver 25 of the first example shown in FIG. 4A is used, and actual sine wave signal waveforms and cosine wave output from the resolver 25 are shown. The signal waveform is illustrated. 6A shows the waveform of the ideal sine wave signal sin θid, FIG. 6B shows the waveform of the ideal cosine wave signal cos θid, and FIG. 6C shows the waveform. , An example of the actual sine wave signal sin θre output from the resolver 25, and FIG. 6D shows an example of the actual cosine wave signal cos θre output from the resolver 25. 6C and 6D show an example in which the resolver 25 with four poles of the first example shown in FIG. 4A is eccentric from the axis X of the motor shaft 20a (see FIG. 4A).

図6の(c)及び(d)に示すように、レゾルバ25から出力される実際の正弦波信号sinθre及び実際の余弦波信号cosθreは、理想的な正弦波信号sinθid及び理想的な余弦波信号cosθidに対して、位相ずれαやオフセットsin_offset,cos_offsetを含んでいる。また、レゾルバ25が偏心している場合には、レゾルバ25から出力される実際の正弦波信号sinθre及び実際の余弦波信号cosθreは、電気角θeの各周期Te毎に、それそれ最大値sin_max1,2,3,4、cos_max1,2,3,4及び最小値sin_min1,2,3,4、cos_min1,2,3,4が異なる値となる。   As shown in (c) and (d) of FIG. 6, the actual sine wave signal sin θre and the actual cosine wave signal cos θre output from the resolver 25 are the ideal sine wave signal sin θid and the ideal cosine wave signal. A phase shift α and offsets sin_offset and cos_offset are included with respect to cos θid. Further, when the resolver 25 is eccentric, the actual sine wave signal sin θre and the actual cosine wave signal cos θre output from the resolver 25 are maximum values sin_max1, 2 for each cycle Te of the electrical angle θe. , 3, 4, cos_max 1, 2, 3, 4, and minimum values sin_min 1, 2, 3, 4, cos_min 1, 2, 3, 4, are different values.

本実施形態では、例えば、図6に示す例において、少なくとも、モータ20の機械角θmの1周期Tmにおいて、電気角θeで4周期Te分の正弦波信号sinθreの最大値sin_max1,2,3,4及び最小値sin_min1,2,3,4、並びに、余弦波信号cosθreの最大値cos_max1,2,3,4及び最小値cos_min1,2,3,4を検出する。そして、これら4周期Te分の正弦波信号sinθreの最大値sin_max1,2,3,4の平均値及び最小値sin_min1,2,3,4の平均値、並びに、余弦波信号cosθreの最大値cos_max1,2,3,4の平均値及び最小値cos_min1,2,3,4の平均値を求め、EEPROM104に記憶する。なお、正弦波信号sinθreの最大値及び最小値、並びに、余弦波信号cosθreの最大値及び最小値を検出するモータ20の機械角θmの周期は、2周期以上の複数周期であっても良く、例えば、モータ20の機械角θmの2周期2Tmにおいて、電気角θeで8周期8Te分の正弦波信号sinθreの最大値及び最小値、並びに、余弦波信号cosθreの最大値及び最小値を検出し、これら8周期8Te分の正弦波信号sinθreの最大値の平均値及び最小値の平均値、並びに、余弦波信号cosθreの最大値の平均値及び最小値の平均値を求め、EEPROM104に記憶する態様であっても良い。正弦波信号sinθreの最大値及び最小値、並びに、余弦波信号cosθreの最大値及び最小値を検出するモータ20の機械角θmの周期により本開示が限定されるものではない。   In the present embodiment, for example, in the example shown in FIG. 6, at least in one cycle Tm of the mechanical angle θm of the motor 20, the maximum values sin_max1, 2, 3, of the sinusoidal signal sin θre for four cycles Te in the electrical angle θe. 4 and the minimum values sin_min1, 2, 3, 4, and the maximum values cos_max1, 2, 3, 4 and the minimum values cos_min1, 2, 3, 4 of the cosine wave signal cos θre. Then, the average value of the maximum values sin_max1, 2, 3, 4, of the sine wave signal sin θre for these four cycles Te and the average value of the minimum values sin_min 1, 2, 3, 4, and the maximum value cos_max1, of the cosine wave signal cos θre. The average value of 2, 3, 4 and the minimum value cos_min 1, 2, 3, 4 are calculated and stored in the EEPROM 104. The cycle of the mechanical angle θm of the motor 20 for detecting the maximum value and the minimum value of the sine wave signal sin θre and the maximum value and the minimum value of the cosine wave signal cos θre may be two or more cycles. For example, in 2 cycles 2Tm of the mechanical angle θm of the motor 20, the maximum value and the minimum value of the sine wave signal sin θre for 8 cycles 8Te at the electrical angle θe and the maximum value and the minimum value of the cosine wave signal cos θre are detected, In a mode in which the average value of the maximum values and the average value of the minimum values of these sine wave signals sinθre for 8 cycles and 8Te and the average value of the maximum values and the minimum values of the cosine wave signal cosθre are obtained and stored in the EEPROM 104. It may be. The present disclosure is not limited by the cycle of the mechanical angle θm of the motor 20 that detects the maximum and minimum values of the sine wave signal sin θre and the maximum and minimum values of the cosine wave signal cos θre.

本実施形態では、モータ20の機械角θmの所定周期において検出される複数周期分の正弦波信号sinθreの最大値の平均値及び最小値の平均値、並びに、余弦波信号cosθreの最大値の平均値及び最小値の平均値を用いて、レゾルバ25から出力される実際の正弦波信号sinθre及び実際の余弦波信号cosθreに対し、以下の補正値算出処理及び補正処理を実施することで、図6の(a)及び(b)に示す理想的な正弦波信号sinθid及び理想的な余弦波信号cosθidとなるようにする。   In the present embodiment, the average value of the maximum value and the average value of the minimum value of the sine wave signal sin θre for a plurality of cycles detected in the predetermined cycle of the mechanical angle θm of the motor 20, and the average value of the maximum value of the cosine wave signal cos θre. By performing the following correction value calculation processing and correction processing on the actual sine wave signal sin θre and the actual cosine wave signal cos θre output from the resolver 25 using the average value of the values and the minimum value, The ideal sine wave signal sin θid and the ideal cosine wave signal cos θid shown in (a) and (b) of FIG.

次に、実施形態に係る電動パワーステアリング装置の補正値算出処理について説明する。   Next, a correction value calculation process of the electric power steering device according to the embodiment will be described.

図7は、実施形態に係る位置検出部における補正演算処理部の概略ブロック構成の一例を示す図である。図8は、実施形態に係る電動パワーステアリング装置の初期キャリブレーションにおける補正値算出処理手順の一例を示すフローチャートである。以下、図7及び図8に従い、実施形態に係る補正値算出処理手順について説明する。ここでは、図4Aに示す第1例の4極のレゾルバ25を用いた場合の補正値算出処理手順について例示する。   FIG. 7 is a diagram illustrating an example of a schematic block configuration of a correction calculation processing unit in the position detection unit according to the embodiment. FIG. 8 is a flowchart showing an example of a correction value calculation processing procedure in the initial calibration of the electric power steering apparatus according to the embodiment. Hereinafter, the correction value calculation processing procedure according to the embodiment will be described with reference to FIGS. 7 and 8. Here, an example of the correction value calculation processing procedure when the 4-pole resolver 25 of the first example shown in FIG. 4A is used will be described.

図7に示すように、本実施形態において、位置検出部17は、補正演算処理部171と、角度演算部172とを備えている。   As shown in FIG. 7, in the present embodiment, the position detection unit 17 includes a correction calculation processing unit 171 and an angle calculation unit 172.

補正演算処理部171は、レゾルバ25から出力される位置検出信号の補正値算出処理及び補正処理を行う。補正演算処理部171における処理は、一次補正処理1711と、二次補正処理1712とを含む。   The correction calculation processing unit 171 performs correction value calculation processing and correction processing for the position detection signal output from the resolver 25. The processing in the correction calculation processing unit 171 includes a primary correction processing 1711 and a secondary correction processing 1712.

角度演算部172は、補正演算処理部171から出力される信号に基づき、モータ20の制御に用いる位置情報(回転角θ)を算出する。   The angle calculation unit 172 calculates position information (rotation angle θ) used for controlling the motor 20 based on the signal output from the correction calculation processing unit 171.

電動パワーステアリング装置100の初期キャリブレーションにおいて、ECU30は、ステアリング中立位置P0から所定方向に所定速度(例えば、モータ20の回転速度が100rms程度の低回転となる速度)でステアリング1を回転させる。位置検出部17には、レゾルバ25によって検出された正弦波信号SIN0及び余弦波信号COS0が入力される。補正演算処理部171は、入力された正弦波信号SIN0及び余弦波信号COS0を取得する(ステップS101)。   In the initial calibration of the electric power steering apparatus 100, the ECU 30 rotates the steering wheel 1 in a predetermined direction from the steering neutral position P0 at a predetermined speed (for example, the rotation speed of the motor 20 is a low rotation speed of about 100 rms). The sine wave signal SIN0 and the cosine wave signal COS0 detected by the resolver 25 are input to the position detector 17. The correction calculation processing unit 171 acquires the input sine wave signal SIN0 and cosine wave signal COS0 (step S101).

補正演算処理部171は、取得した正弦波信号SIN0の最大値の平均値及び最小値の平均値、並びに、余弦波信号COS0の最大値の平均値及び最小値の平均値を求め、EEPROM104に記憶する(ステップS102)。具体的に、補正演算処理部171は、入力された正弦波信号SIN0及び余弦波信号COS0をサンプリング処理し、これら正弦波信号SIN0の最大値の平均値及び最小値の平均値、並びに、余弦波信号COS0の最大値の平均値及び最小値の平均値を求めて、EEPROM104に記憶する。   The correction calculation processing unit 171 obtains the average value of the maximum values and the average value of the minimum values of the acquired sine wave signal SIN0, and the average value of the maximum values and the minimum values of the cosine wave signal COS0, and stores them in the EEPROM 104. Yes (step S102). Specifically, the correction calculation processing unit 171 performs sampling processing on the input sine wave signal SIN0 and cosine wave signal COS0, and calculates the average value of the maximum values and the average value of the minimum values of these sine wave signals SIN0 and the cosine wave signal. The average value of the maximum value and the average value of the minimum value of the signal COS0 is obtained and stored in the EEPROM 104.

補正演算処理部171は、入力された正弦波信号SIN0及び余弦波信号COS0に対し、補正値の算出処理を行う。   The correction calculation processing unit 171 performs a correction value calculation process on the input sine wave signal SIN0 and cosine wave signal COS0.

補正演算処理部171は、正弦波信号SIN0及び余弦波信号COS0に対する第1オフセット補正値及び第1ゲイン補正値(以下、第1オフセット補正値及び第1ゲイン補正値をまとめて「第1補正値」ともいう)を算出し、EEPROM104に記憶する(ステップS103)。   The correction calculation processing unit 171 includes a first offset correction value and a first gain correction value for the sine wave signal SIN0 and the cosine wave signal COS0 (hereinafter, the first offset correction value and the first gain correction value are collectively referred to as “first correction value”). (Also referred to as “”) and stored in the EEPROM 104 (step S103).

ステップS103における第1オフセット補正値(SIN_OFFSET1、COS_OFFSET1)は、正弦波信号SIN0の最大値の平均値をSIN0_MAX、正弦波信号SIN0の最小値の平均値をSIN0_MIN、余弦波信号COS0の最大値の平均値をCOS0_MAX、余弦波信号COS0の最小値の平均値をCOS0_MINとしたとき、以下の(1)式及び(2)式で示される。   The first offset correction values (SIN_OFFSET1, COS_OFFSET1) in step S103 are SIN0_MAX, the average of the maximum values of the sine wave signal SIN0, SIN0_MIN, the average of the minimum values of the sine wave signal SIN0, and the average of the maximum values of the cosine wave signal COS0. When the value is COS0_MAX and the average value of the minimum values of the cosine wave signal COS0 is COS0_MIN, they are expressed by the following equations (1) and (2).

SIN_OFFSET1=(SIN0_MAX+SIN0_MIN)/2・・・(1)   SIN_OFFSET1=(SIN0_MAX+SIN0_MIN)/2 (1)

COS_OFFSET1=(COS0_MAX+COS0_MIN)/2・・・(2)   COS_OFFSET1=(COS0_MAX+COS0_MIN)/2 (2)

図9は、オフセット補正値の概念図である。第1オフセット補正値SIN_OFFSET1は、正弦波信号SIN0のオフセット電圧に等しい。すなわち、正弦波信号SIN0から、第1オフセット補正値SIN_OFFSET1を減ずることで、正弦波信号SIN0のオフセット電圧が補正される。   FIG. 9 is a conceptual diagram of the offset correction value. The first offset correction value SIN_OFFSET1 is equal to the offset voltage of the sine wave signal SIN0. That is, the offset voltage of the sine wave signal SIN0 is corrected by subtracting the first offset correction value SIN_OFFSET1 from the sine wave signal SIN0.

また、余弦波信号COS0においても同様に、第1オフセット補正値COS_OFFSET1は、余弦波信号COS0のオフセット電圧に等しい。すなわち、余弦波信号COS0から、第1オフセット補正値COS_OFFSET1を減ずることで、余弦波信号COS0のオフセット電圧が補正される。   Also in the cosine wave signal COS0, similarly, the first offset correction value COS_OFFSET1 is equal to the offset voltage of the cosine wave signal COS0. That is, the offset voltage of the cosine wave signal COS0 is corrected by subtracting the first offset correction value COS_OFFSET1 from the cosine wave signal COS0.

また、ステップS102における第1ゲイン補正値(SIN_GAIN1、COS_GAIN1)は、以下の(3)式及び(4)式で示される。以下の(3)式及び(4)式において、Nは自然数である。   The first gain correction value (SIN_GAIN1, COS_GAIN1) in step S102 is expressed by the following equations (3) and (4). In the following expressions (3) and (4), N is a natural number.

SIN_GAIN1=N/(SIN0_MAX−SIN0_MIN)・・・(3)   SIN_GAIN1=N/(SIN0_MAX-SIN0_MIN) (3)

COS_GAIN1=N/(COS0_MAX−COS0_MIN)・・・(4)   COS_GAIN1=N/(COS0_MAX-COS0_MIN) (4)

図10は、ゲイン補正値の概念図である。第1ゲイン補正値SIN_GAIN1を正弦波信号SIN0から第1オフセット補正値SIN_OFFSET1を減じた値に乗じることで、正弦波信号SIN0のゲインが補正される。ここで、N=2である場合、正弦波信号SIN0がレベル「1」に正規化される。   FIG. 10 is a conceptual diagram of the gain correction value. The gain of the sine wave signal SIN0 is corrected by multiplying the value obtained by subtracting the first offset correction value SIN_OFFSET1 from the sine wave signal SIN0 by the first gain correction value SIN_GAIN1. Here, when N=2, the sine wave signal SIN0 is normalized to the level “1”.

また、余弦波信号COS0においても同様に、第1ゲイン補正値COS_GAIN1を余弦波信号COS0から第1オフセット補正値COS_OFFSET1を減じた値に乗じることで、余弦波信号COS0のゲインが補正される。ここで、N=2である場合、余弦波信号COS0もレベル「1」に正規化される。   Similarly, in the cosine wave signal COS0, the gain of the cosine wave signal COS0 is corrected by multiplying the first gain correction value COS_GAIN1 by the value obtained by subtracting the first offset correction value COS_OFFSET1 from the cosine wave signal COS0. Here, when N=2, the cosine wave signal COS0 is also normalized to the level "1".

続いて、補正演算処理部171は、入力された正弦波信号SIN0及び余弦波信号COS0を再度取得する(ステップS104)。   Subsequently, the correction calculation processing unit 171 acquires again the input sine wave signal SIN0 and cosine wave signal COS0 (step S104).

補正演算処理部171は、取得した正弦波信号SIN0及び余弦波信号COS0を、ステップS103において算出した第1補正値を用いて補正(以下、「第1補正処理」ともいう)する(ステップS105)。具体的には、以下の(5)式及び(6)式を用いて、正弦波信号SIN0及び余弦波信号COS0を補正し、第1正弦波信号SIN1及び第1余弦波信号COS1を求める。これらの(5)式及び(6)式を用いた第1補正処理が、図7中に示す一次補正処理1711である。   The correction calculation processing unit 171 corrects the acquired sine wave signal SIN0 and cosine wave signal COS0 using the first correction value calculated in step S103 (hereinafter, also referred to as “first correction processing”) (step S105). .. Specifically, the sine wave signal SIN0 and the cosine wave signal COS0 are corrected using the following equations (5) and (6), and the first sine wave signal SIN1 and the first cosine wave signal COS1 are obtained. The first correction process using these formulas (5) and (6) is the primary correction process 1711 shown in FIG. 7.

SIN1=SIN_GAIN1×(SIN0−SIN_OFFSET1)・・・(5)   SIN1=SIN_GAIN1×(SIN0-SIN_OFFSET1) (5)

COS1=COS_GAIN1×(COS0−COS_OFFSET1)・・・(6)   COS1=COS_GAIN1×(COS0-COS_OFFSET1) (6)

図11は、一次補正処理結果の一例を示す図である。図11では、一次補正処理1711では、位置検出信号である正弦波信号SIN0のオフセット電圧とゲインとが補正された第1正弦波信号SIN1を示しているが、第1正弦波信号SIN1にαの位相ずれが生じている例を示している。なお、第1余弦波信号COS1も同様に、αの位相ずれが生じている。   FIG. 11 is a diagram showing an example of the primary correction processing result. In FIG. 11, the primary correction processing 1711 shows the first sine wave signal SIN1 in which the offset voltage and the gain of the sine wave signal SIN0, which is the position detection signal, are corrected. An example in which a phase shift occurs is shown. Similarly, the first cosine wave signal COS1 also has a phase shift of α.

続いて、補正演算処理部171は、以下の(7)式及び(8)式を用いて、上記(5)式及び(6)式で求めた第1正弦波信号SIN1及び第1余弦波信号COS1の位相変換処理を行い(ステップS106)、第2正弦波信号SIN2及び第2余弦波信号COS2を算出する。   Subsequently, the correction calculation processing unit 171 uses the following equations (7) and (8) to calculate the first sine wave signal SIN1 and the first cosine wave signal obtained from the above equations (5) and (6). Phase conversion processing of COS1 is performed (step S106), and the second sine wave signal SIN2 and the second cosine wave signal COS2 are calculated.

SIN2=SIN1−COS1・・・(7)   SIN2=SIN1-COS1 (7)

COS2=COS1+SIN1・・・(8)   COS2=COS1+SIN1 (8)

これにより、第1正弦波信号SIN1及び第1余弦波信号COS1の位相がそれぞれ45度進んだ第2正弦波信号SIN2及び第2余弦波信号COS2の位相が得られる。   As a result, the phases of the second sine wave signal SIN2 and the second cosine wave signal COS2 obtained by advancing the phases of the first sine wave signal SIN1 and the first cosine wave signal COS1 by 45 degrees are obtained.

図12は、実施形態において第1正弦波信号と第1余弦波信号との間に位相ずれが生じていない場合の位相変換処理後のベクトル図である。図13は、実施形態において第1正弦波信号と第1余弦波信号との間にαの位相ずれが生じている場合の位相変換処理後のベクトル図である。   FIG. 12 is a vector diagram after the phase conversion processing when there is no phase shift between the first sine wave signal and the first cosine wave signal in the embodiment. FIG. 13 is a vector diagram after the phase conversion processing in the case where the phase shift of α occurs between the first sine wave signal and the first cosine wave signal in the embodiment.

図12に示すように、第1正弦波信号SIN1と第1余弦波信号COS1との間に位相ずれが生じていない場合には、上記の(7)式のベクトル(SIN1−COS1)と、上記の(8)式のベクトル(COS1+SIN1)との大きさは等しくなる。   As shown in FIG. 12, when there is no phase shift between the first sine wave signal SIN1 and the first cosine wave signal COS1, the vector (SIN1-COS1) of the above equation (7) The magnitude of the vector (COS1+SIN1) in the equation (8) is equal.

一方、図13に示すように、第1正弦波信号SIN1に対して第1余弦波信号COS1がαの位相ずれを生じている場合には、上記の(7)式のベクトル(SIN1−COS1(−α))が、上記の(8)式のベクトル(COS1(−α)+SIN1)よりも大きくなる。   On the other hand, as shown in FIG. 13, when the first cosine wave signal COS1 has a phase shift of α with respect to the first sine wave signal SIN1, the vector (SIN1-COS1( −α)) becomes larger than the vector (COS1(−α)+SIN1) in the above equation (8).

本実施形態では、上記の(7)式の結果である第1正弦波信号SIN2と、上記の(8)式の結果である第1余弦波信号COS2とに対し、オフセット補正及びゲイン補正を行うことで、オフセット補正及びゲイン補正後の信号のベクトルの大きさが等しくなるように補正する。   In the present embodiment, offset correction and gain correction are performed on the first sine wave signal SIN2 that is the result of the above expression (7) and the first cosine wave signal COS2 that is the result of the above expression (8). By doing so, correction is performed so that the vector sizes of the signals after the offset correction and the gain correction become equal.

補正演算処理部171は、上記(7)式及び(8)式の位相変換処理結果に対する補正値である第2オフセット補正値及び第2ゲイン補正値(以下、第2オフセット補正値及び第2ゲイン補正値をまとめて「第2補正値」ともいう)を算出し、EEPROM104に記憶し(ステップS107)、補正値算出処理を終了する。   The correction calculation processing unit 171 includes a second offset correction value and a second gain correction value (hereinafter referred to as a second offset correction value and a second gain) that are correction values for the phase conversion processing results of the expressions (7) and (8). The correction values are collectively calculated as a “second correction value”), stored in the EEPROM 104 (step S107), and the correction value calculation process ends.

ステップS107における第2オフセット補正値(SIN_OFFSET2、COS_OFFSET2)は、第2正弦波信号SIN2の最大値をSIN2_MAX、第2正弦波信号SIN2の最小値をSIN2_MIN、第2余弦波信号COS2の最大値をCOS2_MAX、第2余弦波信号COS2の最小値をCOS2_MINとしたとき、以下の(9)式及び(10)式で示される。   For the second offset correction values (SIN_OFFSET2, COS_OFFSET2) in step S107, the maximum value of the second sine wave signal SIN2 is SIN2_MAX, the minimum value of the second sine wave signal SIN2 is SIN2_MIN, and the maximum value of the second cosine wave signal COS2 is COS2_MAX. , Where COS2_MIN is the minimum value of the second cosine wave signal COS2, it is expressed by the following equations (9) and (10).

SIN_OFFSET2=(SIN2_MAX+SIN2_MIN)/2・・・(9)   SIN_OFFSET2=(SIN2_MAX+SIN2_MIN)/2 (9)

COS_OFFSET2=(COS2_MAX+COS2_MIN)/2・・・(10)   COS_OFFSET2=(COS2_MAX+COS2_MIN)/2 (10)

また、ステップS107における第2ゲイン補正値(SIN_GAIN2、COS_GAIN2)は、以下の(11)式及び(12)式で示される。以下の(11)式及び(12)式において、Nは自然数である。   Further, the second gain correction value (SIN_GAIN2, COS_GAIN2) in step S107 is expressed by the following equations (11) and (12). In the following equations (11) and (12), N is a natural number.

SIN_GAIN2=N/(SIN2_MAX−SIN2_MIN)・・・(11)   SIN_GAIN2=N/(SIN2_MAX-SIN2_MIN) (11)

COS_GAIN2=N/(COS2_MAX−COS2_MIN)・・・(12)   COS_GAIN2=N/(COS2_MAX-COS2_MIN)...(12)

後述する電動パワーステアリング装置100の実運用時における補正処理において、一次補正処理後の第1正弦波信号SIN1及び第1余弦波信号COS1を、上述した(7)式及び(8)式を用いて位相変換処理を行い、その位相変換処理後の第2正弦波信号SIN2及び第2余弦波信号COS2に対し、上記の(11)式及び(12)式を用いてオフセット補正及びゲイン補正を行う。さらに、オフセット補正及びゲイン補正後の信号に対して、上記の(7)式及び(8)式とは逆方向の位相変換処理を行うことで、正弦波信号と余弦波信号との位相ずれを解消することができる。   In the correction process during the actual operation of the electric power steering device 100, which will be described later, the first sine wave signal SIN1 and the first cosine wave signal COS1 after the primary correction process are calculated by using the formulas (7) and (8) described above. The phase conversion process is performed, and the offset correction and the gain correction are performed on the second sine wave signal SIN2 and the second cosine wave signal COS2 after the phase conversion process by using the above formulas (11) and (12). Further, by performing the phase conversion processing in the opposite direction to the above equations (7) and (8) on the signal after the offset correction and the gain correction, the phase shift between the sine wave signal and the cosine wave signal is caused. It can be resolved.

続いて、実施形態に係る電動パワーステアリング装置100の実運用時における補正処理について、図7及び図14を参照して説明する。本実施形態において、実運用とは、例えば、実施形態に係る電動パワーステアリング装置100が搭載された車両が出荷又はユーザーに納品された後に、車両が実際に走行することを示す。図14は、実施形態に係る電動パワーステアリング装置の実運用時における補正処理手順の一例を示すフローチャートである。   Next, a correction process during actual operation of the electric power steering device 100 according to the embodiment will be described with reference to FIGS. 7 and 14. In the present embodiment, the actual operation indicates that the vehicle actually travels after the vehicle equipped with the electric power steering device 100 according to the embodiment is shipped or delivered to the user. FIG. 14 is a flowchart showing an example of a correction processing procedure during actual operation of the electric power steering device according to the embodiment.

実施形態に係る電動パワーステアリング装置100の実運用時において、位置検出部17には、レゾルバ25によって検出された正弦波信号SIN0及び余弦波信号COS0が入力される。補正演算処理部171は、入力された正弦波信号SIN0及び余弦波信号COS0を取得する(ステップS201)。   During actual operation of the electric power steering apparatus 100 according to the embodiment, the sine wave signal SIN0 and the cosine wave signal COS0 detected by the resolver 25 are input to the position detection unit 17. The correction calculation processing unit 171 acquires the input sine wave signal SIN0 and cosine wave signal COS0 (step S201).

補正演算処理部171は、取得した正弦波信号SIN0及び余弦波信号COS0に対して、上述した補正値算出処理において説明した第1補正処理を行う(ステップS202)。具体的には、上述した(5)式及び(6)式を用いて、正弦波信号SIN0及び余弦波信号COS0を補正し、第1正弦波信号SIN1及び第1余弦波信号COS1を求める。これらの(5)式及び(6)式を用いた第1補正処理が、図9中に示す一次補正処理1711に相当する。   The correction calculation processing unit 171 performs the first correction processing described in the above-described correction value calculation processing on the acquired sine wave signal SIN0 and cosine wave signal COS0 (step S202). Specifically, the sine wave signal SIN0 and the cosine wave signal COS0 are corrected using the above equations (5) and (6) to obtain the first sine wave signal SIN1 and the first cosine wave signal COS1. The first correction process using these equations (5) and (6) corresponds to the primary correction process 1711 shown in FIG.

続いて、補正演算処理部171は、上述した(7)式及び(8)式を用いて、上記(5)式及び(6)式で求めた第1正弦波信号SIN1及び第1余弦波信号COS1の位相変換処理を行う(ステップS203)。   Subsequently, the correction calculation processing unit 171 uses the above-mentioned equations (7) and (8) to calculate the first sine wave signal SIN1 and the first cosine wave signal obtained by the above equations (5) and (6). Phase conversion processing of COS1 is performed (step S203).

これにより、第1正弦波信号SIN1及び第1余弦波信号COS1の位相がそれぞれ45度進んだ第2正弦波信号SIN2及び第2余弦波信号COS2が得られる。   As a result, the second sine wave signal SIN2 and the second cosine wave signal COS2 in which the phases of the first sine wave signal SIN1 and the first cosine wave signal COS1 are advanced by 45 degrees are obtained.

続いて、補正演算処理部171は、ステップS203により得た第2正弦波信号SIN2及び第2余弦波信号COS2を、上述した補正値算出処理において算出した第2補正値を用いて補正(以下、「第2補正処理」ともいう)する(ステップS204)。具体的には、以下の(13)式及び(14)式を用いて、第2正弦波信号SIN2及び第2余弦波信号COS2を補正し、第3正弦波信号SIN3及び第3余弦波信号COS3を求める。   Subsequently, the correction calculation processing unit 171 corrects the second sine wave signal SIN2 and the second cosine wave signal COS2 obtained in step S203 using the second correction value calculated in the correction value calculation process described above (hereinafter, "Second correction process") (step S204). Specifically, the second sine wave signal SIN2 and the second cosine wave signal COS2 are corrected using the following expressions (13) and (14), and the third sine wave signal SIN3 and the third cosine wave signal COS3 are corrected. Ask for.

SIN3=SIN_GAIN2×(SIN2−SIN_OFFSET2)・・・(13)   SIN3=SIN_GAIN2×(SIN2-SIN_OFFSET2) (13)

COS3=COS_GAIN2×(COS2−COS_OFFSET2)・・・(14)   COS3=COS_GAIN2×(COS2-COS_OFFSET2) (14)

図15は、実施形態に係る第2補正処理による補正例を示す図である。図15に示すように、第2正弦波信号SIN2及び第2余弦波信号COS2の大きさが補正されている。これにより、補正後の第3正弦波信号SIN3及び第3余弦波信号COS3の大きさが正規化される。   FIG. 15 is a diagram showing a correction example by the second correction processing according to the embodiment. As shown in FIG. 15, the magnitudes of the second sine wave signal SIN2 and the second cosine wave signal COS2 are corrected. As a result, the magnitudes of the corrected third sine wave signal SIN3 and the third cosine wave signal COS3 are normalized.

続いて、補正演算処理部171は、以下の(15)式及び(16)式を用いて、上記(13)式及び(14)式で求めた第3正弦波信号SIN3及び第3余弦波信号COS3に対し、上述した(7)式及び(8)式とは逆方向の逆位相変換処理を行い(ステップS205)、第4正弦波信号SIN4及び第4余弦波信号COS4を算出する。   Subsequently, the correction calculation processing unit 171 uses the following equations (15) and (16) to obtain the third sine wave signal SIN3 and the third cosine wave signal obtained by the equations (13) and (14). The COS3 is subjected to reverse phase conversion processing in the opposite direction to the above equations (7) and (8) (step S205), and the fourth sine wave signal SIN4 and the fourth cosine wave signal COS4 are calculated.

SIN4=SIN3+COS3・・・(15)   SIN4=SIN3+COS3 (15)

COS4=COS3−SIN3・・・(16)   COS4=COS3-SIN3 (16)

これにより、第3正弦波信号SIN3及び第3余弦波信号COS3の位相がそれぞれ45度遅れた第4正弦波信号SIN4及び第4余弦波信号COS4が得られる。すなわち、ステップS203においてそれぞれ45度進んだ位相を戻す。   As a result, the fourth sine wave signal SIN4 and the fourth cosine wave signal COS4 in which the phases of the third sine wave signal SIN3 and the third cosine wave signal COS3 are delayed by 45 degrees are obtained. That is, in step S203, the phase advanced by 45 degrees is returned.

上述したステップS203、ステップS204、及びステップS205の処理が、図7中に示す二次補正処理1712に相当する。   The processes of steps S203, S204, and S205 described above correspond to the secondary correction process 1712 shown in FIG. 7.

図16は、二次補正処理結果の一例を示す図である。図16では、二次補正処理1712によって、第4正弦波信号SIN4及び第4余弦波信号COS4の位相ずれが解消した例を示している。   FIG. 16 is a diagram showing an example of the secondary correction processing result. FIG. 16 shows an example in which the phase shift of the fourth sine wave signal SIN4 and the fourth cosine wave signal COS4 is eliminated by the secondary correction processing 1712.

以上のステップS201からステップS205までの処理により、レゾルバ25によって検出された正弦波信号及び余弦波信号が補正される。具体的には、補正演算処理部171の一次補正処理1711によって、正弦波信号及び余弦波信号のオフセット電圧及びゲインが補正され、補正演算処理部171の二次補正処理1712によって、正弦波信号及び余弦波信号の位相ずれが補正される。   The sine wave signal and the cosine wave signal detected by the resolver 25 are corrected by the above processing from step S201 to step S205. Specifically, the primary correction processing 1711 of the correction calculation processing unit 171 corrects the offset voltage and the gain of the sine wave signal and the cosine wave signal, and the secondary correction processing 1712 of the correction calculation processing unit 171 corrects the sine wave signal and The phase shift of the cosine wave signal is corrected.

補正演算処理部171によって補正された第4正弦波信号SIN4及び第4余弦波信号COS4は、角度演算部172に出力される。角度演算部172は、補正演算処理部171から出力された第4正弦波信号SIN4及び第4余弦波信号COS4に基づき、モータ20の位置情報である回転角θを算出する。   The fourth sine wave signal SIN4 and the fourth cosine wave signal COS4 corrected by the correction calculation processing unit 171 are output to the angle calculation unit 172. The angle calculation unit 172 calculates the rotation angle θ that is the position information of the motor 20 based on the fourth sine wave signal SIN4 and the fourth cosine wave signal COS4 output from the correction calculation processing unit 171.

本実施形態では、上述したように、電動パワーステアリング装置100の初期キャリブレーションにおいて、一次補正処理1711で用いる第1補正値(第1オフセット補正値、第1ゲイン補正値)及び二次補正処理1712で用いる第2補正値(第2オフセット補正値、第2ゲイン補正値)を求める。そして、電動パワーステアリング装置100の実運用時において、第1補正値(第1オフセット補正値、第1ゲイン補正値)及び第2補正値(第2オフセット補正値、第2ゲイン補正値)を用いて、入力された正弦波信号及び余弦波信号を補正する。   In the present embodiment, as described above, in the initial calibration of the electric power steering apparatus 100, the first correction value (first offset correction value, first gain correction value) and the secondary correction processing 1712 used in the primary correction processing 1711. The second correction value (the second offset correction value, the second gain correction value) used in step 1 is obtained. Then, during the actual operation of the electric power steering device 100, the first correction value (first offset correction value, first gain correction value) and the second correction value (second offset correction value, second gain correction value) are used. Then, the input sine wave signal and cosine wave signal are corrected.

これにより、角度演算部172においてモータの位置検出(回転角)を高精度に算出することができる。このため、電動パワーステアリング装置100における操舵補助制御の精度を高めることができる。   As a result, the angle calculation unit 172 can calculate the position detection (rotation angle) of the motor with high accuracy. Therefore, the accuracy of the steering assist control in the electric power steering device 100 can be improved.

なお、上述した実施形態では、二次補正処理1712において第2オフセット補正値を用いて補正する例を示したが、一次補正処理1711における第1オフセット補正値によって十分にオフセット電圧が補正できていれば、必ずしも第2オフセット補正値を用いて二次補正処理1712を行う必要はない。以下、二次補正処理1712において第2オフセット補正値を用いない態様について説明する。なお、以下の説明では、図8及び図14を参照して説明するが、上述した内容と同一の処理については説明を省略し、異なる処理についてのみ説明する。   In the above-described embodiment, an example in which the secondary offset correction value is used for correction in the secondary offset correction processing 1712 is shown. However, the offset voltage can be sufficiently corrected by the first offset offset correction value in the primary offset correction processing 1711. For example, it is not always necessary to perform the secondary correction processing 1712 using the second offset correction value. Hereinafter, an aspect in which the second offset correction value is not used in the secondary correction processing 1712 will be described. Although the following description will be given with reference to FIGS. 8 and 14, the description of the same processes as those described above will be omitted, and only different processes will be described.

補正演算処理部171は、図8に示す補正値算出処理のステップS106において、上記(7)式及び(8)式と同じく、以下の(17)式及び(18)式を用いて、図8に示す補正値算出処理のステップS105で(5)式及び(6)式で求めた第1正弦波信号SIN1及び第1余弦波信号COS1の位相変換処理を行い、第2正弦波信号SIN2及び第2余弦波信号COS2を算出する。   In step S106 of the correction value calculation process illustrated in FIG. 8, the correction calculation processing unit 171 uses the following formulas (17) and (18) in the same manner as the above formulas (7) and (8). In step S105 of the correction value calculation process shown in FIG. 7, the phase conversion process of the first sine wave signal SIN1 and the first cosine wave signal COS1 obtained by the formulas (5) and (6) is performed, and the second sine wave signal SIN2 and The cosine wave signal COS2 is calculated.

SIN2=SIN1−COS1・・・(17)   SIN2=SIN1-COS1 (17)

COS2=COS1+SIN1・・・(18)   COS2=COS1+SIN1 (18)

また、補正演算処理部171は、図8に示す補正値算出処理のステップS107において、上記(17)式及び(18)式の位相変換処理結果に対する補正値である第2ゲイン補正値(第2補正値)を算出し、EEPROM104に記憶する。なお、ステップS107における第2ゲイン補正値(SIN_GAIN2、COS_GAIN2)は、以下の(19)式及び(20)式で示される。以下の(19)式及び(20)式において、Nは自然数である。   Further, in step S107 of the correction value calculation process shown in FIG. 8, the correction calculation processing section 171 outputs the second gain correction value (second correction value) which is a correction value for the phase conversion processing result of the equations (17) and (18). A correction value) is calculated and stored in the EEPROM 104. The second gain correction value (SIN_GAIN2, COS_GAIN2) in step S107 is expressed by the following equations (19) and (20). In the following equations (19) and (20), N is a natural number.

SIN_GAIN2=N/(SIN2_MAX−SIN2_MIN)・・・(19)   SIN_GAIN2=N/(SIN2_MAX-SIN2_MIN) (19)

COS_GAIN2=N/(COS2_MAX−COS2_MIN)・・・(20)   COS_GAIN2=N/(COS2_MAX-COS2_MIN) (20)

また、補正演算処理部171は、図14に示す補正処理のステップS204において、第2正弦波信号SIN2及び第2余弦波信号COS2を、補正値算出処理において算出した第2ゲイン補正値(第2補正値)を用いて補正する。具体的には、以下の(21)式及び(22)式を用いて、第2正弦波信号SIN2及び第2余弦波信号COS2を補正し、第3正弦波信号SIN3及び第3余弦波信号COS3を求める。   In addition, in step S204 of the correction processing illustrated in FIG. 14, the correction calculation processing unit 171 calculates the second sine wave signal SIN2 and the second cosine wave signal COS2 by the second gain correction value (second Correction value). Specifically, the second sine wave signal SIN2 and the second cosine wave signal COS2 are corrected using the following equations (21) and (22), and the third sine wave signal SIN3 and the third cosine wave signal COS3 are corrected. Ask for.

SIN3=SIN_GAIN2×SIN2・・・(21)   SIN3=SIN_GAIN2×SIN2 (21)

COS3=COS_GAIN2×COS2・・・(22)   COS3=COS_GAIN2×COS2 (22)

続いて、補正演算処理部171は、図14に示す補正処理のステップS205において、上記の(15)式及び(16)式と同じく、以下の(23)式及び(24)式を用いて、上記(21)式及び(22)式で求めた第3正弦波信号SIN3及び第3余弦波信号COS3に対し、上述した(17)式及び(18)式とは逆方向の位相変換処理を行い、第4正弦波信号SIN4及び第4余弦波信号COS4を算出する。   Subsequently, in step S205 of the correction process illustrated in FIG. 14, the correction calculation processing unit 171 uses the following formulas (23) and (24) as in the above formulas (15) and (16), For the third sine wave signal SIN3 and the third cosine wave signal COS3 obtained by the above equations (21) and (22), the phase conversion processing in the opposite direction to the above equations (17) and (18) is performed. , The fourth sine wave signal SIN4 and the fourth cosine wave signal COS4 are calculated.

SIN4=SIN3+COS3・・・(23)   SIN4=SIN3+COS3 (23)

COS4=COS3−SIN3・・・(24)   COS4=COS3-SIN3 (24)

これにより、第3正弦波信号SIN3及び第3余弦波信号COS3の位相がそれぞれ45度遅れた第4正弦波信号SIN4及び第4余弦波信号COS4が得られる。すなわち、ステップS203においてそれぞれ45度進んだ位相を戻す。   As a result, the fourth sine wave signal SIN4 and the fourth cosine wave signal COS4 in which the phases of the third sine wave signal SIN3 and the third cosine wave signal COS3 are delayed by 45 degrees are obtained. That is, in step S203, the phase advanced by 45 degrees is returned.

図17は、実施形態に係る補正値算出処理及び補正処理を実施しない場合の電気角誤差を示す図である。図18は、実施形態に係る補正値算出処理及び補正処理における一次補正処理を行った場合の電気角誤差を示す図である。図19は、実施形態に係る補正値算出処理及び補正処理における一次補正処理及び二次補正処理を行った場合の電気角誤差を示す図である。   FIG. 17 is a diagram showing an electrical angle error when the correction value calculation process and the correction process according to the embodiment are not performed. FIG. 18 is a diagram showing an electrical angle error when the primary correction process in the correction value calculation process and the correction process according to the embodiment is performed. FIG. 19 is a diagram illustrating an electrical angle error when the primary correction process and the secondary correction process in the correction value calculation process and the correction process according to the embodiment are performed.

図17に示すように、実施形態に係る補正値算出処理及び補正処理を実施しない場合には、電気角誤差が±1.2[deg]の範囲で推移している。   As shown in FIG. 17, when the correction value calculation process and the correction process according to the embodiment are not performed, the electrical angle error changes within a range of ±1.2 [deg].

これに対し、実施形態に係る補正値算出処理及び補正処理において一次補正処理を行った場合には、図18に示すように、電気角誤差が±0.8[deg]の範囲で推移している。   On the other hand, when the primary correction process is performed in the correction value calculation process and the correction process according to the embodiment, the electrical angle error changes within a range of ±0.8 [deg] as shown in FIG. There is.

このように、実施形態に係る補正値算出処理及び補正処理における一次補正処理を行うことで、電気角誤差を小さくすることができる。   As described above, the electrical angle error can be reduced by performing the primary correction process in the correction value calculation process and the correction process according to the embodiment.

また、実施形態に係る補正値算出処理及び補正処理において一次補正処理及び二次補正処理を行った場合には、図19に示すように、電気角誤差が±0.4[deg]の範囲で推移している。   Further, when the primary correction process and the secondary correction process are performed in the correction value calculation process and the correction process according to the embodiment, as shown in FIG. 19, the electrical angle error is within ±0.4 [deg]. It is changing.

このように、実施形態に係る補正値算出処理及び補正処理における一次補正処理及び二次補正処理を行うことで、電気角誤差をより小さくすることができる。   As described above, by performing the primary correction processing and the secondary correction processing in the correction value calculation processing and the correction processing according to the embodiment, it is possible to further reduce the electrical angle error.

なお、図4Aに示した第1例の4極のレゾルバは、極対数が4つのブラスレスモータに対して採用した場合に、機械角で4つの象限にモータの電気角とレゾルバの電気角とを対応させることができるため親和性が高い。   In addition, when the 4-pole resolver of the first example shown in FIG. 4A is adopted for a brassless motor having four pole pairs, the electrical angle of the motor and the electrical angle of the resolver are divided into four quadrants in terms of mechanical angle. It has a high affinity because it can correspond to.

例えば、極対数が4つのブラスレスモータに対して、位置センサとしてTMR(Tunnel Magneto Resistance)センサを用いた場合、機械角を4分割して象限を割り出す必要があるが、図4Aに示した第1例の4極のレゾルバを位置センサとして用いた場合には、その必要はない。   For example, when a TMR (Tunnel Magnet Resistance) sensor is used as a position sensor for a brassless motor having four pole pairs, it is necessary to divide the mechanical angle into four to determine the quadrant. This is not necessary when the 4-pole resolver of one example is used as the position sensor.

一方、レゾルバの検出値からモータの回転の角速度や角加速度を求め、モータの制御に利用しようとすると、レゾルバの検出値の誤差成分がモータの回転の角速度や角加速度の変動として影響を与え、モータの制御精度が低下する可能性がある。これに対し、本実施形態では、一次補正処理においてオフセット補正及びゲイン補正を行い、さらに、二次補正処理において位相補正を行うことにより、高い検出精度を得ることができる。   On the other hand, if the angular velocity or angular acceleration of the rotation of the motor is obtained from the detected value of the resolver and it is attempted to use it for the control of the motor, the error component of the detected value of the resolver affects as the fluctuation of the angular velocity or angular acceleration of the rotation of the motor The control accuracy of the motor may decrease. On the other hand, in this embodiment, high detection accuracy can be obtained by performing offset correction and gain correction in the primary correction processing and further performing phase correction in the secondary correction processing.

また、例えば、図4Bに示した第2例の3極のレゾルバを用いた構成から、図4Aに示した第1例の4極のレゾルバを用いた構成に変更した場合、3極のレゾルバを用いた構成よりも電気角の傾きが大きくなり、これに伴い、レゾルバの検出値の誤差成分に対する感度が高くなる。これにより、モータの回転の角速度や角加速度の変動として与える影響が大きくなり、モータの制御精度が低下する可能性が高くなる。これに対し、本実施形態では、上述したように、一次補正処理においてオフセット補正及びゲイン補正を行い、さらに、二次補正処理において位相補正を行うことにより、高い検出精度を得ることができる。   Further, for example, when the configuration using the three-pole resolver of the second example shown in FIG. 4B is changed to the configuration using the four-pole resolver of the first example shown in FIG. 4A, a three-pole resolver is used. The inclination of the electrical angle becomes larger than that of the configuration used, and accordingly, the sensitivity to the error component of the detected value of the resolver becomes higher. As a result, the influence of fluctuations in the angular velocity and angular acceleration of the rotation of the motor increases, and the control accuracy of the motor is likely to decrease. On the other hand, in the present embodiment, as described above, high offset detection accuracy can be obtained by performing offset correction and gain correction in the primary correction processing and further performing phase correction in the secondary correction processing.

特に、本実施形態に係る一次補正処理及び二次補正処理は、レゾルバから出力される正弦波信号及び余弦波信号の精度が低い場合において効果的である。従って、レゾルバ選定における自由度が高くなり、より低価格なレゾルバを採用することが可能となる。   Particularly, the primary correction processing and the secondary correction processing according to the present embodiment are effective when the accuracy of the sine wave signal and the cosine wave signal output from the resolver is low. Therefore, the degree of freedom in selecting a resolver is increased, and a lower cost resolver can be adopted.

また、コラムアシスト型の電動パワーステアリング装置のモータに適用する場合、車両の走行時のロードノイズやフロアノイズ等の低周波ノイズ成分が、レゾルバから出力される正弦波信号及び余弦波信号に重畳し易い。このような構成においても、本実施形態に係る一次補正処理及び二次補正処理によって高い検出精度を得ることができる。   When applied to a motor of a column assist type electric power steering device, low frequency noise components such as road noise and floor noise when the vehicle is running are superimposed on the sine wave signal and cosine wave signal output from the resolver. easy. Even in such a configuration, high detection accuracy can be obtained by the primary correction processing and the secondary correction processing according to the present embodiment.

(変形例)
図20は、実施形態の変形例に係る位置検出部における補正演算処理部の概略ブロック構成の一例を示す図である。なお、上述した実施形態と同じ構成要素には、同じ参照符号を付して、説明を省略する。
(Modification)
FIG. 20 is a diagram illustrating an example of a schematic block configuration of a correction calculation processing unit in the position detection unit according to the modified example of the embodiment. The same components as those of the above-described embodiment are designated by the same reference numerals and the description thereof will be omitted.

図20に示すように、本実施形態の変形例において、位置検出部17aは、補正演算処理部171aと、角度演算部172とを備えている。   As shown in FIG. 20, in the modified example of the present embodiment, the position detection unit 17a includes a correction calculation processing unit 171a and an angle calculation unit 172.

補正演算処理部171aは、レゾルバ25から出力される位置検出信号の補正値算出処理及び補正処理を行う。補正演算処理部171aにおける処理は、一次補正処理1711と、二次補正処理1712aとを含む。   The correction calculation processing unit 171a performs a correction value calculation process and a correction process of the position detection signal output from the resolver 25. The processing in the correction calculation processing unit 171a includes a primary correction processing 1711 and a secondary correction processing 1712a.

実施形態の変形例では、上述した実施形態に対し、補正値算出処理手順におけるステップS106の処理、及び、補正処理手順におけるステップS205の処理が異なっている。なお、以下の説明では、図8及び図14を参照して説明するが、上述した内容と同一の処理については説明を省略し、異なる処理についてのみ説明する。   The modified example of the embodiment is different from the above-described embodiment in the processing of step S106 in the correction value calculation processing procedure and the processing of step S205 in the correction processing procedure. Although the following description will be given with reference to FIGS. 8 and 14, the description of the same processes as those described above will be omitted, and only different processes will be described.

補正演算処理部171aは、図8に示す補正値算出処理のステップS106において、以下の(7)’式及び(8)’式を用いて、上記(5)式及び(6)式で求めた第1正弦波信号SIN1及び第1余弦波信号COS1の位相変換処理を行い(ステップS106)、第2正弦波信号SIN2及び第2余弦波信号COS2を算出する。   In step S106 of the correction value calculation process illustrated in FIG. 8, the correction calculation processing unit 171a uses the following equations (7)′ and (8)′ to obtain the equations (5) and (6). Phase conversion processing is performed on the first sine wave signal SIN1 and the first cosine wave signal COS1 (step S106), and the second sine wave signal SIN2 and the second cosine wave signal COS2 are calculated.

SIN2=SIN1+COS1・・・(7)’   SIN2=SIN1+COS1 (7)'

COS2=COS1−SIN1・・・(8)’   COS2=COS1-SIN1 (8)'

これにより、第1正弦波信号SIN1及び第1余弦波信号COS1の位相がそれぞれ45度遅れた第2正弦波信号SIN2及び第2余弦波信号COS2の位相が得られる。   As a result, the phases of the second sine wave signal SIN2 and the second cosine wave signal COS2 in which the phases of the first sine wave signal SIN1 and the first cosine wave signal COS1 are delayed by 45 degrees are obtained.

図21は、実施形態の変形例において第1正弦波信号と第1余弦波信号との間に位相ずれが生じていない場合の位相変換処理後のベクトル図である。図22は、実施形態の変形例において第1正弦波信号と第1余弦波信号との間にαの位相ずれが生じている場合の位相変換処理後のベクトル図である。   FIG. 21 is a vector diagram after the phase conversion process when there is no phase shift between the first sine wave signal and the first cosine wave signal in the modification of the embodiment. FIG. 22 is a vector diagram after the phase conversion processing when there is a phase shift of α between the first sine wave signal and the first cosine wave signal in the modification of the embodiment.

図21に示すように、第1正弦波信号SIN1と第1余弦波信号COS1との間に位相ずれが生じていない場合には、上記の(7)’式のベクトル(SIN1+COS1)と、上記の(8)’式のベクトル(COS1−SIN1)との大きさは等しくなる。   As shown in FIG. 21, when there is no phase shift between the first sine wave signal SIN1 and the first cosine wave signal COS1, the vector (SIN1+COS1) of the equation (7)′ and the above The magnitude of the vector (COS1-SIN1) in the equation (8)' is equal.

一方、図22に示すように、第1正弦波信号SIN1に対して第1余弦波信号COS1がαの位相ずれを生じている場合には、上記の(7)’式のベクトル(SIN1(−α)+COS1)が、上記の(8)’式のベクトル(COS1−SIN1(−α))よりも大きくなる。   On the other hand, as shown in FIG. 22, when the first cosine wave signal COS1 has a phase shift of α with respect to the first sine wave signal SIN1, the vector (SIN1(-SIN1(- α)+COS1) becomes larger than the vector (COS1-SIN1(−α)) of the above equation (8)′.

本実施形態の変形例では、上記の(7)’式の結果である第1正弦波信号SIN2と、上記の(8)’式の結果である第1余弦波信号COS2とに対し、オフセット補正及びゲイン補正を行うことで、オフセット補正及びゲイン補正後の信号のベクトルの大きさが等しくなるように補正する。以下の補正値算出処理手順は、上述した実施形態と同様である。   In the modified example of the present embodiment, the offset correction is performed on the first sine wave signal SIN2 which is the result of the expression (7)′ and the first cosine signal COS2 which is the result of the expression (8)′. By performing the gain correction and the gain correction, the vector sizes of the signals after the offset correction and the gain correction are corrected to be equal. The following correction value calculation processing procedure is the same as that of the above-described embodiment.

図23は、実施形態の変形例に係る第2補正処理による補正例を示す図である。図23に示すように、第2正弦波信号SIN2及び第2余弦波信号COS2の大きさが補正されている。これにより、補正後の第3正弦波信号SIN3及び第3余弦波信号COS3の大きさが正規化される。   FIG. 23 is a diagram illustrating a correction example by the second correction process according to the modified example of the embodiment. As shown in FIG. 23, the magnitudes of the second sine wave signal SIN2 and the second cosine wave signal COS2 are corrected. As a result, the magnitudes of the corrected third sine wave signal SIN3 and the third cosine wave signal COS3 are normalized.

また、補正演算処理部171aは、図8に示す補正値算出処理のステップS107において、以下の(15)’式及び(16)’式を用いて、上記(13)式及び(14)式で求めた第3正弦波信号SIN3及び第3余弦波信号COS3に対し、上述した(7)’式及び(8)’式とは逆方向の逆位相変換処理を行い(ステップS205)、第4正弦波信号SIN4及び第4余弦波信号COS4を算出する。   Further, the correction calculation processing unit 171a uses the following equations (15)′ and (16)′ in step S107 of the correction value calculation processing shown in FIG. The obtained third sine wave signal SIN3 and the third cosine wave signal COS3 are subjected to reverse phase conversion processing in the opposite direction of the above equations (7)' and (8)' (step S205), and the fourth sine The wave signal SIN4 and the fourth cosine wave signal COS4 are calculated.

SIN4=SIN3−COS3・・・(15)’   SIN4=SIN3-COS3 (15)'

COS4=COS3+SIN3・・・(16)’   COS4=COS3+SIN3 (16)'

これにより、第3正弦波信号SIN3及び第3余弦波信号COS3の位相がそれぞれ45度進んだ第4正弦波信号SIN4及び第4余弦波信号COS4が得られる。すなわち、ステップS203においてそれぞれ45度遅れた位相を戻す。   As a result, the fourth sine wave signal SIN4 and the fourth cosine wave signal COS4 in which the phases of the third sine wave signal SIN3 and the third cosine wave signal COS3 are advanced by 45 degrees are obtained. That is, the phases delayed by 45 degrees are returned in step S203.

なお、上述した実施形態の変形例では、実施形態と同様に、二次補正処理1712aにおいて第2オフセット補正値を用いて補正する例を示したが、一次補正処理1711における第1オフセット補正値によって十分に位置検出信号のオフセット電圧が補正できていれば、必ずしも第2オフセット補正値を用いて二次補正処理1712aを行う必要はないことについても、上述した実施形態と同様である。   Note that, in the modified example of the above-described embodiment, similar to the embodiment, an example of performing correction using the second offset correction value in the secondary correction processing 1712a has been described, but according to the first offset correction value in the primary correction processing 1711. Similar to the above-described embodiment, it is not always necessary to perform the secondary correction processing 1712a using the second offset correction value as long as the offset voltage of the position detection signal can be sufficiently corrected.

なお、上述した実施形態及び実施形態の変形例において、レゾルバ25、位置検出部17、及びEEPROM104は、回転角検出装置を構成する。   In addition, in the above-described embodiment and the modification of the embodiment, the resolver 25, the position detection unit 17, and the EEPROM 104 constitute a rotation angle detection device.

また、上述した実施形態及び実施形態の変形例において、回転角検出装置は、モータ20を駆動制御するモータ制御装置を構成する。   In addition, in the above-described embodiment and modified examples of the embodiment, the rotation angle detection device constitutes a motor control device that drives and controls the motor 20.

以上説明したように、実施形態及び実施形態の変形例に係る電動パワーステアリング装置100は、モータ20がステアリング1のコラム軸2に設けられ、回転角検出装置により検出された回転角を用いてモータ20を駆動制御することにより、ステアリング1の操舵力をトルク制御する。回転角検出装置は、円環状のレゾルバステータ251と、軸心周りの1周当たり、当該レゾルバステータ251の内周との間の間隙dが複数回変化する複数の極を有するレゾルバロータ252とを備え、レゾルバロータ252の回転に応じて電気角の正弦波信号及び余弦波信号を出力するレゾルバ25と、正弦波信号及び余弦波信号に基づき、モータ20の位置を検出する位置検出部17,17aと、正弦波信号及び余弦波信号を補正するための第1補正値及び第2補正値が記憶される記憶部(EEPROM104)と、を備える。位置検出部17,17aは、第1補正値及び第2補正値を算出すると共に、第1補正値に基づき、正弦波信号及び余弦波信号のオフセット電圧及びゲインを補正し、第2補正値に基づき、正弦波信号及び余弦波信号の位相を補正する補正演算処理部171,171aと、補正演算処理部171,171aの出力信号に基づき、モータ20の回転角を算出する角度演算部172と、を備える。   As described above, in the electric power steering apparatus 100 according to the embodiment and the modified example of the embodiment, the motor 20 is provided on the column shaft 2 of the steering 1, and the motor is provided by using the rotation angle detected by the rotation angle detection device. By controlling the driving of the steering wheel 20, the steering force of the steering wheel 1 is torque-controlled. The rotation angle detection device includes a ring-shaped resolver stator 251 and a resolver rotor 252 having a plurality of poles in which the gap d between the inner circumference of the resolver stator 251 changes a plurality of times per revolution around the axis. A resolver 25 that includes a sine wave signal and a cosine wave signal of an electrical angle according to the rotation of the resolver rotor 252, and position detection units 17 and 17a that detect the position of the motor 20 based on the sine wave signal and the cosine wave signal. And a storage unit (EEPROM 104) in which the first correction value and the second correction value for correcting the sine wave signal and the cosine wave signal are stored. The position detection units 17 and 17a calculate the first correction value and the second correction value, and correct the offset voltage and the gain of the sine wave signal and the cosine wave signal based on the first correction value to obtain the second correction value. Based on the correction calculation processing units 171, 171a for correcting the phases of the sine wave signal and the cosine wave signal, and an angle calculation unit 172 for calculating the rotation angle of the motor 20 based on the output signals of the correction calculation processing units 171, 171a. Equipped with.

具体的に、補正演算処理部171は、第1補正値及び第2補正値を算出する補正値算出処理において、正弦波信号及び余弦波信号の最大値及び最小値に基づき、第1補正値を算出し、第1補正値に基づき、正弦波信号及び余弦波信号のオフセット電圧及びゲインを補正した第1正弦波信号及び第1余弦波信号を求め、第1正弦波信号及び第1余弦波信号の位相をそれぞれ電気角で45度進めた第2正弦波信号及び第2余弦波信号を求め、第2正弦波信号及び第2余弦波信号の最大値及び最小値に基づき、第2補正値を算出する。   Specifically, in the correction value calculation process for calculating the first correction value and the second correction value, the correction calculation processing unit 171 calculates the first correction value based on the maximum and minimum values of the sine wave signal and the cosine wave signal. The first sine wave signal and the first cosine wave signal are calculated and the offset voltage and the gain of the sine wave signal and the cosine wave signal are corrected based on the first correction value to obtain the first sine wave signal and the first cosine wave signal. The second sine wave signal and the second cosine wave signal obtained by advancing the phase of each by 45 electrical degrees are obtained, and the second correction value is calculated based on the maximum and minimum values of the second sine wave signal and the second cosine wave signal. calculate.

または、具体的に、補正演算処理部171aは、第1補正値及び第2補正値を算出する補正値算出処理において、正弦波信号及び余弦波信号の最大値及び最小値に基づき、第1補正値を算出し、第1補正値に基づき、正弦波信号及び余弦波信号のオフセット電圧及びゲインを補正した第1正弦波信号及び第1余弦波信号を求め、第1正弦波信号及び第1余弦波信号の位相をそれぞれ電気角で45度遅らせた第2正弦波信号及び第2余弦波信号を求め、第2正弦波信号及び第2余弦波信号の最大値及び最小値に基づき、第2補正値を算出する。   Alternatively, specifically, in the correction value calculation process of calculating the first correction value and the second correction value, the correction calculation processing unit 171a performs the first correction based on the maximum value and the minimum value of the sine wave signal and the cosine wave signal. The first sine wave signal and the first cosine wave signal are obtained by calculating the values and obtaining the first sine wave signal and the first cosine wave signal in which the offset voltage and the gain of the sine wave signal and the cosine wave signal are corrected based on the first correction value. A second sine wave signal and a second cosine wave signal in which the phase of the wave signal is delayed by 45 electrical degrees are obtained, and the second correction is performed based on the maximum value and the minimum value of the second sine wave signal and the second cosine wave signal. Calculate the value.

また、具体的に、補正演算処理部171は、正弦波信号及び余弦波信号を補正する補正処理において、第1補正値に基づき、正弦波信号及び余弦波信号のオフセット電圧及びゲインを補正した第1正弦波信号及び第1余弦波信号を求め、第1正弦波信号及び第1余弦波信号の位相をそれぞれ電気角で45度進めた第2正弦波信号及び第2余弦波信号を求め、第2補正値に基づき、少なくとも、第2正弦波信号及び第2余弦波信号のゲインを補正した第3正弦波信号及び第3余弦波信号を求め、第3正弦波信号及び第3余弦波信号の位相をそれぞれ電気角で45度遅らせた第4正弦波信号及び第4余弦波信号を求める。角度演算部172は、第4正弦波信号及び第4余弦波信号に基づき、モータ20の回転角を算出する。   Further, specifically, in the correction processing for correcting the sine wave signal and the cosine wave signal, the correction calculation processing unit 171 corrects the offset voltage and the gain of the sine wave signal and the cosine wave signal based on the first correction value. The first sine wave signal and the first cosine wave signal are obtained, and the second sine wave signal and the second cosine wave signal obtained by advancing the phases of the first sine wave signal and the first cosine wave signal by 45 electrical degrees are obtained. Based on the two correction values, at least the third sine wave signal and the third cosine wave signal in which the gains of the second sine wave signal and the second cosine wave signal are corrected are obtained, and the third sine wave signal and the third cosine wave signal are calculated. A fourth sine wave signal and a fourth cosine wave signal whose phases are delayed by 45 electrical degrees are obtained. The angle calculator 172 calculates the rotation angle of the motor 20 based on the fourth sine wave signal and the fourth cosine wave signal.

または、具体的に、補正演算処理部171aは、正弦波信号及び余弦波信号を補正する補正処理において、第1補正値に基づき、正弦波信号及び余弦波信号のオフセット電圧及びゲインを補正した第1正弦波信号及び第1余弦波信号を求め、第1正弦波信号及び第1余弦波信号の位相をそれぞれ電気角で45度遅らせた第2正弦波信号及び第2余弦波信号を求め、第2補正値に基づき、少なくとも、第2正弦波信号及び第2余弦波信号のゲインを補正した第3正弦波信号及び第3余弦波信号を求め、第3正弦波信号及び第3余弦波信号の位相をそれぞれ電気角で45度進めた第4正弦波信号及び第4余弦波信号を求める。角度演算部172は、第4正弦波信号及び第4余弦波信号に基づき、モータ20の回転角を算出する。   Alternatively, specifically, in the correction processing for correcting the sine wave signal and the cosine wave signal, the correction calculation processing unit 171a corrects the offset voltage and the gain of the sine wave signal and the cosine wave signal based on the first correction value. The first sine wave signal and the first cosine wave signal are obtained, and the second sine wave signal and the second cosine wave signal obtained by delaying the phases of the first sine wave signal and the first cosine wave signal by an electrical angle of 45 degrees are calculated. Based on the two correction values, at least the third sine wave signal and the third cosine wave signal in which the gains of the second sine wave signal and the second cosine wave signal are corrected are obtained, and the third sine wave signal and the third cosine wave signal are calculated. A fourth sine wave signal and a fourth cosine wave signal whose phases are advanced by 45 electrical degrees are obtained. The angle calculator 172 calculates the rotation angle of the motor 20 based on the fourth sine wave signal and the fourth cosine wave signal.

また、実施形態に係る回転角検出方法は、モータ20の軸心周りの1周当たり、円環状のレゾルバステータ251の内周との間の間隙dが複数回変化する複数の極を有するレゾルバロータ252の回転に応じて出力される電気角の正弦波信号及び余弦波信号を補正し、当該補正結果に基づきモータ20の回転角を検出する回転角検出方法であって、正弦波信号及び余弦波信号の最大値及び最小値に基づき、正弦波信号及び余弦波信号のオフセット電圧及びゲインを補正するための第1補正値を算出し、第1補正値に基づき、正弦波信号及び余弦波信号のオフセット電圧及びゲインを補正した第1正弦波信号及び第1余弦波信号を求め、第1正弦波信号及び第1余弦波信号の位相をそれぞれ電気角で45度進めた第2正弦波信号及び第2余弦波信号を求め、第2正弦波信号及び第2余弦波信号の最大値及び最小値に基づき、正弦波信号及び余弦波信号の位相を補正するための第2補正値を算出する補正値算出処理ステップと、第1補正値に基づき、正弦波信号及び余弦波信号のオフセット電圧及びゲインを補正した第1正弦波信号及び第1余弦波信号を求め、第1正弦波信号及び第1余弦波信号の位相をそれぞれ電気角で45度進めた第2正弦波信号及び第2余弦波信号を求め、第2補正値に基づき、少なくとも、第2正弦波信号及び第2余弦波信号のゲインを補正した第3正弦波信号及び第3余弦波信号を求め、第3正弦波信号及び第3余弦波信号の位相をそれぞれ電気角で45度遅らせた第4正弦波信号及び第4余弦波信号を求める補正処理ステップと、第4正弦波信号及び第4余弦波信号に基づき、モータ20の回転角を算出する回転角算出ステップと、を有する。   Further, the rotation angle detecting method according to the embodiment has a resolver rotor having a plurality of poles in which the gap d between the inner periphery of the annular resolver stator 251 changes a plurality of times per revolution around the axis of the motor 20. A method for detecting a rotation angle of a motor 20 based on a correction result of a sine wave signal and a cosine wave signal of an electrical angle output according to the rotation of 252. A first correction value for correcting the offset voltage and gain of the sine wave signal and the cosine wave signal is calculated based on the maximum value and the minimum value of the signal, and the sine wave signal and the cosine wave signal of the sine wave signal are calculated based on the first correction value. The first sine wave signal and the first cosine wave signal with the offset voltage and the gain corrected are obtained, and the phases of the first sine wave signal and the first cosine wave signal are advanced by 45 degrees in electrical angle, respectively. A correction value for calculating the second cosine wave signal and calculating a second correction value for correcting the phases of the sine wave signal and the cosine wave signal based on the maximum value and the minimum value of the second sine wave signal and the second cosine wave signal. The first sine wave signal and the first cosine wave signal are obtained by correcting the offset voltage and the gain of the sine wave signal and the cosine wave signal based on the calculation processing step and the first correction value. The second sine wave signal and the second cosine wave signal obtained by advancing the phase of the wave signal by 45 electrical degrees are obtained, and at least the gains of the second sine wave signal and the second cosine wave signal are calculated based on the second correction value. The corrected third sine wave signal and the third cosine wave signal are obtained, and the fourth sine wave signal and the fourth cosine wave signal obtained by delaying the phases of the third sine wave signal and the third cosine wave signal by 45 degrees in electrical angle There is a correction processing step to be obtained, and a rotation angle calculation step for calculating the rotation angle of the motor 20 based on the fourth sine wave signal and the fourth cosine wave signal.

または、実施形態に係る回転角検出方法は、モータ20の軸心周りの1周当たり、円環状のレゾルバステータ251の内周との間の間隙dが複数回変化する複数の極を有するレゾルバロータ252の回転に応じて出力される電気角の正弦波信号及び余弦波信号を補正し、当該補正結果に基づきモータ20の回転角を検出する回転角検出方法であって、正弦波信号及び余弦波信号の最大値及び最小値に基づき、正弦波信号及び余弦波信号のオフセット電圧及びゲインを補正するための第1補正値を算出し、第1補正値に基づき、正弦波信号及び余弦波信号のオフセット電圧及びゲインを補正した第1正弦波信号及び第1余弦波信号を求め、第1正弦波信号及び第1余弦波信号の位相をそれぞれ電気角で45度遅らせた第2正弦波信号及び第2余弦波信号を求め、第2正弦波信号及び第2余弦波信号の最大値及び最小値に基づき、正弦波信号及び余弦波信号の位相を補正するための第2補正値を算出する補正値算出処理ステップと、第1補正値に基づき、正弦波信号及び余弦波信号のオフセット電圧及びゲインを補正した第1正弦波信号及び第1余弦波信号を求め、第1正弦波信号及び第1余弦波信号の位相をそれぞれ電気角で45度遅らせた第2正弦波信号及び第2余弦波信号を求め、第2補正値に基づき、少なくとも、第2正弦波信号及び第2余弦波信号のゲインを補正した第3正弦波信号及び第3余弦波信号を求め、第3正弦波信号及び第3余弦波信号の位相をそれぞれ電気角で45度進めた第4正弦波信号及び第4余弦波信号を求める補正処理ステップと、第4正弦波信号及び第4余弦波信号に基づき、モータ20の回転角を算出する回転角算出ステップと、を有する。   Alternatively, the rotation angle detection method according to the embodiment has a resolver rotor having a plurality of poles in which the gap d between the inner periphery of the annular resolver stator 251 changes a plurality of times per revolution around the axis of the motor 20. A method for detecting a rotation angle of a motor 20 based on a correction result of a sine wave signal and a cosine wave signal of an electrical angle output according to the rotation of 252. A first correction value for correcting the offset voltage and gain of the sine wave signal and the cosine wave signal is calculated based on the maximum value and the minimum value of the signal, and the sine wave signal and the cosine wave signal of the sine wave signal are calculated based on the first correction value. The first sine wave signal and the first cosine wave signal with the offset voltage and the gain corrected are obtained, and the phases of the first sine wave signal and the first cosine wave signal are delayed by 45 degrees in electrical angle, respectively, and A correction value for calculating the second cosine wave signal and calculating a second correction value for correcting the phases of the sine wave signal and the cosine wave signal based on the maximum value and the minimum value of the second sine wave signal and the second cosine wave signal. The first sine wave signal and the first cosine wave signal are obtained by correcting the offset voltage and the gain of the sine wave signal and the cosine wave signal based on the calculation processing step and the first correction value. The second sine wave signal and the second cosine wave signal obtained by delaying the phase of the wave signal by 45 degrees in electrical angle are obtained, and at least the gains of the second sine wave signal and the second cosine wave signal are calculated based on the second correction value. The corrected third sine wave signal and the third cosine wave signal are obtained, and the fourth sine wave signal and the fourth cosine wave signal obtained by advancing the phases of the third sine wave signal and the third cosine wave signal by 45 electrical degrees are obtained. There is a correction processing step to be obtained, and a rotation angle calculation step for calculating the rotation angle of the motor 20 based on the fourth sine wave signal and the fourth cosine wave signal.

実施形態及び実施形態の変形例に係る電動パワーステアリング装置100、及び回転角検出方法によれば、正弦波信号SIN0及び余弦波信号COS0のオフセット電圧及びゲインを補正するための第1補正値、及び、正弦波信号及び余弦波信号の位相を補正するための第2補正値を得ることができる。また、第1補正値及び第2補正値を用いて、正弦波信号SIN0及び余弦波信号COS0のオフセット電圧、ゲイン、及び位相を補正することができる。従って、角度演算部172においてモータ20の位置検出(回転角θ)を高精度に算出することができる。このため、モータ20を高精度に駆動制御することができ、電動パワーステアリング装置100における操舵補助制御の精度を高めることができる。   According to the electric power steering apparatus 100 and the rotation angle detection method according to the embodiment and the modification of the embodiment, the first correction value for correcting the offset voltage and the gain of the sine wave signal SIN0 and the cosine wave signal COS0, and A second correction value for correcting the phases of the sine wave signal and the cosine wave signal can be obtained. Also, the offset voltage, gain, and phase of the sine wave signal SIN0 and the cosine wave signal COS0 can be corrected using the first correction value and the second correction value. Therefore, the angle calculation unit 172 can calculate the position detection (rotation angle θ) of the motor 20 with high accuracy. Therefore, the motor 20 can be driven and controlled with high accuracy, and the accuracy of steering assist control in the electric power steering device 100 can be improved.

なお、上述した実施形態及び実施形態の変形例では、位置検出部17に補正演算処理部171,171aを設ける構成を例示したが、補正演算処理部171,171aは、位置検出部17,17aとは異なる構成部であっても良い。また、第1補正値及び第2補正値は、EEPROM104に記憶される例を示したが、EEPROM104以外に記憶部を設け、この記憶部に第1補正値及び第2補正値が記憶される態様であっても良い。補正演算処理部171,171aの構成、第1補正値及び第2補正値が記憶される態様により本開示が限定されるものではない。   In addition, in the above-described embodiment and the modified example of the embodiment, the configuration in which the correction calculation processing units 171 and 171a are provided in the position detection unit 17 is illustrated, but the correction calculation processing units 171 and 171a include the position detection units 17 and 17a. May be different components. Further, although the first correction value and the second correction value are stored in the EEPROM 104 by way of example, a storage unit other than the EEPROM 104 is provided, and the storage unit stores the first correction value and the second correction value. May be The present disclosure is not limited to the configurations of the correction calculation processing units 171 and 171a and the manner in which the first correction value and the second correction value are stored.

1 ステアリング
2 コラム軸
3 減速ギヤ
3a ギヤ(コラム軸)
3b ギヤ(シャフト(モータ))
4a、4b ユニバーサルジョイント
10 トルクセンサ
11 イグニッションスイッチ
12 車速センサ
14 バッテリ
15 モータ駆動回路
16 モータ電流検出回路
17,17a 位置検出部
20 モータ
20a モータシャフト
21 モータケース
22 モータフランジ
25 位置センサ(レゾルバ)
30 コントロールユニット(ECU)
31 アシスト機能部
31a 電流指令値算出部
31b 電流制御部
32 筐体
32a 固定部
100 電動パワーステアリング装置(EPS)
101 CPU
105 インターフェース
106 A/D変換器
107 PWMコントローラ
110 制御用コンピュータ(MCU)
171,171a 補正演算処理部
172 角度演算部
251 レゾルバステータ
251a ティース
251b 電機子巻線
252 レゾルバロータ
1711 一次補正処理
1712,1712a 二次補正処理
1 Steering 2 Column shaft 3 Reduction gear 3a Gear (column shaft)
3b Gear (shaft (motor))
4a, 4b Universal joint 10 Torque sensor 11 Ignition switch 12 Vehicle speed sensor 14 Battery 15 Motor drive circuit 16 Motor current detection circuit 17,17a Position detection part 20 Motor 20a Motor shaft 21 Motor case 22 Motor flange 25 Position sensor (resolver)
30 Control Unit (ECU)
31 Assist Function Section 31a Current Command Value Calculation Section 31b Current Control Section 32 Housing 32a Fixed Section 100 Electric Power Steering Device (EPS)
101 CPU
105 Interface 106 A/D Converter 107 PWM Controller 110 Control Computer (MCU)
171, 171a Correction calculation processing section 172 Angle calculation section 251 Resolver stator 251a Teeth 251b Armature winding 252 Resolver rotor 1711 Primary correction processing 1712, 1712a Secondary correction processing

Claims (14)

モータがステアリングのコラム軸に設けられ、回転角検出装置により検出された回転角を用いて前記モータを駆動制御することにより、前記ステアリングの操舵力をトルク制御する電動パワーステアリング装置であって、
前記回転角検出装置は、
円環状のレゾルバステータと、軸心周りの1周当たり、当該レゾルバステータの内周との間の間隙が複数回変化する複数の極を有するレゾルバロータとを備え、前記レゾルバロータの回転に応じて電気角の正弦波信号及び余弦波信号を出力するレゾルバと、
前記正弦波信号及び前記余弦波信号に基づき、前記モータの位置を検出する位置検出部と、
前記正弦波信号及び前記余弦波信号を補正するための第1補正値及び第2補正値が記憶される記憶部と、
を備え、
前記位置検出部は、
前記第1補正値及び前記第2補正値を算出すると共に、前記第1補正値に基づき、前記正弦波信号及び前記余弦波信号のオフセット電圧及びゲインを補正し、前記第2補正値に基づき、前記正弦波信号及び前記余弦波信号の位相を補正する補正演算処理部と、
前記補正演算処理部の出力信号に基づき、前記モータの回転角を算出する角度演算部と、
を備え、
前記補正演算処理部は、
前記第1補正値及び前記第2補正値を算出する補正値算出処理において、
前記正弦波信号及び前記余弦波信号の最大値及び最小値に基づき、前記第1補正値を算出し、前記第1補正値に基づき、前記正弦波信号及び前記余弦波信号のオフセット電圧及びゲインを補正した第1正弦波信号及び第1余弦波信号を求め、前記第1正弦波信号及び前記第1余弦波信号の位相をそれぞれ電気角で45度進めた第2正弦波信号及び第2余弦波信号を求め、前記第2正弦波信号及び前記第2余弦波信号の最大値及び最小値に基づき、前記第2補正値を算出し、
前記正弦波信号及び前記余弦波信号を補正する補正処理において、
前記第1補正値に基づき、前記正弦波信号及び前記余弦波信号のオフセット電圧及びゲインを補正した第1正弦波信号及び第1余弦波信号を求め、前記第1正弦波信号及び前記第1余弦波信号の位相をそれぞれ電気角で45度進めた第2正弦波信号及び第2余弦波信号を求め、前記第2補正値に基づき、少なくとも、前記第2正弦波信号及び前記第2余弦波信号のゲインを補正した第3正弦波信号及び第3余弦波信号を求め、前記第3正弦波信号及び前記第3余弦波信号の位相をそれぞれ電気角で45度遅らせた第4正弦波信号及び第4余弦波信号を求め、
前記角度演算部は、
前記第4正弦波信号及び前記第4余弦波信号に基づき、前記モータの回転角を算出する
電動パワーステアリング装置。
An electric power steering device, wherein a motor is provided on a column shaft of a steering wheel, and the steering force of the steering wheel is torque-controlled by drivingly controlling the motor using a rotation angle detected by a rotation angle detection device,
The rotation angle detection device,
An annular resolver stator and a resolver rotor having a plurality of poles each having a gap between the inner circumference of the resolver stator and a plurality of poles per revolution around the axis are provided, and the resolver rotor is rotated according to the rotation of the resolver rotor. A resolver that outputs a sine wave signal and a cosine wave signal of an electrical angle,
A position detection unit that detects the position of the motor based on the sine wave signal and the cosine wave signal;
A storage unit that stores a first correction value and a second correction value for correcting the sine wave signal and the cosine wave signal;
Equipped with
The position detection unit,
The offset voltage and the gain of the sine wave signal and the cosine wave signal are corrected based on the first correction value while calculating the first correction value and the second correction value, and based on the second correction value, A correction calculation processing unit that corrects the phases of the sine wave signal and the cosine wave signal,
An angle calculation unit that calculates a rotation angle of the motor based on an output signal of the correction calculation processing unit;
Equipped with
The correction calculation processing unit,
In the correction value calculation process for calculating the first correction value and the second correction value,
The first correction value is calculated based on the maximum value and the minimum value of the sine wave signal and the cosine wave signal, and the offset voltage and the gain of the sine wave signal and the cosine wave signal are calculated based on the first correction value. The corrected first sine wave signal and the first cosine wave signal are obtained, and the phases of the first sine wave signal and the first cosine wave signal are advanced by 45 degrees in terms of electrical angle. A signal is obtained, and the second correction value is calculated based on the maximum value and the minimum value of the second sine wave signal and the second cosine wave signal,
In a correction process for correcting the sine wave signal and the cosine wave signal,
The first sine wave signal and the first cosine wave signal are obtained by correcting the offset voltage and gain of the sine wave signal and the cosine wave signal based on the first correction value, and the first sine wave signal and the first cosine wave are obtained. The second sine wave signal and the second cosine wave signal obtained by advancing the phase of the wave signal by 45 degrees in electrical angle are obtained, and based on the second correction value, at least the second sine wave signal and the second cosine wave signal. The third sine wave signal and the third cosine wave signal whose gains are corrected are obtained, and the phases of the third sine wave signal and the third cosine wave signal are delayed by 45 degrees in electrical angle, and a fourth sine wave signal and a third cosine wave signal, respectively. Find the 4 cosine wave signal,
The angle calculation unit,
An electric power steering device that calculates a rotation angle of the motor based on the fourth sine wave signal and the fourth cosine wave signal.
前記補正演算処理部は、
前記モータの機械角の所定周期において検出される、複数周期の前記正弦波信号の最大値の平均値をSIN0_MAX、複数周期の前記正弦波信号の最小値の平均値をSIN0_MIN、複数周期の前記余弦波信号の最大値の平均値をCOS0_MAX、複数周期の前記余弦波信号の最小値の平均値をCOS0_MINとしたとき、下記式(1)、(2)を用いて、前記第1補正値である第1オフセット補正値SIN_OFFSET1、COS_OFFSET1を算出する
請求項1に記載の電動パワーステアリング装置。
SIN_OFFSET1=(SIN0_MAX+SIN0_MIN)/2・・・(1)
COS_OFFSET1=(COS0_MAX+COS0_MIN)/2・・・(2)
The correction calculation processing unit,
SIN0_MAX is an average value of the maximum values of the sine wave signals of a plurality of cycles, SIN0_MIN is an average value of the minimum values of the sine wave signals of a plurality of cycles, which are detected in a predetermined cycle of the mechanical angle of the motor, and the cosine of a plurality of cycles When the average value of the maximum values of the wave signals is COS0_MAX and the average value of the minimum values of the cosine wave signals of a plurality of cycles is COS0_MIN, the first correction value is obtained using the following formulas (1) and (2). The electric power steering apparatus according to claim 1, wherein the first offset correction values SIN_OFFSET1 and COS_OFFSET1 are calculated.
SIN_OFFSET1=(SIN0_MAX+SIN0_MIN)/2 (1)
COS_OFFSET1=(COS0_MAX+COS0_MIN)/2 (2)
前記補正演算処理部は、
下記式(3)、(4)を用いて、前記第1補正値である第1ゲイン補正値SIN_GAIN1、COS_GAIN1を算出し、下記式(3)及び(4)において、Nは自然数である
請求項2に記載の電動パワーステアリング装置。
SIN_GAIN1=N/(SIN0_MAX−SIN0_MIN)・・・(3)
COS_GAIN1=N/(COS0_MAX−COS0_MIN)・・・(4)
The correction calculation processing unit,
The first gain correction values SIN_GAIN1 and COS_GAIN1 that are the first correction values are calculated using the following equations (3) and (4), and in the following equations (3) and (4), N is a natural number. 2. The electric power steering device according to item 2.
SIN_GAIN1=N/(SIN0_MAX-SIN0_MIN) (3)
COS_GAIN1=N/(COS0_MAX-COS0_MIN) (4)
前記補正演算処理部は、
前記正弦波信号をSIN0、前記余弦波信号をCOS0としたとき、下記式(5)、(6)を用いて、第1正弦波信号SIN1及び第1余弦波信号COS1を算出する
請求項3に記載の電動パワーステアリング装置。
SIN1=SIN_GAIN1×(SIN0−SIN_OFFSET1)・・・(5)
COS1=COS_GAIN1×(COS0−COS_OFFSET1)・・・(6)
The correction calculation processing unit,
When the sine wave signal is SIN0 and the cosine wave signal is COS0, the first sine wave signal SIN1 and the first cosine wave signal COS1 are calculated using the following equations (5) and (6). The electric power steering device described.
SIN1=SIN_GAIN1×(SIN0-SIN_OFFSET1) (5)
COS1=COS_GAIN1×(COS0-COS_OFFSET1) (6)
前記補正演算処理部は、
下記式(7)、(8)を用いて、第2正弦波信号SIN2及び第2余弦波信号COS2を算出し、
前記第2正弦波信号の最大値をSIN2_MAX、前記第2正弦波信号の最小値をSIN2_MIN、前記第2余弦波信号の最大値をCOS2_MAX、前記第2余弦波信号の最小値をCOS2_MINとしたとき、下記式(9)、(10)を用いて、前記第2補正値である第2オフセット補正値SIN_OFFSET2、COS_OFFSET2を算出し、
下記式(11)、(12)を用いて、前記第2補正値である第2ゲイン補正値SIN_GAIN2、COS_GAIN2を算出し、下記式(11)及び(12)において、Nは自然数である
請求項4に記載の電動パワーステアリング装置。
SIN2=SIN1−COS1・・・(7)
COS2=COS1+SIN1・・・(8)
SIN_OFFSET2=(SIN2_MAX+SIN2_MIN)/2・・・(9)
COS_OFFSET2=(COS2_MAX+COS2_MIN)/2・・・(10)
SIN_GAIN2=N/(SIN2_MAX−SIN2_MIN)・・・(11)
COS_GAIN2=N/(COS2_MAX−COS2_MIN)・・・(12)
The correction calculation processing unit,
The following equations (7) and (8) are used to calculate the second sine wave signal SIN2 and the second cosine wave signal COS2,
When the maximum value of the second sine wave signal is SIN2_MAX, the minimum value of the second sine wave signal is SIN2_MIN, the maximum value of the second cosine wave signal is COS2_MAX, and the minimum value of the second cosine wave signal is COS2_MIN. Using the following equations (9) and (10), the second offset correction values SIN_OFFSET2 and COS_OFFSET2 that are the second correction values are calculated,
The second gain correction values SIN_GAIN2 and COS_GAIN2, which are the second correction values, are calculated using the following equations (11) and (12), and in the following equations (11) and (12), N is a natural number. The electric power steering device according to item 4.
SIN2=SIN1-COS1 (7)
COS2=COS1+SIN1 (8)
SIN_OFFSET2=(SIN2_MAX+SIN2_MIN)/2 (9)
COS_OFFSET2=(COS2_MAX+COS2_MIN)/2 (10)
SIN_GAIN2=N/(SIN2_MAX-SIN2_MIN) (11)
COS_GAIN2=N/(COS2_MAX-COS2_MIN)...(12)
前記補正演算処理部は、
下記式(13)、(14)を用いて、第3正弦波信号SIN3及び第3余弦波信号COS3を算出し、
下記式(15)、(16)を用いて、第4正弦波信号SIN4及び第4余弦波信号COS4を算出する
請求項5に記載の電動パワーステアリング装置。
SIN3=SIN_GAIN2×(SIN2−SIN_OFFSET2)・・・(13)
COS3=COS_GAIN2×(COS2−COS_OFFSET2)・・・(14)
SIN4=SIN3+COS3・・・(15)
COS4=COS3−SIN3・・・(16)
The correction calculation processing unit,
The following equations (13) and (14) are used to calculate the third sine wave signal SIN3 and the third cosine wave signal COS3,
The electric power steering apparatus according to claim 5, wherein the fourth sine wave signal SIN4 and the fourth cosine wave signal COS4 are calculated using the following equations (15) and (16).
SIN3=SIN_GAIN2×(SIN2-SIN_OFFSET2) (13)
COS3=COS_GAIN2×(COS2-COS_OFFSET2) (14)
SIN4=SIN3+COS3 (15)
COS4=COS3-SIN3 (16)
前記補正演算処理部は、
下記式(17)、(18)を用いて、第2正弦波信号SIN2及び第2余弦波信号COS2を算出し、
下記式(19)、(20)を用いて、前記第2補正値である第2ゲイン補正値SIN_GAIN2、COS_GAIN2を算出し、下記式(19)及び(20)において、Nは自然数である
請求項4に記載の電動パワーステアリング装置。
SIN2=SIN1−COS1・・・(17)
COS2=COS1+SIN1・・・(18)
SIN_GAIN2=N/(SIN2_MAX−SIN2_MIN)・・・(19)
COS_GAIN2=N/(COS2_MAX−COS2_MIN)・・・(20)
The correction calculation processing unit,
The following equations (17) and (18) are used to calculate the second sine wave signal SIN2 and the second cosine wave signal COS2,
The second gain correction values SIN_GAIN2 and COS_GAIN2 that are the second correction values are calculated using the following equations (19) and (20), and N is a natural number in the following equations (19) and (20). The electric power steering device according to item 4.
SIN2=SIN1-COS1 (17)
COS2=COS1+SIN1 (18)
SIN_GAIN2=N/(SIN2_MAX-SIN2_MIN) (19)
COS_GAIN2=N/(COS2_MAX-COS2_MIN) (20)
前記補正演算処理部は、
下記式(21)、(22)を用いて、第3正弦波信号SIN3及び第3余弦波信号COS3を算出し、
下記式(23)、(24)を用いて、第4正弦波信号SIN4及び第4余弦波信号COS4を算出する
請求項7に記載の電動パワーステアリング装置。
SIN3=SIN_GAIN2×SIN2・・・(21)
COS3=COS_GAIN2×COS2・・・(22)
SIN4=SIN3+COS3・・・(23)
COS4=COS3−SIN3・・・(24)
The correction calculation processing unit,
The following equations (21) and (22) are used to calculate the third sine wave signal SIN3 and the third cosine wave signal COS3,
The electric power steering device according to claim 7, wherein the fourth sine wave signal SIN4 and the fourth cosine wave signal COS4 are calculated using the following equations (23) and (24).
SIN3=SIN_GAIN2×SIN2 (21)
COS3=COS_GAIN2×COS2 (22)
SIN4=SIN3+COS3 (23)
COS4=COS3-SIN3 (24)
前記補正演算処理部は、
下記式(7)’、(8)’を用いて、第2正弦波信号SIN2及び第2余弦波信号COS2を算出し、
前記第2正弦波信号の最大値をSIN2_MAX、前記第2正弦波信号の最小値をSIN2_MIN、前記第2余弦波信号の最大値をCOS2_MAX、前記第2余弦波信号の最小値をCOS2_MINとしたとき、下記式(9)’、(10)’を用いて、前記第2補正値である第2オフセット補正値SIN_OFFSET2、COS_OFFSET2を算出し、
下記式(11)’、(12)’を用いて、前記第2補正値である第2ゲイン補正値SIN_GAIN2、COS_GAIN2を算出し、下記式(11)’及び(12)’において、Nは自然数である
請求項4に記載の電動パワーステアリング装置。
SIN2=SIN1+COS1・・・(7)’
COS2=COS1−SIN1・・・(8)’
SIN_OFFSET2=(SIN2_MAX+SIN2_MIN)/2・・・(9)’
COS_OFFSET2=(COS2_MAX+COS2_MIN)/2・・・(10)’
SIN_GAIN2=N/(SIN2_MAX−SIN2_MIN)・・・(11)’
COS_GAIN2=N/(COS2_MAX−COS2_MIN)・・・(12)’
The correction calculation processing unit,
The second sine wave signal SIN2 and the second cosine wave signal COS2 are calculated using the following equations (7)′ and (8)′,
When the maximum value of the second sine wave signal is SIN2_MAX, the minimum value of the second sine wave signal is SIN2_MIN, the maximum value of the second cosine wave signal is COS2_MAX, and the minimum value of the second cosine wave signal is COS2_MIN. , Using the following equations (9)′ and (10)′, the second offset correction values SIN_OFFSET2 and COS_OFFSET2 that are the second correction values are calculated.
The second gain correction values SIN_GAIN2 and COS_GAIN2, which are the second correction values, are calculated using the following equations (11)′ and (12)′, and in the following equations (11)′ and (12)′, N is a natural number. The electric power steering device according to claim 4.
SIN2=SIN1+COS1 (7)'
COS2=COS1-SIN1 (8)'
SIN_OFFSET2=(SIN2_MAX+SIN2_MIN)/2 (9)'
COS_OFFSET2=(COS2_MAX+COS2_MIN)/2 (10)'
SIN_GAIN2=N/(SIN2_MAX-SIN2_MIN)...(11)'
COS_GAIN2=N/(COS2_MAX-COS2_MIN)...(12)'
前記補正演算処理部は、
下記式(13)’、(14)’を用いて、第3正弦波信号SIN3及び第3余弦波信号COS3を算出し、
下記式(15)’、(16)’を用いて、第4正弦波信号SIN4及び第4余弦波信号COS4を算出する
請求項9に記載の電動パワーステアリング装置。
SIN3=SIN_GAIN2×(SIN2−SIN_OFFSET2)・・・(13)’
COS3=COS_GAIN2×(COS2−COS_OFFSET2)・・・(14)’
SIN4=SIN3−COS3・・・(15)’
COS4=COS3+SIN3・・・(16)’
The correction calculation processing unit,
The following equations (13)′ and (14)′ are used to calculate the third sine wave signal SIN3 and the third cosine wave signal COS3,
The electric power steering device according to claim 9, wherein the fourth sine wave signal SIN4 and the fourth cosine wave signal COS4 are calculated using the following equations (15)′ and (16)′.
SIN3=SIN_GAIN2×(SIN2-SIN_OFFSET2)...(13)′
COS3=COS_GAIN2×(COS2-COS_OFFSET2) (14)'
SIN4=SIN3-COS3 (15)'
COS4=COS3+SIN3 (16)'
前記補正演算処理部は、
下記式(17)’、(18)’を用いて、第2正弦波信号SIN2及び第2余弦波信号COS2を算出し、
下記式(19)’、(20)’を用いて、前記第2補正値である第2ゲイン補正値SIN_GAIN2、COS_GAIN2を算出し、下記式(19)’及び(20)’において、Nは自然数である
請求項4に記載の電動パワーステアリング装置。
SIN2=SIN1+COS1・・・(17)’
COS2=COS1−SIN1・・・(18)’
SIN_GAIN2=N/(SIN2_MAX−SIN2_MIN)・・・(19)’
COS_GAIN2=N/(COS2_MAX−COS2_MIN)・・・(20)’
The correction calculation processing unit,
The following equations (17)' and (18)' are used to calculate the second sine wave signal SIN2 and the second cosine wave signal COS2,
The second gain correction values SIN_GAIN2 and COS_GAIN2, which are the second correction values, are calculated using the following equations (19)′ and (20)′, and in the following equations (19)′ and (20)′, N is a natural number. The electric power steering device according to claim 4.
SIN2=SIN1+COS1 (17)'
COS2=COS1-SIN1 (18)'
SIN_GAIN2=N/(SIN2_MAX-SIN2_MIN)...(19)'
COS_GAIN2=N/(COS2_MAX-COS2_MIN)...(20)'
前記補正演算処理部は、
下記式(21)’、(22)’を用いて、第3正弦波信号SIN3及び第3余弦波信号COS3を算出し、
下記式(23)’、(24)’を用いて、第4正弦波信号SIN4及び第4余弦波信号COS4を算出する
請求項11に記載の電動パワーステアリング装置。
SIN3=SIN_GAIN2×SIN2・・・(21)’
COS3=COS_GAIN2×COS2・・・(22)’
SIN4=SIN3−COS3・・・(23)’
COS4=COS3+SIN3・・・(24)’
The correction calculation processing unit,
The following equations (21)' and (22)' are used to calculate the third sine wave signal SIN3 and the third cosine wave signal COS3,
The electric power steering device according to claim 11, wherein the fourth sine wave signal SIN4 and the fourth cosine wave signal COS4 are calculated using the following equations (23)' and (24)'.
SIN3=SIN_GAIN2×SIN2...(21)'
COS3=COS_GAIN2×COS2 (22)'
SIN4=SIN3-COS3 (23)'
COS4=COS3+SIN3 (24)'
前記角度演算部は、
前記第4正弦波信号SIN4及び前記第4余弦波信号COS4に基づき、前記回転角を算出する
請求項6、請求項8、請求項10、請求項12の何れか一項に記載の電動パワーステアリング装置。
The angle calculation unit,
The electric power steering according to any one of claims 6, 8, 10 and 12, wherein the rotation angle is calculated based on the fourth sine wave signal SIN4 and the fourth cosine wave signal COS4. apparatus.
モータの軸心周りの1周当たり、円環状のレゾルバステータの内周との間の間隙が複数回変化する複数の極を有するレゾルバロータの回転に応じて出力される電気角の正弦波信号及び余弦波信号を補正し、当該補正結果に基づき前記モータの回転角を検出する回転角検出方法であって、
前記正弦波信号及び前記余弦波信号の最大値及び最小値に基づき、前記正弦波信号及び前記余弦波信号のオフセット電圧及びゲインを補正するための第1補正値を算出し、前記第1補正値に基づき、前記正弦波信号及び前記余弦波信号のオフセット電圧及びゲインを補正した第1正弦波信号及び第1余弦波信号を求め、前記第1正弦波信号及び前記第1余弦波信号の位相をそれぞれ電気角で45度進めた第2正弦波信号及び第2余弦波信号を求め、前記第2正弦波信号及び前記第2余弦波信号の最大値及び最小値に基づき、前記正弦波信号及び前記余弦波信号の位相を補正するための第2補正値を算出する補正値算出処理ステップと、
前記第1補正値に基づき、前記正弦波信号及び前記余弦波信号のオフセット電圧及びゲインを補正した第1正弦波信号及び第1余弦波信号を求め、前記第1正弦波信号及び前記第1余弦波信号の位相をそれぞれ電気角で45度進めた第2正弦波信号及び第2余弦波信号を求め、前記第2補正値に基づき、少なくとも、前記第2正弦波信号及び前記第2余弦波信号のゲインを補正した第3正弦波信号及び第3余弦波信号を求め、前記第3正弦波信号及び前記第3余弦波信号の位相をそれぞれ電気角で45度遅らせた第4正弦波信号及び第4余弦波信号を求める補正処理ステップと、
前記第4正弦波信号及び前記第4余弦波信号に基づき、前記モータの回転角を算出する回転角算出ステップと、
を有する
回転角検出方法。
A sine wave signal of an electrical angle output according to the rotation of a resolver rotor having a plurality of poles whose gap between the inner circumference of an annular resolver stator changes a plurality of times per revolution around the axis of the motor, and A rotation angle detection method for correcting a cosine wave signal and detecting the rotation angle of the motor based on the correction result,
A first correction value for correcting the offset voltage and the gain of the sine wave signal and the cosine wave signal is calculated based on the maximum value and the minimum value of the sine wave signal and the cosine wave signal, and the first correction value is calculated. On the basis of the offset voltage and gain of the sine wave signal and the cosine wave signal, the first sine wave signal and the first cosine wave signal are obtained, and the phases of the first sine wave signal and the first cosine wave signal are calculated. A second sine wave signal and a second cosine wave signal that are advanced by 45 electrical degrees are obtained, and the sine wave signal and the second cosine wave signal are calculated based on the maximum value and the minimum value of the second sine wave signal and the second cosine wave signal. A correction value calculation processing step of calculating a second correction value for correcting the phase of the cosine wave signal,
Based on the first correction value, offset voltage and gain of the sine wave signal and the cosine wave signal are corrected to obtain a first sine wave signal and a first cosine wave signal, and the first sine wave signal and the first cosine wave are obtained. A second sine wave signal and a second cosine wave signal obtained by advancing the phase of the wave signal by 45 electrical degrees are obtained, and based on the second correction value, at least the second sine wave signal and the second cosine wave signal. The third sine wave signal and the third cosine wave signal whose gains have been corrected are obtained, and the phases of the third sine wave signal and the third cosine wave signal are delayed by an electrical angle of 45 degrees, respectively, and A correction processing step for obtaining a 4 cosine wave signal,
A rotation angle calculating step of calculating a rotation angle of the motor based on the fourth sine wave signal and the fourth cosine wave signal,
A rotation angle detection method having.
JP2019549502A 2018-01-19 2019-01-17 Electric power steering apparatus and method for detecting rotation angle of motor for electric power steering apparatus Active JP6669318B2 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2018007474 2018-01-19
JP2018007474 2018-01-19
PCT/JP2019/001334 WO2019142875A1 (en) 2018-01-19 2019-01-17 Electric power steering device and rotation angle detection method

Publications (2)

Publication Number Publication Date
JP6669318B2 JP6669318B2 (en) 2020-03-18
JPWO2019142875A1 true JPWO2019142875A1 (en) 2020-05-28

Family

ID=67301466

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019549502A Active JP6669318B2 (en) 2018-01-19 2019-01-17 Electric power steering apparatus and method for detecting rotation angle of motor for electric power steering apparatus

Country Status (2)

Country Link
JP (1) JP6669318B2 (en)
WO (1) WO2019142875A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7234737B2 (en) * 2019-03-28 2023-03-08 株式会社デンソー detection unit
CN110940371B (en) * 2019-12-13 2020-08-21 浙江禾川科技股份有限公司 Calibration method, device and equipment of rotary magnetoelectric encoder
CN111089610B (en) * 2019-12-28 2021-11-23 浙江禾川科技股份有限公司 Signal processing method and device of encoder and related components
JP7435269B2 (en) 2020-06-01 2024-02-21 日本精工株式会社 Correction method for rotation angle calculation device, rotation angle calculation device, motor control device, electric actuator product, and electric power steering device
EP3957547B1 (en) * 2020-06-08 2022-05-04 NSK Ltd. Detection signal correction method, motor control device, and electric power steering device

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002168652A (en) * 2000-11-30 2002-06-14 Sanyo Denki Co Ltd nX RELUCTANCE RESOLVER
JP2007057316A (en) * 2005-08-23 2007-03-08 Yaskawa Electric Corp Resolver interface device
JP2008058252A (en) * 2006-09-04 2008-03-13 Matsushita Electric Ind Co Ltd Correction circuit of encoder signal
JP2009202774A (en) * 2008-02-28 2009-09-10 Nsk Ltd Control device for electric power steering device
US20100004895A1 (en) * 2007-07-13 2010-01-07 Jason Wells Adaptive resolver compensation controller
JP2010096708A (en) * 2008-10-20 2010-04-30 Denso Corp Detector of motor rotational angle
JP2011064459A (en) * 2009-09-15 2011-03-31 Panasonic Corp Correction circuit of encoder signal
JP2012227985A (en) * 2011-04-15 2012-11-15 Ichinomiya Denki:Kk Variable-reluctance type resolver
JP2013234914A (en) * 2012-05-09 2013-11-21 Toyota Motor Corp Rotation angle detection system
JP2013257229A (en) * 2012-06-13 2013-12-26 Toyota Motor Corp System for detecting rotation angle of rotating body
JP2015169631A (en) * 2014-03-10 2015-09-28 多摩川精機株式会社 resolver error correction structure, resolver and resolver error correction method
JP2017151061A (en) * 2016-02-26 2017-08-31 株式会社東京精密 Interpolation method and interpolation device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002168652A (en) * 2000-11-30 2002-06-14 Sanyo Denki Co Ltd nX RELUCTANCE RESOLVER
JP2007057316A (en) * 2005-08-23 2007-03-08 Yaskawa Electric Corp Resolver interface device
JP2008058252A (en) * 2006-09-04 2008-03-13 Matsushita Electric Ind Co Ltd Correction circuit of encoder signal
US20100004895A1 (en) * 2007-07-13 2010-01-07 Jason Wells Adaptive resolver compensation controller
JP2009202774A (en) * 2008-02-28 2009-09-10 Nsk Ltd Control device for electric power steering device
JP2010096708A (en) * 2008-10-20 2010-04-30 Denso Corp Detector of motor rotational angle
JP2011064459A (en) * 2009-09-15 2011-03-31 Panasonic Corp Correction circuit of encoder signal
JP2012227985A (en) * 2011-04-15 2012-11-15 Ichinomiya Denki:Kk Variable-reluctance type resolver
JP2013234914A (en) * 2012-05-09 2013-11-21 Toyota Motor Corp Rotation angle detection system
JP2013257229A (en) * 2012-06-13 2013-12-26 Toyota Motor Corp System for detecting rotation angle of rotating body
JP2015169631A (en) * 2014-03-10 2015-09-28 多摩川精機株式会社 resolver error correction structure, resolver and resolver error correction method
JP2017151061A (en) * 2016-02-26 2017-08-31 株式会社東京精密 Interpolation method and interpolation device

Also Published As

Publication number Publication date
WO2019142875A1 (en) 2019-07-25
JP6669318B2 (en) 2020-03-18

Similar Documents

Publication Publication Date Title
JP6669318B2 (en) Electric power steering apparatus and method for detecting rotation angle of motor for electric power steering apparatus
US7183952B1 (en) Resolver
JP4708992B2 (en) Position detecting apparatus and synchronous motor driving apparatus using the same
JP4797917B2 (en) Resolver, motor and power steering device
US9819289B2 (en) Control apparatus for rotating electric machine
US7427858B2 (en) Resolver reference position adjustment method
US6948382B2 (en) Angle detection device and torque sensor incorporating angle detection device
US7076395B2 (en) Angle detection apparatus and torque detection apparatus
US8378598B2 (en) Motor control apparatus and motor control method
WO2014097918A1 (en) Method for controlling brushless motor, device for controlling brushless motor, and elec tric power steering device
JP4816919B2 (en) Control device for brushless motor
US20130113471A1 (en) Rotation angle detection device and torque sensor
JP5136839B2 (en) Motor control device
JP4337452B2 (en) Rotation angle detection device and rotation angle detection method
JP6825376B2 (en) Motor control device, electric power steering device and vehicle
JP5688925B2 (en) Brushless motor control method and brushless motor control device
JP2009044913A (en) Motor device and electric power steering device
WO2007094210A1 (en) Brushless motor control method and brushless motor
JP4475642B2 (en) Resolver abnormality detection device and vehicle transmission ratio variable steering device using the same
JP2018113836A (en) Motor control device, electric power steering device and vehicle
JP2018139478A (en) Motor controller
JP5141955B2 (en) Motor control device
JP6759041B2 (en) Brushless motor control method and brushless motor control device
JP2006182254A (en) Electric power steering device
JP2019124670A (en) Rotation angle detection device, motor control device, electric power steering device, and rotation angle detection method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190910

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20190910

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20191009

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191023

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191216

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20200128

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200210

R150 Certificate of patent or registration of utility model

Ref document number: 6669318

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250