JP6973992B2 - Rotation detection device, motor device and rotation detection method - Google Patents

Rotation detection device, motor device and rotation detection method Download PDF

Info

Publication number
JP6973992B2
JP6973992B2 JP2016119533A JP2016119533A JP6973992B2 JP 6973992 B2 JP6973992 B2 JP 6973992B2 JP 2016119533 A JP2016119533 A JP 2016119533A JP 2016119533 A JP2016119533 A JP 2016119533A JP 6973992 B2 JP6973992 B2 JP 6973992B2
Authority
JP
Japan
Prior art keywords
timing
voltage
signal
rotation angle
difference
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.)
Active
Application number
JP2016119533A
Other languages
Japanese (ja)
Other versions
JP2017223562A (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.)
MinebeaMitsumi Inc
Original Assignee
MinebeaMitsumi Inc
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 MinebeaMitsumi Inc filed Critical MinebeaMitsumi Inc
Priority to JP2016119533A priority Critical patent/JP6973992B2/en
Publication of JP2017223562A publication Critical patent/JP2017223562A/en
Application granted granted Critical
Publication of JP6973992B2 publication Critical patent/JP6973992B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Transmission And Conversion Of Sensor Element Output (AREA)
  • Control Of Electric Motors In General (AREA)

Description

本発明は、回転検出装置、モータ装置及び回転検出方法に関する。 The present invention relates to a rotation detection device, a motor device, and a rotation detection method.

従来、光学式エンコーダを用いて、モータの回転角度(回転位置)を検出し、検出した結果を用いて、モータの回転を制御するモータ装置がある。 Conventionally, there is a motor device that detects a rotation angle (rotation position) of a motor by using an optical encoder and controls the rotation of the motor by using the detected result.

光学式エンコーダは、複数のスリットが形成されたホイールを有し、スリットの数が多いほど分解能が高くなる。 The optical encoder has a wheel in which a plurality of slits are formed, and the larger the number of slits, the higher the resolution.

特開2015−90309号公報Japanese Unexamined Patent Publication No. 2015-90309

ここで、分解能を高くするために、ホイールに、より多くのスリットを形成するような改良を行うことが考えられる。より多くのスリットをホイールに形成するためには、1つのスリットのサイズを小さくして、微小のスリットにする必要がある。しかしながら、微小のスリットを多く形成しようとすると、コストが高くなってしまうという問題がある。 Here, in order to increase the resolution, it is conceivable to make improvements such as forming more slits in the wheel. In order to form more slits on the wheel, it is necessary to reduce the size of one slit to make it a minute slit. However, there is a problem that the cost increases when trying to form many minute slits.

本発明は、上記に鑑みてなされたものであって、エンコーダを改良することなく、高い分解能で回転角度を検出することができる回転検出装置、モータ装置及び回転検出方法を提供することを目的とする。 The present invention has been made in view of the above, and an object of the present invention is to provide a rotation detection device, a motor device, and a rotation detection method capable of detecting a rotation angle with high resolution without improving an encoder. do.

上述した課題を解決し、目的を達成するために、本発明の一態様に係る回転検出装置は、回転体の回転角度のうち間欠的な回転角度を検出するエンコーダと、前記エンコーダにより回転角度が検出された第1のタイミングにおける前記回転体の回転に応じた信号の第1の電圧と、当該第1のタイミングよりも後の第2のタイミングであって前記エンコーダにより回転角度が検出された第2のタイミングにおける前記回転体の回転に応じた信号の第2の電圧と、前記第2のタイミングよりも後の第3のタイミングにおける前記回転体の回転に応じた信号の第3の電圧と、前記第1の電圧と前記第2の電圧との差を示す第1の差分と、前記第2の電圧と前記第3の電圧との差を示す第2の差分と、前記第1の差分に対応する第1の回転角度とに基づいて、前記第3のタイミングにおける前記回転体の回転角度を検出する検出部と、を備え、前記検出部は、前記回転体の回転に応じた信号を出力する三相のホール素子の信号のうち、前記第3のタイミングにおいて傾きの絶対値が最も大きいホール信号を選択し、前記第1のタイミングにおける前記選択したホール信号の値を前記第1の電圧とし、前記第2のタイミングにおける前記選択したホール信号の値を前記第2の電圧とし、前記第3のタイミングにおける前記選択したホール信号の値を前記第3の電圧として、前記第3のタイミングにおける前記回転体の回転角度を検出するTo solve the above problems and achieve the object, the rotation detecting device according to one embodiment of the present invention, an encoder for detecting the intermittent rotation angle of the angle of rotation of the rotor, the rotation angle by the front Symbol encoder The first voltage of the signal corresponding to the rotation of the rotating body at the first timing in which is detected, and the rotation angle detected by the encoder at the second timing after the first timing. The second voltage of the signal corresponding to the rotation of the rotating body at the second timing and the third voltage of the signal corresponding to the rotation of the rotating body at the third timing after the second timing. The first difference showing the difference between the first voltage and the second voltage, the second difference showing the difference between the second voltage and the third voltage, and the first difference. The detection unit includes a detection unit that detects the rotation angle of the rotary body at the third timing based on the first rotation angle corresponding to the above, and the detection unit outputs a signal corresponding to the rotation of the rotary body. Among the signals of the three-phase Hall elements to be output, the Hall signal having the largest absolute tilt value at the third timing is selected, and the value of the selected Hall signal at the first timing is the value of the first voltage. The value of the selected Hall signal at the second timing is defined as the second voltage, and the value of the selected Hall signal at the third timing is defined as the third voltage at the third timing. The rotation angle of the rotating body is detected .

本発明の一態様によれば、エンコーダを改良することなく、高い分解能で回転角度を検出することができる。 According to one aspect of the present invention, the rotation angle can be detected with high resolution without improving the encoder.

図1は、実施形態に係るモータ装置の構成の一例を示す図である。FIG. 1 is a diagram showing an example of a configuration of a motor device according to an embodiment. 図2は、高分解能検出処理において用いられる信号の一例を示す図である。FIG. 2 is a diagram showing an example of a signal used in high resolution detection processing. 図3は、実施形態に係る高分解能検出処理の流れの一例を示すフローチャートである。FIG. 3 is a flowchart showing an example of the flow of the high resolution detection process according to the embodiment. 図4は、高分解能検出処理を説明するための図である。FIG. 4 is a diagram for explaining the high resolution detection process. 図5は、高分解能検出処理におけるステップS102の処理を説明するための図である。FIG. 5 is a diagram for explaining the process of step S102 in the high resolution detection process.

以下、実施形態に係る回転検出装置、モータ装置及び回転検出方法について図面を参照して説明する。 Hereinafter, the rotation detection device, the motor device, and the rotation detection method according to the embodiment will be described with reference to the drawings.

(実施形態)
図1は、実施形態に係るモータ装置の構成の一例を示す図である。図1の例に示すように、モータ装置1は、モータ10と、回転検出装置15と、駆動回路16とを含む。
(Embodiment)
FIG. 1 is a diagram showing an example of a configuration of a motor device according to an embodiment. As shown in the example of FIG. 1, the motor device 1 includes a motor 10, a rotation detection device 15, and a drive circuit 16.

モータ10は、事務作業等の業務を自動化、効率化する際に用いられる装置(例えば、コピー機やパソコン等)に組み込まれたり、工場の様々な作業や工程を自動化する際に用いられる機械等に組み込まれたりする。以下、モータ10が、インナーロータ型の三相のブラシレスDC(direct-current)モータである場合について説明するが、モータ10の種類はこれに限られない。モータ10は、駆動回路16からの後述する駆動信号により回転する。 The motor 10 is incorporated into a device (for example, a copier, a personal computer, etc.) used for automating and streamlining office work and the like, and a machine used for automating various work and processes in a factory. It is incorporated in. Hereinafter, the case where the motor 10 is an inner rotor type three-phase brushless DC (direct-current) motor will be described, but the type of the motor 10 is not limited to this. The motor 10 is rotated by a drive signal described later from the drive circuit 16.

モータ10は、回転子10aを含む。モータ10は、回転子10aが回転することにより回転する。回転子10aは、回転体の一例である。 The motor 10 includes a rotor 10a. The motor 10 rotates when the rotor 10a rotates. The rotor 10a is an example of a rotating body.

回転検出装置15は、エンコーダ11と、磁気センサ12a,12b,12cと、オペアンプ(演算増幅器)13a,13b,13cと、マイクロコンピュータ14とを含む。 The rotation detection device 15 includes an encoder 11, magnetic sensors 12a, 12b, 12c, operational amplifiers (arithmetic amplifiers) 13a, 13b, 13c, and a microcomputer 14.

エンコーダ11は、モータ10(回転子10a)の回転角度(回転位置)を検出する。エンコーダ11は、モータ10(回転子10a)の回転に応じた信号を出力する。例えば、エンコーダ11は、モータ10(回転子10a)の回転に応じて、A相からの信号と、B相からの信号とを後述するカウンタ14aに出力する。以下、エンコーダ11が、400P/R(Pulse per Round)の分解能を有する場合について説明するが、エンコーダ11の分解能はこれに限られない。この場合、エンコーダ11は、モータ10(回転子10a)の回転角度のうち、0.9(360/400)度ごとの間欠的な回転角度を検出する。 The encoder 11 detects the rotation angle (rotation position) of the motor 10 (rotor 10a). The encoder 11 outputs a signal corresponding to the rotation of the motor 10 (rotor 10a). For example, the encoder 11 outputs a signal from the A phase and a signal from the B phase to a counter 14a described later according to the rotation of the motor 10 (rotor 10a). Hereinafter, the case where the encoder 11 has a resolution of 400 P / R (Pulse per Round) will be described, but the resolution of the encoder 11 is not limited to this. In this case, the encoder 11 detects an intermittent rotation angle of every 0.9 (360/400) degrees among the rotation angles of the motor 10 (rotor 10a).

磁気センサ12a,12b,12cは、例えば、ホール素子が用いられる。磁気センサ12a,12b,12cは、回転子10aの近傍の所定位置に固定配置される。磁気センサ12a,12b,12cは、回転子10aの磁界に応じて変化するU相、V相、W相の差動信号HU+/HU−,HV+/HV−,HW+/HW−をそれぞれ出力する。なお、U相、V相、W相の差動信号HU+/HU−,HV+/HV−,HW+/HW−は、互いに120度の位相差を有するアナログ信号である。 For the magnetic sensors 12a, 12b, 12c, for example, a Hall element is used. The magnetic sensors 12a, 12b, 12c are fixedly arranged at predetermined positions in the vicinity of the rotor 10a. The magnetic sensors 12a, 12b, and 12c output U-phase, V-phase, and W-phase differential signals HU + / HU−, HV + / HV−, and HW + / HW−, which change according to the magnetic field of the rotor 10a, respectively. The U-phase, V-phase, and W-phase differential signals HU + / HU−, HV + / HV−, and HW + / HW− are analog signals having a phase difference of 120 degrees from each other.

オペアンプ13aは、HU+とHU−の差動信号からA/D(Analog to Digital)コンバータ14bに入力可能なホール信号HUを出力する。オペアンプ13bはHV+とHV−の差動信号からA/Dコンバータ14bに入力可能なホール信号HVを出力する。オペアンプ13cはHW+とHW−の差動信号からA/Dコンバータ14bに入力可能なホール信号HWを出力する。ホール信号HU,HV,HWは、モータ10(回転子10a)の回転に応じた信号である。 The operational amplifier 13a outputs a Hall signal HU that can be input to the A / D (Analog to Digital) converter 14b from the differential signals of HU + and HU−. The operational amplifier 13b outputs a hall signal HV that can be input to the A / D converter 14b from the differential signals of HV + and HV−. The operational amplifier 13c outputs a hall signal HW that can be input to the A / D converter 14b from the differential signals of HW + and HW-. The Hall signals HU, HV, and HW are signals corresponding to the rotation of the motor 10 (rotor 10a).

なお、本実施形態では、マイクロコンピュータ14は、カウンタ14aと、A/Dコンバータ14bと、CPU(Central Processing Unit)14cとを含むが、カウンタ14aと、A/Dコンバータ14bはマイクロコンピュータ14の外部に配置されても良い。 In the present embodiment, the microcomputer 14 includes a counter 14a, an A / D converter 14b, and a CPU (Central Processing Unit) 14c, but the counter 14a and the A / D converter 14b are external to the microcomputer 14. May be placed in.

カウンタ14aは、エンコーダ11から出力されたA相からの信号の立ち上がり位置/立ち下がり位置と、B相からの信号の立ち上がり位置/立ち下がり位置とをカウントすることで、エンコーダ信号を出力する。 The counter 14a outputs an encoder signal by counting the rising / falling position of the signal from the A phase output from the encoder 11 and the rising / falling position of the signal from the B phase.

A/Dコンバータ14bは、オペアンプ13a,13b,13cから出力されたホール信号HU,HV,HWをデジタル信号に変換して出力する。なお、これ以降、実際にはこれらの信号はデジタル数値として処理が行われるが、動作説明の便宜上HU,HV,HWを電圧と表現して説明を進める。 The A / D converter 14b converts the Hall signals HU, HV, and HW output from the operational amplifiers 13a, 13b, and 13c into digital signals and outputs them. From this point onward, these signals are actually processed as digital numerical values, but for convenience of operation explanation, HU, HV, and HW are expressed as voltages to proceed with the explanation.

CPU14cは、外部装置である速度指令信号生成部(図示しない)と接続される。CPU14cは、速度指令信号生成部から入力された速度指令信号により、最終的に駆動制御信号を生成する。速度指令信号は、速度指令信号生成部により生成される信号であり、モータ10の目標回転速度を指定する指令情報である。具体的には、速度指令信号は、パルス数が回転ステップ数となり、単位時間当たりのパルス数が回転速度となるパルス信号である。速度指令信号生成部は、例えば、パルス周波数変調(Pulse Frequency Modulation:PFM)により、目標回転速度に応じた周波数のクロック信号を速度指令信号として生成し、CPU14cに出力する。CPU14cは、例えば、パルス幅変調(Pulse Width Modulation:PWM)により、速度指令信号に対応する回転速度でモータ10を回転させるためのPWM信号を生成する。 The CPU 14c is connected to a speed command signal generation unit (not shown) which is an external device. The CPU 14c finally generates a drive control signal from the speed command signal input from the speed command signal generation unit. The speed command signal is a signal generated by the speed command signal generation unit, and is command information for designating the target rotation speed of the motor 10. Specifically, the speed command signal is a pulse signal in which the number of pulses is the number of rotation steps and the number of pulses per unit time is the rotation speed. The speed command signal generation unit generates, for example, a clock signal having a frequency corresponding to the target rotation speed as a speed command signal by pulse frequency modulation (PFM), and outputs the clock signal to the CPU 14c. The CPU 14c generates a PWM signal for rotating the motor 10 at a rotation speed corresponding to a speed command signal, for example, by pulse width modulation (PWM).

CPU14cは、速度指令信号とともに、カウンタ14aが出力するエンコーダ信号に基づいて、PWM信号を生成する。例えば、CPU14cは、速度指令信号の入力により、モータ10が回転している間、速度指令信号のカウント数と、エンコーダ信号のカウント数とを比較する。カウント数が異なる場合、CPU14cは、カウント数が一致するように、デューティ比を変更したPWM信号を生成する。なお、CPU14cは、モータ10が回転している間、カウンタ14aが出力するエンコーダ信号の代わりに、ホール信号HU,HV,HWを用いて、モータ10の回転速度を維持する制御を行っても良い。 The CPU 14c generates a PWM signal based on the encoder signal output by the counter 14a together with the speed command signal. For example, the CPU 14c compares the count number of the speed command signal with the count number of the encoder signal while the motor 10 is rotating by inputting the speed command signal. When the count numbers are different, the CPU 14c generates a PWM signal in which the duty ratio is changed so that the count numbers match. The CPU 14c may control the rotation speed of the motor 10 by using the hall signals HU, HV, and HW instead of the encoder signal output by the counter 14a while the motor 10 is rotating. ..

CPU14cは、生成したPWM信号による制御に基づいて、後述する駆動回路16のインバータ回路を駆動するための駆動制御信号を生成し、インバータ回路に出力する。駆動制御信号としては、例えば、インバータ回路の各スイッチ素子に対応する6種類のスイッチング信号が出力される。これらの駆動制御信号が出力されることで、それぞれの駆動制御信号に対応するスイッチ素子がオン、オフ動作を行い、モータ10に駆動信号が出力されてモータ10の各相に電力が供給され、モータ10が回転する。 The CPU 14c generates a drive control signal for driving the inverter circuit of the drive circuit 16 described later based on the control by the generated PWM signal, and outputs the drive control signal to the inverter circuit. As the drive control signal, for example, six types of switching signals corresponding to each switch element of the inverter circuit are output. By outputting these drive control signals, the switch elements corresponding to the respective drive control signals operate on and off, the drive signal is output to the motor 10, and power is supplied to each phase of the motor 10. The motor 10 rotates.

また、CPU14cは、ホール信号HU,HV,HWに基づいて、インバータ回路の各スイッチ素子のオン、オフ動作を切り替えるタイミングを調整する。 Further, the CPU 14c adjusts the timing for switching the on / off operation of each switch element of the inverter circuit based on the Hall signals HU, HV, and HW.

駆動回路16は、直流電源(図示しない)に接続され、CPU14cが生成した駆動制御信号により、駆動信号を生成してモータ10に出力する。例えば、駆動回路16は、インバータ回路を含む。インバータ回路は、CPU14cから出力された駆動制御信号に基づいてモータ10に駆動信号を出力し、モータ10が備える3つの電機子コイルに通電する。インバータ回路は、例えば、直流電源の両端に設けられた2つのスイッチ素子の直列回路の対が、3つの電機子コイルの各相(U相、V相、W相)に対してそれぞれ配置されて構成される。2つのスイッチ素子の各対において、スイッチ素子同士の接続点に、モータ10の各相の端子が接続される。 The drive circuit 16 is connected to a DC power supply (not shown), generates a drive signal from the drive control signal generated by the CPU 14c, and outputs the drive signal to the motor 10. For example, the drive circuit 16 includes an inverter circuit. The inverter circuit outputs a drive signal to the motor 10 based on the drive control signal output from the CPU 14c, and energizes the three armature coils included in the motor 10. In the inverter circuit, for example, a pair of a series circuit of two switch elements provided at both ends of a DC power supply is arranged for each phase (U phase, V phase, W phase) of the three armature coils. It is composed. In each pair of the two switch elements, the terminals of each phase of the motor 10 are connected to the connection points between the switch elements.

また、本実施形態に係るCPU14cは、高分解能検出処理を実行することにより、高分解能でモータ10(回転子10a)の回転角度を検出する。 Further, the CPU 14c according to the present embodiment detects the rotation angle of the motor 10 (rotor 10a) with high resolution by executing the high resolution detection process.

図2は、高分解能検出処理において用いられる信号の一例を示す図である。図2の例には、高分解能検出処理において用いられる信号であるエンコーダ11から出力されたA相からの信号21、B相からの信号22、A/Dコンバータ14bから出力されたホール信号HU,HV,HWが示されている。なお、図2の例において、横軸は時間を示し、縦軸は電圧を示す。 FIG. 2 is a diagram showing an example of a signal used in high resolution detection processing. In the example of FIG. 2, the signal 21 from the A phase output from the encoder 11, the signal 22 from the B phase, and the Hall signal HU output from the A / D converter 14b, which are signals used in the high resolution detection process, are shown. HV and HW are shown. In the example of FIG. 2, the horizontal axis represents time and the vertical axis represents voltage.

A相からの信号21とB相からの信号22とは、90度の位相差を有する。A相からの信号21及びB相からの信号22は、立ち上がりエッジ及び立ち下がりエッジを有するパルスが形成される信号である。以下、立ちあがりエッジ及び立ち下がりエッジを区別することなく説明を行う場合には、「立ちあがりエッジ及び立ち下がりエッジ」を、単に「エッジ」と表記する。エンコーダ11が、例えば400P/Rの分解能を有する場合、A相からの信号21とB相からの信号22のエッジ間はモータ10(回転子10a)が0.9(360/400)度回転する事を意味する。すなわち、A相からの信号21及びB相からの信号22は、モータ10(回転子10a)の回転角度が、間欠的な複数の特定の回転角度のうちいずれかの特定の回転角度となる度にエッジを有する信号である。 The signal 21 from the A phase and the signal 22 from the B phase have a phase difference of 90 degrees. The signal 21 from the A phase and the signal 22 from the B phase are signals in which a pulse having a rising edge and a falling edge is formed. Hereinafter, when the description is given without distinguishing between the rising edge and the falling edge, the “rising edge and falling edge” are simply referred to as “edge”. When the encoder 11 has a resolution of, for example, 400 P / R, the motor 10 (rotor 10a) rotates 0.9 (360/400) degrees between the edges of the signal 21 from the A phase and the signal 22 from the B phase. Means things. That is, in the signal 21 from the A phase and the signal 22 from the B phase, each time the rotation angle of the motor 10 (rotor 10a) becomes a specific rotation angle among a plurality of intermittent specific rotation angles. It is a signal having an edge.

ホール信号HU,HV,HWは、回転子10aの磁界に応じて変化する信号である。すなわち、ホール信号HU,HV,HWは、モータ10(回転子10a)の回転に応じた信号である。ホール信号HU,HV,HWは、互いに120度の位相差を有する。 The Hall signals HU, HV, and HW are signals that change according to the magnetic field of the rotor 10a. That is, the Hall signals HU, HV, and HW are signals corresponding to the rotation of the motor 10 (rotor 10a). The Hall signals HU, HV, and HW have a phase difference of 120 degrees from each other.

図3は、実施形態に係る高分解能検出処理の流れの一例を示すフローチャートである。高分解能検出処理は、A相からの信号21及びB相からの信号22のエッジのタイミング以外のタイミング(以下、タイミングT3)で、モータ10(回転子10a)の回転角度を検出する際にCPU14cにより実行される。すなわち、タイミングT3は、エンコーダ11により回転角度が検出されるタイミングとは異なるタイミングである。高分解能検出処理を実行するCPU14cは、検出部の一例であり、タイミングT3における回転角度を検出する。また、タイミングT3は、第3のタイミングの一例である。 FIG. 3 is a flowchart showing an example of the flow of the high resolution detection process according to the embodiment. The high-resolution detection process is performed by the CPU 14c when detecting the rotation angle of the motor 10 (rotor 10a) at a timing other than the edge timing of the signal 21 from the A phase and the signal 22 from the B phase (hereinafter, timing T3). Is executed by. That is, the timing T3 is a timing different from the timing at which the rotation angle is detected by the encoder 11. The CPU 14c that executes the high-resolution detection process is an example of the detection unit, and detects the rotation angle at the timing T3. Further, the timing T3 is an example of the third timing.

図3の例に示すように、CPU14cは、まず、タイミングT3の指定を待つ(ステップS101)。CPU14cは、指定されるまで(ステップS101:No)はA相からの信号21又はB相からの信号22のエッジを待ち(ステップS102)、エッジが発生したら(ステップS102:Yes)、前回のタイミングT2における電圧をタイミングT1における電圧として特定し(ステップS103)、その後、タイミングT2における電圧を特定し(ステップS104)、ステップS102に戻る。ここで、タイミングT2は、タイミングT3よりも時間的に前のタイミングであって、A相からの信号21のエッジ及びB相からの信号22のエッジの複数のタイミングのうち、タイミングT3に時間的に最も近いタイミングである。また、タイミングT1は、タイミングT2よりも時間的に前のタイミングであって、A相からの信号21のエッジ並びにB相からの信号22のエッジの複数のタイミングのうち、タイミングT2に時間的に最も近いタイミングである。CPU14cは、一つのエッジタイミング毎に、この動作をホール信号HU、HV、HWの全てについて行う。また動作から判るようにタイミングT3の指定に先立ちタイミングT2、T1における両方の電圧を特定しておくためには少なくとも2回以上の処理が必要となる。 As shown in the example of FIG. 3, the CPU 14c first waits for the designation of the timing T3 (step S101). The CPU 14c waits for the edge of the signal 21 from the A phase or the signal 22 from the B phase (step S102) until it is specified (step S101: No), and when an edge occurs (step S102: Yes), the previous timing. The voltage at T2 is specified as the voltage at timing T1 (step S103), then the voltage at timing T2 is specified (step S104), and the process returns to step S102. Here, the timing T2 is a timing before the timing T3, and is temporally at the timing T3 among the plurality of timings of the edge of the signal 21 from the A phase and the edge of the signal 22 from the B phase. It is the closest timing to. Further, the timing T1 is a timing before the timing T2, and is temporally at the timing T2 among a plurality of timings of the edge of the signal 21 from the A phase and the edge of the signal 22 from the B phase. The closest timing. The CPU 14c performs this operation for all of the hall signals HU, HV, and HW for each edge timing. Further, as can be seen from the operation, in order to specify both the voltages at the timings T2 and T1 prior to the designation of the timing T3, at least two or more processes are required.

そして、CPU14cは、タイミングT3が指定されたら(ステップS101:Yes)、ホール信号の電圧を特定する(ステップS105)。なお、CPU14cは、この動作をホール信号HU、HV、HWの全てについて行う。その後、CPU14cは、タイミングT2、T1における電圧から、ホール信号HU,HV,HWのうち、傾き(変化の割合)の絶対値が他の部分と比して大きい、好ましくは、傾きの絶対値が最も大きいホール信号を選択する(ステップS106)。図4は、高分解能検出処理を説明するための図である。図4では、タイミングT3までのホール信号HU,HV,HW、A相からの信号21、及び、B相からの信号22が上側に示されている。また、図4には、タイミングT3から微小時間T4だけ前のタイミングから、タイミングT3までの時間の範囲におけるホール信号HU、A相からの信号21及びB相からの信号22の一部を抜粋した拡大図が下側に示されている。例えば、図4においては、CPU14cは、ホール信号HU,HV,HWのそれぞれについて、タイミングT3における傾きの絶対値を算出し、傾きの絶対値が最も大きいホール信号HUを選択する。 Then, when the timing T3 is specified (step S101: Yes), the CPU 14c specifies the voltage of the hall signal (step S105). The CPU 14c performs this operation for all of the hall signals HU, HV, and HW. After that, the CPU 14c has a larger absolute value of the slope (rate of change) of the hall signals HU, HV, and HW from the voltages at the timings T2 and T1, preferably the absolute value of the slope. The largest Hall signal is selected (step S106). FIG. 4 is a diagram for explaining the high resolution detection process. In FIG. 4, the Hall signals HU, HV, HW up to the timing T3, the signal 21 from the A phase, and the signal 22 from the B phase are shown on the upper side. Further, FIG. 4 is an excerpt of a part of the Hall signal HU, the signal 21 from the A phase, and the signal 22 from the B phase in the time range from the timing just before the timing T3 to the timing T3. An enlarged view is shown at the bottom. For example, in FIG. 4, the CPU 14c calculates the absolute value of the slope at the timing T3 for each of the hall signals HU, HV, and HW, and selects the hall signal HU having the largest absolute value of the slope.

図5は、高分解能検出処理におけるステップS106の処理を説明するための図である。例えば、図5の例において、タイミングT3が、時間T11以上時間T12未満の範囲内のタイミングである場合には、CPU14cは、傾きの絶対値が最も大きいホール信号HWを選択する。また、タイミングT3が、時間T12以上時間T13未満の範囲内のタイミングである場合には、CPU14cは、傾きの絶対値が最も大きいホール信号HVを選択する。また、タイミングT3が、時間T13以上時間T14未満の範囲内のタイミングである場合には、CPU14cは、傾きの絶対値が最も大きいホール信号HUを選択する。また、タイミングT3が、時間T14以上時間T15未満の範囲内のタイミングである場合には、CPU14cは、傾きの絶対値が最も大きいホール信号HWを選択する。また、タイミングT3が、時間T15以上時間T16未満の範囲内のタイミングである場合には、CPU14cは、傾きの絶対値が最も大きいホール信号HVを選択する。また、タイミングT3が、時間T16以上時間T17未満の範囲内のタイミングである場合には、CPU14cは、傾きの絶対値が最も大きいホール信号HUを選択する。タイミングT3が上述した時間の範囲以外の他の時間の範囲内のタイミングであっても同様である。 FIG. 5 is a diagram for explaining the process of step S106 in the high resolution detection process. For example, in the example of FIG. 5, when the timing T3 is within the range of the time T11 or more and less than the time T12, the CPU 14c selects the hall signal HW having the largest absolute value of the slope. Further, when the timing T3 is within the range of the time T12 or more and less than the time T13, the CPU 14c selects the Hall signal HV having the largest absolute value of the slope. Further, when the timing T3 is within the range of the time T13 or more and less than the time T14, the CPU 14c selects the Hall signal HU having the largest absolute value of the slope. Further, when the timing T3 is within the range of the time T14 or more and less than the time T15, the CPU 14c selects the hall signal HW having the largest absolute value of the slope. Further, when the timing T3 is within the range of the time T15 or more and less than the time T16, the CPU 14c selects the Hall signal HV having the largest absolute value of the slope. Further, when the timing T3 is within the range of the time T16 or more and less than the time T17, the CPU 14c selects the Hall signal HU having the largest absolute value of the slope. The same applies even if the timing T3 is a timing within a time range other than the time range described above.

すなわち、ステップS106では、CPU14cは、タイミングT3において、信号の形状が最も直線(リニア)に近くなるホール信号を選択する。よって、本実施形態では、CPU14cは、ホール信号HU,HV,HWのうち傾きの絶対値が最も大きいホール信号を選択するという簡易な処理で、タイミングT3において、信号の形状が最も直線に近くなるホール信号を選択することができる。したがって、本実施形態によれば、簡易に、信号の形状が最も直線に近くなるホール信号を選択することができる。 That is, in step S106, the CPU 14c selects a Hall signal whose signal shape is closest to a straight line (linear) at the timing T3. Therefore, in the present embodiment, the CPU 14c is a simple process of selecting the Hall signal having the largest absolute value of the slope among the Hall signals HU, HV, and HW, and the shape of the signal becomes the closest to the straight line at the timing T3. Hall signals can be selected. Therefore, according to the present embodiment, it is possible to easily select a hall signal whose signal shape is closest to a straight line.

また、タイミングT3がどのようなタイミングであっても、先の図5を参照して説明したように、信号の形状が最も直線に近くなるホール信号が存在する。このため、CPU14cは、タイミングT3がどのようなタイミングであっても、信号の形状が最も直線に近くなるホール信号を選択することができる。 Further, regardless of the timing of the timing T3, as described with reference to FIG. 5 above, there is a hall signal whose signal shape is closest to a straight line. Therefore, the CPU 14c can select a hall signal whose signal shape is closest to a straight line regardless of the timing of the timing T3.

なお、図5の例に示すように、結果的に、ステップS106において、CPU14cは、タイミングT3において、ホール信号HU,HV,HWの交点によって定まる範囲R内に含まれるホール信号を選択することとなる。なお、磁気センサ12a,12b,12cの個体差や環境条件などにより、ホール信号HU,HV,HWの波形が変化し、各交点の箇所も変動することがあるため、必ずしも範囲Rは一定とはならない場合も考えられるが、上記の方法により最も直線に近くなるホール信号を随時選択する事が可能となる。 As shown in the example of FIG. 5, as a result, in step S106, the CPU 14c selects a hall signal included in the range R determined by the intersection of the hall signals HU, HV, and HW at the timing T3. Become. Note that the range R is not always constant because the waveforms of the Hall signals HU, HV, and HW may change due to individual differences of the magnetic sensors 12a, 12b, and 12c, environmental conditions, and the location of each intersection. Although it may not be possible, the hall signal closest to the straight line can be selected at any time by the above method.

なお、上述したタイミングT2は、ここではすでに特定されていることになる(ステップS102〜S104)。 The timing T2 described above has already been specified here (steps S102 to S104).

図4は、上述したように、先のステップS106においてCPU14cがタイミングT3においてホール信号HUを選択した場合を示す。例えば、図4における上述した拡大図に示すように、ステップS103〜104において、CPU14cは、タイミングT3よりも時間的に前のタイミングであって、B相からの信号22の立ち下がりエッジのタイミングであるタイミングT2を特定する。タイミングT2は、第2のタイミングの一例であり、エンコーダ11によりモータ10(回転子10a)の回転角度が検出されたタイミングである。 FIG. 4 shows a case where the CPU 14c selects the hall signal HU at the timing T3 in the previous step S106 as described above. For example, as shown in the enlarged view described above in FIG. 4, in steps S103 to 104, the CPU 14c is at a timing before the timing T3, at the timing of the falling edge of the signal 22 from the B phase. Specify a certain timing T2. The timing T2 is an example of the second timing, which is the timing at which the rotation angle of the motor 10 (rotor 10a) is detected by the encoder 11.

また、上述したタイミングT1も、ここではすでに特定されていることになる(ステップS102〜104)。 Further, the timing T1 described above has already been specified here (steps S102 to 104).

例えば、図4における上述した拡大図に示すように、ステップS102〜104において、CPU14cは、タイミングT2よりも時間的に前のタイミングであって、A相からの信号21の立ち下がりエッジのタイミングであるタイミングT1を特定する。タイミングT1は、第1のタイミングの一例であり、エンコーダ11によりモータ10(回転子10a)の回転角度が検出されたタイミングである。 For example, as shown in the enlarged view described above in FIG. 4, in steps S102 to 104, the CPU 14c is at a timing before the timing T2, at the timing of the falling edge of the signal 21 from the A phase. Specify a certain timing T1. The timing T1 is an example of the first timing, which is the timing at which the rotation angle of the motor 10 (rotor 10a) is detected by the encoder 11.

このように、CPU14cは、ステップS105で、選択したホール信号において、タイミングT3における電圧V3を特定し、ステップS102〜104で、タイミングT2における電圧V2と、タイミングT1における電圧V1を特定する。なお、タイミングT1における電圧V1は、第1の値の一例であり、タイミングT2における電圧V2は、第2の値の一例であり、タイミングT3における電圧V3は、第3の値の一例である。 As described above, the CPU 14c specifies the voltage V3 at the timing T3 in the selected Hall signal in step S105, and specifies the voltage V2 at the timing T2 and the voltage V1 at the timing T1 in steps S102 to 104. The voltage V1 at the timing T1 is an example of the first value, the voltage V2 at the timing T2 is an example of the second value, and the voltage V3 at the timing T3 is an example of the third value.

例えば、図4における上述した拡大図に示すように、CPU14cは、選択したホール信号HUにおいて、ステップS105で、タイミングT3における電圧V3を特定し、ステップS102〜104で、タイミングT2における電圧V2と、タイミングT1における電圧V1とを特定する。 For example, as shown in the enlarged view described above in FIG. 4, the CPU 14c identifies the voltage V3 at the timing T3 in step S105 and the voltage V2 at the timing T2 in steps S102 to 104 in the selected Hall signal HU. The voltage V1 at the timing T1 is specified.

そして、CPU14cは、タイミングT1における電圧V1とタイミングT2における電圧V2との差を示す電圧差(以下、第1の差分Vd1と称する)を算出し(ステップS107)、タイミングT2における電圧V2とタイミングT3における電圧V3との差を示す電圧差(以下、第2の差分Vd2と称する)を算出する(ステップS108)。 Then, the CPU 14c calculates a voltage difference (hereinafter referred to as a first difference Vd1) indicating a difference between the voltage V1 at the timing T1 and the voltage V2 at the timing T2 (hereinafter referred to as the first difference Vd1) (step S107), and the voltage V2 and the timing T3 at the timing T2. A voltage difference (hereinafter, referred to as a second difference Vd2) indicating a difference from the voltage V3 in the above is calculated (step S108).

例えば、図4における上述した拡大図の例では、CPU14cは、ステップS107で、(V2−V1)を第1の差分Vd1として算出し、ステップS108で、(V3−V2)を第2の差分Vd2として算出する。 For example, in the example of the above-mentioned enlarged view in FIG. 4, the CPU 14c calculates (V2-V1) as the first difference Vd1 in step S107, and in step S108, (V3-V2) is the second difference Vd2. Calculated as.

すなわち、CPU14cは、A相からの信号21又はB相からの信号22のエッジのタイミングT1における、選択したホール信号(ホール信号HU、HV又はHW)の電圧V1と、タイミングT1よりも後のタイミングであってA相からの信号21又はB相からの信号22のエッジのタイミングであるタイミングT2における選択したホール信号の電圧V2との差を示す第1の差分Vd1を算出する。また、CPU14cは、電圧V2とタイミングT2よりも後のタイミングであってA相からの信号21又はB相からの信号22のエッジのタイミングであるタイミングT3における選択したホール信号の電圧V3との差を示す第2の差分Vd2を算出する。 That is, the CPU 14c has the voltage V1 of the selected Hall signal (Hall signal HU, HV or HW) at the timing T1 of the edge of the signal 21 from the A phase or the signal 22 from the B phase, and the timing after the timing T1. The first difference Vd1 indicating the difference from the voltage V2 of the selected Hall signal at the timing T2, which is the timing of the edge of the signal 21 from the A phase or the signal 22 from the B phase, is calculated. Further, the CPU 14c is the difference between the voltage V2 and the voltage V3 of the selected Hall signal at the timing T3 which is the timing after the timing T2 and is the timing of the edge of the signal 21 from the A phase or the signal 22 from the B phase. The second difference Vd2 indicating the above is calculated.

そして、CPU14cは、第1の差分Vd1を、所定値αで除した、(Vd1/α)を算出する(ステップS109)。所定値αは、回転角度の検出分解能を何倍にするかを示す値であり、ユーザにより設定される。例えば、所定値αが「25」である場合には、高分解能検出処理により、検出される回転角度の分解能が25倍となる。なお、この算出された(Vd1/α)の値が1より小さかった場合は、要求される分解能を満足していないことになるため、分解能を見直すか、A/Dコンバータ14bの性能を再検討すればよい。 Then, the CPU 14c calculates (Vd1 / α) by dividing the first difference Vd1 by a predetermined value α (step S109). The predetermined value α is a value indicating how many times the detection resolution of the rotation angle is to be multiplied, and is set by the user. For example, when the predetermined value α is “25”, the resolution of the rotation angle detected by the high resolution detection process is 25 times higher. If the calculated (Vd1 / α) value is smaller than 1, it means that the required resolution is not satisfied. Therefore, review the resolution or reexamine the performance of the A / D converter 14b. do it.

そして、CPU14cは、第2の差分Vd2が(Vd1/α)の何倍であるのかを算出する(ステップS110)。例えば、CPU14cは、第2の差分Vd2を(Vd1/α)で除して(α・Vd2/Vd1)を算出することにより、第2の差分Vd2が(Vd1/α)の何倍であるのかを算出する。すなわち、第2の差分Vd2は、(Vd1/α)の(α・Vd2/Vd1)倍である。 Then, the CPU 14c calculates how many times the second difference Vd2 is (Vd1 / α) (step S110). For example, the CPU 14c divides the second difference Vd2 by (Vd1 / α) to calculate (α · Vd2 / Vd1), so that the second difference Vd2 is a multiple of (Vd1 / α). Is calculated. That is, the second difference Vd2 is (α · Vd2 / Vd1) times (α · Vd2 / Vd1) times (Vd1 / α).

なお、CPU14cは、(α・Vd2/Vd1)が、自然数にならずに、小数点以下の数値を含む場合には、(α・Vd2/Vd1)の小数第1位を四捨五入した値を用いればよい。以下の説明において、(α・Vd2/Vd1)の小数第1位を四捨五入した値も(α・Vd2/Vd1)と表記する。 If (α ・ Vd2 / Vd1) does not become a natural number and includes a numerical value after the decimal point, the CPU 14c may use a value rounded to the first decimal place of (α ・ Vd2 / Vd1). .. In the following description, the value obtained by rounding off the first decimal place of (α ・ Vd2 / Vd1) is also referred to as (α ・ Vd2 / Vd1).

そして、CPU14cは、下記の式(1)にしたがって、タイミングT3におけるモータ10(回転子10a)の回転角度θT3を算出し(ステップS111)、高分解能検出処理を終了する。 Then, the CPU 14c calculates the rotation angle θ T3 of the motor 10 (rotor 10a) at the timing T3 according to the following equation (1) (step S111), and ends the high resolution detection process.

θT3=θT2+θdiv×(α・Vd2/Vd1) (1) θ T3 = θ T2 + θ div × (α · Vd2 / Vd1) (1)

式(1)におけるθT2について説明する。θT2は、タイミングT2におけるモータ10(回転子10a)の回転角度である。CPU14cは、エンコーダ信号のパルスを計数することによりθT2を算出する。 The θ T2 in the equation (1) will be described. θ T2 is the rotation angle of the motor 10 (rotor 10a) at the timing T2. The CPU 14c calculates θ T2 by counting the pulses of the encoder signal.

また、式(1)におけるθdiv×(α・Vd2/Vd1)の項は、タイミングT2におけるモータ10(回転子10a)の回転角度からタイミングT3における回転角度までの変化量を指す。式(1)におけるθdivは、第1の差分Vd1に対応する回転角度(第1の回転角度)を所定値αで除した回転角度であり、ステップS109で算出された(Vd1/α)に対応する回転角度である。なお、第1の差分Vd1に対応する回転角度とは、タイミングT1におけるモータ10(回転子10a)の回転角度からタイミングT2における回転角度までの変化量を指す。 Further, the term θ div × (α · Vd2 / Vd1) in the equation (1) refers to the amount of change from the rotation angle of the motor 10 (rotor 10a) at the timing T2 to the rotation angle at the timing T3. The θ div in the equation (1) is a rotation angle obtained by dividing the rotation angle (first rotation angle) corresponding to the first difference Vd1 by a predetermined value α, and is calculated in step S109 (Vd1 / α). The corresponding rotation angle. The rotation angle corresponding to the first difference Vd1 refers to the amount of change from the rotation angle of the motor 10 (rotor 10a) at the timing T1 to the rotation angle at the timing T2.

例えば、エンコーダ11が400P/Rの分解能を有し、所定値αが「25」である場合には、0.036(360/(400×25))度が、(Vd1/α)に対応する回転角度であり、θdivである。この場合、式(1)を見れば分かるように、検出可能な回転角度の分解能が0.036度である。一方、エンコーダ11が400P/Rの分解能である場合には、検出可能な回転角度の分解能が0.9(360/400)度である。よって、検出可能な回転角度の分解能が0.9度から0.036度に25倍大きくなる。すなわち、本実施形態に係る回転検出装置15及びモータ装置1によれば、エンコーダ11自体が400P/Rの分解能であっても、400P/Rの25倍の分解能(10000P/R)で回転角度を検出することができる。 For example, when the encoder 11 has a resolution of 400 P / R and the predetermined value α is “25”, 0.036 (360 / (400 × 25)) degrees corresponds to (Vd1 / α). It is a rotation angle and is θ div . In this case, as can be seen from the equation (1), the resolution of the detectable rotation angle is 0.036 degrees. On the other hand, when the encoder 11 has a resolution of 400 P / R, the resolution of the detectable rotation angle is 0.9 (360/400) degrees. Therefore, the resolution of the detectable rotation angle is increased 25 times from 0.9 degrees to 0.036 degrees. That is, according to the rotation detection device 15 and the motor device 1 according to the present embodiment, even if the encoder 11 itself has a resolution of 400 P / R, the rotation angle can be set at 25 times the resolution (10000 P / R) of 400 P / R. Can be detected.

以上のことから、CPU14cは、ステップS102〜104で特定されたタイミングT1における電圧と、タイミングT2における電圧と、ステップS105で特定されたタイミングT3における電圧と、第1の差分Vd1に対応する第1の回転角度とに基づいて、タイミングT3におけるモータ10(回転子10a)の回転角度を検出する。 From the above, the CPU 14c has a first voltage corresponding to the voltage at the timing T1 specified in steps S102 to 104, the voltage at the timing T2, the voltage at the timing T3 specified in the step S105, and the first difference Vd1. The rotation angle of the motor 10 (rotor 10a) at the timing T3 is detected based on the rotation angle of.

また、CPU14cは、第1の差分Vd1と、第2の差分Vd2と、第1の差分Vd1に対応する第1の回転角度とに基づいて、タイミングT3におけるモータ10(回転子10a)の回転角度を検出する。 Further, the CPU 14c has a rotation angle of the motor 10 (rotor 10a) at the timing T3 based on the first difference Vd1, the second difference Vd2, and the first rotation angle corresponding to the first difference Vd1. Is detected.

また、CPU14cは、式(1)を用いて、第1の差分Vd1と第2の差分Vd2との比率に基づいて、第1の差分Vd1に対応する第1の回転角度から第2の差分Vd2に対応する第2の回転角度θdiv×(α・Vd2/Vd1)を算出する。そして、CPU14cは、算出した第2の回転角度θdiv×(α・Vd2/Vd1)とタイミングT2におけるモータ10(回転子10a)の回転角度θT2との和を、タイミングT3における回転角度として検出する。 Further, the CPU 14c uses the equation (1) to obtain a second difference Vd2 from a first rotation angle corresponding to the first difference Vd1 based on the ratio of the first difference Vd1 and the second difference Vd2. The second rotation angle θ div × (α · Vd2 / Vd1) corresponding to the above is calculated. Then, the CPU 14c detects the sum of the calculated second rotation angle θ div × (α · Vd2 / Vd1) and the rotation angle θ T2 of the motor 10 (rotor 10a) at the timing T2 as the rotation angle at the timing T3. do.

以上のことから、本実施形態に係る回転検出装置15及びモータ装置1によれば、エンコーダを改良することなく、高い分解能で回転角度を検出することができる。 From the above, according to the rotation detection device 15 and the motor device 1 according to the present embodiment, the rotation angle can be detected with high resolution without improving the encoder.

また、タイミングT3に最も近い2つのエッジのタイミングの電圧(値)を用いて、回転角度を検出するので、誤差がなく、精度良く回転角度を検出することができる。 Further, since the rotation angle is detected by using the voltage (value) of the timing of the two edges closest to the timing T3, the rotation angle can be detected accurately without any error.

高い分解能で検出された回転角度は、様々な制御に用いられる。例えば、モータ装置1が、モータ10が回転駆動することにより、ボールねじを回転させて直線的に移動させる制御を行う場合には、高い分解能で回転角度を検出することができることから、ボールねじを停止させる所定の位置に、高い精度で停止させることができる。 The rotation angle detected with high resolution is used for various controls. For example, when the motor device 1 controls to rotate and linearly move the ball screw by driving the motor 10 to rotate, the rotation angle can be detected with high resolution. Therefore, the ball screw can be used. It can be stopped with high accuracy at a predetermined position to be stopped.

また、上述した実施形態では、磁気センサ12a,12b,12cからのホール信号HU,HV,HWを用いて高分解能検出処理を行う場合について例示したが、モータ10の回転に伴って波形が変化する信号であれば、どのような信号を用いてもよい。例えば、モータ10の逆起電力の信号を用いて、高分解能検出処理を行ってもよい。 Further, in the above-described embodiment, the case where high-resolution detection processing is performed using the Hall signals HU, HV, and HW from the magnetic sensors 12a, 12b, and 12c is illustrated, but the waveform changes with the rotation of the motor 10. Any signal may be used as long as it is a signal. For example, high-resolution detection processing may be performed using the signal of the back electromotive force of the motor 10.

また、CPU14cは、第1の差分Vd1の値が大きく取れて指定の分解能が確実に満足される条件の場合、下記の式(2)にしたがって、タイミングT3におけるモータ10(回転子10a)の回転角度θT3を算出してもよい。 Further, the CPU 14c rotates the motor 10 (rotor 10a) in the timing T3 according to the following equation (2) under the condition that the value of the first difference Vd1 can be large and the specified resolution is surely satisfied. The angle θ T3 may be calculated.

θT3=θT2+θVd1×(Vd2/Vd1) (2) θ T3 = θ T2 + θ Vd1 × (Vd2 / Vd1) (2)

ここで、式(2)におけるθVd1は、第1の差分Vd1に対応する第1の回転角度である。回転角度θT3を算出するという観点では、式(1)と式(2)は、実質的に同一の式であるが、式(1)は、要求される分解能が考慮された式である。 Here, θ Vd1 in the equation (2) is a first rotation angle corresponding to the first difference Vd1. From the viewpoint of calculating the rotation angle θ T3 , the equation (1) and the equation (2) are substantially the same equation, but the equation (1) is an equation in consideration of the required resolution.

CPU14cは、式(2)にしたがって、第1の差分Vd1と、第2の差分Vd2と、第1の差分Vd1に対応する第1の回転角度θVd1とに基づいて、タイミングT3におけるモータ10(回転子10a)の回転角度を検出する。 According to the equation (2), the CPU 14c is the motor 10 (at the timing T3) based on the first difference Vd1, the second difference Vd2, and the first rotation angle θ Vd1 corresponding to the first difference Vd1. The rotation angle of the rotor 10a) is detected.

また、CPU14cは、式(2)にしたがって、第1の差分Vd1と第2の差分Vd2との比率に基づいて、第1の差分Vd1に対応する第1の回転角度θVd1から第2の差分Vd2に対応する第2の回転角度θVd1×(Vd2/Vd1)を算出する。そして、CPU14cは、算出した第2の回転角度θVd1×(Vd2/Vd1)とタイミングT2におけるモータ10(回転子10a)の回転角度θT2との和を、タイミングT3における回転角度として検出する。 Further, the CPU 14c has a second difference from the first rotation angle θ Vd1 corresponding to the first difference Vd1 based on the ratio of the first difference Vd1 and the second difference Vd2 according to the equation (2). The second rotation angle θ Vd1 × (Vd2 / Vd1) corresponding to Vd2 is calculated. Then, the CPU 14c detects the sum of the calculated second rotation angle θ Vd1 × (Vd2 / Vd1) and the rotation angle θ T2 of the motor 10 (rotor 10a) at the timing T2 as the rotation angle at the timing T3.

以上のことから、式(2)を用いた場合であっても、本実施形態に係る回転検出装置15及びモータ装置1によれば、エンコーダを改良することなく、高い分解能で回転角度を検出することができる。 From the above, even when the equation (2) is used, the rotation detection device 15 and the motor device 1 according to the present embodiment detect the rotation angle with high resolution without improving the encoder. be able to.

ここで、本実施形態に係る回転検出装置15についての時間軸要素の一例について説明する。例えば、A/Dコンバータ14bが、アナログ信号である1つのチャネルのホール信号HU、HV又はHWをデジタル信号に変換する際に1μsの時間がかかり、その変換準備時間に2μsの時間がかかる場合には、変換準備時間を含めると1つのチャネルのホール信号HU、HV又はHWをアナログ信号からデジタル信号に変換する際には3μsの時間がかかる。A/Dコンバータ14bは、3つのチャネルのホール信号HU、HV、HWをアナログ信号からデジタル信号に変換するので、A/Dコンバータ14bの全体の変換時間としては9μs(3(μs)×3)の時間がかかる。 Here, an example of a time axis element for the rotation detection device 15 according to the present embodiment will be described. For example, when the A / D converter 14b takes 1 μs to convert a Hall signal HU, HV, or HW of one channel, which is an analog signal, into a digital signal, and the conversion preparation time takes 2 μs. Including the conversion preparation time, it takes 3 μs to convert the Hall signal HU, HV or HW of one channel from an analog signal to a digital signal. Since the A / D converter 14b converts the Hall signals HU, HV, and HW of the three channels from analog signals to digital signals, the total conversion time of the A / D converter 14b is 9 μs (3 (μs) × 3). It takes time.

そして、分解能を25倍にする場合には、モータ10(回転子10a)が1回転するのに、9(μs)×25×400(パルス)=90msの時間がかかる。そして、処理限界回転数は、(1000/90)×60=666.7min−1となる。よって、上述した各種の条件で動作する回転検出装置15は、約667min−1で利用可能と考えられる。 When the resolution is increased 25 times, it takes 9 (μs) × 25 × 400 (pulse) = 90 ms for the motor 10 (rotor 10a) to make one rotation. The processing limit rotation speed is (1000/90) × 60 = 666.7 min -1 . Therefore, it is considered that the rotation detection device 15 that operates under the various conditions described above can be used at about 667 min-1.

また、本実施形態に係る回転検出装置15についての振幅軸要素の一例について説明する。A/Dコンバータ14bのフルスケール電圧が5000mVであり、フルスケールデータが4095であり、上述した第1の電圧差Vd1が120mVである場合について説明する。ここで、A相からの信号21のエッジ及びB相からの信号22のエッジの複数のエッジについて、時間的に隣接する2つのエッジを1パルスとする。この場合には、1パルス分の電圧が120mVとなる。また、1パルス分のデータは、(120/5000)×4095=98.28となる。 Further, an example of the amplitude axis element of the rotation detection device 15 according to the present embodiment will be described. The case where the full-scale voltage of the A / D converter 14b is 5000 mV, the full-scale data is 4095, and the above-mentioned first voltage difference Vd1 is 120 mV will be described. Here, for a plurality of edges of the signal 21 from the A phase and the edge of the signal 22 from the B phase, two temporally adjacent edges are set as one pulse. In this case, the voltage for one pulse is 120 mV. The data for one pulse is (120/5000) × 4095 = 98.28.

そして、分解能を25倍にする場合には、分解能あたりのデータ値は、98.25/25=3.93となる。よって、3デジット程度の誤差マージンが見込まれる。 When the resolution is increased 25 times, the data value per resolution is 98.25 / 25 = 3.93. Therefore, an error margin of about 3 digits is expected.

なお、上記実施の形態により本発明が限定されるものではない。上述した各構成素を適宜組み合わせて構成したものも本発明に含まれる。また、さらなる効果や変形例は、当業者によって容易に導き出すことができる。よって、本発明のより広範な態様は、上記の実施の形態に限定されるものではなく、様々な変更が可能である。 The present invention is not limited to the above embodiments. The present invention also includes those configured by appropriately combining the above-mentioned constituent elements. Further, further effects and modifications can be easily derived by those skilled in the art. Therefore, the broader aspect of the present invention is not limited to the above-described embodiment, and various modifications can be made.

1 モータ装置
10 モータ
10a 回転子
11 エンコーダ
12a、12b、12c 磁気センサ
13a、13b、13c オペアンプ(演算増幅器)
14 マイクロコンピュータ
14a カウンタ
14b A/Dコンバータ
14c CPU(検出部)
15 回転検出装置
16 駆動回路
1 Motor device 10 Motor 10a Rotor 11 Encoder 12a, 12b, 12c Magnetic sensor 13a, 13b, 13c Operational amplifier (arithmetic amplifier)
14 Microcomputer 14a Counter 14b A / D converter 14c CPU (detector)
15 Rotation detector 16 Drive circuit

Claims (5)

回転体の回転角度のうち間欠的な回転角度を検出するエンコーダと
記エンコーダにより回転角度が検出された第1のタイミングにおける前記回転体の回転に応じた信号の第1の電圧と、当該第1のタイミングよりも後の第2のタイミングであって前記エンコーダにより回転角度が検出された第2のタイミングにおける前記回転体の回転に応じた信号の第2の電圧と、前記第2のタイミングよりも後の第3のタイミングにおける前記回転体の回転に応じた信号の第3の電圧と、前記第1の電圧と前記第2の電圧との差を示す第1の差分と、前記第2の電圧と前記第3の電圧との差を示す第2の差分と、前記第1の差分に対応する第1の回転角度とに基づいて、前記第3のタイミングにおける前記回転体の回転角度を検出する検出部と、を備え
前記検出部は、前記回転体の回転に応じた信号を出力する三相のホール素子の信号のうち、前記第3のタイミングにおいて傾きの絶対値が最も大きいホール信号を選択し、前記第1のタイミングにおける前記選択したホール信号の値を前記第1の電圧とし、前記第2のタイミングにおける前記選択したホール信号の値を前記第2の電圧とし、前記第3のタイミングにおける前記選択したホール信号の値を前記第3の電圧として、前記第3のタイミングにおける前記回転体の回転角度を検出する、
回転検出装置。
An encoder for detecting the intermittent rotation angle of the rotation angle of the rotating body,
A first voltage signal corresponding to the rotation of the rotating body at the first timing rotational angle is detected by the pre-Symbol encoder, by the first of the encoder and a second timing later than the timing The second voltage of the signal corresponding to the rotation of the rotating body at the second timing when the rotation angle is detected, and the signal corresponding to the rotation of the rotating body at the third timing after the second timing. The third voltage, the first difference showing the difference between the first voltage and the second voltage, and the second difference showing the difference between the second voltage and the third voltage. A detection unit that detects the rotation angle of the rotating body at the third timing based on the first rotation angle corresponding to the first difference.
The detection unit selects the Hall signal having the largest absolute value of inclination at the third timing from the signals of the three-phase Hall element that outputs a signal corresponding to the rotation of the rotating body, and the first one. The value of the selected Hall signal at the timing is defined as the first voltage, the value of the selected Hall signal at the second timing is defined as the second voltage, and the value of the selected Hall signal at the third timing is defined as the second voltage. Using the value as the third voltage, the rotation angle of the rotating body at the third timing is detected.
Rotation detector.
前記検出部は、前記第1の差分と前記第2の差分との比率に基づいて、前記第1の回転角度から前記第2の差分に対応する第2の回転角度を算出し、算出した前記第2の回転角度と前記第2のタイミングにおける前記回転体の回転角度との和を、前記第3のタイミングにおける前記回転角度として検出する、請求項1に記載の回転検出装置。 The detection unit calculates and calculates a second rotation angle corresponding to the second difference from the first rotation angle based on the ratio of the first difference to the second difference. The rotation detection device according to claim 1, wherein the sum of the second rotation angle and the rotation angle of the rotating body at the second timing is detected as the rotation angle at the third timing. 前記検出部は、前記第1の差分、前記第2の差分、前記回転体の回転角度の検出分解能の倍率を示す所定値をそれぞれVd1、Vd2、αとしたときに、Vd2が(Vd1/α)の(α×Vd2/Vd1)倍である場合に、前記第3のタイミングにおける前記回転体の回転角度を検出する、
請求項1又は2に記載の回転検出装置。
In the detection unit, Vd2 is (Vd1 / α) when predetermined values indicating the magnification of the detection resolution of the first difference, the second difference, and the rotation angle of the rotating body are Vd1, Vd2, and α, respectively. ) Is (α × Vd2 / Vd1) times, the rotation angle of the rotating body at the third timing is detected.
The rotation detection device according to claim 1 or 2.
請求項1〜のいずれか1つに記載の回転検出装置と、
前記回転体を回転子として備えるモータと、
を含むモータ装置。
The rotation detection device according to any one of claims 1 to 3.
A motor equipped with the rotating body as a rotor and
Motor equipment including.
回転体の回転角度のうち間欠的な回転角度を検出するエンコーダにより回転角度が検出された第1のタイミングにおける前記回転体の回転に応じた信号の第1の電圧と、当該第1のタイミングよりも後の第2のタイミングであって前記エンコーダにより回転角度が検出された第2のタイミングにおける前記信号の第2の電圧と、前記第2のタイミングよりも後の第3のタイミングにおける前記信号の第3の電圧と、前記第1の電圧と前記第2の電圧との差を示す第1の差分と、前記第2の電圧と前記第3の電圧との差を示す第2の差分と、前記第1の差分に対応する第1の回転角度とに基づいて、前記第3のタイミングにおける前記回転体の回転角度を検出する工程を含み
前記工程では、前記回転体の回転に応じた信号を出力する三相のホール素子の信号のうち、前記第3のタイミングにおいて傾きの絶対値が最も大きいホール信号を選択し、前記第1のタイミングにおける前記選択したホール信号の値を前記第1の電圧とし、前記第2のタイミングにおける前記選択したホール信号の値を前記第2の電圧とし、前記第3のタイミングにおける前記選択したホール信号の値を前記第3の電圧として、前記第3のタイミングにおける前記回転体の回転角度を検出する、
回転検出方法。
From the first voltage of the signal corresponding to the rotation of the rotating body at the first timing when the rotation angle is detected by the encoder that detects the intermittent rotation angle among the rotation angles of the rotating body, and the first timing. The second voltage of the signal at the second timing after the second timing and the rotation angle is detected by the encoder, and the signal at the third timing after the second timing. A third voltage, a first difference showing the difference between the first voltage and the second voltage, and a second difference showing the difference between the second voltage and the third voltage. A step of detecting the rotation angle of the rotating body at the third timing based on the first rotation angle corresponding to the first difference is included.
In the step, among the signals of the three-phase Hall element that outputs a signal corresponding to the rotation of the rotating body, the Hall signal having the largest absolute value of inclination at the third timing is selected, and the first timing is described. The value of the selected Hall signal in the above is the first voltage, the value of the selected Hall signal at the second timing is the second voltage, and the value of the selected Hall signal at the third timing. Is the third voltage, and the rotation angle of the rotating body at the third timing is detected.
Rotation detection method.
JP2016119533A 2016-06-16 2016-06-16 Rotation detection device, motor device and rotation detection method Active JP6973992B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016119533A JP6973992B2 (en) 2016-06-16 2016-06-16 Rotation detection device, motor device and rotation detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016119533A JP6973992B2 (en) 2016-06-16 2016-06-16 Rotation detection device, motor device and rotation detection method

Publications (2)

Publication Number Publication Date
JP2017223562A JP2017223562A (en) 2017-12-21
JP6973992B2 true JP6973992B2 (en) 2021-12-01

Family

ID=60686938

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016119533A Active JP6973992B2 (en) 2016-06-16 2016-06-16 Rotation detection device, motor device and rotation detection method

Country Status (1)

Country Link
JP (1) JP6973992B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113551590B (en) * 2021-06-02 2024-04-09 广州南方卫星导航仪器有限公司 Motor rotation angle measuring device and method, storage medium and motor

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62290380A (en) * 1986-06-04 1987-12-17 Toshiba Corp Absolute encoder
JP2749987B2 (en) * 1990-09-21 1998-05-13 キヤノン株式会社 Rotary encoder
JP3008503B2 (en) * 1990-12-28 2000-02-14 ソニー株式会社 Position detection device
JPH04285815A (en) * 1991-03-14 1992-10-09 Mitsubishi Heavy Ind Ltd Position counter circuit of rotary encoder
JPH0835855A (en) * 1994-07-21 1996-02-06 Canon Inc Mr type position detector
JPH08107694A (en) * 1994-10-05 1996-04-23 Toshiba Corp Controller for synchronous motor
JPH10111304A (en) * 1996-10-03 1998-04-28 Mitsubishi Heavy Ind Ltd Rotary angle detecting device
JP2000304507A (en) * 1999-04-21 2000-11-02 Citizen Watch Co Ltd Dimension measuring device using diffracted light interference of diffraction grating
JP2003509999A (en) * 1999-09-17 2003-03-11 デルファイ・テクノロジーズ・インコーポレーテッド Method and apparatus for reliably generating index pulses for an electric power steering system
JP2003289692A (en) * 2002-03-28 2003-10-10 Tokico Ltd Motor
JP2009216590A (en) * 2008-03-11 2009-09-24 Makome Kenkyusho:Kk Absolute value type magnetic scale device
JP5879700B2 (en) * 2011-03-08 2016-03-08 株式会社リコー Position detecting device and motor driving device
JP2015105844A (en) * 2013-11-29 2015-06-08 株式会社リコー Rotation angle detection apparatus, image processing apparatus, and rotation angle detection method
JP6409434B2 (en) * 2014-09-17 2018-10-24 株式会社リコー POSITION INFORMATION OUTPUT DEVICE, POSITION INFORMATION OUTPUT METHOD, MOTOR DRIVE DEVICE, AND IMAGE FORMING DEVICE

Also Published As

Publication number Publication date
JP2017223562A (en) 2017-12-21

Similar Documents

Publication Publication Date Title
KR101426609B1 (en) Motor drive controller and control method
CN107592041A (en) Method and apparatus for synchronous MDPS motors and motor position sensor
US9647586B2 (en) Signal amplifier, phase detector, and motor drive controller
JP6398233B2 (en) Phase detection device, motor drive control device, and motor device
JP6582216B2 (en) Control method for three-phase brushless DC motor and motor control apparatus using the control method
JP6973992B2 (en) Rotation detection device, motor device and rotation detection method
JP6844617B2 (en) Motor modules, motor step motion control systems, and motor controls
US9882242B2 (en) Angle detecting device, motor drive controlling device, motor device and method of controlling an angle detecting device
KR101655297B1 (en) Apparatus for correcting position of linear hole sensor and control method of thereof
JP5854677B2 (en) Motor speed detection device and motor control device
JP2015121519A (en) Angle detector, and motor drive control device
KR20110016573A (en) Rotor position sensor
JP5423343B2 (en) Magnetic pole position estimation device for synchronous motor
JP6119389B2 (en) Rotation angle detection device, image processing device, and rotation angle detection method
JP6492917B2 (en) Angle detection device, motor drive control device, and motor device
JP5853641B2 (en) Line current detection device and power conversion system
CN110895316A (en) Hall sensor circuit, motor control system and Hall element sensing method
JP2007228773A (en) Motor, motor drive unit and motor drive method
JP6340899B2 (en) Phase detection device, motor drive control device, and motor device
JP2001136776A (en) Detection device for magnetic-pole position and drive device for brushless dc motor using the same
JP2006115618A (en) Motor control device
US20130264978A1 (en) Motor position and velocity detecting system
JP2020190499A (en) Encoder device
CN113931858A (en) Motor drive control device and fan unit
JP2021025960A (en) Encoder device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190606

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200422

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200602

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200728

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20201124

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210119

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210427

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210623

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: 20211019

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211104

R150 Certificate of patent or registration of utility model

Ref document number: 6973992

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150