JP2011257254A - Rotation angle detection device - Google Patents

Rotation angle detection device Download PDF

Info

Publication number
JP2011257254A
JP2011257254A JP2010131580A JP2010131580A JP2011257254A JP 2011257254 A JP2011257254 A JP 2011257254A JP 2010131580 A JP2010131580 A JP 2010131580A JP 2010131580 A JP2010131580 A JP 2010131580A JP 2011257254 A JP2011257254 A JP 2011257254A
Authority
JP
Japan
Prior art keywords
detection
output
detection signals
signal
angle
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.)
Pending
Application number
JP2010131580A
Other languages
Japanese (ja)
Inventor
Hiroyuki Yamai
広之 山井
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.)
Hitachi Astemo Ltd
Original Assignee
Hitachi Automotive Systems 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 Hitachi Automotive Systems Ltd filed Critical Hitachi Automotive Systems Ltd
Priority to JP2010131580A priority Critical patent/JP2011257254A/en
Publication of JP2011257254A publication Critical patent/JP2011257254A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To accurately detect a rotation position by using a simple constitution and irrespective of variance in transformation ratio of a resolver and the number of rotations of a rotor.SOLUTION: A rotation angle detection device includes: means for alternately sampling two detection signals S1 and S2 of a resolver; means for determining whether a rotary electric machine is in a state of stop or is rotating at low speed; means for calculating, when the rotary electric machine is in a state of stop or is rotating at low speed, the rotation position angle by the inverse function of tangent based on the signal obtained by the sampling means; means for obtaining, from the signal obtained by the sampling means, the amplitude A of the signal based on the obtained rotation position angle information; and means for storing the amplitude A. When the state of the rotary electric machine is determined otherwise, the rotation position angle is calculated by the inverse function of sine or cosine based on the signal obtained by the sampling means and the stored amplitude A.

Description

この発明は、回転子の回転位置検出をするための装置に関する。   The present invention relates to an apparatus for detecting the rotational position of a rotor.

レゾルバは1相励磁入力と2相出力を有し、レゾルバから出力される第1のレゾルバ信号S1及び第2のレゾルバ信号S2は回転位置を検出するRDコンバータに入力されるとともに励磁信号生成部から励磁信号がレゾルバ及びRDコンバータに入力される。   The resolver has a one-phase excitation input and a two-phase output, and the first resolver signal S1 and the second resolver signal S2 output from the resolver are input to the RD converter that detects the rotational position and from the excitation signal generator. An excitation signal is input to the resolver and the RD converter.

特開2009−150826号公報JP 2009-150826 A

ここで、前記RDコンバータの動作について、一般的なものを特許文献1の記載に基づき説明する。図4に示す通り、RDコンバータは第1の乗算器118と第2の乗算器119と減算器112と同期検波回路113と帯域除去フィルタ114と制御器115とsin関数とcos関数のルックアップテーブル(ROMに記憶)116,117とによって構成されている。RDコンバータは前記構成による角度演算ループでレゾルバ検出信号S1,S2の検出角度θをデジタル角度出力φに変換して出力する。   Here, the general operation of the RD converter will be described based on the description in Patent Document 1. As shown in FIG. 4, the RD converter includes a first multiplier 118, a second multiplier 119, a subtractor 112, a synchronous detection circuit 113, a band elimination filter 114, a controller 115, a sin function, and a cos function lookup table. (Stored in the ROM) 116, 117. The RD converter converts the detection angle θ of the resolver detection signals S1 and S2 into a digital angle output φ in the angle calculation loop having the above-described configuration, and outputs the digital angle output φ.

RDコンバータ内のsin関数ルックアップテーブル117はデジタル角度出力φを基に正弦値sinφを生成して乗算器119に出力し、cos関数ルックアップテーブル116はデジタル角度出力φを基に余弦値cosφを生成して乗算器118に出力する。   The sin function lookup table 117 in the RD converter generates a sine value sinφ based on the digital angle output φ and outputs it to the multiplier 119, and the cos function lookup table 116 calculates the cosine value cosφ based on the digital angle output φ. And output to the multiplier 118.

乗算器118はレゾルバ検出信号S1とcosφとを乗算して、その乗算値を減算器112に出力し、乗算器119はレゾルバ信号S2とsinφとを乗算して、その乗算値を減算器112に出力する。減算器112は乗算器118の出力から乗算器119の出力を減算し、その減算値を同期検波回路113に出力する。   Multiplier 118 multiplies resolver detection signal S1 and cosφ, and outputs the multiplication value to subtractor 112. Multiplier 119 multiplies resolver signal S2 and sinφ, and provides the multiplication value to subtractor 112. Output. The subtractor 112 subtracts the output of the multiplier 119 from the output of the multiplier 118 and outputs the subtraction value to the synchronous detection circuit 113.

ここで、レゾルバ信号S1,S2は励磁信号をsinωtとし、レゾルバの変圧比で決まる信号振幅Aと置けば、
S1:A・sinθsinωt,S2:A・cosθsinωt …式(1)
従って、前記減算器の出力は、
A・(sinθcosφ−cosθsinφ)sinωt=A・sin(θ−φ)sinωt …式(2)
同期検波回路113は励磁信号生成部から入力される励磁信号を参照して減算器112の出力を同期検波し、その検波出力をこの例では帯域除去フィルタ114に出力する。帯域除去フィルタ114を通過した検波出力は制御器115に入力され、制御器115は検波出力が零になるように、つまり検波出力である制御偏差sin(θ−φ)が零になるようにデジタル角度出力φを制御し、制御偏差sin(θ−φ)を零にすることで、検出角度θをデジタル角度出力φに変換する。このRDコンバータの一連の処理によれば、レゾルバ検出信号S1,S2に含まれる振幅Aのばらつきの影響を受けることなく角度検出ができる特徴を有する。従来のRDコンバータでは、レゾルバ検出信号S1,S2を同時系列に処理できる2系統の信号入力が必要で、さらに乗算器,同期検波,フィルタ、それに検波出力を零になるようにする制御器が必要で構成が複雑になるという課題があった。
Here, if the resolver signals S1 and S2 are set to the signal amplitude A determined by the transformation ratio of the resolver and the excitation signal is sinωt,
S1: A · sinθsinωt, S2: A · cosθsinωt Equation (1)
Therefore, the output of the subtractor is
A · (sinθcosφ−cosθsinφ) sinωt = A · sin (θ−φ) sinωt Equation (2)
The synchronous detection circuit 113 refers to the excitation signal input from the excitation signal generation unit, synchronously detects the output of the subtractor 112, and outputs the detection output to the band elimination filter 114 in this example. The detection output that has passed through the band elimination filter 114 is input to the controller 115, and the controller 115 is digital so that the detection output becomes zero, that is, the control deviation sin (θ−φ) that is the detection output becomes zero. By controlling the angle output φ and setting the control deviation sin (θ−φ) to zero, the detected angle θ is converted into a digital angle output φ. According to this series of processing of the RD converter, the angle can be detected without being affected by variations in the amplitude A included in the resolver detection signals S1 and S2. The conventional RD converter requires two signal inputs that can process the resolver detection signals S1 and S2 in the same series, and further requires a multiplier, synchronous detection, a filter, and a controller that makes the detection output zero. There is a problem that the configuration becomes complicated.

本発明の目的は、回転位置角演算に必要な構成を簡素化し、低コストな回転角検出装置を提供することにある。   An object of the present invention is to simplify a configuration necessary for calculating a rotational position angle and to provide a low-cost rotational angle detection device.

さらに、レゾルバの変圧比のばらつきや回転体の回転数に関わらず精度良く回転位置を検出するための装置を提供することにある。   It is another object of the present invention to provide an apparatus for accurately detecting the rotational position regardless of variations in the transformer transformation ratio and the rotational speed of the rotating body.

本発明に係る回転角検出装置は、回転電機の回転子の回転位置を検出する検出器を有する回転角検出装置であって、前記検出器は第一及び第二の検出信号を出力し、前記出力された第一及び第二の検出信号は検出信号選択回路に出力され、前記回転電機が停止している状態、または前記回転電機の回転数が所定値以下であるとき、前記検出信号選択回路は前記第一及び第二の検出信号を交互に出力し、サンプル検出手段は当該交互に出力された検出信号を所定タイミングで検出し、演算回路は当該所定タイミングで検出された信号に基づいて前記回転子の回転位置角を算出することを特徴とする。   A rotation angle detection device according to the present invention is a rotation angle detection device having a detector that detects a rotation position of a rotor of a rotating electrical machine, wherein the detector outputs first and second detection signals, and The output first and second detection signals are output to a detection signal selection circuit, and when the rotating electrical machine is stopped or when the rotational speed of the rotating electrical machine is a predetermined value or less, the detection signal selection circuit Alternately outputs the first and second detection signals, the sample detection means detects the alternately output detection signals at a predetermined timing, and the arithmetic circuit detects the detection signal based on the signals detected at the predetermined timing. The rotational position angle of the rotor is calculated.

本発明によれば、回転位置角演算に必要な構成を簡素化し、低コストな回転角検出装置を提供することができる。   ADVANTAGE OF THE INVENTION According to this invention, the structure required for a rotation position angle calculation can be simplified and a low-cost rotation angle detection apparatus can be provided.

本発明を実施するための構成図。The block diagram for implementing this invention. 図1のCPUにて処理される内容を示すフローチャート。The flowchart which shows the content processed with CPU of FIG. 図2のフローチャートからコールされる処理Aのフローチャート。The flowchart of the process A called from the flowchart of FIG. 図2のフローチャートからコールされる処理Bのフローチャート。The flowchart of the process B called from the flowchart of FIG. 同時サンプルを実施しない場合の問題点を示す波形。Waveform showing the problem when simultaneous sampling is not performed. 従来公知の構成図。The block diagram of a conventionally well-known.

上記発明が解決しようとする課題の欄や発明の効果の欄に記載の内容に加え、以下の実施の形態では、製品化の上で望ましい課題が解決でき、また、製品化の上で好ましい効果を奏する。その幾つかを次に記載すると共に実施の形態の説明でも、具体的な課題の解決や具体的な効果について説明する。   In addition to the contents described in the column of the problem to be solved by the invention and the column of the effect of the invention, in the following embodiments, a desirable problem can be solved in commercialization, and a favorable effect in commercialization. Play. Some of them will be described next, and in the description of the embodiments, specific solutions to problems and specific effects will be described.

以下、この発明の回転角検出装置を一実施例により詳細に説明する。   Hereinafter, the rotation angle detection device of the present invention will be described in detail with reference to an embodiment.

〔実施例〕
図1は本発明を実施する一構成例を示している。
〔Example〕
FIG. 1 shows an example of a configuration for carrying out the present invention.

回転子の位置を検出する検出部S10の正極側接続点S11は、抵抗R13を介して接続点AS1と接続されている。接続点AS1は、一端が基準電位VCCに接続された抵抗R11の他端と、一端がグラウンドに接続されたR12の他端との接続点である。また、検出部S10の負極側接続点S12は、グラウンドに接続されている。同様に回転子の位置を検出する検出部S20の正極側接続点S21は、抵抗R23を介して接続点AS2に接続されている。接続点AS2は、一端が電源VCCに接続された抵抗R21の他端と、一端がグラウンドに接続されたR22他端との接続点である。また、検出部S20の負極側接続点S22は、グラウンドに接続されている。AS1とAS2は夫々マイコンのアナログ入力端子AN1,AN2に接続されている。   A positive electrode side connection point S11 of the detection unit S10 that detects the position of the rotor is connected to a connection point AS1 via a resistor R13. The connection point AS1 is a connection point between the other end of the resistor R11 whose one end is connected to the reference potential VCC and the other end of R12 whose one end is connected to the ground. Further, the negative electrode side connection point S12 of the detection unit S10 is connected to the ground. Similarly, the positive electrode side connection point S21 of the detection unit S20 that detects the position of the rotor is connected to the connection point AS2 via the resistor R23. The connection point AS2 is a connection point between the other end of the resistor R21 whose one end is connected to the power supply VCC and the other end of R22 whose one end is connected to the ground. Further, the negative electrode side connection point S22 of the detection unit S20 is connected to the ground. AS1 and AS2 are connected to analog input terminals AN1 and AN2 of the microcomputer, respectively.

ここで、検出信号S1,S2の振幅(0−ピーク)が3・Vccの場合は、R11=R12,5・R13=R12,R21=R22,5・R23=R22とすれば、AN1,AN2には、VCC/2を中心に、0〜VCCに変化する信号が入力される。   Here, when the amplitude (0-peak) of the detection signals S1 and S2 is 3 · Vcc, if R11 = R12, 5 · R13 = R12, R21 = R22, 5 · R23 = R22, then AN1 and AN2 A signal that changes from 0 to VCC around VCC / 2 is input.

AN1ならびにAN2はマイコン内のマルチプレクサ212内のサンプルホールド202を介して、ADコンバータ203に選択的に接続される。ADコンバータ203の基準信号はVCCに接続されている。そして、ADコンバータは10bit分解能であり、その変換結果は、入力電圧に応じて、0(0(V))〜3FF(VCC(V))にリニアに変換される。   AN1 and AN2 are selectively connected to an AD converter 203 via a sample hold 202 in a multiplexer 212 in the microcomputer. The reference signal of the AD converter 203 is connected to VCC. The AD converter has 10-bit resolution, and the conversion result is linearly converted from 0 (0 (V)) to 3FF (VCC (V)) according to the input voltage.

また、検出信号S1,S2はADコンバータ203のトリガー204に応答して、交互に夫々デジタル信号に変換され、変換終了と共に、マイコンに実装され、初期化の際に予めスケジュールされた内容に従って、DMA(ダイレクトメモリアクセス)機能により、変換結果が所定アドレスのRAM211に転送される。その結果を基にCPU209にてROM210に記憶されたソフトウェアに基づいて回転位置角を演算処理する。   The detection signals S1 and S2 are alternately converted into digital signals in response to the trigger 204 of the AD converter 203. When the conversion is completed, the detection signals S1 and S2 are mounted on the microcomputer, and in accordance with the contents scheduled in advance at the initialization. The conversion result is transferred to the RAM 211 at a predetermined address by the (direct memory access) function. Based on the result, the CPU 209 calculates the rotational position angle based on the software stored in the ROM 210.

また、励磁信号は発振器111からレゾルバに供給されると共に、コンパレータに入力され、励磁信号のゼロクロス信号に変換して得られたパルス列は遅延回路を通して、マイコンのADコンバータの外部トリガー端子204に接続されている。   The excitation signal is supplied from the oscillator 111 to the resolver and input to the comparator, and the pulse train obtained by converting the excitation signal into a zero cross signal is connected to the external trigger terminal 204 of the AD converter of the microcomputer through a delay circuit. ing.

上述したように、検出部S10及びS20によって検出された検出信号S1及びS2はマルチプレクサ212で交互に選択され、出力される。つまり、検出信号S1が選択された場合、次回は検出信号S2が選択される。回転角は、このように交互に選択された信号S1及びS2によって算出される。   As described above, the detection signals S1 and S2 detected by the detection units S10 and S20 are alternately selected and output by the multiplexer 212. That is, when the detection signal S1 is selected, the detection signal S2 is selected next time. The rotation angle is calculated by the signals S1 and S2 which are alternately selected in this way.

2つの検出信号S1,S2を交互にサンプルした結果に基づいた情報を処理する方法を用いることによって、レゾルバ信号S1,S2を時系列で処理する1系統の信号入力を採用することができ、更に、2系統で検出を行う場合に必要であった乗算器,同期検波,フィルタ、それに検波出力を零になるようにする制御器が不要になり構成が簡単化でき、低価格な回転角検出器を提供することができる。   By using a method of processing information based on the result of alternately sampling the two detection signals S1 and S2, it is possible to employ a single signal input for processing the resolver signals S1 and S2 in time series. Multiplier, synchronous detection, filter, and controller to make detection output zero, which are necessary when detecting with two systems, are eliminated, and the configuration can be simplified and the rotation angle detector is inexpensive. Can be provided.

ここで、更に詳細に説明する。図3(a)はレゾルバに供給される励磁信号を示している。そして、図3(b)はレゾルバが取り付けられた回転体が停止中の検出信号S1,S2を示している。検出の入力系統が1つと考え、サンプルホールドは励磁信号の正のピークに同期して、検出信号S1(図中白○)と検出信号S2(図中黒○)を交互にサンプルしている状態を示す。   Here, it demonstrates in detail. FIG. 3A shows the excitation signal supplied to the resolver. FIG. 3B shows detection signals S1 and S2 when the rotating body to which the resolver is attached is stopped. Assuming that there is only one detection input system, the sample hold is sampling the detection signal S1 (white circle in the figure) and detection signal S2 (black circle in the figure) alternately in synchronization with the positive peak of the excitation signal. Indicates.

停止しているため、検出信号に現れる励磁信号成分の包絡線は直流になる。従ってこの状態では、S1とS2のサンプル点の違いに起因する包絡線の検出値S1,S2への影響はない。   Since it is stopped, the envelope of the excitation signal component that appears in the detection signal is DC. Therefore, in this state, there is no influence on the detected values S1 and S2 of the envelope due to the difference between the sample points of S1 and S2.

図3(c),図3(d)はそれぞれ前記回転体が低速回転時と高速回転時の検出信号S1,S2をそれぞれ示している。両図を比較すると、回転数が高くなるに従い、サンプル時間の影響により、検出信号S1とS2がそれぞれ示す回転角度の差が大きくなることがわかる。   FIGS. 3C and 3D respectively show detection signals S1 and S2 when the rotating body rotates at a low speed and at a high speed. Comparing the two figures, it can be seen that as the number of rotations increases, the difference between the rotation angles indicated by the detection signals S1 and S2 increases due to the influence of the sampling time.

すなわち、低速回転時の図中、検出信号S2のサンプル点Psに着目すると、検出信号S1とS2を同時サンプルした場合に比べ、サンプル点が1励磁波周期遅れた検出信号S1のサンプル点Qsの間に、誤差δが発生する。そして、同様に高速回転時の図中のサンプル点Pfとサンプル点Qfの間の誤差δについて比較してみると、その差が大きくなっている様子がわかる。回転角度は式2から算定されるので、サンプル点が異なることによる誤差δは回転角度誤差となって現れることになる。   That is, focusing on the sampling point Ps of the detection signal S2 in the diagram at the time of low-speed rotation, the sampling point of the detection signal S1 with the sampling point delayed by one excitation wave period compared to the case where the detection signals S1 and S2 are sampled simultaneously. In the meantime, an error δ occurs. Similarly, when the error δ between the sample point Pf and the sample point Qf in the drawing at high speed rotation is compared, it can be seen that the difference is increased. Since the rotation angle is calculated from Equation 2, the error δ due to different sample points appears as a rotation angle error.

本発明では図1に示すような1系統の信号入力を採用するとともに、2信号の時系列処理を行っても回転角度検出の誤差が発生しない停止時、もしくは、その誤差が小さく許容できる低速回転域において、2つの検出信号S1,S2の比をタンジェントの逆関数処理することにより、回転角を演算する。S1,S2の比を取ったことで回転角への信号振幅Aの影響をなくすことが可能となる。上述した構成によって、回路構成を単純にしつつ、信頼性高く回転角を演算することができる。   In the present invention, a single signal input as shown in FIG. 1 is adopted, and at the time of stop where an error in rotation angle detection does not occur even when time series processing of two signals is performed, or low-speed rotation that allows the error to be small. In the region, the rotation angle is calculated by subjecting the ratio of the two detection signals S1, S2 to inverse tangent function processing. By taking the ratio of S1 and S2, the influence of the signal amplitude A on the rotation angle can be eliminated. With the above-described configuration, the rotation angle can be calculated with high reliability while simplifying the circuit configuration.

さらに、得られた前記回転角度と検出信号S1もしくは、S2により振幅Aを求め、記憶し、高速回転時はS1もしくは、S2を選択し、選択した信号と振幅Aにより回転角度を演算するため、回転角度を演算するために必要な信号は1つで済むので、サンプル時間の影響により角度演算精度の低下の少ない回転角検出装置を提供することが可能となる。   Further, the amplitude A is obtained and stored by the obtained rotation angle and the detection signal S1 or S2, and S1 or S2 is selected at high speed rotation, and the rotation angle is calculated by the selected signal and amplitude A. Since only one signal is required to calculate the rotation angle, it is possible to provide a rotation angle detection device with little decrease in angle calculation accuracy due to the influence of the sampling time.

ここで、CPU209にて実行されるソフトウェアの処理を図2のフローチャートに基づいて説明する。   Here, software processing executed by the CPU 209 will be described with reference to the flowchart of FIG.

この処理を開始すると、ステップT1においてADコンバータによりS1、S2信号のデジタル変換結果が記憶されたRAM211のアドレスを参照し、夫々のデジタル値を読み込む。ステップT2により読み込んだ結果とこの処理の後段で記憶する前回の読み込み値の差分を演算する。ステップT3により、その演算結果が所定の値以下の場合は停止もしくは、低速回転中と判定し、ステップT4により処理Aをコールする。そうでない場合は、高速回転中と判定し、ステップT5において処理Bをコールする。   When this process is started, each digital value is read by referring to the address of the RAM 211 where the digital conversion results of the S1 and S2 signals are stored by the AD converter in step T1. The difference between the result read in step T2 and the previous read value stored in the subsequent stage of this process is calculated. If the calculation result is less than or equal to a predetermined value in step T3, it is determined that the operation is stopped or rotating at a low speed, and the process A is called in step T4. Otherwise, it is determined that high-speed rotation is in progress, and process B is called at step T5.

CPU209で停止もしくは、低速回転中と判断された場合、処理Aが実行され、回転位置角をS1のサンプル信号の読み取り値をS1(n),S2のサンプル信号読み取り値をS2(n)とすると、式3により、回転位置角θnを演算する。これは、図2(a)に示すフローチャートのステップT10からステップT43の一連の処理により、実行できる。   If the CPU 209 determines that the operation is stopped or is rotating at a low speed, the process A is executed. If the rotation position angle is S1, the read value of the sample signal of S1 is S1 (n) and the read value of the sample signal of S2 is S2 (n). , The rotational position angle θn is calculated by Equation 3. This can be executed by a series of processing from step T10 to step T43 in the flowchart shown in FIG.

S1(n)≧0かつ、S2(n)≧0かつ、|S1(n)|<|S2(n)|の場合には、
θn=tan-1(|S1(n)|/|S2(n)|)
そうでなく、
S1(n)≧0かつ、S2(n)≧0かつ、|S1(n)|≧|S2(n)|の場合には、
θn=π/2−tan-1(|S2(n)|/|S1(n)|)
そうでなく、
S1(n)<0かつ、S2(n)≧0かつ、|S1(n)|<|S2(n)|の場合には、
θn=2π−tan-1(|S1(n)|/|S2(n)|)
そうでなく、
S1(n)<0かつ、S2(n)≧0かつ、|S1(n)|≧|S2(n)|の場合には、
θn=3π/2+tan-1(|S2(n)|/|S1(n)|)
そうでなく、
S1(n)≧0かつ、S2(n)<0かつ、|S1(n)|<|S2(n)|の場合には、
θn=2π−tan-1(|S1(n)|/|S2(n)|)
そうでなく、
S1(n)≧0かつ、S2(n)<0かつ、|S1(n)|≧|S2(n)|の場合には、
θn=π/2+tan-1(|S2(n)|/|S1(n)|)
そうでなく、
S1(n)<0かつ、S2(n)<0かつ、|S1(n)|<|S2(n)|の場合には、
θn=2π−tan-1(|S1(n)|/|S2(n)|)
そうでなく、
S1(n)<0かつ、S2(n)<0かつ、|S1(n)|≧|S2(n)|の場合には、
θn=3π/2−tan-1(|S2(n)|/|S1(n)|) …式(3)
次に、条件毎に式(4)により、振幅Aを演算すると共に、所定のアドレスのRAMに記憶する。これは、図2(a)に示すフローチャートのステップT50からT60の一連の処理により、実行できる。ここで、検出信号S1とS2の値の大きな信号を選択することにより、デジタル演算の量子化誤差を抑えることができる。
|sinθn|>|cosθn|の場合、A=S1(n)/(sinθn)
If S1 (n) ≧ 0, S2 (n) ≧ 0, and | S1 (n) | <| S2 (n) |
θn = tan −1 (| S1 (n) | / | S2 (n) |)
Otherwise,
If S1 (n) ≧ 0, S2 (n) ≧ 0, and | S1 (n) | ≧ | S2 (n) |
θn = π / 2−tan −1 (| S2 (n) | / | S1 (n) |)
Otherwise,
If S1 (n) <0, S2 (n) ≧ 0, and | S1 (n) | <| S2 (n) |
θn = 2π−tan −1 (| S1 (n) | / | S2 (n) |)
Otherwise,
If S1 (n) <0, S2 (n) ≧ 0, and | S1 (n) | ≧ | S2 (n) |
θn = 3π / 2 + tan −1 (| S2 (n) | / | S1 (n) |)
Otherwise,
If S1 (n) ≧ 0, S2 (n) <0, and | S1 (n) | <| S2 (n) |
θn = 2π−tan −1 (| S1 (n) | / | S2 (n) |)
Otherwise,
If S1 (n) ≧ 0, S2 (n) <0, and | S1 (n) | ≧ | S2 (n) |
θn = π / 2 + tan −1 (| S2 (n) | / | S1 (n) |)
Otherwise,
If S1 (n) <0 and S2 (n) <0 and | S1 (n) | <| S2 (n) |
θn = 2π−tan −1 (| S1 (n) | / | S2 (n) |)
Otherwise,
If S1 (n) <0 and S2 (n) <0 and | S1 (n) | ≧ | S2 (n) |
θn = 3π / 2−tan −1 (| S2 (n) | / | S1 (n) |) Equation (3)
Next, the amplitude A is calculated according to the equation (4) for each condition and stored in the RAM at a predetermined address. This can be executed by a series of processing from step T50 to T60 in the flowchart shown in FIG. Here, by selecting a signal having a large value of the detection signals S1 and S2, it is possible to suppress a quantization error in digital calculation.
If | sinθn |> | cosθn |, A = S1 (n) / (sinθn)

それ以外の場合、A=S2(n)/(cosθn) …式(4)
一方、高速回転中と判断された場合、処理Bが実行され、式により回転位置角θnを演算する。これは、図2(b)に示すフローチャートのステップT70からT72の一連の処理により、実行できる。
|S1(n)|<|S2(n)|の場合、θn=sin-1(S1(n)/A)
In other cases, A = S2 (n) / (cosθn) (4)
On the other hand, when it is determined that the rotation is at a high speed, the process B is executed, and the rotational position angle θn is calculated by an equation. This can be executed by a series of processes from step T70 to T72 in the flowchart shown in FIG.
When | S1 (n) | <| S2 (n) |, θn = sin −1 (S1 (n) / A)

それ以外の場合、θn=cos-1(S2(n)/A) …式(5)
処理Aもしくは、処理Bが終了すると図2のフローチャートのステップT6において、今回の検出した値S1(n)とS2(n)を前回検出値S1(n−1)とS2(n−1)として記憶し、ステップT7にてモータ電流制御処理をコールする。モータ電流制御処理が終了するとステップT8にて、メインの処理に復帰して、図2の処理が終了する。
Otherwise, θn = cos −1 (S2 (n) / A) (5)
When the process A or the process B is completed, the values S1 (n) and S2 (n) detected this time are set as the previous detection values S1 (n-1) and S2 (n-1) in step T6 of the flowchart of FIG. The motor current control process is called at step T7. When the motor current control process ends, the process returns to the main process at step T8, and the process of FIG. 2 ends.

この図2に示した一連の処理は、所定のタイミング、例えば、モータにレゾルバを取り付け、その制御を行う場合には、モータの電流制御演算毎に実行する。本実施例では、外部割込みにより当該電流制御を開始させ、その処理の一部として、図2のフローチャート処理が実行される構成を採用した。   The series of processing shown in FIG. 2 is executed for each motor current control calculation at a predetermined timing, for example, when a resolver is attached to the motor and its control is performed. In this embodiment, a configuration is adopted in which the current control is started by an external interrupt, and the flowchart processing of FIG. 2 is executed as part of the processing.

なお、本発明は、回転位置角θに応答して、sinθおよび、cosθを出力するレゾルバ以外の回転位置角検出器に適用することができる。   The present invention can be applied to a rotational position angle detector other than a resolver that outputs sin θ and cos θ in response to the rotational position angle θ.

例えば、図5のような回転検出器が考えられる。図5aに示す回転位置を検出する回転体に取り付ける円盤300は、外周に正弦波状の着磁がなされた磁性体(永久磁石)である。そして、その磁性体から所定のギャップを保持し、ホール素子A301ならびに、ホール素子B302が各素子の正弦波出力が90度の位相角を持つように円盤の外周に配置する。   For example, a rotation detector as shown in FIG. 5 can be considered. The disk 300 attached to the rotating body for detecting the rotational position shown in FIG. 5a is a magnetic body (permanent magnet) having a sinusoidal magnetization on its outer periphery. A predetermined gap is maintained from the magnetic material, and the Hall element A301 and the Hall element B302 are arranged on the outer periphery of the disk so that the sine wave output of each element has a phase angle of 90 degrees.

この回転位置角検出器であれば、永久磁石を採用したため、レゾルバのような励磁回路が不要で、ホール素子を採用したので、停止中であっても、磁石からの磁束量に応答した、すなわち、回転位置角に応じた信号を図5bの様に得ることができる。   In this rotational position angle detector, since a permanent magnet is used, an excitation circuit such as a resolver is unnecessary, and a Hall element is used, so even when it is stopped, it responds to the amount of magnetic flux from the magnet. A signal corresponding to the rotational position angle can be obtained as shown in FIG.

よって、図1の発振器111,コンパレータ200,遅延回路201を省略できる。この場合、外部トリガーに変えて、マイコンに内蔵したタイマーにより所定のインターバルでAD変換を開始する構成とすればよい。   Therefore, the oscillator 111, the comparator 200, and the delay circuit 201 in FIG. 1 can be omitted. In this case, instead of the external trigger, the AD conversion may be started at a predetermined interval by a timer built in the microcomputer.

以上、本実施例を用いることによって、簡単な回路構成を用い、しかも、レゾルバの変圧比のばらつきや回転体の回転数に関わらず精度良く回転位置を検出するための回転角検出装置を提供することができる。   As described above, the present embodiment provides a rotation angle detection device that uses a simple circuit configuration and accurately detects the rotational position regardless of variations in the transformation ratio of the resolver and the rotational speed of the rotating body. be able to.

100 信号処理装置
110 レゾルバ
111 発振器
112 乗算器
113 同期検波器
114 帯域除去フィルタ
115 制御器
116 減算器
117 cos関数ルックアップテーブル
118 sin関数ルックアップテーブル
120 マイコン
200 ゼロクロスコンパレータ
201 遅延回路
202 サンプルホールド器
203 ADコンバータ
204 ADコンバータ外部トリガー端子
205 変換結果レジスタ
206 外部割込み端子
207 割り込みコントローラ
208 DMA
209 CPU
210 ROM
211 RAM
212 マルチプレクサ
DESCRIPTION OF SYMBOLS 100 Signal processor 110 Resolver 111 Oscillator 112 Multiplier 113 Synchronous detector 114 Band elimination filter 115 Controller 116 Subtractor 117 Cos function lookup table 118 Sine function lookup table 120 Microcomputer 200 Zero cross comparator 201 Delay circuit 202 Sample hold device 203 AD converter 204 AD converter external trigger terminal 205 Conversion result register 206 External interrupt terminal 207 Interrupt controller 208 DMA
209 CPU
210 ROM
211 RAM
212 multiplexer

Claims (3)

回転電機の回転子の回転位置を検出する検出器を有する回転角検出装置であって、
前記検出器は第一及び第二の検出信号を出力し、
前記出力された第一及び第二の検出信号は検出信号選択回路に出力され、
前記回転電機が停止している状態、または前記回転電機の回転数が所定値以下であるとき、前記検出信号選択回路は前記第一及び第二の検出信号を交互に出力し、
サンプル検出手段は当該交互に出力された検出信号を所定タイミングで検出し、
演算回路は当該所定タイミングで検出された信号に基づいて前記回転子の回転位置角を算出すると共に前記第一または、第二の検出信号及び前記算出された回転位置角に基づいて、振幅を算出し、これを記憶する振幅記憶手段を有することを特徴とする回転角検出装置。
A rotation angle detection device having a detector for detecting a rotation position of a rotor of a rotating electrical machine,
The detector outputs first and second detection signals;
The output first and second detection signals are output to a detection signal selection circuit,
When the rotating electrical machine is stopped, or when the rotational speed of the rotating electrical machine is equal to or less than a predetermined value, the detection signal selection circuit alternately outputs the first and second detection signals,
The sample detection means detects the alternately output detection signals at a predetermined timing,
The arithmetic circuit calculates the rotational position angle of the rotor based on the signal detected at the predetermined timing and calculates the amplitude based on the first or second detection signal and the calculated rotational position angle. And an angle storage means for storing the rotation angle detecting device.
回転電機の回転子の回転位置を検出する検出器を有する回転角検出装置であって、
前記検出器は第一及び第二の検出信号を出力し、
前記出力された第一及び第二の検出信号は検出信号選択回路に出力され、
前記回転電機の回転数が所定値以上であるとき、前記検出信号選択回路は前記第一及び第二の検出信号を交互に出力し、
サンプル検出手段は当該交互に出力された検出信号を所定タイミングで検出し、
演算回路は当該所定タイミングで検出された信号と前記振幅記憶手段に記憶された情報に基づいて前記回転子の回転位置角を算出することを特徴とする回転角検出装置。
A rotation angle detection device having a detector for detecting a rotation position of a rotor of a rotating electrical machine,
The detector outputs first and second detection signals;
The output first and second detection signals are output to a detection signal selection circuit,
When the rotational speed of the rotating electrical machine is a predetermined value or more, the detection signal selection circuit alternately outputs the first and second detection signals,
The sample detection means detects the alternately output detection signals at a predetermined timing,
An arithmetic circuit calculates a rotational position angle of the rotor based on a signal detected at the predetermined timing and information stored in the amplitude storage means.
請求項1または2のいずれかに記載の回転角検出装置であって、
前記検出器は、発振器によって出力された検出器励磁信号に基づいて前記第一及び第二の検出信号を出力し、
前記サンプル検出手段は、前記検出器励磁信号が零となる点から所定の遅延時間後に前記第一及び第二の検出信号を検出することを特徴とする回転角検出装置。
The rotation angle detection device according to claim 1 or 2,
The detector outputs the first and second detection signals based on a detector excitation signal output by an oscillator;
The rotation angle detection device according to claim 1, wherein the sample detection means detects the first and second detection signals after a predetermined delay time from the point where the detector excitation signal becomes zero.
JP2010131580A 2010-06-09 2010-06-09 Rotation angle detection device Pending JP2011257254A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010131580A JP2011257254A (en) 2010-06-09 2010-06-09 Rotation angle detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010131580A JP2011257254A (en) 2010-06-09 2010-06-09 Rotation angle detection device

Publications (1)

Publication Number Publication Date
JP2011257254A true JP2011257254A (en) 2011-12-22

Family

ID=45473578

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010131580A Pending JP2011257254A (en) 2010-06-09 2010-06-09 Rotation angle detection device

Country Status (1)

Country Link
JP (1) JP2011257254A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013170847A (en) * 2012-02-17 2013-09-02 Keihin Corp Resolver excitation apparatus
JP2016138870A (en) * 2015-01-29 2016-08-04 ルネサスエレクトロニクス株式会社 Semiconductor device
WO2019017042A1 (en) * 2017-07-19 2019-01-24 ミネベアミツミ株式会社 Rotation angle sensor-digital converter and rotation angle sensor-digital conversion method
CN113330281A (en) * 2019-01-25 2021-08-31 三菱电机株式会社 Angle detection device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004309285A (en) * 2003-04-07 2004-11-04 Minebea Co Ltd R/d converter
JP2007132909A (en) * 2005-11-14 2007-05-31 Yaskawa Electric Corp Signal processor
JP2007171081A (en) * 2005-12-26 2007-07-05 Victor Co Of Japan Ltd Position detection method
JP2008002904A (en) * 2006-06-21 2008-01-10 Fanuc Ltd Device and program for calculating amplitude of output signal of encoder

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004309285A (en) * 2003-04-07 2004-11-04 Minebea Co Ltd R/d converter
JP2007132909A (en) * 2005-11-14 2007-05-31 Yaskawa Electric Corp Signal processor
JP2007171081A (en) * 2005-12-26 2007-07-05 Victor Co Of Japan Ltd Position detection method
JP2008002904A (en) * 2006-06-21 2008-01-10 Fanuc Ltd Device and program for calculating amplitude of output signal of encoder

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013170847A (en) * 2012-02-17 2013-09-02 Keihin Corp Resolver excitation apparatus
JP2016138870A (en) * 2015-01-29 2016-08-04 ルネサスエレクトロニクス株式会社 Semiconductor device
US10530383B2 (en) 2015-01-29 2020-01-07 Renesas Electronics Corporation Semiconductor device
WO2019017042A1 (en) * 2017-07-19 2019-01-24 ミネベアミツミ株式会社 Rotation angle sensor-digital converter and rotation angle sensor-digital conversion method
CN113330281A (en) * 2019-01-25 2021-08-31 三菱电机株式会社 Angle detection device

Similar Documents

Publication Publication Date Title
US9182251B2 (en) Angle detector and motor drive controller
JP4138899B2 (en) Phase difference detection apparatus, position detection system and method for position detection
JP5173962B2 (en) Resolver / digital conversion apparatus and resolver / digital conversion method
CN102661754B (en) Digital converter for rotary transformer
JP4923730B2 (en) Compensation method and angle detection apparatus using the same in resolver angle detection
JP4957192B2 (en) Rotation angle detection device and rotation angle detection method
JP5660381B2 (en) Rotation angle detector
US10184805B2 (en) Method for detecting abnormality of resolver, angle detection device, motor, and transportation device
JP2019002942A (en) Rotation detection device and rotation detection method
JP2004279231A (en) R/d converter
JP2015132593A (en) Rotation angle detection apparatus, rotation angle detection method, and image forming apparatus
JP2011257254A (en) Rotation angle detection device
JP2009210281A (en) Redundancy type rotating angle detection device
KR20180019920A (en) Device and method for estimating rotor angle in motor
KR101338707B1 (en) Excitation signal generating device and resolver sensing device
JP2013224865A (en) Signal processing device
JP5662176B2 (en) Angle detector
JP5266783B2 (en) Rotation angle detector
JP2018205112A (en) Rotation angle detection method and device using resolver, and motor
JP2002039795A (en) Resolver and method for detecting breakage of wire in the same
JP2016020819A (en) Angle detection device and motor drive circuit
JPS63179259A (en) Speed detecting method using resolver
JP2000298036A (en) Rotation sensor
JP2015108577A (en) Position sensor manufacturing method, and position sensor
JP2006349591A (en) Rotary sensor and mobile body system for vehicle using it

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120622

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120622

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130214

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130219

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20130903