[go: up one dir, main page]

JP2024145335A - Signal conversion method, position detection method, and position detection device - Google Patents

Signal conversion method, position detection method, and position detection device Download PDF

Info

Publication number
JP2024145335A
JP2024145335A JP2023057638A JP2023057638A JP2024145335A JP 2024145335 A JP2024145335 A JP 2024145335A JP 2023057638 A JP2023057638 A JP 2023057638A JP 2023057638 A JP2023057638 A JP 2023057638A JP 2024145335 A JP2024145335 A JP 2024145335A
Authority
JP
Japan
Prior art keywords
sampling
value
rotating body
analog signals
digital signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2023057638A
Other languages
Japanese (ja)
Inventor
大輔 水沼
Daisuke Mizunuma
駿弥 矢沢
Shunya Yazawa
淳 藤田
Atsushi Fujita
翔太 石上
Shota ISHIGAMI
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.)
Nidec Corp
Nidec Instruments Corp
Original Assignee
Nidec Corp
Nidec Instruments Corp
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 Nidec Corp, Nidec Instruments Corp filed Critical Nidec Corp
Priority to JP2023057638A priority Critical patent/JP2024145335A/en
Priority to PCT/JP2023/019991 priority patent/WO2024202082A1/en
Publication of JP2024145335A publication Critical patent/JP2024145335A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D5/00Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
    • G01D5/12Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means
    • G01D5/244Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing characteristics of pulses or pulse trains; generating pulses or pulse trains
    • G01D5/245Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing characteristics of pulses or pulse trains; generating pulses or pulse trains using a variable number of pulses in a train
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P6/00Arrangements for controlling synchronous motors or other dynamo-electric motors using electronic commutation dependent on the rotor position; Electronic commutators therefor
    • H02P6/14Electronic commutators
    • H02P6/16Circuit arrangements for detecting position

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

To provide a signal converting method for converting a signal which can convert a plurality of analog signals to digital signals.SOLUTION: A signal converting method comprises: a first step of sequentially performing a plurality of times of sampling processing of sampling a value of an analog signal at least one time; and a second step, subsequently performed after the first step, of sequentially performing a plurality of times of sampling processing. The plurality of times of sampling processing which are performed in the first step includes at least one time of sampling processing on each of the analog signals. In the second step, the plurality of times of the sampling processing which are performed in the first step are performed in the opposite order to that of the first step.SELECTED DRAWING: Figure 4

Description

本発明は、信号変換方法、位置検出方法、および位置検出装置に関する。 The present invention relates to a signal conversion method, a position detection method, and a position detection device.

従来、複数のホールセンサを用いて、モータのロータなどの回転体の回転位置を検出する方法が知られている(例えば、特許文献1)。 Conventionally, a method is known in which multiple Hall sensors are used to detect the rotational position of a rotating body such as a motor rotor (for example, see Patent Document 1).

特開2019-54656号公報JP 2019-54656 A

上記の方法においては、複数のホールセンサから得られるアナログ信号をデジタル信号に変換し、得られた複数のデジタル信号に基づいて回転体の回転位置を検出する。アナログ信号をデジタル信号に変換する機器として安価な機器を用いる場合などにおいては、複数のアナログ信号を同時に変換することができず、アナログ信号を1つずつしかデジタル信号に変換できない場合がある。この場合、複数のアナログ信号をそれぞれデジタル信号に変換するためには、複数のアナログ信号を順番にデジタル信号に変換していく必要がある。したがって、デジタル信号を取得するタイミングが複数のアナログ信号ごとにずれ、回転体の回転位置の検出精度が低下する問題があった。 In the above method, analog signals obtained from multiple Hall sensors are converted into digital signals, and the rotational position of the rotating body is detected based on the multiple digital signals obtained. In cases where an inexpensive device is used to convert analog signals into digital signals, multiple analog signals cannot be converted simultaneously, and analog signals may only be converted into digital signals one at a time. In such cases, in order to convert each of the multiple analog signals into a digital signal, the multiple analog signals must be converted into digital signals in sequence. Therefore, there is a problem in that the timing of acquiring the digital signal differs for each of the multiple analog signals, reducing the detection accuracy of the rotational position of the rotating body.

本発明は、上記事情に鑑みて、複数のアナログ信号を変換して得られる複数のデジタル信号同士の間にずれが生じることを抑制できる信号変換方法、そのような信号変換方法を用いた位置検出方法、およびそのような信号変換方法を実行可能な位置検出装置を提供することを目的の一つとする。 In view of the above circumstances, one of the objects of the present invention is to provide a signal conversion method capable of suppressing the occurrence of misalignment between multiple digital signals obtained by converting multiple analog signals, a position detection method using such a signal conversion method, and a position detection device capable of executing such a signal conversion method.

本発明の信号変換方法の一つの態様は、複数のアナログ信号のそれぞれをデジタル信号に変換する信号変換方法であって、前記アナログ信号の値を少なくとも1回以上サンプリングするサンプリング処理を複数回、順次行う第1ステップと、前記第1ステップの後に続けて行われ、前記サンプリング処理を複数回、順次行う第2ステップと、を含む。前記第1ステップにおいて行われる複数回の前記サンプリング処理は、前記複数のアナログ信号のそれぞれに対する前記サンプリング処理を少なくとも1回ずつ含む。前記第2ステップにおいては、前記第1ステップにおいて行われる複数回の前記サンプリング処理を前記第1ステップとは逆の順番で行う。 One aspect of the signal conversion method of the present invention is a signal conversion method for converting each of a plurality of analog signals into a digital signal, comprising a first step of sequentially performing a sampling process for sampling the value of the analog signal at least once a plurality of times, and a second step that follows the first step and sequentially performs the sampling process a plurality of times. The multiple sampling processes performed in the first step include the sampling process for each of the plurality of analog signals at least once. In the second step, the multiple sampling processes performed in the first step are performed in the reverse order to that of the first step.

本発明の位置検出方法の一つの態様は、回転体の回転位置を検出する位置検出方法であって、前記回転体の回転位置に応じたアナログ信号を出力可能な複数の回転センサによって、互いに異なる位相を有する複数のアナログ信号を取得することと、前記複数のアナログ信号に基づいて前記回転体の回転位置を検出する検出ステップを所定の周期で行うことと、を含む。前記検出ステップは、前記複数のアナログ信号のそれぞれを上記の信号変換方法によってデジタル信号に変換する変換ステップと、前記変換ステップにおいて得られたデジタル信号に基づいて、前記回転体の回転位置を算出する演算ステップと、を含む。 One aspect of the position detection method of the present invention is a position detection method for detecting the rotational position of a rotating body, which includes acquiring a plurality of analog signals having different phases from each other by a plurality of rotation sensors capable of outputting analog signals according to the rotational position of the rotating body, and performing a detection step of detecting the rotational position of the rotating body based on the plurality of analog signals at a predetermined cycle. The detection step includes a conversion step of converting each of the plurality of analog signals into a digital signal by the above-mentioned signal conversion method, and a calculation step of calculating the rotational position of the rotating body based on the digital signal obtained in the conversion step.

本発明の位置検出装置の一つの態様は、回転体の回転位置を検出する位置検出装置であって、前記回転体の回転位置に応じたアナログ信号であり、かつ、互いに異なる位相を有するアナログ信号を出力可能な複数の回転センサと、前記複数の回転センサから出力された複数のアナログ信号に基づいて前記回転体の回転位置を検出する検出ステップを所定の周期で実行可能な演算部と、を備える。前記検出ステップにおいて前記演算部は、前記複数のアナログ信号のそれぞれをデジタル信号に変換する変換ステップと、前記変換ステップにおいて得られたデジタル信号に基づいて、前記回転体の回転位置を算出する演算ステップと、を実行する。前記変換ステップにおいて前記演算部は、前記アナログ信号の値を少なくとも1回以上サンプリングするサンプリング処理を複数回、順次行う第1ステップと、前記第1ステップの後に続けて行われ、前記サンプリング処理を複数回、順次行う第2ステップと、前記複数のアナログ信号ごとに、前記第1ステップにおいて得られたサンプリングデータと前記第2ステップにおいて得られたサンプリングデータとに基づいてデジタル信号の値を算出する第3ステップと、を実行する。前記第1ステップにおいて行われる複数回の前記サンプリング処理は、前記複数のアナログ信号のそれぞれに対する前記サンプリング処理を少なくとも1回ずつ含む。前記第2ステップにおいて前記演算部は、前記第1ステップにおいて行われる複数回の前記サンプリング処理を前記第1ステップとは逆の順番で行う。 One aspect of the position detection device of the present invention is a position detection device that detects the rotational position of a rotating body, comprising a plurality of rotation sensors capable of outputting analog signals that are analog signals corresponding to the rotational position of the rotating body and have different phases from each other, and a calculation unit capable of executing a detection step at a predetermined cycle to detect the rotational position of the rotating body based on the plurality of analog signals output from the plurality of rotation sensors. In the detection step, the calculation unit executes a conversion step of converting each of the plurality of analog signals into a digital signal, and a calculation step of calculating the rotational position of the rotating body based on the digital signal obtained in the conversion step. In the conversion step, the calculation unit executes a first step of sequentially performing a sampling process for sampling the value of the analog signal at least once or more multiple times, a second step that is performed following the first step and sequentially performs the sampling process multiple times, and a third step of calculating a value of a digital signal for each of the plurality of analog signals based on the sampling data obtained in the first step and the sampling data obtained in the second step. The multiple sampling processes performed in the first step include the sampling process for each of the plurality of analog signals at least once. In the second step, the calculation unit performs the sampling process multiple times in the reverse order to that performed in the first step.

本発明の一つの態様によれば、複数のアナログ信号を変換して得られる複数のデジタル信号同士の間にずれが生じることを抑制できる。 According to one aspect of the present invention, it is possible to suppress the occurrence of discrepancies between multiple digital signals obtained by converting multiple analog signals.

図1は、第1実施形態における位置検出装置を模式的に示す概略構成図である。FIG. 1 is a schematic diagram showing the configuration of a position detection device according to the first embodiment. 図2は、第1実施形態における複数のアナログ信号の一例を示すグラフである。FIG. 2 is a graph showing an example of a plurality of analog signals in the first embodiment. 図3は、第1実施形態における検出ステップを示すフローチャートである。FIG. 3 is a flow chart showing the detection steps in the first embodiment. 図4は、第1実施形態における検出ステップを模式的に示す図である。FIG. 4 is a diagram illustrating a detection step in the first embodiment. 図5は、第1実施形態における第1ステップおよび第2ステップを模式的に示す図である。FIG. 5 is a diagram illustrating a first step and a second step in the first embodiment. 図6は、第2実施形態における検出ステップを示すフローチャートである。FIG. 6 is a flow chart showing the detection steps in the second embodiment. 図7は、第1ステップおよび第2ステップの他の例を模式的に示す図である。FIG. 7 is a diagram illustrating another example of the first step and the second step. 図8は、第1ステップおよび第2ステップのまた他の例を模式的に示す図である。FIG. 8 is a diagram illustrating still another example of the first step and the second step. 図9は、第1ステップおよび第2ステップのさらにまた他の例を模式的に示す図である。FIG. 9 is a diagram illustrating still another example of the first step and the second step.

<第1実施形態>
図1に示す本実施形態の位置検出装置100は、モータ10のロータ20の回転位置を検出する装置である。本実施形態においてモータ10は、3相モータである。ロータ20は、中心軸線J回りに回転可能な回転体である。以下の説明においては、中心軸線Jが延びる軸方向を単に「軸方向」と呼び、中心軸線J回りの周方向を単に「周方向」と呼ぶ場合がある。
First Embodiment
A position detection device 100 of this embodiment shown in Fig. 1 is a device that detects the rotational position of a rotor 20 of a motor 10. In this embodiment, the motor 10 is a three-phase motor. The rotor 20 is a rotating body that can rotate around a central axis J. In the following description, the axial direction in which the central axis J extends may be simply referred to as the "axial direction," and the circumferential direction around the central axis J may be simply referred to as the "circumferential direction."

図1に示すように、ロータ20には、マグネット30が設けられている。マグネット30は、例えば、中心軸線Jを囲む環状である。マグネット30は、中心軸線J回りの周方向に交互に並ぶ磁極部30Nと磁極部30Sとを有する。磁極部30Nは、N極である。磁極部30Sは、S極である。磁極部30Nと磁極部30Sとは、4つずつ設けられている。つまり、本実施形態においてマグネット30は、4つの極対を有する。なお、極対とは、N極とS極とのペアを意味する。マグネット30は、マグネット30の磁束がモータ10における図示しないステータとロータ20との間で流れるロータマグネットであってもよいし、当該ロータマグネットとは別にロータ20に設けられたセンサマグネットであってもよい。 As shown in FIG. 1, the rotor 20 is provided with a magnet 30. The magnet 30 is, for example, annular and surrounds the central axis J. The magnet 30 has magnetic pole portions 30N and 30S arranged alternately in the circumferential direction around the central axis J. The magnetic pole portion 30N is a north pole. The magnetic pole portion 30S is a south pole. Four magnetic pole portions 30N and 30S are provided. That is, in this embodiment, the magnet 30 has four pole pairs. The pole pair means a pair of a north pole and a south pole. The magnet 30 may be a rotor magnet in which the magnetic flux of the magnet 30 flows between the rotor 20 and a stator (not shown) in the motor 10, or may be a sensor magnet provided on the rotor 20 separately from the rotor magnet.

位置検出装置100は、マグネット30と、複数の回転センサ40と、信号処理装置50と、を備える。また、図示は省略するが、位置検出装置100は、マグネット30と軸方向に対向する回路基板を備える。複数の回転センサ40および信号処理装置50は、例えば、当該回路基板に取り付けられている。 The position detection device 100 includes a magnet 30, multiple rotation sensors 40, and a signal processing device 50. Although not shown, the position detection device 100 also includes a circuit board that faces the magnet 30 in the axial direction. The multiple rotation sensors 40 and the signal processing device 50 are attached to the circuit board, for example.

複数の回転センサ40は、回転体であるロータ20の回転位置に応じたアナログ信号HSを出力可能である。複数の回転センサ40から出力されるアナログ信号HSは、互いに異なる位相を有する。本実施形態において複数の回転センサ40は、マグネット30の磁界を検出可能な磁気センサである。そのため、回転センサ40を安価なセンサとしつつ、回転センサ40によってマグネット30の磁界を検出することで回転体であるロータ20の回転位置を容易に検出できる。 The multiple rotation sensors 40 can output an analog signal HS corresponding to the rotation position of the rotor 20, which is a rotating body. The analog signals HS output from the multiple rotation sensors 40 have different phases from each other. In this embodiment, the multiple rotation sensors 40 are magnetic sensors that can detect the magnetic field of the magnet 30. Therefore, while the rotation sensors 40 are inexpensive sensors, the rotation position of the rotor 20, which is a rotating body, can be easily detected by detecting the magnetic field of the magnet 30 using the rotation sensors 40.

回転センサ40は、ロータ20の回転位置、すなわちマグネット30の回転位置に応じて変化する磁界強度を示すアナログ信号HSを出力する。磁気センサである回転センサ40の種類は、アナログ信号HSを出力可能な磁気センサであれば、特に限定されない。回転センサ40は、ホール素子であってもよいし、リニアホールICであってもよいし、磁気抵抗素子であってもよい。本実施形態において回転センサ40は、第1回転センサ41と第2回転センサ42と第3回転センサ43との3つ設けられている。 The rotation sensor 40 outputs an analog signal HS that indicates the magnetic field strength that changes depending on the rotational position of the rotor 20, i.e., the rotational position of the magnet 30. The type of the magnetic sensor, the rotation sensor 40, is not particularly limited as long as it is a magnetic sensor that can output the analog signal HS. The rotation sensor 40 may be a Hall element, a linear Hall IC, or a magnetic resistance element. In this embodiment, three rotation sensors 40 are provided: a first rotation sensor 41, a second rotation sensor 42, and a third rotation sensor 43.

第1回転センサ41と第2回転センサ42と第3回転センサ43とは、周方向に所定の間隔を空けて配置されている。本実施形態において第1回転センサ41と第2回転センサ42と第3回転センサ43とは、周方向に30°ずつ間隔を空けてこの順に配置されている。マグネット30の極対数をPとした場合、各回転センサ40から出力される各アナログ信号HSの電気角1周期は、機械角1周期の1/Pに相当する。本実施形態では、マグネット30の極対数Pが「4」であるため、各回転センサ40から出力される各アナログ信号HSの電気角1周期は、機械角1周期の1/4、すなわち機械角で90°に相当する。本実施形態において周方向に隣り合う回転センサ40から出力されるアナログ信号HS同士は、互いに電気角で120°の位相差を有する。 The first rotation sensor 41, the second rotation sensor 42, and the third rotation sensor 43 are arranged at a predetermined interval in the circumferential direction. In this embodiment, the first rotation sensor 41, the second rotation sensor 42, and the third rotation sensor 43 are arranged in this order at intervals of 30° in the circumferential direction. If the number of pole pairs of the magnet 30 is P, one electrical angle period of each analog signal HS output from each rotation sensor 40 corresponds to 1/P of one mechanical angle period. In this embodiment, since the number of pole pairs P of the magnet 30 is "4", one electrical angle period of each analog signal HS output from each rotation sensor 40 corresponds to 1/4 of one mechanical angle period, that is, 90° in mechanical angle. In this embodiment, the analog signals HS output from adjacent rotation sensors 40 in the circumferential direction have a phase difference of 120° in electrical angle.

第1回転センサ41から出力されるアナログ信号HSは、第1アナログ信号Huである。第2回転センサ42から出力されるアナログ信号HSは、第2アナログ信号Hvである。第3回転センサ43から出力されるアナログ信号HSは、第3アナログ信号Hwである。図2に示すように、第1アナログ信号Hu、第2アナログ信号Hv、および第3アナログ信号Hwは、正弦波である。図2において、横軸はロータ20の回転角度θであり、縦軸は電圧Vである。回転角度θは、機械角である。ロータ20が一定の回転速度で回転している場合、各アナログ信号HSは、横軸を時間として図2に示すグラフと同様に変化する。本実施形態において第2アナログ信号Hvは、第1アナログ信号Huに対して電気角で120°の位相遅れを有する。第3アナログ信号Hwは、第2アナログ信号Hvに対して電気角で120°の位相遅れを有する。図1に示すように、第1アナログ信号Hu、第2アナログ信号Hv、および第3アナログ信号Hwは、信号処理装置50に入力される。 The analog signal HS output from the first rotation sensor 41 is the first analog signal Hu. The analog signal HS output from the second rotation sensor 42 is the second analog signal Hv. The analog signal HS output from the third rotation sensor 43 is the third analog signal Hw. As shown in FIG. 2, the first analog signal Hu, the second analog signal Hv, and the third analog signal Hw are sine waves. In FIG. 2, the horizontal axis is the rotation angle θ of the rotor 20, and the vertical axis is the voltage V. The rotation angle θ is a mechanical angle. When the rotor 20 rotates at a constant rotation speed, each analog signal HS changes in the same manner as the graph shown in FIG. 2 with the horizontal axis being time. In this embodiment, the second analog signal Hv has a phase delay of 120° in electrical angle with respect to the first analog signal Hu. The third analog signal Hw has a phase delay of 120° in electrical angle with respect to the second analog signal Hv. As shown in FIG. 1, the first analog signal Hu, the second analog signal Hv, and the third analog signal Hw are input to the signal processing device 50.

信号処理装置50は、複数の回転センサ40から出力される複数のアナログ信号HSを処理する装置である。本実施形態において信号処理装置50は、第1アナログ信号Hu、第2アナログ信号Hv、および第3アナログ信号Hwに基づいて、回転体であるロータ20の回転角度θを算出する。信号処理装置50は、演算部51と、記憶部52と、を有する。つまり、位置検出装置100は、演算部51と、記憶部52と、を備える。 The signal processing device 50 is a device that processes multiple analog signals HS output from multiple rotation sensors 40. In this embodiment, the signal processing device 50 calculates the rotation angle θ of the rotor 20, which is a rotating body, based on the first analog signal Hu, the second analog signal Hv, and the third analog signal Hw. The signal processing device 50 has a calculation unit 51 and a memory unit 52. In other words, the position detection device 100 has a calculation unit 51 and a memory unit 52.

演算部51は、第1アナログ信号Hu、第2アナログ信号Hv、および第3アナログ信号Hwに基づいて、回転体であるロータ20の回転角度θを算出する部分である。演算部51は、例えばMCU(Microcontroller Unit)などのマイクロプロセッサである。演算部51は、例えばデータバスを介して、記憶部52とデータ通信可能に接続されている。演算部51には、第1アナログ信号Hu、第2アナログ信号Hv、および第3アナログ信号Hwが入力される。演算部51は、複数の回転センサ40から出力された複数のアナログ信号HSに基づいて回転体であるロータ20の回転位置を検出する検出ステップSd1を所定の周期tsで実行可能である。 The calculation unit 51 is a part that calculates the rotation angle θ of the rotor 20, which is a rotating body, based on the first analog signal Hu, the second analog signal Hv, and the third analog signal Hw. The calculation unit 51 is, for example, a microprocessor such as an MCU (Microcontroller Unit). The calculation unit 51 is connected to the storage unit 52 so as to be able to communicate data with it, for example, via a data bus. The calculation unit 51 receives the first analog signal Hu, the second analog signal Hv, and the third analog signal Hw. The calculation unit 51 is capable of executing a detection step Sd1 at a predetermined period ts, which detects the rotation position of the rotor 20, which is a rotating body, based on the multiple analog signals HS output from the multiple rotation sensors 40.

記憶部52は、演算部51に各種処理を実行させるのに必要なプログラム、各種の値、および学習データなどを記憶する不揮発性メモリと、演算部51が各種処理を実行する際にデータの一時保存先として使用される揮発性メモリと、を含む。不揮発性メモリは、例えばEEPROM(Electrically Erasable Programmable Read-Only Memory)、またはフラッシュメモリなどである。揮発性メモリは、例えばRAM(Random Access Memory)などである。 The storage unit 52 includes a non-volatile memory that stores programs, various values, learning data, and the like required for the calculation unit 51 to execute various processes, and a volatile memory that is used as a temporary storage destination for data when the calculation unit 51 executes various processes. The non-volatile memory is, for example, an EEPROM (Electrically Erasable Programmable Read-Only Memory) or a flash memory. The volatile memory is, for example, a RAM (Random Access Memory).

本実施形態において位置検出装置100は、複数の回転センサ40によって複数のアナログ信号HSとして第1アナログ信号Hu、第2アナログ信号Hv、および第3アナログ信号Hwを取得し、演算部51において取得した複数のアナログ信号HSを用いて検出ステップSd1を所定の周期tsで実行することによって、回転体であるロータ20の回転位置を回転角度θとして所定の周期tsで検出する。本実施形態において、回転体であるロータ20の回転位置を検出する位置検出方法は、位置検出装置100を用いて行われる方法である。本実施形態の位置検出方法は、ロータ20の回転位置に応じたアナログ信号HSを出力可能な複数の回転センサ40によって、互いに異なる位相を有する複数のアナログ信号HSを取得することと、複数のアナログ信号HSに基づいてロータ20の回転位置を検出する検出ステップSd1を所定の周期tsで行うことと、を含む。一例として、周期tsは、5マイクロ秒(μs)以上、100マイクロ秒(μs)以下程度である。 In this embodiment, the position detection device 100 obtains a first analog signal Hu, a second analog signal Hv, and a third analog signal Hw as a plurality of analog signals HS by a plurality of rotation sensors 40, and detects the rotational position of the rotor 20, which is a rotating body, as a rotation angle θ at a predetermined period ts by performing a detection step Sd1 at a predetermined period ts using the plurality of analog signals HS obtained by the calculation unit 51. In this embodiment, a position detection method for detecting the rotational position of the rotor 20, which is a rotating body, is a method performed using the position detection device 100. The position detection method of this embodiment includes obtaining a plurality of analog signals HS having different phases from each other by a plurality of rotation sensors 40 capable of outputting an analog signal HS according to the rotational position of the rotor 20, and performing a detection step Sd1 at a predetermined period ts to detect the rotational position of the rotor 20 based on the plurality of analog signals HS. As an example, the period ts is about 5 microseconds (μs) or more and 100 microseconds (μs) or less.

本実施形態において演算部51は、図3のフローチャートに沿って検出ステップSd1を実行する。図3に示すように、検出ステップSd1において演算部51は、変換ステップScvを実行する。つまり、検出ステップSd1は、変換ステップScvを含む。変換ステップScvは、複数のアナログ信号HSのそれぞれを本実施形態の信号変換方法によってデジタル信号に変換するステップである。言い換えれば、変換ステップScvは、A/D変換を行うステップである。 In this embodiment, the calculation unit 51 executes the detection step Sd1 in accordance with the flowchart of FIG. 3. As shown in FIG. 3, in the detection step Sd1, the calculation unit 51 executes the conversion step Scv. That is, the detection step Sd1 includes the conversion step Scv. The conversion step Scv is a step of converting each of the multiple analog signals HS into a digital signal by the signal conversion method of this embodiment. In other words, the conversion step Scv is a step of performing A/D conversion.

本実施形態において演算部51は、アナログ信号HSを1つずつしかデジタル信号に変換できない。そのため、演算部51に同時に複数のアナログ信号HSをデジタル信号に変換できる性能を持たせる場合に比べて、演算部51を構成するマイクロプロセッサを安価にすることができる。これにより、位置検出装置100を製造する製造コストを低減できる。演算部51が実行可能なA/D変換のサンプリングレートは、例えば、数百kサンプル/秒(sps)程度であってもよいし、数千kサンプル/秒(sps)程度であってもよい。演算部51が実行可能なA/D変換のサンプリングレートは、例えば、100kサンプル/秒(sps)以上、10000kサンプル/秒(sps)以下程度である。演算部51が実行可能なA/D変換のサンプリングレートは、特に限定されない。 In this embodiment, the calculation unit 51 can only convert analog signals HS into digital signals one at a time. Therefore, the microprocessor constituting the calculation unit 51 can be made cheaper than when the calculation unit 51 is provided with the ability to convert multiple analog signals HS into digital signals simultaneously. This reduces the manufacturing cost of the position detection device 100. The sampling rate of the A/D conversion that the calculation unit 51 can perform may be, for example, about several hundred k samples/second (sps) or about several thousand k samples/second (sps). The sampling rate of the A/D conversion that the calculation unit 51 can perform is, for example, about 100 k samples/second (sps) or more and 10,000 k samples/second (sps) or less. The sampling rate of the A/D conversion that the calculation unit 51 can perform is not particularly limited.

変換ステップScvにおいて演算部51は、第1ステップS1aと、第2ステップS2aと、第3ステップS3aと、を実行する。つまり、変換ステップScvは、第1ステップS1aと、第2ステップS2aと、第3ステップS3aと、を含む。第1ステップS1aと第2ステップS2aと第3ステップS3aとは、この順で実行される。 In the conversion step Scv, the calculation unit 51 executes a first step S1a, a second step S2a, and a third step S3a. That is, the conversion step Scv includes a first step S1a, a second step S2a, and a third step S3a. The first step S1a, the second step S2a, and the third step S3a are executed in this order.

第1ステップS1aは、サンプリング処理Spを複数回、順次行うステップである。サンプリング処理Spは、アナログ信号HSの値を少なくとも1回以上サンプリングする処理である。サンプリング処理Spは、例えば、アナログ信号HSの値を8回サンプリングする。なお、サンプリング処理Spにおいて行われるサンプリングの回数は、1回以上であれば特に限定されない。図4に示すように、本実施形態の第1ステップS1aでは、サンプリング処理Spが3回実行される。本実施形態のサンプリング処理Spにおいて演算部51は、アナログ信号HSを複数回サンプリングして得られた値を足し合わせた合計値を、サンプリングデータとして取得する。なお、図4において横軸は、時間tである。 The first step S1a is a step of sequentially performing the sampling process Sp multiple times. The sampling process Sp is a process of sampling the value of the analog signal HS at least once. For example, the sampling process Sp samples the value of the analog signal HS eight times. The number of samplings performed in the sampling process Sp is not particularly limited as long as it is one or more times. As shown in FIG. 4, in the first step S1a of this embodiment, the sampling process Sp is performed three times. In the sampling process Sp of this embodiment, the calculation unit 51 acquires, as the sampling data, a total value obtained by adding up the values obtained by sampling the analog signal HS multiple times. In FIG. 4, the horizontal axis represents time t.

第1ステップS1aにおいて行われる複数回のサンプリング処理Spは、複数の回転センサ40からそれぞれ出力される複数のアナログ信号HSのそれぞれに対するサンプリング処理Spを少なくとも1回ずつ含む。本実施形態では、第1ステップS1aにおいて行われる複数回のサンプリング処理Spは、複数の回転センサ40からそれぞれ出力される複数のアナログ信号HSのそれぞれに対するサンプリング処理Spを同数回ずつ含む。第1ステップS1aにおいて行われる複数回のサンプリング処理Spは、第1アナログ信号Huに対して行われる第1サンプリング処理Usと、第2アナログ信号Hvに対して行われる第2サンプリング処理Vsと、第3アナログ信号Hwに対して行われる第3サンプリング処理Wsと、を1回ずつ含む。本実施形態の第1ステップS1aにおいては、第1サンプリング処理Usと第2サンプリング処理Vsと第3サンプリング処理Wsとが、この順で連続して実行される。 The multiple sampling processes Sp performed in the first step S1a include at least one sampling process Sp for each of the multiple analog signals HS output from the multiple rotation sensors 40. In this embodiment, the multiple sampling processes Sp performed in the first step S1a include the same number of sampling processes Sp for each of the multiple analog signals HS output from the multiple rotation sensors 40. The multiple sampling processes Sp performed in the first step S1a include one each of the first sampling process Us performed on the first analog signal Hu, the second sampling process Vs performed on the second analog signal Hv, and the third sampling process Ws performed on the third analog signal Hw. In the first step S1a of this embodiment, the first sampling process Us, the second sampling process Vs, and the third sampling process Ws are performed consecutively in this order.

第2ステップS2aは、第1ステップS1aの後に続けて行われ、サンプリング処理Spを複数回、順次行うステップである。本実施形態の第2ステップS2aでは、サンプリング処理Spが3回実行される。第2ステップS2aにおいて行われる複数回のサンプリング処理Spは、複数の回転センサ40からそれぞれ出力される複数のアナログ信号HSのそれぞれに対するサンプリング処理Spを少なくとも1回ずつ含む。本実施形態では、第2ステップS2aにおいて行われる複数回のサンプリング処理Spは、複数の回転センサ40からそれぞれ出力される複数のアナログ信号HSのそれぞれに対するサンプリング処理Spを同数回ずつ含む。本実施形態において第2ステップS2aにおいて行われる複数回のサンプリング処理Spは、第1アナログ信号Huに対して行われる第1サンプリング処理Usと、第2アナログ信号Hvに対して行われる第2サンプリング処理Vsと、第3アナログ信号Hwに対して行われる第3サンプリング処理Wsと、を1回ずつ含む。つまり、第2ステップS2aにおいて行われる複数回のサンプリング処理Spは、第1ステップS1aにおいて行われる複数回のサンプリング処理Spと同様である。 The second step S2a is performed following the first step S1a, and is a step in which the sampling process Sp is performed multiple times in sequence. In the second step S2a of this embodiment, the sampling process Sp is performed three times. The multiple sampling processes Sp performed in the second step S2a include at least one sampling process Sp for each of the multiple analog signals HS output from the multiple rotation sensors 40. In this embodiment, the multiple sampling processes Sp performed in the second step S2a include the same number of sampling processes Sp for each of the multiple analog signals HS output from the multiple rotation sensors 40. In this embodiment, the multiple sampling processes Sp performed in the second step S2a include one each of the first sampling process Us performed on the first analog signal Hu, the second sampling process Vs performed on the second analog signal Hv, and the third sampling process Ws performed on the third analog signal Hw. In other words, the multiple sampling processes Sp performed in the second step S2a are the same as the multiple sampling processes Sp performed in the first step S1a.

第2ステップS2aにおいて行われる複数回のサンプリング処理Spは、第1ステップS1aにおいて行われる複数回のサンプリング処理Spに対して、行われる順番が異なる。本実施形態の第2ステップS2aにおいては、第3サンプリング処理Wsと第2サンプリング処理Vsと第1サンプリング処理Usとが、この順で連続して実行される。つまり、第2ステップS2aにおいて演算部51は、第1ステップS1aにおいて行われる複数回のサンプリング処理Spを第1ステップS1aとは逆の順番で行う。 The multiple sampling processes Sp performed in the second step S2a are performed in a different order from the multiple sampling processes Sp performed in the first step S1a. In the second step S2a of this embodiment, the third sampling process Ws, the second sampling process Vs, and the first sampling process Us are executed consecutively in this order. That is, in the second step S2a, the calculation unit 51 performs the multiple sampling processes Sp performed in the first step S1a in the reverse order to the first step S1a.

第1ステップS1aのサンプリング処理Spおよび第2ステップS2aのサンプリング処理Spにおいてそれぞれ得られるサンプリングデータは、各サンプリングデータの相対的な比較において、各サンプリング処理Spが開始されてから終了するまでの間の中心となる時刻において取得された値とみなすことができる。これは、図5に示すように、各検出ステップSd1が実行される十分に短い時間の中では、各アナログ信号HSの時間tに対する変化を線形で近似できるためである。図5における上下の各グラフにおいて、横軸は時間tである。図5における上のグラフにおいて、縦軸は電圧Vである。なお、以下の説明においては、各サンプリング処理Spが開始されてから終了するまでの間の中心となる時刻を、各サンプリング処理Spの中心時刻と呼ぶ場合がある。 The sampling data obtained in the first step S1a sampling process Sp and the second step S2a sampling process Sp can be regarded as values obtained at the central time between the start and end of each sampling process Sp in a relative comparison of each sampling data. This is because, as shown in FIG. 5, within the sufficiently short time in which each detection step Sd1 is executed, the change in each analog signal HS with respect to time t can be linearly approximated. In the upper and lower graphs in FIG. 5, the horizontal axis is time t. In the upper graph in FIG. 5, the vertical axis is voltage V. In the following description, the central time between the start and end of each sampling process Sp may be referred to as the central time of each sampling process Sp.

例えば、第1アナログ信号Huが時間とともに線形に変化する信号に近似できる場合に、第1サンプリング処理Usにおいて一定間隔で複数回のサンプリングを行う場合、第1サンプリング処理Usの中心時刻における第1アナログ信号Huの値は、複数回のサンプリングで得られた値を全て足し合わせた値を、第1サンプリング処理Usにおいて行われるサンプリングの回数で割った平均値と同等の値とみなすことができる。これは、第2サンプリング処理Vsおよび第3サンプリング処理Wsについても同様である。 For example, if the first analog signal Hu can be approximated as a signal that changes linearly over time, and multiple samplings are performed at regular intervals in the first sampling process Us, the value of the first analog signal Hu at the center time of the first sampling process Us can be considered to be equivalent to the average value obtained by adding up all the values obtained from the multiple samplings and dividing the sum by the number of samplings performed in the first sampling process Us. The same is true for the second sampling process Vs and the third sampling process Ws.

ここで、第1サンプリング処理Usにおいて行われるサンプリングの回数と、第2サンプリング処理Vsにおいて行われるサンプリングの回数と、第3サンプリング処理Wsにおいて行われるサンプリングの回数とは、互いに同じである。そのため、各サンプリング処理Spにおいて複数回のサンプリングで得られたデータを合計した値同士の比は、各サンプリング処理Spの中心時刻において各アナログ信号HSから得られる値同士の比と同じである。したがって、本実施形態のように各サンプリング処理Spにおいて、複数回のサンプリングによって得られた値の合計値をサンプリングデータとして取得し、当該サンプリングデータを各アナログ信号HS同士で比較する上では、各サンプリングデータを各サンプリング処理Spの中心時刻において取得された値として扱うことができる。 Here, the number of samplings performed in the first sampling process Us, the number of samplings performed in the second sampling process Vs, and the number of samplings performed in the third sampling process Ws are the same. Therefore, the ratio between the values obtained by summing up the data obtained by multiple samplings in each sampling process Sp is the same as the ratio between the values obtained from each analog signal HS at the center time of each sampling process Sp. Therefore, as in this embodiment, in each sampling process Sp, the sum of the values obtained by multiple samplings is obtained as sampling data, and when comparing the sampling data between each analog signal HS, each sampling data can be treated as a value obtained at the center time of each sampling process Sp.

図5においては、第1ステップS1aの第1サンプリング処理Usの中心時刻における第1アナログ信号Huの値を、PU1で示している。第1ステップS1aの第2サンプリング処理Vsの中心時刻における第2アナログ信号Hvの値を、PV1で示している。第1ステップS1aの第3サンプリング処理Wsの中心時刻における第3アナログ信号Hwの値を、PW1で示している。第2ステップS2aの第1サンプリング処理Usの中心時刻における第1アナログ信号Huの値を、PU2で示している。第2ステップS2aの第2サンプリング処理Vsの中心時刻における第2アナログ信号Hvの値を、PV2で示している。第2ステップS2aの第3サンプリング処理Wsの中心時刻における第3アナログ信号Hwの値を、PW2で示している。本実施形態において各値PU1,PV1,PW1,PU2,PV2,PW2同士の比は、各サンプリング処理Spにおいて得られる各サンプリングデータ、すなわち各サンプリング処理Spにおいて複数のサンプリングによって得られた値を足し合わせた合計値同士の比と同等の値とみなすことができる。 In FIG. 5, the value of the first analog signal Hu at the center time of the first sampling process Us in the first step S1a is indicated by PU1. The value of the second analog signal Hv at the center time of the second sampling process Vs in the first step S1a is indicated by PV1. The value of the third analog signal Hw at the center time of the third sampling process Ws in the first step S1a is indicated by PW1. The value of the first analog signal Hu at the center time of the first sampling process Us in the second step S2a is indicated by PU2. The value of the second analog signal Hv at the center time of the second sampling process Vs in the second step S2a is indicated by PV2. The value of the third analog signal Hw at the center time of the third sampling process Ws in the second step S2a is indicated by PW2. In this embodiment, the ratio between the values PU1, PV1, PW1, PU2, PV2, and PW2 can be considered to be equivalent to the ratio between the total values of each sampling data obtained in each sampling process Sp, that is, the sum of the values obtained by multiple sampling in each sampling process Sp.

第3ステップS3aは、複数のアナログ信号HSごとに、第1ステップS1aにおいて得られたサンプリングデータと第2ステップS2aにおいて得られたサンプリングデータとに基づいてデジタル信号の値を算出するステップである。本実施形態の第3ステップS3aにおいて演算部51は、複数のアナログ信号HSごとに、第1ステップS1aにおいて得られたサンプリングデータと第2ステップS2aにおいて得られたサンプリングデータとを足し合わせる。つまり、本実施形態において第3ステップS3aは、複数のアナログ信号HSごとに、第1ステップS1aにおいて得られたサンプリングデータと第2ステップS2aにおいて得られたサンプリングデータとを足し合わせることを含む。 The third step S3a is a step of calculating the value of a digital signal based on the sampling data obtained in the first step S1a and the sampling data obtained in the second step S2a for each of the multiple analog signals HS. In the third step S3a of this embodiment, the calculation unit 51 adds up the sampling data obtained in the first step S1a and the sampling data obtained in the second step S2a for each of the multiple analog signals HS. In other words, in this embodiment, the third step S3a includes adding up the sampling data obtained in the first step S1a and the sampling data obtained in the second step S2a for each of the multiple analog signals HS.

第3ステップS3aにおいて演算部51は、第1ステップS1aの第1サンプリング処理Usにおいて第1アナログ信号Huから得られたサンプリングデータと第2ステップS2aの第1サンプリング処理Usにおいて第1アナログ信号Huから得られたサンプリングデータとを足し合わせた値を、第1アナログ信号Huを変換したデジタル信号の値として算出する。 In the third step S3a, the calculation unit 51 calculates the sum of the sampling data obtained from the first analog signal Hu in the first sampling process Us in the first step S1a and the sampling data obtained from the first analog signal Hu in the first sampling process Us in the second step S2a as the value of the digital signal converted from the first analog signal Hu.

第3ステップS3aにおいて演算部51は、第1ステップS1aの第2サンプリング処理Vsにおいて第2アナログ信号Hvから得られたサンプリングデータと第2ステップS2aの第2サンプリング処理Vsにおいて第2アナログ信号Hvから得られたサンプリングデータとを足し合わせた値を、第2アナログ信号Hvを変換したデジタル信号の値として算出する。 In the third step S3a, the calculation unit 51 calculates the sum of the sampling data obtained from the second analog signal Hv in the second sampling process Vs in the first step S1a and the sampling data obtained from the second analog signal Hv in the second sampling process Vs in the second step S2a as the value of the digital signal converted from the second analog signal Hv.

第3ステップS3aにおいて演算部51は、第1ステップS1aの第3サンプリング処理Wsにおいて第3アナログ信号Hwから得られたサンプリングデータと第2ステップS2aの第3サンプリング処理Wsにおいて第3アナログ信号Hwから得られたサンプリングデータとを足し合わせた値を、第3アナログ信号Hwを変換したデジタル信号の値として算出する。 In the third step S3a, the calculation unit 51 calculates the sum of the sampling data obtained from the third analog signal Hw in the third sampling process Ws in the first step S1a and the sampling data obtained from the third analog signal Hw in the third sampling process Ws in the second step S2a as the value of the digital signal converted from the third analog signal Hw.

第3ステップS3aおいてそれぞれ得られるデジタル信号の値は、各アナログ信号HSから得られるデジタル信号の値同士の相対的な比較において、第1ステップS1aと第2ステップS2aとが切り替わるタイミングTaにおいて取得された値とみなすことができる。これは、上述したように各検出ステップSd1が実行される十分に短い時間の中では、各アナログ信号HSの時間tに対する変化を線形で近似でき、かつ、いずれのアナログ信号HSに対するサンプリング処理Spにおいても、検出ステップSd1において最初のサンプリング処理Spが開始されてから最後のサンプリング処理Spが終了するまでの間における中心時刻が、タイミングTaとなるためである。 The value of each digital signal obtained in the third step S3a can be regarded as the value obtained at the timing Ta at which the first step S1a and the second step S2a switch in a relative comparison of the values of the digital signals obtained from each analog signal HS. This is because, as described above, within the sufficiently short time in which each detection step Sd1 is executed, the change in each analog signal HS with respect to time t can be linearly approximated, and in the sampling process Sp for any analog signal HS, the center time from the start of the first sampling process Sp to the end of the last sampling process Sp in the detection step Sd1 is the timing Ta.

具体的に、検出ステップSd1において最初の第1サンプリング処理Usが開始されてから最後の第1サンプリング処理Usが終了されるまでの間における中心時刻と、検出ステップSd1において最初の第2サンプリング処理Vsが開始されてから最後の第2サンプリング処理Vsが終了されるまでの間における中心時刻と、検出ステップSd1において最初の第3サンプリング処理Wsが開始されてから最後の第3サンプリング処理Wsが終了されるまでの間における中心時刻とは、互いに同じであり、タイミングTaである。第1ステップS1aと第2ステップS2aとが切り替わるタイミングTaは、第1ステップS1aが終了した時刻であるとともに、第2ステップS2aが開始された時刻である。 Specifically, the center time between the start of the first sampling process Us in the detection step Sd1 and the end of the last sampling process Us, the center time between the start of the first sampling process Vs in the detection step Sd1 and the end of the last sampling process Vs, and the center time between the start of the first sampling process Ws in the detection step Sd1 and the end of the last sampling process Ws are the same and are the timing Ta. The timing Ta at which the first step S1a and the second step S2a switch is the time when the first step S1a ends and the time when the second step S2a starts.

図5に示すように、例えば、第1アナログ信号Huが時間とともに線形に変化する信号に近似できる場合において、タイミングTaにおける第1アナログ信号Huの値PUは、第1ステップS1aの第1サンプリング処理Usの中心時刻における第1アナログ信号Huの値PU1と第2ステップS2aの第1サンプリング処理Usの中心時刻における第1アナログ信号Huの値PU2とを足し合わせた値を、第1ステップS1aおよび第2ステップS2aにおいて第1サンプリング処理Usが行われる合計回数で割った平均値と同等の値とみなすことができる。つまり、本実施形態においてタイミングTaにおける第1アナログ信号Huの値PUは、第1アナログ信号Huの値PU1と第1アナログ信号Huの値PU2とを足し合わせた値を2で割った値と同等の値とみなすことができる。これは、第2アナログ信号Hvおよび第3アナログ信号Hwについても同様である。つまり、タイミングTaにおける第2アナログ信号Hvの値PVは、第2アナログ信号Hvの値PV1と第2アナログ信号Hvの値PV2とを足し合わせた値を2で割った値と同等の値とみなすことができる。タイミングTaにおける第3アナログ信号Hwの値PWは、第3アナログ信号Hwの値PW1と第3アナログ信号Hwの値PW2とを足し合わせた値を2で割った値と同等の値とみなすことができる。 5, for example, in the case where the first analog signal Hu can be approximated to a signal that changes linearly with time, the value PU of the first analog signal Hu at the timing Ta can be regarded as a value equivalent to the average value obtained by adding the value PU1 of the first analog signal Hu at the center time of the first sampling process Us of the first step S1a and the value PU2 of the first analog signal Hu at the center time of the first sampling process Us of the second step S2a and dividing the sum by the total number of times the first sampling process Us is performed in the first step S1a and the second step S2a. In other words, in this embodiment, the value PU of the first analog signal Hu at the timing Ta can be regarded as a value equivalent to the value obtained by dividing the sum of the value PU1 of the first analog signal Hu and the value PU2 of the first analog signal Hu by 2. This also applies to the second analog signal Hv and the third analog signal Hw. In other words, the value PV of the second analog signal Hv at the timing Ta can be considered to be a value equivalent to the sum of the value PV1 of the second analog signal Hv and the value PV2 of the second analog signal Hv, divided by 2. The value PW of the third analog signal Hw at the timing Ta can be considered to be a value equivalent to the sum of the value PW1 of the third analog signal Hw and the value PW2 of the third analog signal Hw, divided by 2.

上述したように、各値PU1,PV1,PW1,PU2,PV2,PW2同士の比は、各サンプリング処理Spにおいて得られる各サンプリングデータ同士の比と同等の値とみなすことができるため、複数のアナログ信号HS同士の相対的な比較においては、各値PU1,PV1,PW1,PU2,PV2,PW2を、各サンプリング処理Spにおいて得られたサンプリングデータに置き換えることができる。したがって、第1ステップS1aおよび第2ステップS2aにおける第1サンプリング処理Usにおいて得られたサンプリングデータを足し合わせて算出したデジタル信号の値を、第1ステップS1aおよび第2ステップS2aにおいて第1サンプリング処理Usが行われる合計回数で割った値は、タイミングTaにおいて得られた第1アナログ信号Huのサンプリングデータとみなすことができる。 As described above, the ratio between the values PU1, PV1, PW1, PU2, PV2, and PW2 can be regarded as being equivalent to the ratio between the sampling data obtained in each sampling process Sp, so that in a relative comparison between multiple analog signals HS, the values PU1, PV1, PW1, PU2, PV2, and PW2 can be replaced with the sampling data obtained in each sampling process Sp. Therefore, the value of the digital signal calculated by adding up the sampling data obtained in the first sampling process Us in the first step S1a and the second step S2a divided by the total number of times the first sampling process Us is performed in the first step S1a and the second step S2a can be regarded as the sampling data of the first analog signal Hu obtained at timing Ta.

第1ステップS1aおよび第2ステップS2aにおける第2サンプリング処理Vsにおいて得られたサンプリングデータを足し合わせて算出したデジタル信号の値を、第1ステップS1aおよび第2ステップS2aにおいて第2サンプリング処理Vsが行われる合計回数で割った値は、タイミングTaにおいて得られた第2アナログ信号Hvのサンプリングデータとみなすことができる。 The value of the digital signal calculated by adding up the sampling data obtained in the second sampling process Vs in the first step S1a and the second step S2a and dividing the value by the total number of times the second sampling process Vs is performed in the first step S1a and the second step S2a can be regarded as the sampling data of the second analog signal Hv obtained at the timing Ta.

第1ステップS1aおよび第2ステップS2aにおける第3サンプリング処理Wsにおいて得られたサンプリングデータを足し合わせて算出したデジタル信号の値を、第1ステップS1aおよび第2ステップS2aにおいて第3サンプリング処理Wsが行われる合計回数で割った値は、タイミングTaにおいて得られた第3アナログ信号Hwのサンプリングデータとみなすことができる。 The value of the digital signal calculated by adding up the sampling data obtained in the third sampling process Ws in the first step S1a and the second step S2a and dividing the value by the total number of times the third sampling process Ws is performed in the first step S1a and the second step S2a can be regarded as the sampling data of the third analog signal Hw obtained at the timing Ta.

ここで、第1ステップS1aおよび第2ステップS2aにおいて行われる第1サンプリング処理Usの合計回数と第2サンプリング処理Vsの合計回数と第3サンプリング処理Wsの合計回数とは、いずれも2回であり、互いに同じである。そのため、複数のアナログ信号HSに対応する各デジタル信号同士の相対的な比較においては、第3ステップS3aにおいて複数のアナログ信号HSごとにサンプリング処理Spにおけるサンプリングデータを足し合わせて算出された各デジタル信号の値を、タイミングTaにおける各アナログ信号HSに対応するデジタル信号の値として扱うことができる。 Here, the total number of the first sampling process Us, the total number of the second sampling process Vs, and the total number of the third sampling process Ws performed in the first step S1a and the second step S2a are all two, which is the same as each other. Therefore, in a relative comparison between the digital signals corresponding to the multiple analog signals HS, the value of each digital signal calculated in the third step S3a by adding up the sampling data in the sampling process Sp for each of the multiple analog signals HS can be treated as the value of the digital signal corresponding to each analog signal HS at the timing Ta.

以上のように本実施形態によれば、第1ステップS1aにおいて行われる複数回のサンプリング処理Spは、複数のアナログ信号HSのそれぞれに対するサンプリング処理Spを少なくとも1回ずつ含み、第2ステップS2aにおいては、第1ステップS1aにおいて行われる複数回のサンプリング処理Spを第1ステップS1aとは逆の順番で行う。そのため、複数のアナログ信号HSごとに、第1ステップS1aにおいて行われるサンプリング処理Spの回数と第2ステップS2aにおいて行われるサンプリング処理Spの回数とを互いに同じにできるとともに、いずれのアナログ信号HSにおいても、最初のサンプリング処理Spが開始されてから最後のサンプリング処理Spが終了するまでの間における中心の時刻を、第1ステップS1aと第2ステップS2aとが切り替わるタイミングTaにすることができる。これにより、上述したようにして、各アナログ信号HSを変換したデジタル信号の値を、同じタイミングTaにおいて同時に取得した場合に相当する値として取得することが可能となる。したがって、演算部51がアナログ信号HSを1つずつしか変換できない場合であっても、複数のアナログ信号HSを変換して得られる複数のデジタル信号同士の間にずれが生じることを抑制できる。 As described above, according to this embodiment, the multiple sampling processes Sp performed in the first step S1a include at least one sampling process Sp for each of the multiple analog signals HS, and in the second step S2a, the multiple sampling processes Sp performed in the first step S1a are performed in the reverse order to the first step S1a. Therefore, for each of the multiple analog signals HS, the number of sampling processes Sp performed in the first step S1a and the number of sampling processes Sp performed in the second step S2a can be made the same, and for each analog signal HS, the center time from the start of the first sampling process Sp to the end of the last sampling process Sp can be set to the timing Ta at which the first step S1a and the second step S2a switch. As a result, it is possible to obtain the value of the digital signal obtained by converting each analog signal HS as a value equivalent to the value obtained simultaneously at the same timing Ta. Therefore, even if the calculation unit 51 can only convert one analog signal HS at a time, it is possible to prevent deviations from occurring between multiple digital signals obtained by converting multiple analog signals HS.

本実施形態において変換ステップScvは、複数のアナログ信号HSごとに、第1ステップS1aにおいて得られたサンプリングデータと第2ステップS2aにおいて得られたサンプリングデータとに基づいてデジタル信号の値を算出する第3ステップS3aを含む。そのため、第3ステップS3aにおいて、複数のアナログ信号HSごとに、同時刻に取得したデジタル信号に相当するデジタル信号の値を取得することができる。 In this embodiment, the conversion step Scv includes a third step S3a in which a digital signal value is calculated for each of the multiple analog signals HS based on the sampling data obtained in the first step S1a and the sampling data obtained in the second step S2a. Therefore, in the third step S3a, a digital signal value corresponding to the digital signal obtained at the same time can be obtained for each of the multiple analog signals HS.

本実施形態では、第3ステップS3aは、複数のアナログ信号HSごとに、第1ステップS1aにおいて得られたサンプリングデータと第2ステップS2aにおいて得られたサンプリングデータとを足し合わせることを含む。そのため、例えば上述したようにして、タイミングTaにおいて取得したデジタル信号に相当するデジタル信号の値を好適に取得しやすい。特に、本実施形態では、第1ステップS1aにおいて行われる複数回のサンプリング処理Spは、複数のアナログ信号HSのそれぞれに対するサンプリング処理Spを同数回ずつ含む。そのため、上述したように、第1ステップS1aにおいて得られたサンプリングデータと第2ステップS2aにおいて得られたサンプリングデータとを足し合わせた値を、タイミングTaにおいて取得されたデジタル信号の値に相当する値として扱うことができる。これにより、複数のアナログ信号HSごとに、タイミングTaにおいて取得したデジタル信号に相当するデジタル信号の値をより容易に取得することができる。 In this embodiment, the third step S3a includes adding up the sampling data obtained in the first step S1a and the sampling data obtained in the second step S2a for each of the multiple analog signals HS. Therefore, for example, as described above, it is easy to obtain the value of the digital signal corresponding to the digital signal obtained at the timing Ta. In particular, in this embodiment, the multiple sampling processes Sp performed in the first step S1a include the same number of sampling processes Sp for each of the multiple analog signals HS. Therefore, as described above, the value obtained by adding up the sampling data obtained in the first step S1a and the sampling data obtained in the second step S2a can be treated as a value corresponding to the value of the digital signal obtained at the timing Ta. This makes it easier to obtain the value of the digital signal corresponding to the digital signal obtained at the timing Ta for each of the multiple analog signals HS.

図3に示すように、本実施形態の検出ステップSd1において演算部51は、変換ステップScvの後に、今回の検出ステップSd1が、2回目以降の検出ステップSd1か否かを判定する(ステップSj1)。今回の検出ステップSd1が1回目の検出ステップSd1である場合(ステップSj1:NO)、演算部51は、変換ステップScvにおいて得られたデジタル信号に基づいて、回転体であるロータ20の回転位置を算出する演算ステップSca1を実行する。つまり、検出ステップSd1は、演算ステップSca1を含む。本実施形態において1回目の検出ステップSd1とは、電源の供給が停止されていた演算部51に電源が供給され始めてから、演算部51によって最初に実行された検出ステップSd1である。 As shown in FIG. 3, in the detection step Sd1 of this embodiment, the calculation unit 51 determines whether the current detection step Sd1 is the second or subsequent detection step Sd1 after the conversion step Scv (step Sj1). If the current detection step Sd1 is the first detection step Sd1 (step Sj1: NO), the calculation unit 51 executes the calculation step Sca1 to calculate the rotational position of the rotor 20, which is a rotating body, based on the digital signal obtained in the conversion step Scv. In other words, the detection step Sd1 includes the calculation step Sca1. In this embodiment, the first detection step Sd1 is the detection step Sd1 that is executed first by the calculation unit 51 after the power supply to the calculation unit 51, which had been stopped, begins to be supplied with power.

今回の検出ステップSd1が1回目の検出ステップSd1である場合、演算ステップSca1において演算部51は、変換ステップScvにおいて得られたデジタル信号の値を補正することなく用いて、ロータ20の回転位置、すなわち回転角度θを算出する。演算部51がデジタル信号の値から回転角度θを算出する方法は、特に限定されない。演算部51は、例えば、日本国特許第6233532号公報に記載された方法を用いて、回転角度θを算出することができる。本実施形態では、上述したように複数のアナログ信号HSを変換して得られる複数のデジタル信号同士の間にずれが生じることを抑制できるため、当該複数のデジタル信号の値に基づいて算出される回転角度θの精度を向上させることができる。 If the current detection step Sd1 is the first detection step Sd1, in the calculation step Sca1, the calculation unit 51 calculates the rotational position of the rotor 20, i.e., the rotation angle θ, using the value of the digital signal obtained in the conversion step Scv without correction. The method by which the calculation unit 51 calculates the rotation angle θ from the value of the digital signal is not particularly limited. For example, the calculation unit 51 can calculate the rotation angle θ using the method described in Japanese Patent No. 6233532. In this embodiment, as described above, it is possible to suppress the occurrence of deviations between the multiple digital signals obtained by converting the multiple analog signals HS, and therefore it is possible to improve the accuracy of the rotation angle θ calculated based on the values of the multiple digital signals.

今回の検出ステップSd1が2回目以降の検出ステップSd1である場合(ステップSj1:YES)、演算部51は、変換ステップScvで得られたデジタル信号の値を補正する補正ステップScr1を実行する。補正ステップScr1において演算部51は、第3ステップS3aにおいて得られたデジタル信号の値と、1回前に行われた検出ステップSd1の第3ステップS3aにおいて得られたデジタル信号の値とに基づいて、タイミングTaから第1所定時間tpa後のアナログ信号HSの値に基づいて得られるデジタル信号の推定値Deを算出する。つまり、2回目以降に行われる検出ステップSd1は、第3ステップS3aにおいて得られたデジタル信号の値と、1回前に行われた検出ステップSd1の第3ステップS3aにおいて得られたデジタル信号の値とに基づいて、第1ステップS1aと第2ステップS2aとが切り替わるタイミングTaから第1所定時間tpa後のアナログ信号HSの値に基づいて得られるデジタル信号の推定値Deを算出することを含む。そのため、タイミングTaとは異なるタイミングにおいて取得した場合に相当するデジタル信号の値を取得できる。これにより、任意のタイミングにおけるデジタル信号の値に基づいて、回転体であるロータ20の回転位置を検出することができる。 If the current detection step Sd1 is the second or later detection step Sd1 (step Sj1: YES), the calculation unit 51 executes a correction step Scr1 to correct the value of the digital signal obtained in the conversion step Scv. In the correction step Scr1, the calculation unit 51 calculates an estimate value De of the digital signal obtained based on the value of the analog signal HS after the first predetermined time tpa from the timing Ta based on the value of the digital signal obtained in the third step S3a and the value of the digital signal obtained in the third step S3a of the detection step Sd1 performed one time before. In other words, the detection step Sd1 performed from the second time onwards includes calculating an estimate value De of the digital signal obtained based on the value of the analog signal HS after the first predetermined time tpa from the timing Ta at which the first step S1a and the second step S2a switch, based on the value of the digital signal obtained in the third step S3a and the value of the digital signal obtained in the third step S3a of the detection step Sd1 performed one time before. Therefore, it is possible to obtain a value of the digital signal equivalent to the case where it is obtained at a timing different from the timing Ta. This makes it possible to detect the rotational position of the rotor 20, which is a rotating body, based on the value of the digital signal at any given time.

図4に示すように、本実施形態において第1所定時間tpaは、第1ステップS1aと第2ステップS2aとが切り替わるタイミングTaから演算ステップSca1において回転体であるロータ20の回転位置が算出されるまでの時間に等しい。そのため、推定値Deの値を、回転角度θが算出されるタイミングにおいて取得されるデジタル信号の値に相当する値にすることができる。これにより、本実施形態のようにタイミングTaと回転角度θが算出されるタイミングTbとがずれる場合であっても、タイミングTbにおいて取得したデジタル信号に相当する推定値Deを用いて、タイミングTbにおける回転角度θに相当する値を出力することが可能になる。したがって、位置検出装置100から出力される回転角度θの値にタイムラグが生じることを抑制できる。そのため、位置検出装置100の検出精度をより向上できる。なお、第1所定時間tpaは、特に限定されない。 As shown in FIG. 4, in this embodiment, the first predetermined time tpa is equal to the time from the timing Ta at which the first step S1a and the second step S2a switch to the calculation of the rotational position of the rotor 20, which is a rotating body, in the calculation step Sca1. Therefore, the value of the estimated value De can be set to a value equivalent to the value of the digital signal acquired at the timing at which the rotation angle θ is calculated. As a result, even if the timing Ta and the timing Tb at which the rotation angle θ is calculated differ as in this embodiment, it is possible to output a value equivalent to the rotation angle θ at the timing Tb using the estimated value De equivalent to the digital signal acquired at the timing Tb. Therefore, it is possible to suppress the occurrence of a time lag in the value of the rotation angle θ output from the position detection device 100. Therefore, the detection accuracy of the position detection device 100 can be further improved. Note that the first predetermined time tpa is not particularly limited.

本実施形態においてタイミングTbは、回転角度θが算出される時刻であり、かつ、演算ステップSca1が終了するタイミングである。つまり、本実施形態において第1所定時間tpaは、タイミングTaから、演算ステップSca1が終了するまでの間の時間に等しい。本実施形態において第1所定時間tpaは、第2ステップS2aを実行する時間と、第3ステップS3aを実行する時間と、補正ステップScr1を実行する時間と、演算ステップSca1を実行する時間とを足し合わせた時間に等しい。第1所定時間tpaは、例えば、数十マイクロ秒(μs)程度である。第1所定時間tpaは、例えば、1マイクロ秒(μs)以上、100マイクロ秒(μs)以下程度である。 In this embodiment, timing Tb is the time when the rotation angle θ is calculated and is also the timing when calculation step Sca1 ends. That is, in this embodiment, the first predetermined time tpa is equal to the time from timing Ta to the end of calculation step Sca1. In this embodiment, the first predetermined time tpa is equal to the sum of the time to execute the second step S2a, the time to execute the third step S3a, the time to execute correction step Scr1, and the time to execute calculation step Sca1. The first predetermined time tpa is, for example, about several tens of microseconds (μs). The first predetermined time tpa is, for example, about 1 microsecond (μs) or more and 100 microseconds (μs) or less.

図4では、何回目の検出ステップSd1であるかということを、2以上の整数Mを用いて示している。具体的に、検出ステップSd1[M]は、M回目の検出ステップSd1である。タイミングTa[M]は、M回目の検出ステップSd1におけるタイミングTaである。図4においては、M=2である場合の例を図示している。つまり、図4に示す検出ステップSd1[M-1]は、1回目の検出ステップSd1である。2回目以降に行われる検出ステップSd1における補正ステップScr1において演算部51は、以下の式(1)によってデジタル信号の推定値Deを算出する。 In FIG. 4, the number of detection steps Sd1 is indicated by using an integer M of 2 or more. Specifically, detection step Sd1[M] is the Mth detection step Sd1. Timing Ta[M] is the timing Ta in the Mth detection step Sd1. FIG. 4 illustrates an example where M=2. That is, detection step Sd1[M-1] shown in FIG. 4 is the first detection step Sd1. In correction step Scr1 in detection steps Sd1 performed from the second time onwards, calculation unit 51 calculates an estimate De of the digital signal using the following formula (1).

De=D[M]+(D[M]-D[M-1])/ts×tpa …式(1) De=D[M]+(D[M]-D[M-1])/ts×tpa...Formula (1)

式(1)においてD[M]は、M回目の検出ステップSd1の第3ステップS3aにおいて得られるデジタル信号の値である。D[M-1]は、(M-1)回目の検出ステップSd1の第3ステップS3aにおいて得られるデジタル信号の値である。tsは、所定の周期tsである。tpaは、第1所定時間tpaである。補正ステップScr1において演算部51は、複数のアナログ信号HSからそれぞれ得られた各デジタル信号の値を上記の式(1)によって、推定値Deに補正する。 In formula (1), D[M] is the value of the digital signal obtained in the third step S3a of the Mth detection step Sd1. D[M-1] is the value of the digital signal obtained in the third step S3a of the (M-1)th detection step Sd1. ts is a predetermined period ts. tpa is a first predetermined time tpa. In correction step Scr1, the calculation unit 51 corrects the value of each digital signal obtained from each of the multiple analog signals HS to an estimated value De using the above formula (1).

式(1)において、(D[M]-D[M-1])/tsは、前回の検出ステップSd1と今回の検出ステップSd1とを含めた期間内において線形近似できるアナログ信号HSをデジタル信号に変換した場合における値の単位時間当たりの変化率である。当該変化率に、第1所定時間tpaを乗じることで、M回目の検出ステップSd1におけるタイミングTaから第1所定時間tpa後までの間に変化するデジタル信号の値を算出できる。当該値をM回目の検出ステップSd1における第3ステップS3aで得られたデジタル信号の値D[M]に足し合わせることで、タイミングTaから第1所定時間tpa後におけるデジタル信号の値に相当する推定値Deを好適に算出することができる。本実施形態では、上述したように、回転角度θが算出されるタイミングTbにおいて取得したデジタル信号の値に相当する値を好適に算出することができ、回転角度θをより好適に精度よく取得できる。 In formula (1), (D[M]-D[M-1])/ts is the rate of change per unit time of the value when the analog signal HS that can be linearly approximated within the period including the previous detection step Sd1 and the current detection step Sd1 is converted into a digital signal. By multiplying this rate of change by the first predetermined time tpa, the value of the digital signal that changes from timing Ta in the Mth detection step Sd1 until the first predetermined time tpa later can be calculated. By adding this value to the value D[M] of the digital signal obtained in the third step S3a in the Mth detection step Sd1, it is possible to preferably calculate an estimated value De equivalent to the value of the digital signal from timing Ta until the first predetermined time tpa later. In this embodiment, as described above, it is possible to preferably calculate a value equivalent to the value of the digital signal obtained at timing Tb when the rotation angle θ is calculated, and it is possible to more preferably obtain the rotation angle θ with high accuracy.

図3に示すように、補正ステップScr1を行った後、演算部51は、補正されたデジタル値である推定値Deを用いて、ロータ20の回転位置、すなわち回転角度θを算出する(演算ステップSca1)。2回目以降の検出ステップSd1において演算部51が推定値Deから回転角度θを算出する方法は、1回目の検出ステップSd1において演算部51が回転角度θを算出する方法と同様である。 As shown in FIG. 3, after performing the correction step Scr1, the calculation unit 51 calculates the rotational position of the rotor 20, i.e., the rotational angle θ, using the estimated value De, which is the corrected digital value (calculation step Sca1). The method by which the calculation unit 51 calculates the rotational angle θ from the estimated value De in the second and subsequent detection steps Sd1 is the same as the method by which the calculation unit 51 calculates the rotational angle θ in the first detection step Sd1.

以下、上述した実施形態と異なる実施形態について説明する。以下の各実施形態の説明においては、各実施形態の説明よりも上段において説明した構成と同様の構成については、適宜同一の符号を付すなどにより説明を省略する場合がある。また、各実施形態の説明よりも上段において説明した構成の各部に対応する部分については、同一の名称を付すとともに異なる符号を付して、上述した構成とは異なる点を説明し、上述した構成と同様の点については説明を省略する場合がある。なお、以下の各実施形態において説明を省略した構成としては、矛盾しない範囲内において、各実施形態よりも上段において説明した構成と同様の構成を採用できる。 Below, an embodiment different from the above-mentioned embodiment will be described. In the following description of each embodiment, the description of the same configuration as that described above in the description of each embodiment may be omitted by appropriately assigning the same reference numerals. In addition, the parts corresponding to the respective parts of the configuration described above in the description of each embodiment may be assigned the same names but different reference numerals to describe the differences from the above-mentioned configuration, and the description of the similarities to the above-mentioned configuration may be omitted. Note that, as the configuration whose description is omitted in each of the following embodiments, the same configuration as that described above in the description of each embodiment may be adopted within the scope of not being inconsistent.

<第2実施形態>
本実施形態において演算部51は、図6のフローチャートに沿って検出ステップSd2を実行する。検出ステップSd2において演算部51は、第1実施形態の検出ステップSd1と同様に変換ステップScvを実行する。変換ステップScvを実行した後、演算部51は、変換ステップScvにおいて得られたデジタル信号の値に基づいてロータ20の回転位置、すなわち回転角度θを算出する演算ステップSca2を実行する。演算ステップSca2は、変換ステップScvの直後に行われる点を除いて、第1実施形態の演算ステップSca1と同様である。
Second Embodiment
In this embodiment, the calculation unit 51 executes the detection step Sd2 in accordance with the flowchart of Fig. 6. In the detection step Sd2, the calculation unit 51 executes the conversion step Scv in the same manner as the detection step Sd1 in the first embodiment. After executing the conversion step Scv, the calculation unit 51 executes the calculation step Sca2 in which the rotational position of the rotor 20, i.e., the rotation angle θ, is calculated based on the value of the digital signal obtained in the conversion step Scv. The calculation step Sca2 is similar to the calculation step Sca1 in the first embodiment, except that it is performed immediately after the conversion step Scv.

本実施形態の検出ステップSd2において演算部51は、演算ステップSca2の後に、今回の検出ステップSd2が、2回目以降の検出ステップSd2か否かを判定する(ステップSj2)。今回の検出ステップSd2が1回目の検出ステップSd2である場合(ステップSj2:NO)、演算部51は、演算ステップSca2において得られた回転角度θを補正せずにそのまま出力する。本実施形態において1回目の検出ステップSd2とは、電源の供給が停止されていた演算部51に電源が供給され始めてから、演算部51によって最初に実行された検出ステップSd2である。 In the detection step Sd2 of this embodiment, the calculation unit 51 determines after the calculation step Sca2 whether the current detection step Sd2 is the second or subsequent detection step Sd2 (step Sj2). If the current detection step Sd2 is the first detection step Sd2 (step Sj2: NO), the calculation unit 51 outputs the rotation angle θ obtained in the calculation step Sca2 without correcting it. In this embodiment, the first detection step Sd2 is the detection step Sd2 that is first executed by the calculation unit 51 after the power supply to the calculation unit 51, which had been stopped, begins to be supplied with power.

今回の検出ステップSd2が2回目以降の検出ステップSd2である場合(ステップSj2:YES)、演算部51は、演算ステップSca2で得られたロータ20の回転位置、すなわち回転角度θの値を補正する補正ステップScr2を実行する。2回目以降の検出ステップSd2の補正ステップScr2において演算部51は、演算ステップSca2において得られた回転角度θと、1回前に行われた検出ステップSd2の演算ステップSca2において得られた回転角度θとに基づいて、第2所定時間tpb後における回転角度θの推定値θeを算出する。つまり、2回目以降に行われる検出ステップSd2は、演算ステップSca2において得られた回転体であるロータ20の回転位置と、1回前に行われた検出ステップSd2の演算ステップSca2において得られたロータ20の回転位置とに基づいて、第2所定時間tpb後におけるロータ20の回転位置の推定値θeを算出することを含む。そのため、タイミングTaとは異なるタイミングにおいてデジタル信号の値を取得した場合に相当するロータ20の回転位置を検出することができる。これにより、任意のタイミングにおけるロータ20の回転位置を検出することができる。 If the current detection step Sd2 is the second or later detection step Sd2 (step Sj2: YES), the calculation unit 51 executes a correction step Scr2 to correct the rotational position of the rotor 20 obtained in the calculation step Sca2, i.e., the value of the rotational angle θ. In the correction step Scr2 of the second or later detection step Sd2, the calculation unit 51 calculates an estimated value θe of the rotational angle θ after the second predetermined time tpb based on the rotational angle θ obtained in the calculation step Sca2 and the rotational angle θ obtained in the calculation step Sca2 of the detection step Sd2 performed one time before. In other words, the detection step Sd2 performed from the second time onwards includes calculating an estimated value θe of the rotational position of the rotor 20 after the second predetermined time tpb based on the rotational position of the rotor 20, which is a rotating body, obtained in the calculation step Sca2 and the rotational position of the rotor 20 obtained in the calculation step Sca2 of the detection step Sd2 performed one time before. Therefore, it is possible to detect the rotational position of the rotor 20 corresponding to the digital signal value acquired at a timing different from the timing Ta. This makes it possible to detect the rotational position of the rotor 20 at any timing.

2回目以降に行われる検出ステップSd2の補正ステップScr2において演算部51は、以下の式(2)によってデジタル信号の推定値Deを算出する。 In the correction step Scr2 of the detection step Sd2 performed for the second or subsequent times, the calculation unit 51 calculates the estimated value De of the digital signal using the following formula (2).

θe=θ[M]+(θ[M]-θ[M-1])/ts×tpb …式(2) θe=θ[M]+(θ[M]-θ[M-1])/ts×tpb...Formula (2)

式(1)においてθ[M]は、M回目の検出ステップSd2の演算ステップSca2において得られる回転角度θの値である。θ[M-1]は、(M-1)回目の検出ステップSd2の演算ステップSca2において得られる回転角度θの値である。tsは、所定の周期tsである。tpbは、第2所定時間tpbである。補正ステップScr2において演算部51は、演算ステップSca2において得られた回転角度θの値を上記の式(2)によって、推定値θeに補正する。 In equation (1), θ[M] is the value of rotation angle θ obtained in calculation step Sca2 of the Mth detection step Sd2. θ[M-1] is the value of rotation angle θ obtained in calculation step Sca2 of the (M-1)th detection step Sd2. ts is a predetermined period ts. tpb is a second predetermined time tpb. In correction step Scr2, the calculation unit 51 corrects the value of rotation angle θ obtained in calculation step Sca2 to an estimated value θe using the above equation (2).

式(2)において、(θ[M]-θ[M-1])/tsは、前回の検出ステップSd2と今回の検出ステップSd2とを含めた期間内において線形近似できる回転角度θの単位時間当たりの変化率である。当該変化率に、第2所定時間tpbを乗じることで、M回目の検出ステップSd2におけるタイミングTaから第2所定時間tpb後までの間に変化する回転角度θの値を算出できる。当該値をM回目の検出ステップSd2における演算ステップSca2で得られた回転角度θの値θ[M]に足し合わせることで、タイミングTaから第2所定時間tpb後における回転角度θの値に相当する推定値θeを好適に算出することができる。 In formula (2), (θ[M] - θ[M-1])/ts is the rate of change per unit time of the rotation angle θ that can be linearly approximated within the period including the previous detection step Sd2 and the current detection step Sd2. By multiplying this rate of change by the second predetermined time tpb, it is possible to calculate the value of the rotation angle θ that changes from timing Ta in the Mth detection step Sd2 until the second predetermined time tpb later. By adding this value to the value θ[M] of the rotation angle θ obtained in the calculation step Sca2 in the Mth detection step Sd2, it is possible to suitably calculate an estimated value θe that corresponds to the value of the rotation angle θ from timing Ta until the second predetermined time tpb later.

本実施形態において第2所定時間tpbは、第1ステップS1aと第2ステップS2aとが切り替わるタイミングTaから推定値θeが算出されるまでの時間に等しい。そのため、推定値θeが算出されたタイミングにおいて複数のアナログ信号HSのサンプリングを行った場合に相当する回転角度θを、推定値θeとして算出できる。したがって、出力される回転角度θにタイムラグが生じることを抑制でき、回転角度θをより好適に精度よく取得できる。なお、第2所定時間tpbは、特に限定されない。第2所定時間tpbは、例えば、数十マイクロ秒(μs)程度である。第2所定時間tpbは、例えば、1マイクロ秒(μs)以上、100マイクロ秒(μs)以下程度である。 In this embodiment, the second predetermined time tpb is equal to the time from the timing Ta at which the first step S1a and the second step S2a switch to the time at which the estimated value θe is calculated. Therefore, the rotation angle θ corresponding to the case where multiple analog signals HS are sampled at the timing at which the estimated value θe is calculated can be calculated as the estimated value θe. Therefore, it is possible to suppress the occurrence of a time lag in the output rotation angle θ, and it is possible to obtain the rotation angle θ with more suitable accuracy. Note that the second predetermined time tpb is not particularly limited. The second predetermined time tpb is, for example, about several tens of microseconds (μs). The second predetermined time tpb is, for example, about 1 microsecond (μs) or more and 100 microseconds (μs) or less.

本発明は上述の実施形態に限られず、本発明の技術的思想の範囲内において、他の構成および他の方法を採用することもできる。第1ステップにおいて行われる複数回のサンプリング処理は、複数のアナログ信号のそれぞれに対するサンプリング処理を少なくとも1回ずつ含むならば、どのような順番でサンプリング処理が実行されてもよいし、各アナログ信号に対するサンプリング処理を何回ずつ含んでいてもよい。第2ステップは、第1ステップにおいて行われる複数回のサンプリング処理と同様のサンプリング処理が第1ステップとは逆の順番で行われるならば、どのような順番でサンプリング処理が実行されてもよいし、各アナログ信号に対するサンプリング処理を何回ずつ含んでいてもよい。 The present invention is not limited to the above-described embodiment, and other configurations and methods may be adopted within the scope of the technical concept of the present invention. The multiple sampling processes performed in the first step may be performed in any order and may include any number of sampling processes for each analog signal, so long as the multiple sampling processes performed in the first step include at least one sampling process for each analog signal. The second step may be performed in any order and may include any number of sampling processes for each analog signal, so long as the multiple sampling processes similar to those performed in the first step are performed in the reverse order to the first step.

第1ステップおよび第2ステップは、例えば、図7に示す第1ステップS1bおよび第2ステップS2bのような構成であってもよい。図7に示すように、第1ステップS1bにおいて行われる複数回のサンプリング処理Spおよび第2ステップS2bにおいて行われる複数回のサンプリング処理Spは、それぞれ、第1アナログ信号Huに対して行われる第1サンプリング処理Usと、第2アナログ信号Hvに対して行われる第2サンプリング処理Vsと、第3アナログ信号Hwに対して行われる第3サンプリング処理Wsと、を1回ずつ含む。第1ステップS1bにおいては、第2サンプリング処理Vsと第3サンプリング処理Wsと第1サンプリング処理Usとが、この順で連続して実行される。第2ステップS2bにおいては、第1サンプリング処理Usと第3サンプリング処理Wsと第2サンプリング処理Vsとが、この順で連続して実行される。 The first step and the second step may be configured as, for example, the first step S1b and the second step S2b shown in FIG. 7. As shown in FIG. 7, the multiple sampling processes Sp performed in the first step S1b and the multiple sampling processes Sp performed in the second step S2b each include one first sampling process Us performed on the first analog signal Hu, one second sampling process Vs performed on the second analog signal Hv, and one third sampling process Ws performed on the third analog signal Hw. In the first step S1b, the second sampling process Vs, the third sampling process Ws, and the first sampling process Us are performed consecutively in this order. In the second step S2b, the first sampling process Us, the third sampling process Ws, and the second sampling process Vs are performed consecutively in this order.

第1ステップおよび第2ステップは、例えば、図8に示す第1ステップS1cおよび第2ステップS2cのような構成であってもよい。図8に示すように、第1ステップS1cにおいて行われる複数回のサンプリング処理Spおよび第2ステップS2cにおいて行われる複数回のサンプリング処理Spは、それぞれ、第1アナログ信号Huに対して行われる第1サンプリング処理Usと、第2アナログ信号Hvに対して行われる第2サンプリング処理Vsと、第3アナログ信号Hwに対して行われる第3サンプリング処理Wsと、を2回ずつ含む。つまり、第1ステップS1cおよび第2ステップS2cは、サンプリング処理Spを6回ずつ含む。第1ステップS1cにおいては、第1サンプリング処理Usと第3サンプリング処理Wsと第2サンプリング処理Vsと第3サンプリング処理Wsと第2サンプリング処理Vsと第1サンプリング処理Usとが、この順で連続して実行される。第2ステップS2cにおいては、第1サンプリング処理Usと第2サンプリング処理Vsと第3サンプリング処理Wsと第2サンプリング処理Vsと第3サンプリング処理Wsと第1サンプリング処理Usとが、この順で連続して実行される。 The first step and the second step may be configured as, for example, the first step S1c and the second step S2c shown in FIG. 8. As shown in FIG. 8, the multiple sampling processes Sp performed in the first step S1c and the multiple sampling processes Sp performed in the second step S2c each include the first sampling process Us performed on the first analog signal Hu, the second sampling process Vs performed on the second analog signal Hv, and the third sampling process Ws performed on the third analog signal Hw, two times each. That is, the first step S1c and the second step S2c each include six sampling processes Sp. In the first step S1c, the first sampling process Us, the third sampling process Ws, the second sampling process Vs, the third sampling process Ws, the second sampling process Vs, and the first sampling process Us are executed in this order in succession. In the second step S2c, the first sampling process Us, the second sampling process Vs, the third sampling process Ws, the second sampling process Vs, the third sampling process Ws, and the first sampling process Us are executed consecutively in this order.

第1ステップおよび第2ステップは、例えば、図9に示す第1ステップS1dおよび第2ステップS2dのような構成であってもよい。図9に示すように、第1ステップS1dにおいて行われる複数回のサンプリング処理Spおよび第2ステップS2cにおいて行われる複数回のサンプリング処理Spは、それぞれ、1回の第1サンプリング処理Usと、2回の第2サンプリング処理Vsと、3回の第3サンプリング処理Wsと、を含む。つまり、図9の例では、第1ステップS1dおよび第2ステップS2dにおいて行われる複数回のサンプリング処理Spは、複数のアナログ信号HSのそれぞれに対するサンプリング処理Spを互いに異なる回数ずつ含む。 The first step and the second step may be configured, for example, as the first step S1d and the second step S2d shown in FIG. 9. As shown in FIG. 9, the multiple sampling processes Sp performed in the first step S1d and the multiple sampling processes Sp performed in the second step S2c each include one first sampling process Us, two second sampling processes Vs, and three third sampling processes Ws. That is, in the example of FIG. 9, the multiple sampling processes Sp performed in the first step S1d and the second step S2d include different numbers of sampling processes Sp for each of the multiple analog signals HS.

第1ステップS1dおよび第2ステップS2dにおいて行われる第1サンプリング処理Usの合計回数は2回である。第1ステップS1dおよび第2ステップS2dにおいて行われる第2サンプリング処理Vsの合計回数は4回である。第1ステップS1dおよび第2ステップS2dにおいて行われる第3サンプリング処理Wsの合計回数は6回である。 The total number of times the first sampling process Us is performed in the first step S1d and the second step S2d is two. The total number of times the second sampling process Vs is performed in the first step S1d and the second step S2d is four. The total number of times the third sampling process Ws is performed in the first step S1d and the second step S2d is six.

第1ステップS1dにおいては、第1サンプリング処理Usと第3サンプリング処理Wsと第2サンプリング処理Vsと第3サンプリング処理Wsと第2サンプリング処理Vsと第3サンプリング処理Wsとが、この順で連続して実行される。第2ステップS2dにおいては、第3サンプリング処理Wsと第2サンプリング処理Vsと第3サンプリング処理Wsと第2サンプリング処理Vsと第3サンプリング処理Wsと第1サンプリング処理Usとが、この順で連続して実行される。 In the first step S1d, the first sampling process Us, the third sampling process Ws, the second sampling process Vs, the third sampling process Ws, the second sampling process Vs, and the third sampling process Ws are executed in succession in this order. In the second step S2d, the third sampling process Ws, the second sampling process Vs, the third sampling process Ws, the second sampling process Vs, the third sampling process Ws, and the first sampling process Us are executed in succession in this order.

図9の例における第3ステップでは、複数のアナログ信号HSごとに、第1ステップS1dにおいて得られたサンプリングデータと第2ステップS2dにおいて得られたサンプリングデータとを足し合わせた値を、各アナログ信号HSに対応するサンプリング処理Spの合計回数で割った値をデジタル信号の値として算出する。これにより、複数のアナログ信号HSのそれぞれについて、タイミングTaにおいて取得されたデジタル信号の値に相当するデジタル信号の値を算出することができる。 In the third step in the example of FIG. 9, for each of the multiple analog signals HS, the sampling data obtained in the first step S1d and the sampling data obtained in the second step S2d are added together and divided by the total number of sampling processes Sp corresponding to each analog signal HS to calculate a digital signal value. This makes it possible to calculate a digital signal value corresponding to the digital signal value acquired at timing Ta for each of the multiple analog signals HS.

具体的に、図9の例における第3ステップでは、第1ステップS1dにおけるサンプリング処理Spにおいて得られたサンプリングデータと第2ステップS2dにおける第1サンプリング処理Usにおいて得られたサンプリングデータとを足し合わせた値を、第1サンプリング処理Usの合計回数、すなわち2で割った値を、第1アナログ信号Huに対応するデジタル信号の値として算出する。図9の例における第3ステップでは、第1ステップS1dにおける第2サンプリング処理Vsにおいて得られたサンプリングデータと第2ステップS2dにおける第2サンプリング処理Vsにおいて得られたサンプリングデータとを足し合わせた値を、第2サンプリング処理Vsの合計回数、すなわち4で割った値を、第2アナログ信号Hvに対応するデジタル信号の値として算出する。図9の例における第3ステップでは、第1ステップS1dにおける第3サンプリング処理Wsにおいて得られたサンプリングデータと第2ステップS2dにおける第3サンプリング処理Wsにおいて得られたサンプリングデータとを足し合わせた値を、第3サンプリング処理Wsの合計回数、すなわち6で割った値を、第3アナログ信号Hwに対応するデジタル信号の値として算出する。 9, the sampling data obtained in the sampling process Sp in the first step S1d and the sampling data obtained in the first sampling process Us in the second step S2d are added together, and the sum is divided by the total number of the first sampling process Us, i.e., 2, to calculate the value of the digital signal corresponding to the first analog signal Hu. In the third step in the example of FIG. 9, the sampling data obtained in the second sampling process Vs in the first step S1d and the sampling data obtained in the second sampling process Vs in the second step S2d are added together, and the sum is divided by the total number of the second sampling process Vs, i.e., 4, to calculate the value of the digital signal corresponding to the second analog signal Hv. In the third step in the example of FIG. 9, the value obtained by adding the sampling data obtained in the third sampling process Ws in the first step S1d and the sampling data obtained in the third sampling process Ws in the second step S2d is divided by the total number of times the third sampling process Ws was performed, i.e., 6, to calculate the value of the digital signal corresponding to the third analog signal Hw.

第3ステップにおいてデジタル信号の値を算出する方法は、第1ステップにおいて得られたサンプリングデータと第2ステップにおいて得られたサンプリングデータとに基づくならば、特に限定されない。第3ステップにおいて算出されるデジタル信号の値は、複数のアナログ信号ごとに、第1ステップにおいて得られたサンプリングデータと第2ステップにおいて得られたサンプリングデータとを足し合わせた値を、第1ステップおよび第2ステップにおいて実行されたサンプリング処理の合計回数で割った値であってもよい。第1ステップにおいて得られるサンプリングデータは、複数回のサンプリングで得られた値の合計値でなく、複数回のサンプリングで得られた複数の値であってもよい。第2ステップにおいて得られるサンプリングデータは、複数回のサンプリングで得られた値の合計値でなく、複数回のサンプリングで得られた複数の値であってもよい。 The method of calculating the value of the digital signal in the third step is not particularly limited as long as it is based on the sampling data obtained in the first step and the sampling data obtained in the second step. The value of the digital signal calculated in the third step may be a value obtained by adding up the sampling data obtained in the first step and the sampling data obtained in the second step for each of the multiple analog signals and dividing the sum by the total number of sampling processes performed in the first step and the second step. The sampling data obtained in the first step may not be a sum of values obtained from multiple samplings, but may be multiple values obtained from multiple samplings. The sampling data obtained in the second step may not be a sum of values obtained from multiple samplings, but may be multiple values obtained from multiple samplings.

位置検出装置の演算部は、複数のアナログ信号を同時にデジタル信号に変換できてもよい。位置検出方法および位置検出装置によって回転位置が検出される対象は、モータのロータに限られず、回転体であれば特に限定されない。対象となる回転体がモータのロータである場合、当該モータは、どのようなモータであってもよい。モータは、3相以外の多相モータであってもよい。回転体の回転位置を検出する回転センサは、磁気センサに限られず、どのような種類のセンサであってもよい。回転センサは、例えば、光学式のセンサなどであってもよい。本発明の信号変換方法によってデジタル信号に変換されるアナログ信号の数は、2つ以上であれば、特に限定されない。 The calculation unit of the position detection device may be capable of simultaneously converting multiple analog signals into digital signals. The object whose rotational position is detected by the position detection method and the position detection device is not limited to the rotor of a motor, but is not particularly limited as long as it is a rotating body. When the target rotating body is a rotor of a motor, the motor may be any type of motor. The motor may be a multi-phase motor other than a three-phase motor. The rotation sensor that detects the rotational position of the rotating body is not limited to a magnetic sensor, but may be any type of sensor. The rotation sensor may be, for example, an optical sensor. The number of analog signals converted into digital signals by the signal conversion method of the present invention is not particularly limited as long as it is two or more.

なお、本技術は以下のような構成をとることが可能である。
(1) 複数のアナログ信号のそれぞれをデジタル信号に変換する信号変換方法であって、前記アナログ信号の値を少なくとも1回以上サンプリングするサンプリング処理を複数回、順次行う第1ステップと、前記第1ステップの後に続けて行われ、前記サンプリング処理を複数回、順次行う第2ステップと、を含み、前記第1ステップにおいて行われる複数回の前記サンプリング処理は、前記複数のアナログ信号のそれぞれに対する前記サンプリング処理を少なくとも1回ずつ含み、前記第2ステップにおいては、前記第1ステップにおいて行われる複数回の前記サンプリング処理を前記第1ステップとは逆の順番で行う、信号変換方法。
(2) 前記複数のアナログ信号ごとに、前記第1ステップにおいて得られたサンプリングデータと前記第2ステップにおいて得られたサンプリングデータとに基づいてデジタル信号の値を算出する第3ステップを含む、(1)に記載の信号変換方法。
(3) 前記第3ステップは、前記複数のアナログ信号ごとに、前記第1ステップにおいて得られたサンプリングデータと前記第2ステップにおいて得られたサンプリングデータとを足し合わせることを含む、(2)に記載の信号変換方法。
(4) 前記第1ステップにおいて行われる複数回の前記サンプリング処理は、前記複数のアナログ信号のそれぞれに対する前記サンプリング処理を同数回ずつ含む、(2)または(3)に記載の信号変換方法。
(5) 回転体の回転位置を検出する位置検出方法であって、前記回転体の回転位置に応じたアナログ信号を出力可能な複数の回転センサによって、互いに異なる位相を有する複数のアナログ信号を取得することと、前記複数のアナログ信号に基づいて前記回転体の回転位置を検出する検出ステップを所定の周期で行うことと、を含み、前記検出ステップは、前記複数のアナログ信号のそれぞれを(2)から(4)のいずれか一項に記載の信号変換方法によってデジタル信号に変換する変換ステップと、前記変換ステップにおいて得られたデジタル信号に基づいて、前記回転体の回転位置を算出する演算ステップと、を含む、位置検出方法。
(6) 2回目以降に行われる前記検出ステップは、前記第3ステップにおいて得られたデジタル信号の値と、1回前に行われた前記検出ステップの前記第3ステップにおいて得られたデジタル信号の値とに基づいて、前記第1ステップと前記第2ステップとが切り替わるタイミングから第1所定時間後の前記アナログ信号の値に基づいて得られるデジタル信号の推定値を算出することを含む、(5)に記載の位置検出方法。
(7) 前記所定の周期をtsとし、前記第1所定時間をtpaとし、M回目の前記検出ステップにおいて得られるデジタル信号の値をD[M]とし、前記デジタル信号の推定値をDeとしたとき、2回目以降に行われる前記検出ステップにおいて、以下の式(1)によって前記デジタル信号の推定値を算出する、(6)に記載の位置検出方法。
De=D[M]+(D[M]-D[M-1])/ts×tpa …式(1)
(8) 前記第1所定時間は、前記第1ステップと前記第2ステップとが切り替わるタイミングから前記演算ステップにおいて前記回転体の回転位置が算出されるまでの時間に等しい、(6)または(7)に記載の位置検出方法。
(9) 2回目以降に行われる前記検出ステップは、前記演算ステップにおいて得られた前記回転体の回転位置と、1回前に行われた前記検出ステップの前記演算ステップにおいて得られた前記回転体の回転位置とに基づいて、第2所定時間後における前記回転体の回転位置の推定値を算出することを含む、(5)に記載の位置検出方法。
(10) 前記所定の周期をtsとし、前記第2所定時間をtpbとし、M回目の前記検出ステップにおいて得られる前記回転体の回転位置をθ[M]とし、前記回転体の回転位置の推定値をθeとしたとき、2回目以降に行われる前記検出ステップにおいて、以下の式(2)によって前記回転体の回転位置の推定値を算出する、(9)に記載の位置検出方法。
θe=θ[M]+(θ[M]-θ[M-1])/ts×tpb …式(2)
(11) 前記第2所定時間は、前記第1ステップと前記第2ステップとが切り替わるタイミングから前記推定値が算出されるまでの時間に等しい、(9)または(10)に記載の位置検出方法。
(12) 回転体の回転位置を検出する位置検出装置であって、前記回転体の回転位置に応じたアナログ信号であり、かつ、互いに異なる位相を有するアナログ信号を出力可能な複数の回転センサと、前記複数の回転センサから出力された複数のアナログ信号に基づいて前記回転体の回転位置を検出する検出ステップを所定の周期で実行可能な演算部と、を備え、前記検出ステップにおいて前記演算部は、前記複数のアナログ信号のそれぞれをデジタル信号に変換する変換ステップと、前記変換ステップにおいて得られたデジタル信号に基づいて、前記回転体の回転位置を算出する演算ステップと、を実行し、前記変換ステップにおいて前記演算部は、前記アナログ信号の値を少なくとも1回以上サンプリングするサンプリング処理を複数回、順次行う第1ステップと、前記第1ステップの後に続けて行われ、前記サンプリング処理を複数回、順次行う第2ステップと、前記複数のアナログ信号ごとに、前記第1ステップにおいて得られたサンプリングデータと前記第2ステップにおいて得られたサンプリングデータとに基づいてデジタル信号の値を算出する第3ステップと、を実行し、前記第1ステップにおいて行われる複数回の前記サンプリング処理は、前記複数のアナログ信号のそれぞれに対する前記サンプリング処理を少なくとも1回ずつ含み、前記第2ステップにおいて前記演算部は、前記第1ステップにおいて行われる複数回の前記サンプリング処理を前記第1ステップとは逆の順番で行う、位置検出装置。
(13) 前記第3ステップにおいて前記演算部は、前記複数のアナログ信号ごとに、前記第1ステップにおいて得られたサンプリングデータと前記第2ステップにおいて得られたサンプリングデータとを足し合わせる、(12)に記載の位置検出装置。
(14) 前記第1ステップにおいて行われる複数回の前記サンプリング処理は、前記複数のアナログ信号のそれぞれに対する前記サンプリング処理を同数回ずつ含む、(13)に記載の位置検出装置。
(15) 2回目以降に行われる前記検出ステップにおいて前記演算部は、前記第3ステップにおいて得られたデジタル信号の値と、1回前に行われた前記検出ステップの前記第3ステップにおいて得られたデジタル信号の値とに基づいて、前記第1ステップと前記第2ステップとが切り替わるタイミングから第1所定時間後の前記アナログ信号の値に基づいて得られるデジタル信号の推定値を算出する、(12)から(14)のいずれか一項に記載の位置検出装置。
(16) 前記第1所定時間は、前記第1ステップと前記第2ステップとが切り替わるタイミングから前記演算ステップにおいて前記回転体の回転位置が算出されるまでの時間に等しい、(15)に記載の位置検出装置。
(17) 2回目以降に行われる前記検出ステップにおいて前記演算部は、前記演算ステップにおいて得られた前記回転体の回転位置と、1回前に行われた前記検出ステップの前記演算ステップにおいて得られた前記回転体の回転位置とに基づいて、第2所定時間後における前記回転体の回転位置の推定値を算出する、(12)から(14)のいずれか一項に記載の位置検出装置。
(18) 前記第2所定時間は、前記第1ステップと前記第2ステップとが切り替わるタイミングから前記推定値が算出されるまでの時間に等しい、(17)に記載の位置検出装置。
(19) 前記回転体に設けられたマグネットを備え、前記回転センサは、前記マグネットの磁界を検出可能な磁気センサである、(12)から(18)のいずれか一項に記載の位置検出装置。
The present technology can be configured as follows.
(1) A signal conversion method for converting each of a plurality of analog signals into a digital signal, the signal conversion method comprising: a first step of sequentially performing a sampling process for sampling the values of the analog signals at least once a plurality of times; and a second step subsequent to the first step of sequentially performing the sampling process a plurality of times, the plurality of sampling processes performed in the first step including at least one sampling process for each of the plurality of analog signals, and the second step of performing the plurality of sampling processes performed in the first step in a reverse order to that of the first step.
(2) The signal conversion method according to (1), further comprising a third step of calculating, for each of the plurality of analog signals, a value of a digital signal based on the sampling data obtained in the first step and the sampling data obtained in the second step.
(3) The signal conversion method according to (2), wherein the third step includes adding up, for each of the plurality of analog signals, the sampling data obtained in the first step and the sampling data obtained in the second step.
(4) The signal conversion method according to (2) or (3), wherein the plurality of sampling processes performed in the first step include the same number of sampling processes for each of the plurality of analog signals.
(5) A position detection method for detecting a rotational position of a rotating body, the position detection method including: acquiring a plurality of analog signals having different phases from each other by a plurality of rotation sensors capable of outputting analog signals according to the rotational position of the rotating body; and performing a detection step of detecting the rotational position of the rotating body based on the plurality of analog signals at a predetermined period, the detection step including: a conversion step of converting each of the plurality of analog signals into a digital signal by a signal conversion method described in any one of (2) to (4); and a calculation step of calculating the rotational position of the rotating body based on the digital signal obtained in the conversion step.
(6) The position detection method described in (5), wherein the detection step performed for the second time or later includes calculating an estimate of a digital signal obtained based on a value of the analog signal after a first predetermined time from a timing at which the first step and the second step are switched based on a value of the digital signal obtained in the third step and a value of the digital signal obtained in the third step of the detection step performed immediately before.
(7) The position detection method according to (6), wherein, in the detection step performed for the second or subsequent time, the estimated value of the digital signal is calculated by the following formula (1), where ts is the specified period, tpa is the first specified time, D[M] is a value of the digital signal obtained in the Mth detection step, and De is an estimated value of the digital signal.
De=D[M]+(D[M]-D[M-1])/ts×tpa...Formula (1)
(8) The position detection method according to (6) or (7), wherein the first predetermined time is equal to a time from a timing at which the first step and the second step are switched to a time at which the rotational position of the rotating body is calculated in the calculation step.
(9) The position detection method described in (5), wherein the detection step performed for the second or subsequent time includes calculating an estimate of the rotational position of the rotating body after a second predetermined time based on the rotational position of the rotating body obtained in the calculation step and the rotational position of the rotating body obtained in the calculation step of the detection step performed one time previously.
(10) A position detection method according to (9), in which, when the specified period is ts, the second specified time is tpb, the rotational position of the rotating body obtained in the Mth detection step is θ[M], and the estimated value of the rotational position of the rotating body is θe, in the detection step performed for the second time or later, an estimated value of the rotational position of the rotating body is calculated by the following equation (2):
θe=θ[M]+(θ[M]-θ[M-1])/ts×tpb...Formula (2)
(11) The position detection method according to (9) or (10), in which the second predetermined time is equal to a time from a timing at which the first step and the second step are switched to a timing at which the estimated value is calculated.
(12) A position detection device for detecting a rotational position of a rotating body, comprising: a plurality of rotation sensors capable of outputting analog signals which are analog signals corresponding to the rotational position of the rotating body and have mutually different phases; and a calculation unit capable of executing, at a predetermined cycle, a detection step for detecting the rotational position of the rotating body based on the plurality of analog signals output from the plurality of rotation sensors, wherein in the detection step, the calculation unit executes a conversion step for converting each of the plurality of analog signals into a digital signal, and a calculation step for calculating the rotational position of the rotating body based on the digital signal obtained in the conversion step, and in the conversion step, the calculation unit samples the value of the analog signal at least once. a first step of sequentially performing a sampling process multiple times, a second step which is performed subsequent to the first step and sequentially performs the sampling process multiple times, and a third step of calculating, for each of the plurality of analog signals, a value of a digital signal based on sampling data obtained in the first step and sampling data obtained in the second step, wherein the multiple sampling processes performed in the first step include the sampling process for each of the plurality of analog signals at least once, and in the second step, the calculation unit performs the multiple sampling processes performed in the first step in a reverse order to that of the first step.
(13) The position detection device according to (12), wherein in the third step, the calculation unit adds together the sampling data obtained in the first step and the sampling data obtained in the second step for each of the plurality of analog signals.
(14) The position detection device according to (13), wherein the plurality of sampling processes performed in the first step include the same number of sampling processes for each of the plurality of analog signals.
(15) A position detection device described in any one of (12) to (14), wherein in the detection step performed for the second time or later, the calculation unit calculates an estimate of the digital signal obtained based on the value of the analog signal after a first predetermined time from a timing at which the first step and the second step are switched based on the value of the digital signal obtained in the third step and the value of the digital signal obtained in the third step of the detection step performed one step before.
(16) The position detection device according to (15), wherein the first predetermined time is equal to a time from a timing at which the first step and the second step are switched to a time at which the rotational position of the rotating body is calculated in the calculation step.
(17) A position detection device described in any one of (12) to (14), wherein in the detection step performed for the second time or later, the calculation unit calculates an estimate of the rotational position of the rotating body after a second specified time based on the rotational position of the rotating body obtained in the calculation step and the rotational position of the rotating body obtained in the calculation step of the detection step performed one time previously.
(18) The position detection device according to (17), wherein the second predetermined time is equal to a time from a timing at which the first step and the second step are switched to a timing at which the estimated value is calculated.
(19) The position detection device according to any one of (12) to (18), further comprising a magnet provided on the rotating body, wherein the rotation sensor is a magnetic sensor capable of detecting a magnetic field of the magnet.

以上、本明細書において説明した構成および方法は、相互に矛盾しない範囲内において、適宜組み合わせることができる。 The configurations and methods described in this specification can be combined as appropriate within the limits of not being mutually inconsistent.

20…ロータ(回転体)、30…マグネット、40…回転センサ、51…演算部、100…位置検出装置、De,θe…推定値、HS…アナログ信号、S1a,S1b,S1c,S1d…第1ステップ、S2a,S2b,S2c,S2d…第2ステップ、S3a…第3ステップ、Sca1,Sca2…演算ステップ、Scv…変換ステップ、Sd1,Sd2…検出ステップ、Sp…サンプリング処理、Ta…タイミング、tpa…第1所定時間、tpb…第2所定時間、ts…周期 20...rotor (rotating body), 30...magnet, 40...rotation sensor, 51...calculation unit, 100...position detection device, De, θe...estimated value, HS...analog signal, S1a, S1b, S1c, S1d...first step, S2a, S2b, S2c, S2d...second step, S3a...third step, Sca1, Sca2...calculation step, Scv...conversion step, Sd1, Sd2...detection step, Sp...sampling process, Ta...timing, tpa...first predetermined time, tpb...second predetermined time, ts...period

Claims (19)

複数のアナログ信号のそれぞれをデジタル信号に変換する信号変換方法であって、
前記アナログ信号の値を少なくとも1回以上サンプリングするサンプリング処理を複数回、順次行う第1ステップと、
前記第1ステップの後に続けて行われ、前記サンプリング処理を複数回、順次行う第2ステップと、
を含み、
前記第1ステップにおいて行われる複数回の前記サンプリング処理は、前記複数のアナログ信号のそれぞれに対する前記サンプリング処理を少なくとも1回ずつ含み、
前記第2ステップにおいては、前記第1ステップにおいて行われる複数回の前記サンプリング処理を前記第1ステップとは逆の順番で行う、信号変換方法。
1. A signal conversion method for converting a plurality of analog signals into digital signals, comprising the steps of:
a first step of sequentially performing a sampling process for sampling the value of the analog signal at least once a plurality of times;
a second step, which is performed successively after the first step, of sequentially performing the sampling process a plurality of times;
Including,
The plurality of sampling processes performed in the first step include the plurality of sampling processes for each of the plurality of analog signals at least once,
In the second step, the sampling process is performed a plurality of times in a reverse order to that in the first step.
前記複数のアナログ信号ごとに、前記第1ステップにおいて得られたサンプリングデータと前記第2ステップにおいて得られたサンプリングデータとに基づいてデジタル信号の値を算出する第3ステップを含む、請求項1に記載の信号変換方法。 The signal conversion method according to claim 1, further comprising a third step of calculating a digital signal value for each of the plurality of analog signals based on the sampling data obtained in the first step and the sampling data obtained in the second step. 前記第3ステップは、前記複数のアナログ信号ごとに、前記第1ステップにおいて得られたサンプリングデータと前記第2ステップにおいて得られたサンプリングデータとを足し合わせることを含む、請求項2に記載の信号変換方法。 The signal conversion method according to claim 2, wherein the third step includes adding together the sampling data obtained in the first step and the sampling data obtained in the second step for each of the multiple analog signals. 前記第1ステップにおいて行われる複数回の前記サンプリング処理は、前記複数のアナログ信号のそれぞれに対する前記サンプリング処理を同数回ずつ含む、請求項3に記載の信号変換方法。 The signal conversion method according to claim 3, wherein the multiple sampling processes performed in the first step include the same number of sampling processes for each of the multiple analog signals. 回転体の回転位置を検出する位置検出方法であって、
前記回転体の回転位置に応じたアナログ信号を出力可能な複数の回転センサによって、互いに異なる位相を有する複数のアナログ信号を取得することと、
前記複数のアナログ信号に基づいて前記回転体の回転位置を検出する検出ステップを所定の周期で行うことと、
を含み、
前記検出ステップは、
前記複数のアナログ信号のそれぞれを請求項2から4のいずれか一項に記載の信号変換方法によってデジタル信号に変換する変換ステップと、
前記変換ステップにおいて得られたデジタル信号に基づいて、前記回転体の回転位置を算出する演算ステップと、
を含む、位置検出方法。
A position detection method for detecting a rotational position of a rotating body, comprising:
acquiring a plurality of analog signals having mutually different phases by a plurality of rotation sensors capable of outputting analog signals according to a rotational position of the rotating body;
a detection step of detecting a rotational position of the rotating body based on the plurality of analog signals at a predetermined period;
Including,
The detection step includes:
A conversion step of converting each of the plurality of analog signals into a digital signal by a signal conversion method according to any one of claims 2 to 4;
a calculation step of calculating a rotational position of the rotating body based on the digital signal obtained in the conversion step;
A location detection method comprising:
2回目以降に行われる前記検出ステップは、前記第3ステップにおいて得られたデジタル信号の値と、1回前に行われた前記検出ステップの前記第3ステップにおいて得られたデジタル信号の値とに基づいて、前記第1ステップと前記第2ステップとが切り替わるタイミングから第1所定時間後の前記アナログ信号の値に基づいて得られるデジタル信号の推定値を算出することを含む、請求項5に記載の位置検出方法。 The position detection method according to claim 5, wherein the detection step performed for the second or subsequent time includes calculating an estimate of the digital signal obtained based on the value of the analog signal after a first predetermined time from the timing of switching between the first step and the second step, based on the value of the digital signal obtained in the third step and the value of the digital signal obtained in the third step of the detection step performed immediately before. 前記所定の周期をtsとし、前記第1所定時間をtpaとし、M回目の前記検出ステップにおいて得られるデジタル信号の値をD[M]とし、前記デジタル信号の推定値をDeとしたとき、2回目以降に行われる前記検出ステップにおいて、以下の式(1)によって前記デジタル信号の推定値を算出する、請求項6に記載の位置検出方法。
De=D[M]+(D[M]-D[M-1])/ts×tpa …式(1)
7. The position detection method according to claim 6, wherein, when the predetermined period is ts, the first predetermined time is tpa, the value of the digital signal obtained in the Mth detection step is D[M], and an estimated value of the digital signal is De, in the detection step performed for the second time or later, the estimated value of the digital signal is calculated by the following formula (1):
De=D[M]+(D[M]-D[M-1])/ts×tpa...Formula (1)
前記第1所定時間は、前記第1ステップと前記第2ステップとが切り替わるタイミングから前記演算ステップにおいて前記回転体の回転位置が算出されるまでの時間に等しい、請求項6に記載の位置検出方法。 The position detection method according to claim 6, wherein the first predetermined time is equal to the time from when the first step and the second step switch to when the rotational position of the rotating body is calculated in the calculation step. 2回目以降に行われる前記検出ステップは、前記演算ステップにおいて得られた前記回転体の回転位置と、1回前に行われた前記検出ステップの前記演算ステップにおいて得られた前記回転体の回転位置とに基づいて、第2所定時間後における前記回転体の回転位置の推定値を算出することを含む、請求項5に記載の位置検出方法。 The position detection method according to claim 5, wherein the detection step performed for the second or subsequent time includes calculating an estimate of the rotational position of the rotating body after a second predetermined time based on the rotational position of the rotating body obtained in the calculation step and the rotational position of the rotating body obtained in the calculation step of the detection step performed one time before. 前記所定の周期をtsとし、前記第2所定時間をtpbとし、M回目の前記検出ステップにおいて得られる前記回転体の回転位置をθ[M]とし、前記回転体の回転位置の推定値をθeとしたとき、2回目以降に行われる前記検出ステップにおいて、以下の式(2)によって前記回転体の回転位置の推定値を算出する、請求項9に記載の位置検出方法。
θe=θ[M]+(θ[M]-θ[M-1])/ts×tpb …式(2)
10. The position detection method of claim 9, wherein, when the predetermined period is ts, the second predetermined time is tpb, the rotational position of the rotating body obtained in the Mth detection step is θ[M], and the estimated value of the rotational position of the rotating body is θe, in the detection step performed for the second time or later, the estimated value of the rotational position of the rotating body is calculated by the following equation (2):
θe=θ[M]+(θ[M]-θ[M-1])/ts×tpb...Formula (2)
前記第2所定時間は、前記第1ステップと前記第2ステップとが切り替わるタイミングから前記推定値が算出されるまでの時間に等しい、請求項9に記載の位置検出方法。 The position detection method according to claim 9, wherein the second predetermined time is equal to the time from when the first step switches to the second step until the estimated value is calculated. 回転体の回転位置を検出する位置検出装置であって、
前記回転体の回転位置に応じたアナログ信号であり、かつ、互いに異なる位相を有するアナログ信号を出力可能な複数の回転センサと、
前記複数の回転センサから出力された複数のアナログ信号に基づいて前記回転体の回転位置を検出する検出ステップを所定の周期で実行可能な演算部と、
を備え、
前記検出ステップにおいて前記演算部は、
前記複数のアナログ信号のそれぞれをデジタル信号に変換する変換ステップと、
前記変換ステップにおいて得られたデジタル信号に基づいて、前記回転体の回転位置を算出する演算ステップと、
を実行し、
前記変換ステップにおいて前記演算部は、
前記アナログ信号の値を少なくとも1回以上サンプリングするサンプリング処理を複数回、順次行う第1ステップと、
前記第1ステップの後に続けて行われ、前記サンプリング処理を複数回、順次行う第2ステップと、
前記複数のアナログ信号ごとに、前記第1ステップにおいて得られたサンプリングデータと前記第2ステップにおいて得られたサンプリングデータとに基づいてデジタル信号の値を算出する第3ステップと、
を実行し、
前記第1ステップにおいて行われる複数回の前記サンプリング処理は、前記複数のアナログ信号のそれぞれに対する前記サンプリング処理を少なくとも1回ずつ含み、
前記第2ステップにおいて前記演算部は、前記第1ステップにおいて行われる複数回の前記サンプリング処理を前記第1ステップとは逆の順番で行う、位置検出装置。
A position detection device for detecting a rotational position of a rotating body, comprising:
a plurality of rotation sensors capable of outputting analog signals which correspond to a rotational position of the rotating body and have mutually different phases;
a calculation unit capable of executing a detection step of detecting a rotational position of the rotating body based on a plurality of analog signals output from the plurality of rotation sensors at a predetermined interval;
Equipped with
In the detection step, the calculation unit
a conversion step of converting each of the plurality of analog signals into a digital signal;
a calculation step of calculating a rotational position of the rotating body based on the digital signal obtained in the conversion step;
Run
In the conversion step, the calculation unit
a first step of sequentially performing a sampling process for sampling the value of the analog signal at least once a plurality of times;
a second step, which is performed successively after the first step, of sequentially performing the sampling process a plurality of times;
a third step of calculating a value of a digital signal for each of the plurality of analog signals based on the sampling data obtained in the first step and the sampling data obtained in the second step;
Run
The plurality of sampling processes performed in the first step include the plurality of sampling processes for each of the plurality of analog signals at least once,
In the second step, the calculation unit performs the sampling process multiple times in an order reverse to that in the first step.
前記第3ステップにおいて前記演算部は、前記複数のアナログ信号ごとに、前記第1ステップにおいて得られたサンプリングデータと前記第2ステップにおいて得られたサンプリングデータとを足し合わせる、請求項12に記載の位置検出装置。 The position detection device according to claim 12, wherein in the third step, the calculation unit adds together the sampling data obtained in the first step and the sampling data obtained in the second step for each of the multiple analog signals. 前記第1ステップにおいて行われる複数回の前記サンプリング処理は、前記複数のアナログ信号のそれぞれに対する前記サンプリング処理を同数回ずつ含む、請求項13に記載の位置検出装置。 The position detection device according to claim 13, wherein the multiple sampling processes performed in the first step include the same number of sampling processes for each of the multiple analog signals. 2回目以降に行われる前記検出ステップにおいて前記演算部は、前記第3ステップにおいて得られたデジタル信号の値と、1回前に行われた前記検出ステップの前記第3ステップにおいて得られたデジタル信号の値とに基づいて、前記第1ステップと前記第2ステップとが切り替わるタイミングから第1所定時間後の前記アナログ信号の値に基づいて得られるデジタル信号の推定値を算出する、請求項12に記載の位置検出装置。 The position detection device according to claim 12, wherein in the detection step performed for the second or subsequent time, the calculation unit calculates an estimate of the digital signal obtained based on the value of the analog signal after a first predetermined time from the timing at which the first step and the second step are switched, based on the value of the digital signal obtained in the third step and the value of the digital signal obtained in the third step of the detection step performed immediately before. 前記第1所定時間は、前記第1ステップと前記第2ステップとが切り替わるタイミングから前記演算ステップにおいて前記回転体の回転位置が算出されるまでの時間に等しい、請求項15に記載の位置検出装置。 The position detection device according to claim 15, wherein the first predetermined time is equal to the time from when the first step and the second step switch to when the rotational position of the rotating body is calculated in the calculation step. 2回目以降に行われる前記検出ステップにおいて前記演算部は、前記演算ステップにおいて得られた前記回転体の回転位置と、1回前に行われた前記検出ステップの前記演算ステップにおいて得られた前記回転体の回転位置とに基づいて、第2所定時間後における前記回転体の回転位置の推定値を算出する、請求項12に記載の位置検出装置。 The position detection device according to claim 12, wherein in the detection step performed for the second or subsequent time, the calculation unit calculates an estimate of the rotational position of the rotating body after a second predetermined time based on the rotational position of the rotating body obtained in the calculation step and the rotational position of the rotating body obtained in the calculation step of the detection step performed one time before. 前記第2所定時間は、前記第1ステップと前記第2ステップとが切り替わるタイミングから前記推定値が算出されるまでの時間に等しい、請求項17に記載の位置検出装置。 The position detection device according to claim 17, wherein the second predetermined time is equal to the time from when the first step and the second step switch to when the estimated value is calculated. 前記回転体に設けられたマグネットを備え、
前記回転センサは、前記マグネットの磁界を検出可能な磁気センサである、請求項12から18のいずれか一項に記載の位置検出装置。
A magnet is provided on the rotor,
The position detection device according to claim 12 , wherein the rotation sensor is a magnetic sensor capable of detecting a magnetic field of the magnet.
JP2023057638A 2023-03-31 2023-03-31 Signal conversion method, position detection method, and position detection device Pending JP2024145335A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2023057638A JP2024145335A (en) 2023-03-31 2023-03-31 Signal conversion method, position detection method, and position detection device
PCT/JP2023/019991 WO2024202082A1 (en) 2023-03-31 2023-05-29 Signal conversion method, position detection method, and position detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2023057638A JP2024145335A (en) 2023-03-31 2023-03-31 Signal conversion method, position detection method, and position detection device

Publications (1)

Publication Number Publication Date
JP2024145335A true JP2024145335A (en) 2024-10-15

Family

ID=92903733

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2023057638A Pending JP2024145335A (en) 2023-03-31 2023-03-31 Signal conversion method, position detection method, and position detection device

Country Status (2)

Country Link
JP (1) JP2024145335A (en)
WO (1) WO2024202082A1 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008193825A (en) * 2007-02-06 2008-08-21 Matsushita Electric Ind Co Ltd Ad conversion control circuit and related technology thereof
JP6230417B2 (en) * 2013-12-27 2017-11-15 ルネサスエレクトロニクス株式会社 A / D conversion circuit and semiconductor integrated circuit
JP6747709B2 (en) * 2016-05-30 2020-08-26 国立大学法人広島大学 A/D converter and jitter correction method

Also Published As

Publication number Publication date
WO2024202082A1 (en) 2024-10-03

Similar Documents

Publication Publication Date Title
CN107592041B (en) Method and apparatus for synchronizing an MDPS motor and motor position sensor
US8917041B2 (en) Phase-shift detection device, motor drive device, brushless motor, and phase-shift detection method
JP5494662B2 (en) Rotation angle detector
US20140347040A1 (en) Rotation-angle detection device, image processing apparatus, and rotation-angle detection method
CN111245306A (en) Signal processing device and signal processing method
JP6124112B2 (en) AC motor control device and control method
KR20130047653A (en) Motor drive controller and control method
US20210297020A1 (en) Method for correcting magnetic field position error in electric motor
JP2019097257A (en) Magnetic pole direction detection device
US9099949B2 (en) Back electromotive force detection circuit and motor driving control apparatus using the same
JP2013101000A (en) Detector and drive unit
JP2024145335A (en) Signal conversion method, position detection method, and position detection device
KR101655297B1 (en) Apparatus for correcting position of linear hole sensor and control method of thereof
JP6552373B2 (en) Motor controller
JP2012200119A (en) Control method and control unit of ac motor
JP6492917B2 (en) Angle detection device, motor drive control device, and motor device
JP6361428B2 (en) Voltage level detection device and method, motor drive control device, and motor device
US10326387B2 (en) Phase detecting device, motor system, image forming apparatus, conveyance device, and sensor level obtaining method
JP2019129655A (en) Motor controller
JP6973992B2 (en) Rotation detection device, motor device and rotation detection method
KR20210083747A (en) Angle correction method
JP2008109811A (en) Initial phase detector for synchronous motor
JP6340899B2 (en) Phase detection device, motor drive control device, and motor device
Goswami et al. Automatic Phase Sequence Detection in BLDC Motor Drives with Hall Sensors
JPH0382391A (en) Position detecting system for brushless motor