JP2019129655A - Motor controller - Google Patents
Motor controller Download PDFInfo
- Publication number
- JP2019129655A JP2019129655A JP2018011144A JP2018011144A JP2019129655A JP 2019129655 A JP2019129655 A JP 2019129655A JP 2018011144 A JP2018011144 A JP 2018011144A JP 2018011144 A JP2018011144 A JP 2018011144A JP 2019129655 A JP2019129655 A JP 2019129655A
- Authority
- JP
- Japan
- Prior art keywords
- value
- hall sensor
- amplitude
- rotor
- sine
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P6/00—Arrangements for controlling synchronous motors or other dynamo-electric motors using electronic commutation dependent on the rotor position; Electronic commutators therefor
- H02P6/14—Electronic commutators
- H02P6/16—Circuit arrangements for detecting position
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P2207/00—Indexing scheme relating to controlling arrangements characterised by the type of motor
- H02P2207/05—Synchronous machines, e.g. with permanent magnets or DC excitation
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Control Of Motors That Do Not Use Commutators (AREA)
Abstract
Description
本発明はモータ制御装置に関する。 The present invention relates to a motor control device.
従来、モータ制御装置として、ロータの回転角度を正確に検出するために、モータに内蔵されたエンコーダの出力値を用いるものが知られている(例えば、特許文献1参照)。
また、ロータの回転方向に間隔をおいて配置されたホールセンサの出力値を用いてモータの制御を行うモータ制御装置も知られている(例えば、特許文献2参照。)。
2. Description of the Related Art Conventionally, a motor control device that uses an output value of an encoder built in a motor in order to accurately detect the rotation angle of a rotor is known (see, for example, Patent Document 1).
There is also known a motor control device that controls a motor by using output values of hall sensors arranged at intervals in the rotation direction of the rotor (see, for example, Patent Document 2).
前者のモータ制御装置はエンコーダを用いており、モータの製造コストが高くつくため、モータの製造コストを抑制したい時には後者のモータ制御装置が用いられる。
ここで、後者のモータ制御装置で制御するモータに取付けられた各ホールセンサは、永久磁石が内蔵されたロータによって生ずる磁界の大きさを検出し、検出結果に応じたアナログ信号を出力するものである。このため、複数のホールセンサが完全に等角度間隔でモータに固定されると共に、各ホールセンサのロータとの距離や軸方向の配置位置が完全に等しく、各ホールセンサの性能にばらつきが無いことが理想である。
Since the former motor control device uses an encoder and the motor manufacturing cost is high, the latter motor control device is used when it is desired to suppress the motor manufacturing cost.
Here, each Hall sensor attached to the motor controlled by the latter motor control device detects the magnitude of the magnetic field generated by the rotor incorporating the permanent magnet, and outputs an analog signal corresponding to the detection result. is there. For this reason, a plurality of hall sensors are completely fixed to the motor at equiangular intervals, and the distance between the hall sensors and the arrangement position in the axial direction are completely equal, and there is no variation in the performance of each hall sensor. Is ideal.
しかし、組み付け誤差等の影響によりこれらが完全に達成されることはない。このため、後者のモータ制御装置では、モータの出荷時、修理時等に、キャリブレーション用のエンコーダを用いて検出されるロータの回転位置と、各ホールセンサの出力値とを比較し、各ホールセンサの出力とエンコーダの検出結果との対応データをメモリに格納し、当該対応データを用いてロータの回転角度の検出値を補正する。このようにエンコーダをモータに取付けてキャリブレーション作業を行う必要があるため、後者のモータ制御装置を用いる場合、モータの交換に要する作業が複雑になり、また、キャリブレーション用の専用器具も必要となる。 However, due to the effects of assembly errors and the like, these are not completely achieved. Therefore, in the latter motor control device, the rotational position of the rotor detected by using the calibration encoder at the time of shipment, repair, etc. of the motor is compared with the output value of each Hall sensor, and each hole is detected. The corresponding data of the output of the sensor and the detection result of the encoder is stored in the memory, and the detected value of the rotation angle of the rotor is corrected using the corresponding data. Since it is necessary to perform the calibration work with the encoder attached to the motor in this way, when the latter motor control device is used, the work required for replacing the motor becomes complicated, and a dedicated instrument for calibration is also required. Become.
本発明は、このような事情に鑑みてなされたものであって、エンコーダ等のキャリブレーション用の専用器具を用いずに、ホールセンサによるロータの回転角度の検出値をモータの制御用に補正することができるモータ制御装置の提供を目的とする。 The present invention has been made in view of such circumstances, and corrects the detected value of the rotation angle of the rotor by the Hall sensor for controlling the motor without using a dedicated instrument for calibration such as an encoder. It is an object of the present invention to provide a motor control device that can be used.
上記課題を解決するために、本発明は以下の手段を採用する。
本発明の第1の態様は、ロータの回転方向に間隔をおいて配置された第1ホールセンサ、第2ホールセンサ、および第3ホールセンサからの出力値を用いてモータ制御を行うモータ制御装置であって、前記第1ホールセンサの出力値を正弦の値とし、前記第2ホールセンサの出力値に前記第3ホールセンサの出力値の反数を加え2で除すことによって得られる値を余弦の値とし、前記正弦の値および前記余弦の値を用いて得られる正接の値に対応する角度を前記ロータの回転角度として得るロータ回転角度取得手段を備える。
In order to solve the above-mentioned subject, the present invention adopts the following means.
According to a first aspect of the present invention, there is provided a motor control apparatus that performs motor control using output values from a first hall sensor, a second hall sensor, and a third hall sensor arranged at intervals in a rotational direction of a rotor. The output value of the first Hall sensor is a sine value, and the reciprocal of the output value of the third Hall sensor is added to the output value of the second Hall sensor and divided by 2 Rotor rotation angle acquisition means for obtaining, as a rotation angle of the rotor, an angle corresponding to a tangent value obtained by using the sine value and the cosine value as a cosine value.
第1の態様では、3つのホールセンサの出力値からロータの回転角度が求められる。ここで、3つのホールセンサがそれぞれ理想的な位置に配置されており、3つのホールセンサの性能にもばらつきが無い場合は、3つのホールセンサから得られる出力波形は位相だけが互いに120°ずれている同一のものとなる。しかし、実際のホールセンサの配置や性能にはばらつきがあるので、3つのホールセンサから得られる出力波形の振幅、振幅中心、互いの位相差等がばらつく。 In the first aspect, the rotation angle of the rotor is obtained from the output values of the three Hall sensors. Here, when the three Hall sensors are respectively disposed at ideal positions and the performance of the three Hall sensors does not vary, the output waveforms obtained from the three Hall sensors are only 120 ° out of phase with each other. Have the same thing. However, since there are variations in the arrangement and performance of the actual Hall sensors, the amplitude, the center of amplitude, the phase difference between each other, and the like of the output waveforms obtained from the three Hall sensors vary.
これに対し、第1の態様では、第1ホールセンサの出力値を正弦の値とし、第2ホールセンサの出力値に第3ホールセンサの出力値の反数を加え2で除すことによって得られる値を余弦の値とし、前記正弦の値および前記余弦の値を用いて得られる正接に対応する角度を前記ロータの回転角度として得る。このため、3つのホールセンサの各々の出力値からロータの回転角度を得る場合と比較し、前記ばらつきの影響を低減することができる。 In contrast, in the first aspect, the output value of the first Hall sensor is a sine value, and the reciprocal of the output value of the third Hall sensor is added to the output value of the second Hall sensor and divided by 2. The obtained value is the cosine value, and the angle corresponding to the tangent obtained by using the sine value and the cosine value is obtained as the rotation angle of the rotor. For this reason, compared with the case where the rotation angle of the rotor is obtained from the output values of the three hall sensors, the influence of the variation can be reduced.
また、第1の態様では、前記ロータ回転角度取得手段が、前記正弦の値の振幅である第1の振幅と前記余弦の値の振幅である第2の振幅とを一致させるように、前記第1の振幅の最大値と前記第2の振幅の最大値との比率を用いて前記正弦の値又は前記余弦の値を補正した上で、前記正接の値を得る。
このような構成は、組み立て誤差等により生ずるばらつきの影響を低減する上で有利である。
In the first aspect, the rotor rotation angle acquiring unit may be configured to match the first amplitude which is the amplitude of the value of the sine and the second amplitude which is the amplitude of the value of the cosine. The tangent value is obtained after correcting the sine value or the cosine value using the ratio of the maximum value of the amplitude of 1 and the maximum value of the second amplitude.
Such a configuration is advantageous in reducing the influence of variations caused by assembly errors and the like.
本発明の第2の態様は、ロータの回転方向に間隔をおいて配置された第1ホールセンサ、第2ホールセンサ、および第3ホールセンサからの出力値を用いてモータ制御を行うモータ制御装置であって、前記第1ホールセンサの出力値を正弦の値とし、前記第2ホールセンサの出力値に前記第3ホールセンサの出力値の反数を加え2で除すことによって得られる値を余弦の値とし、前記正弦の値および前記余弦の値を用いて得られる正接の値に対応する角度を前記ロータの回転角度として得るロータ回転角度取得手段を備える。
このため、第1の態様と同様に3つのホールセンサの各々の出力値からロータの回転角度を得る場合と比較し、前記ばらつきの影響を低減することができる。
According to a second aspect of the present invention, there is provided a motor control apparatus that performs motor control using output values from a first hall sensor, a second hall sensor, and a third hall sensor arranged at intervals in the rotational direction of a rotor. The output value of the first Hall sensor is a sine value, and the reciprocal of the output value of the third Hall sensor is added to the output value of the second Hall sensor and divided by 2 Rotor rotation angle acquisition means for obtaining, as a rotation angle of the rotor, an angle corresponding to a tangent value obtained by using the sine value and the cosine value as a cosine value.
For this reason, the influence of the variation can be reduced as compared with the case where the rotation angle of the rotor is obtained from the output values of the three hall sensors as in the first embodiment.
また、本発明の第2の態様は、所定の開始信号を受付けると、前記ロータを有するモータをその最高回転速度の15%以下で回転させると共に、前記正弦の値の振幅の最大値と前記余弦の値の振幅の最大値との比率を求め、求めた該比率をメモリに格納するキャリブレーション手段を備え、前記ロータ回転角度取得手段が、前記メモリに格納される前記比率を用いて前記正弦の値又は前記余弦の値を補正した上で前記正接の値に対応する角度を得るように構成されている。 Further, according to the second aspect of the present invention, when receiving a predetermined start signal, the motor having the rotor is rotated at 15% or less of its maximum rotational speed, and the maximum value of the amplitude of the sine and the cosine Calibration means for obtaining a ratio of the value of the value to the maximum amplitude value and storing the obtained ratio in a memory, wherein the rotor rotation angle acquisition means uses the ratio stored in the memory to calculate the sine The value or the value of the cosine is corrected to obtain an angle corresponding to the value of the tangent.
モータはパーソナルモビリティの動力として用いられることがあり、パーソナルモビリティは室内の床の上を低速で移動することが多い。室内の床は平面度が高いため車輪から入力される振動が少なく、室内の音も静かな場合が考えられる。この場合にロータの回転角度の検出が不正確であり、ロータに回転ムラが生じると、当該回転ムラがパーソナルモビリティの使用者に振動や音として認識され易い。 A motor may be used as power for personal mobility, and personal mobility often moves on a floor in a room at a low speed. The indoor floor has high flatness, so there is little vibration input from the wheels, and the indoor sound may be quiet. In this case, detection of the rotation angle of the rotor is inaccurate, and if rotation irregularity occurs in the rotor, the rotation irregularity is easily recognized as vibration or sound by the user of personal mobility.
これに対し、上記構成では、キャリブレーション用にモータを低速で回転させ、この状態で正弦の値の振幅の最大値と余弦の値の振幅の最大値との比率を求めると共にメモリに格納し、格納された比率を用いて正弦の値又は余弦の値を補正した上で正接の値に対応する角度を求める。これは、パーソナルモビリティにおいて使用頻度が高い低速回転時のモータの振動や音を低減する上で有利である。 On the other hand, in the above configuration, the motor is rotated at low speed for calibration, and in this state, the ratio between the maximum amplitude of the sine value and the maximum amplitude of the cosine value is obtained and stored in the memory, The angle corresponding to the tangent value is obtained after correcting the sine value or cosine value using the stored ratio. This is advantageous in reducing vibration and sound of the motor during low-speed rotation that is frequently used in personal mobility.
本発明の第3の態様は、ロータの回転方向に間隔をおいて配置された第1ホールセンサ、第2ホールセンサ、および第3ホールセンサからの出力値を用いてモータ制御を行うモータ制御装置であって、前記ロータをキャリブレーション用に回転させている状態で、前記第1ホールセンサの出力値を正弦の値とし、前記第2ホールセンサの出力値に前記第3ホールセンサの出力値の反数を加え2で除すことによって得られる値を余弦の値とし、前記正弦の値および前記余弦の値を用いて得られる正接の値に対応する角度を前記ロータの回転角度として得ると共に、得られた前記回転角度と、前記第1ホールセンサ、前記第2ホールセンサ、および前記第3ホールセンサの少なくとも1つの出力値とを対応付ける対応データ又は換算式をメモリに格納するキャリブレーション手段と、前記第1ホールセンサ、前記第2ホールセンサ、および前記第3ホールセンサの少なくとも1つの出力値と、前記キャリブレーション手段により前記メモリに格納される前記対応データ又は前記換算式とを用いて、前記ロータの回転角度を求めるロータ回転角度取得手段とを備える。 According to a third aspect of the present invention, there is provided a motor control device that performs motor control using output values from a first hall sensor, a second hall sensor, and a third hall sensor arranged at intervals in the rotation direction of the rotor. In the state where the rotor is rotated for calibration, the output value of the first hall sensor is set to a sine value, and the output value of the third hall sensor is set to the output value of the second hall sensor. A value obtained by adding a reciprocal and dividing by 2 is a cosine value, and an angle corresponding to a tangent value obtained by using the sine value and the cosine value is obtained as the rotation angle of the rotor. Corresponding data or conversion formula for associating the obtained rotation angle with at least one output value of the first Hall sensor, the second Hall sensor, and the third Hall sensor in a memory Calibration means to be stored, at least one output value of the first Hall sensor, the second Hall sensor, and the third Hall sensor, and the corresponding data or the conversion stored in the memory by the calibration means And a rotor rotation angle acquisition means for determining the rotation angle of the rotor using the following equation.
第3の態様でも、第1ホールセンサの出力値を正弦の値とし、第2ホールセンサの出力値に第3ホールセンサの出力値の反数を加え2で除すことによって得られる値を余弦の値とし、前記正弦の値および前記余弦の値を用いて得られる正接に対応する角度を前記ロータの回転角度として得る。このため、3つのホールセンサの各々の出力値からロータの回転角度を得る場合と比較し、前記ばらつきの影響を低減することができる。 Also in the third embodiment, the output value of the first Hall sensor is a sine value, and the reciprocal of the output value of the third Hall sensor is added to the output value of the second Hall sensor and the value obtained by dividing by 2 is cosine An angle corresponding to a tangent obtained using the value of the sine and the value of the cosine is obtained as the rotation angle of the rotor. For this reason, compared with the case where the rotation angle of the rotor is obtained from the output values of the three hall sensors, the influence of the variation can be reduced.
また、第3の態様では、前記第1ホールセンサ、前記第2ホールセンサ、および前記第3ホールセンサの少なくとも1つの出力値と、前記キャリブレーション手段により前記メモリに格納される前記対応データ又は前記換算式とを用いて、前記ロータの回転角度を求めるので、回転角度を得るためのデータ処理量を低減する上で有利である。 In the third aspect, at least one output value of the first hall sensor, the second hall sensor, and the third hall sensor, and the corresponding data or the data stored in the memory by the calibration unit. Since the rotation angle of the rotor is obtained using the conversion formula, it is advantageous in reducing the data processing amount for obtaining the rotation angle.
上記態様において、前記キャリブレーション手段が、前記正弦の値の振幅である第1の振幅と前記余弦の値の振幅である第2の振幅とを一致させるように、前記第1の振幅の最大値と前記第2の振幅の最大値との比率を用いて前記正弦の値又は前記余弦の値を補正した上で、前記正接の値を得ることが好ましい。
このような構成は、組み立て誤差等により生ずるばらつきの影響を低減する上で有利である。
In the above aspect, the calibration means has a maximum value of the first amplitude so that the first amplitude, which is the amplitude of the sine value, matches the second amplitude, which is the amplitude of the cosine value. It is preferable to obtain the tangent value after correcting the sine value or the cosine value using a ratio between the first amplitude and the maximum value of the second amplitude.
Such a configuration is advantageous in reducing the influence of variations caused by assembly errors and the like.
本発明によれば、エンコーダ等のキャリブレーション用の専用器具を用いずに、ホールセンサによるロータの回転角度の検出値をモータの制御用に補正することができる。 According to the present invention, the detected value of the rotation angle of the rotor by the hall sensor can be corrected for controlling the motor without using a dedicated instrument for calibration such as an encoder.
本発明の一実施形態に係るモータ制御装置1を図面を参照して以下に説明する。
このモータ制御装置1は例えば電動モータであるモータ2の制御に使用される。モータ2は、図1に示すように、例えば、半径方向に突出する複数の突極を備えるステータコア11と、各突極に巻回された複数の駆動コイル12とを有するステータ10を備え、また、ステータ10と径方向にわずかな間隔をおいて配置されたロータ20を備える周知の構造を有する。他の構造を有する電動モータであってもよく、ステータの径方向外側にロータが配置される電動モータであってもよい。
A
The
本実施形態のモータ制御装置1は、モータ2に3相交流を供給してモータ2を駆動するものであり、モータ2の複数の駆動コイル12にそれぞれ駆動電力線30u、30v、30wを介して接続される駆動回路30を備えている。モータ制御装置1は、駆動回路30から各駆動電力線30u,30v,30wを流れる駆動電流のモニタ値Iu,Iv,Iwに基づき、駆動回路30に例えば駆動信号u,v,wおよびその反転波形を有する反転駆動信号x,y,zを供給し、これによりモータ2の駆動を制御する。本実施形態では、モータ制御装置1は周知のベクトル制御によりモータ2の制御を行うが、他の方法によりモータ2の制御を行ってもよい。
The
駆動回路30は、例えば、直列に接続された2つのトランジスタと各トランジスタに並列に接続されたダイオードとを有する第1の出力回路(図示せず)を有し、第1の出力回路は、各トランジスタに入力される駆動信号uおよび反転駆動信号xに基づき、駆動電流Iduを駆動電力線30uに供給する。
同様に、駆動回路30は、直列に接続された2つのトランジスタと各トランジスタに並列に接続されたダイオードとをそれぞれ有する第2の出力回路(図示せず)および第3の出力回路(図示せず)を有し、各トランジスタに入力される駆動信号v,wおよび反転駆動信号y,zに基づき、駆動電流Idv,Idwを駆動電力線30v,30wに供給する。
The
Similarly, drive
モニタ値Iu,Iv,Iwは、駆動電力線30u,30v,30wにそれぞれ設けられた電流検出器、電流検出端子、電流検出回路等の電流検出手段の出力値を用いてもよく、第1〜第3の出力回路にそれぞれ設けられた電流検出器、電流検出端子、電流検出回路等の電流検出手段の出力値を用いてもよい。電流検出手段の出力値はA/D変換されてモータ制御装置1の後述する第1の変換部41に入力される。電流検出手段の出力値が小さい場合はアンプ等の増幅器で増幅してから第1の変換部41に入力される。
The monitor values Iu, Iv, and Iw may use output values of current detection means such as current detectors, current detection terminals, and current detection circuits provided in the
モータ制御装置1はベクトル制御を行うための周知の構成を有していればよい。例えば、モータ制御装置1は、3相のモニタ値Iu,Iv,Iwをクラーク変換により2相の電流値IαおよびIβに変換する第1の変換部41と、固定座標系の2相の電流値IαおよびIβをパーク変換により回転座標系の2相の電流値IdおよびIqに変換する第2の変換部42とを備える。
The
また、モータ制御装置1は、2相の電流値IdおよびIqそれぞれの理想値に対する差に基づき、例えばPI制御を用いて2相の電圧値Vd,Vqを求め、回転座標系の2相の電圧値Vd,Vqを逆パーク変換により固定座標系の2相の電圧値Vα,Vβに変換する第3の変換部43と、2相の電圧値Vα,Vβを3相に逆変換し、図示しない操作部により入力されるコントロール信号に基づき駆動信号u,v,wおよびその反転波形を有する反転駆動信号x,y,zを得る第4の変換部44とを備えている。モータ制御装置1は、プロセッサ、メモリ、およびメモリに格納されたプログラムを有し、該プログラムに基づきプロセッサが作動し、プロセッサが各変換部41,42,43,44として機能するように構成されている。
Further, the
本実施形態のモータ2は、例えば電動車椅子、椅子付き電動移動手段、立ち乗り電動移動手段等のパーソナルモビリティの駆動手段として用いられるものである。この場合、前記操作部はパーソナルモビリティの操作部であり、前記コントロール信号は、操作部の操作に応じ、パーソナルモビリティに前進、後進、進路変更等を行わせるための信号である。
The
第2の変換部42、第3の変換部43、および第4の変換部44の少なくとも1つでは、ロータ20の回転角度の検出値に基づき前記変換が行われる。例えば、第2の変換部42において、Id=Iα・cosθ+Iβ・sinθ、Iq=−Iα・sinθ+Iβ・cosθの式を用いて変換が行われ、式中のθはロータ20の回転角度の検出値が用いられる。つまり、ロータ20の回転角度の検出値の精度に応じて、駆動信号u,v,wおよびその反転波形を有する反転駆動信号x,y,zが変化することになる。
In at least one of the
本実施形態では、ステータ10に3つのホールセンサ13u,13v,13wが固定され、3つのホールセンサ13u,13v,13wの出力値を用いてロータ20の回転角度が算出される。
In the present embodiment, the three
ここで、各ホールセンサ13u,13v,13wは、ロータ20により生ずる磁界の大きさを検出し、検出結果に応じたアナログ信号を出力するものである。各ホールセンサ13u,13v,13wが等角度間隔で配置され、各ホールセンサ13u,13v,13wのロータ20との距離や軸方向の配置位置が等しいことが理想である。しかし、組み付け誤差等の影響によりこれらが完全に達成されることはない。また、各ホールセンサ13u,13v,13wの性能のばらつきもある。従って、各ホールセンサ13u,13v,13wの出力値にばらつきが生じ、そのばらつきはモータの経年劣化や使用時に加わる大きな慣性力等により変化する場合もあり得る。
Here, each
このため、3つのホールセンサ13u,13v,13wの出力値Hu,Hv,Hwの各々からロータ20の回転角度を算出することも考えられるが、ベクトル制御に用いた際に良い結果が得られない場合がある。
For this reason, it is conceivable to calculate the rotation angle of the
そこで、本実施形態では、モータ制御装置1が回転角度算出部50を有する。具体的には、モータ制御装置1のプロセッサが、メモリに格納されている回転角度取得プログラムに基づき回転角度算出部50として作動し、算出された角度θrを得る。
Therefore, in the present embodiment, the
回転角度算出部50は、各ホールセンサ13u,13v,13wに導線50u,50v,50wを介して接続されている。導線50u,50v,50wにはそれぞれ出力値Hu,Hv,HwをA/D変換するA/Dコンバータ(図示せず)が設けられ、A/D変換された出力値Hu,Hv,Hwが回転角度算出部50に入力されるようになっている。
The rotation
処理の一例として、プロセッサは、出力値Hu,Hv,Hwを逐次受付け(ステップS1−1)、受付けた出力値Hu,Hv,Hwのうち1つ、例えば出力値Huを正弦の値とし、出力値Hu,Hv,Hwのうち他の2つ、例えば出力値Hv,Hwを用い、出力値HvにHwの反数(−Hw)を加えて2で除することにより得られる値を余弦の値とし、前記正弦の値および前記余弦の値を用いて得られる正接の値に対応する角度θrを前記ロータの回転角度として逐次得る(ステップS1−2)。つまり、正接の値(tanθ)=Hu/((Hv+(−Hw))/2)の式を用いて正接の値(tanθ)を求め、例えばarctanθに対応する角度をθrとして用いることができる。 As an example of the processing, the processor sequentially receives the output values Hu, Hv, Hw (step S1-1), sets one of the received output values Hu, Hv, Hw, for example, the output value Hu as a sine value, and outputs Use the other two of the values Hu, Hv, Hw, for example, the output values Hv, Hw, add the reciprocal of Hw (-Hw) to the output value Hv and divide by 2 to obtain the cosine value Then, the angle θr corresponding to the tangent value obtained by using the sine value and the cosine value is sequentially obtained as the rotation angle of the rotor (step S1-2). That is, the tangent value (tan θ) can be determined using the tangent value (tan θ) = Hu / ((Hv + (− Hw)) / 2), and an angle corresponding to arctan θ can be used as θr.
具体例を図2に示す。図2の表は、ロータ20が10°回転する度に逐次検出されるHu、Hv、Hwのデータを記載し、各角度において前記正弦の値(sinθ)、前記余弦の値(cosθ)、前記正接の値(tanθ)、該正接の値に対応する角度θrを求めたものである。なお、図2の表のHu、Hv、Hwのデータは、説明の便宜上、3つのホールセンサ13u,13v,13wから位相だけが互いに120°ずれた同一の出力波形が得られる場合のデータとなっている。また、実際は例えば0.2m秒ごとにHu、Hv、Hwのデータが逐次検出されるので、角度間隔も10°よりもかなり小さくなる。
A specific example is shown in FIG. The table of FIG. 2 describes Hu, Hv, and Hw data that are sequentially detected every time the
出力値Hu、Hv、Hwはそれぞれサイン波形状を有する出力波形となるものである。図2において、前記正弦の値(sinθ)を求めるために使用するHuのサイン波の振幅は2であり、中央値も0である。仮にHuのサイン波の振幅が2ではなく、中央値が0でない場合は、振幅が2に近づき中央値が0に近づくようにHuのデータを加工した後で、前記正弦の値(sinθ)を求めるように構成することができる。 The output values Hu, Hv, and Hw respectively become output waveforms having a sine wave shape. In FIG. 2, the amplitude of the sine wave of Hu used for obtaining the sine value (sin θ) is 2, and the median is also 0. If the amplitude of the Hu sine wave is not 2 and the median is not 0, the Hu data is processed so that the amplitude approaches 2 and the median approaches 0, and then the value of the sine (sin θ) is obtained. It can be configured as desired.
前記余弦の値(cosθ)を求めるために使用するHvおよびHwのデータについても、これらのサイン波の振幅が2に近づき中央値が0に近づくようにデータを加工した後で、前記余弦の値(cosθ)を求めるように構成することもできる。 For the data of Hv and Hw used to determine the cosine value (cos θ), after processing the data so that the amplitude of these sine waves approaches 2 and the median approaches 0, the cosine value It can also be configured to obtain (cos θ).
プロセッサは、出力値Hu,Hv,Hwを用いて得られる角度θrを第2の変換部42、第3の変換部43、第4の変換部44等に逐次送信する(ステップS1−3)。
The processor sequentially transmits the angle θr obtained using the output values Hu, Hv, Hw to the
処理の他の例として、メモリに格納されたキャリブレーションプログラム(キャリブレーション手段)によって前記プロセッサが回転角度算出部50として作動し、キャリブレーションを開始する開始信号を受付けると(ステップS2−1)、キャリブレーション用の所定の回転速度でモータ2を回転させる(ステップS2−2)。この回転速度は、例えばモータ2の回転ムラが目立ちやすい低速に設定されている。また、開始信号は、モータ制御装置1に設けられた操作部(図示せず)に隠れコマンド等のコマンドを入力することによりプロセッサに送信されるように構成してもよく、タブレット端末等の端末からプロセッサに送信されるように構成してもよい。
As another example of the processing, when the processor operates as the rotation
続いて、プロセッサは、モータ2が前記所定の回転速度で回転している状態で、ステップS1−1と同様に出力値Hu,Hv,Hwを受付け(ステップS2−3)、ステップS1−2と同様に前記正弦の値(図2のsinθ)および前記余弦の値(図2のcosθ)を用いて得られる前記正接の値(図2のtanθの値)に対応する角度θrを前記ロータの回転角度として得る(ステップS2−4)。また、角度θrの計算に用いた出力値Hu,Hv,Hwの少なくとも1つを角度θrに対応させてメモリに格納する(ステップS2−5)。つまり、逐次計算された角度θrとその計算に用いた出力値HuおよびHvとを互いに対応させる対応データが作成され、又は、当該対応データから得られる換算式が作成され、メモリに格納される。図2の例では、HuおよびHvのデータと角度θrとを対応させる対応データ又は換算式が作成される。このように出力値Hu,Hv,Hwのうち2つと角度θrとを対応させると、ロータ20の回転方向を誤って角度θrの算出を行うことが無い。一方、出力値Hu,Hv,Hwのうち1つ、例えば出力値Huと角度θrとを対応させた場合でも、出力値Huの直前の出力値や出力値Huの時系列の出力値を用いることにより、ロータ20の回転方向を誤って角度θrの算出を行うことが無い。
Subsequently, the processor receives the output values Hu, Hv, and Hw (step S2-3) as in step S1-1 while the
続いて、モータ2の通常運転の際に、プロセッサは前記回転角度取得プログラムに基づき作動し、出力値HuおよびHvを逐次受付け(ステップS2−6)、前記対応データ又は前記換算式を用いて受付けた出力値HuおよびHvに対応する角度θrを逐次得て、得られた角度θrを第2の変換部42、第3の変換部43、第4の変換部44等に逐次送信する(ステップS2−7)。
Subsequently, during normal operation of the
このように、本実施形態によれば、3つのホールセンサ13u,13v,13wの出力値Hu,Hv,Hwのうち1つを正弦の値とし、他の2つのうち一方に他方の反数を加え2で除すことによって得られる値を余弦の値とし、前記正弦の値および前記余弦の値を用いて得られる正接の値に対応する角度θrがロータ20の回転角度として得られる。このため、3つのホールセンサ13u,13v,13wの各々の出力値Hu,Hv,Hwからロータ20の回転角度を得る場合と比較し、組み立て誤差等により生ずるばらつきの影響を低減することができる。
Thus, according to the present embodiment, one of the output values Hu, Hv, and Hw of the three
本実施形態において、例えば図2の表にあらわれる余弦の値(cosθ)の波形の振幅を正弦の値(sinθ)の振幅の値に合わせる補正を行うことも可能である。
例えば、図2に示すように、正弦の値(sinθ)の出力波形の振幅は、出力の最大値である1.000と出力の最小値である−1.000との差である2となり、余弦の値(cosθ)の出力波形の振幅は、出力の最大値である0.866と出力の最小値である−0.866との差である1.732となる。このため、正弦の値の振幅の最大値である2を余弦の値の振幅の最大値である1.732で除して両者の比率(約1.154倍)を求め、図3の表のように余弦の値(cosθ)を両者の比率(約1.154倍)で補正する。これにより、補正後の余弦の値(cosθ’)を求める。
In the present embodiment, for example, it is also possible to correct the amplitude of the waveform of the cosine value (cos θ) appearing in the table of FIG. 2 to the amplitude value of the sine value (sin θ).
For example, as shown in FIG. 2, the amplitude of the output waveform of the sine value (sin θ) is 2 which is the difference between 1.000 which is the maximum value of the output and −1.000 which is the minimum value of the output. The amplitude of the output waveform of the cosine value (cos θ) is 1.732, which is the difference between the maximum output value of 0.866 and the minimum output value of −0.866. For this reason, the maximum value of the amplitude of the sine value of 2 is divided by the maximum value of the amplitude of the cosine value of 1.732 to obtain the ratio of the two (approximately 1.154 times). Thus, the cosine value (cos θ) is corrected by the ratio of the two (approximately 1.154 times). Thereby, the value of cosine after correction (cos θ ′) is obtained.
そして、求められた余弦の値(cosθ’)を用いて正接の値(tanθ’)および該正接の値に対応する角度θr’を求める。
この場合、正弦の値の出力波形の振幅と余弦の値の出力波形の振幅を合わせることができるので、組み立て誤差等により生ずるばらつきの影響を低減する上で有利である。
Then, using the obtained cosine value (cos θ ′), a tangent value (tan θ ′) and an angle θr ′ corresponding to the tangent value are obtained.
In this case, it is possible to match the amplitude of the output waveform of the sine value and the amplitude of the output waveform of the cosine value, which is advantageous in reducing the influence of variations caused by an assembly error or the like.
上記の例では正弦の値(sinθ)の1周期分の出力波形からその振幅の最大値を求め、余弦の値(cosθ)の1周期分の出力波形からその振幅の最大値を求めるものを示した。これに対し、正弦の値(sinθ)の複数周期分の出力波形にあらわれる最大値および最小値と、余弦の値(cosθ)の複数周期分の出力波形にあらわれる最大値および最小値とを用いて、正弦の値(sinθ)の出力波形の振幅の最大値と余弦の値(cosθ)の出力波形の振幅の最大値を求めることも可能である。その他の周知の方法で正弦の値(sinθ)の出力波形の振幅の最大値と余弦の値(cosθ)の出力波形の振幅の最大値を求めることも可能である。 In the above example, the maximum value of the amplitude is obtained from the output waveform for one cycle of the sine value (sin θ), and the maximum value of the amplitude is obtained from the output waveform for one cycle of the cosine value (cos θ). The In contrast, the maximum value and the minimum value appearing in the output waveform for a plurality of cycles of the sine value (sin θ) and the maximum value and the minimum value appearing in the output waveform for a plurality of cycles of the cosine value (cos θ) are used. It is also possible to find the maximum value of the amplitude of the output waveform of the sine value (sin θ) and the maximum value of the output waveform of the cosine value (cos θ). It is also possible to determine the maximum value of the amplitude of the output waveform of the sine value (sin θ) and the maximum value of the output waveform of the cosine value (cos θ) by other known methods.
また、処理のさらに他の例では、モータ制御装置1のプロセッサがメモリに格納されているキャリブレーションプログラム(キャリブレーション手段)に基づき、所定の開始信号を受付けると(ステップS3−1)、ロータ10をキャリブレーション用の所定の回転速度、例えば低い回転速度で回転させると共に(ステップS3−2)、前述の正弦の値の振幅と余弦の値の振幅との比率を求め(ステップS3−3)、当該比率を正弦の値又は余弦の値の補正用にメモリに保存する(ステップS3−4)。
Further, in still another example of the process, when the processor of the
モータ制御装置1のプロセッサは、ステップS1−2において、正弦の値又は余弦の値をステップS3−4で保存した比率を用いて補正した上で正接の値に対応する角度θrをロータの回転角度として逐次得る。
当該構成により、パーソナルモビリティの製造時、パーソナルモビリティの出荷前、モータ2の交換時、メンテナンスを行った時等に、ロータ20の回転角度を検出する専用の器具を用いることなく、交換後のモータ2について上記の補正を行うことができる。これは、モータ2の交換又はメンテナンスの作業の容易化を図る上で有利である。
In step S1-2, the processor of the
With this configuration, the motor after replacement is used without using a dedicated instrument for detecting the rotation angle of the
なお、前記所定の開始信号は、パーソナルモビリティに設けられた入力部への入力に基づく信号、タブレット等の端末の入力部への入力に基づき当該端末からモータ制御装置1に送信される信号、新しく取付けられたモータ2から自動的にモータ制御装置1に送信される信号等である。
The predetermined start signal is a signal based on an input to an input unit provided in personal mobility, a signal transmitted from the terminal to the
ここで、モータ2がパーソナルモビリティの駆動手段として用いられる場合について説明する。パーソナルモビリティは室内の床の上を低速で移動することが多い。室内の床は平面度が高いため車輪から入力される振動が少なく、室内の音も静かな場合が考えられる。この場合にロータ20の回転角度の検出が不正確であり、ロータ20に回転ムラが生じると、当該回転ムラがパーソナルモビリティの使用者に振動や音として認識され易い。
Here, the case where the
これに対し、本実施形態では、ステップS2−2,S3−2において、キャリブレーション用にモータ2を低速で回転させ、この状態でステップS2−3〜S2−5,S3−3〜S3−4のキャリブレーションを行っている。これは、パーソナルモビリティにおいて使用頻度が高い低速回転時のモータ2の振動や音を低減する上で有利である。なお、本実施形態で言う低速は、パーソナルモビリティにおけるモータ2の最高回転速度の15%以下であることが好ましく、10%以下であることがより好ましい。
In contrast, in this embodiment, in steps S2-2 and S3-2, the
また、本実施形態では、Hu、Hv、Hwの各々の出力波形の中央値が0ではなく、中央値が0から少しずれている場合でも、前記ステップS1−2〜S1−3および前記ステップS2−4〜S2−7の処理を行うことにより、組み立て誤差等により生ずるばらつきの影響が低減されたロータ20の回転角度の算出値を第2の変換部42、第3の変換部43、第4の変換部44等に供給することができる。
Further, in the present embodiment, even if the median value of each of the output waveforms of Hu, Hv, and Hw is not 0 and the median value is slightly deviated from 0, the steps S1-2 to S1-3 and the step S2 are performed. The
また、本実施形態では、キャリブレーション用の専用器具を用いることなく、モータ2の組み立て誤差等により生ずるばらつきの影響を低減することができる。このため、モータ2がパーソナルモビリティに装着されており、モータ2の交換をパーソナルモビリティの使用者が行う場合でも、前述のように、ホールセンサによるロータの回転角度の検出値をモータの制御用に補正(キャリブレーション)することができる。
Further, in the present embodiment, the influence of the variation caused by the assembly error of the
1 モータ制御装置
2 モータ
10 ステータ
12 駆動コイル
13u,13v,13w ホールセンサ
20 ロータ
30 駆動回路
30u,30v,30w 駆動電力線
41 第1の変換部
42 第2の変換部
43 第3の変換部
44 第4の変換部
50u,50v,50w 導線
Hu,Hv,Hw 出力値
DESCRIPTION OF
Claims (4)
前記第1ホールセンサの出力値を正弦の値とし、前記第2ホールセンサの出力値に前記第3ホールセンサの出力値の反数を加え2で除すことによって得られる値を余弦の値とし、前記正弦の値および前記余弦の値を用いて得られる正接の値に対応する角度を前記ロータの回転角度として得るロータ回転角度取得手段を備え、
前記ロータ回転角度取得手段が、前記正弦の値の振幅である第1の振幅と前記余弦の値の振幅である第2の振幅とを一致させるように、前記第1の振幅の最大値と前記第2の振幅の最大値との比率を用いて前記正弦の値又は前記余弦の値を補正した上で、前記正接の値を得るモータ制御装置。 A motor control device that performs motor control using output values from a first hall sensor, a second hall sensor, and a third hall sensor arranged at intervals in the rotation direction of the rotor,
Let the output value of the first Hall sensor be a sine value, and add the reciprocal of the output value of the third Hall sensor to the output value of the second Hall sensor and divide by 2 to obtain the cosine value Rotor rotation angle acquisition means for obtaining, as the rotation angle of the rotor, an angle corresponding to a tangent value obtained by using the sine value and the cosine value;
The maximum value of the first amplitude and the maximum value of the first amplitude so that the rotor rotation angle acquisition means matches the first amplitude, which is the amplitude of the sine value, and the second amplitude, which is the amplitude of the cosine value. A motor control device that obtains the value of the tangent after correcting the value of the sine or the value of the cosine using a ratio with the maximum value of the second amplitude.
前記第1ホールセンサの出力値を正弦の値とし、前記第2ホールセンサの出力値に前記第3ホールセンサの出力値の反数を加え2で除すことによって得られる値を余弦の値とし、前記正弦の値および前記余弦の値を用いて得られる正接の値に対応する角度を前記ロータの回転角度として得るロータ回転角度取得手段と、
所定の開始信号を受付けると、前記ロータを有するモータをその最高回転速度の15%以下で回転させると共に、前記正弦の値の振幅の最大値と前記余弦の値の振幅の最大値との比率を求め、求めた該比率をメモリに格納するキャリブレーション手段とを備え、
前記ロータ回転角度取得手段が、前記メモリに格納される前記比率を用いて前記正弦の値又は前記余弦の値を補正した上で前記正接の値に対応する角度を得るように構成されているモータ制御装置。 A motor control device that performs motor control using output values from a first hall sensor, a second hall sensor, and a third hall sensor arranged at intervals in the rotation direction of the rotor,
Let the output value of the first Hall sensor be a sine value, and add the reciprocal of the output value of the third Hall sensor to the output value of the second Hall sensor and divide by 2 to obtain the cosine value Rotor rotation angle obtaining means for obtaining an angle corresponding to a tangent value obtained by using the sine value and the cosine value as the rotation angle of the rotor;
When the predetermined start signal is received, the motor having the rotor is rotated at 15% or less of its maximum rotational speed, and the ratio of the maximum value of the sine value to the maximum value of the cosine value is calculated. And calibration means for storing the determined ratio in memory.
A motor configured to obtain an angle corresponding to the value of the tangent after correcting the value of the sine or the value of the cosine using the ratio stored in the memory and the rotor rotation angle obtaining means Control device.
前記ロータをキャリブレーション用に回転させている状態で、前記第1ホールセンサの出力値を正弦の値とし、前記第2ホールセンサの出力値に前記第3ホールセンサの出力値の反数を加え2で除すことによって得られる値を余弦の値とし、前記正弦の値および前記余弦の値を用いて得られる正接の値に対応する角度を前記ロータの回転角度として得ると共に、得られた前記回転角度と、前記第1ホールセンサ、前記第2ホールセンサ、および前記第3ホールセンサの少なくとも1つの出力値とを対応付ける対応データ又は換算式をメモリに格納するキャリブレーション手段と、
前記第1ホールセンサ、前記第2ホールセンサ、および前記第3ホールセンサの少なくとも1つの出力値と、前記キャリブレーション手段により前記メモリに格納される前記対応データ又は前記換算式とを用いて、前記ロータの回転角度を求めるロータ回転角度取得手段とを備えるモータ制御装置。 A motor control device that performs motor control using output values from a first hall sensor, a second hall sensor, and a third hall sensor arranged at intervals in the rotation direction of the rotor,
In the state where the rotor is rotated for calibration, the output value of the first Hall sensor is a sine value, and the inverse of the output value of the third Hall sensor is added to the output value of the second Hall sensor. The value obtained by dividing by 2 is taken as the value of cosine, and an angle corresponding to the value of tangent obtained using the value of the sine and the value of the cosine is obtained as the rotation angle of the rotor, and the obtained value Calibration means for storing, in a memory, corresponding data or a conversion equation that associates the rotation angle with at least one output value of the first hall sensor, the second hall sensor, and the third hall sensor;
Using at least one output value of the first hall sensor, the second hall sensor, and the third hall sensor, and the corresponding data or the conversion equation stored in the memory by the calibration unit, And a motor control device for obtaining a rotational angle of the rotor.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018011144A JP2019129655A (en) | 2018-01-26 | 2018-01-26 | Motor controller |
CN201910064089.0A CN110112962A (en) | 2018-01-26 | 2019-01-23 | Control device of electric motor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018011144A JP2019129655A (en) | 2018-01-26 | 2018-01-26 | Motor controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2019129655A true JP2019129655A (en) | 2019-08-01 |
Family
ID=67472485
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2018011144A Pending JP2019129655A (en) | 2018-01-26 | 2018-01-26 | Motor controller |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP2019129655A (en) |
CN (1) | CN110112962A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024075390A1 (en) * | 2022-10-07 | 2024-04-11 | 株式会社デンソー | Rotation angle calculation device, rotation angle calculation system, rotation angle calculation method, and rotation angle calculation program |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014228413A (en) * | 2013-05-23 | 2014-12-08 | 株式会社リコー | Rotation angle detector, image processor and rotation angle detection method |
JP2017198516A (en) * | 2016-04-27 | 2017-11-02 | 株式会社タツノ | Rotation angle detector |
-
2018
- 2018-01-26 JP JP2018011144A patent/JP2019129655A/en active Pending
-
2019
- 2019-01-23 CN CN201910064089.0A patent/CN110112962A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014228413A (en) * | 2013-05-23 | 2014-12-08 | 株式会社リコー | Rotation angle detector, image processor and rotation angle detection method |
JP2017198516A (en) * | 2016-04-27 | 2017-11-02 | 株式会社タツノ | Rotation angle detector |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024075390A1 (en) * | 2022-10-07 | 2024-04-11 | 株式会社デンソー | Rotation angle calculation device, rotation angle calculation system, rotation angle calculation method, and rotation angle calculation program |
Also Published As
Publication number | Publication date |
---|---|
CN110112962A (en) | 2019-08-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10063178B2 (en) | Method and apparatus for synchronizing MDPS motor and motor position sensor | |
US8796974B2 (en) | PMSM initial position detection system and method | |
TW201722060A (en) | Linear hall effect sensors for multi-phase permanent magnet motors with PWM drive | |
JP6124112B2 (en) | AC motor control device and control method | |
US11183955B2 (en) | Method for correcting magnetic field position error in electric motor | |
CN106559017B (en) | Device and method for determining the initial position of a rotor of an electric machine in the stationary state | |
US11448526B2 (en) | Position estimation method, position estimation device, and motor module for estimating position of rotor in motor | |
JP2015211593A (en) | Rotational position detection device, and brushless dc motor sinusoidal wave drive controller employing the rotational position detection device | |
KR101655297B1 (en) | Apparatus for correcting position of linear hole sensor and control method of thereof | |
JP2019129655A (en) | Motor controller | |
JP6552373B2 (en) | Motor controller | |
JP6844617B2 (en) | Motor modules, motor step motion control systems, and motor controls | |
EP3588768B1 (en) | Method for determining the position of a rotor in an electronically commuted motor | |
JP6019397B2 (en) | Motor control device | |
KR20190094510A (en) | Motor electrical angle offset detecting device by sensorless control method | |
JP5115134B2 (en) | Vacuum pump device | |
US10326387B2 (en) | Phase detecting device, motor system, image forming apparatus, conveyance device, and sensor level obtaining method | |
KR102477863B1 (en) | Apparatus and method for controlling motor | |
JP6492917B2 (en) | Angle detection device, motor drive control device, and motor device | |
US10686392B2 (en) | Driving permanent magnet motor based on neutral point voltage | |
JP2007166687A (en) | Motor unit and motor drive control device | |
JP3666324B2 (en) | Synchronous motor phase angle detector | |
JPH10191692A (en) | Motor control device | |
JP6340899B2 (en) | Phase detection device, motor drive control device, and motor device | |
WO2004077656A1 (en) | Device for measuring speed of brushless motor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20200528 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20200728 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20210202 |