Rotation angle sensor, angle signal calculation method and program

The rotation angle sensor uses a magnet with two poles and strategically positioned magnetic detection elements to generate phase-differentiated signals, addressing the issue of magnetic flux interference and enhancing detection accuracy.

JP7565170B2Active Publication Date: 2024-10-10ASAHI KASEI MICRODEVICES CORP
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2020103836
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-06-21
Filing Date
2020-06-16
Publication Date
2024-10-10
Estimated Expiration
2040-06-16

AI Technical Summary

Technical Problem

Existing rotation angle sensors face challenges in accurately detecting the rotation of a motor due to magnetic flux leakage and disturbance magnetic flux, such as earth's magnetism, which affect the accuracy of angle signal output.

Method used

A rotation angle sensor design that includes a magnet polarized in two poles perpendicular to the rotation axis, with multiple magnetic detection elements arranged at specific angles to detect and calculate magnetic field components in different directions, generating signals with distinct phases to accurately determine the rotation angle, and a program to execute these calculations.

Benefits of technology

The sensor can accurately detect the rotation angle of a magnet even in environments with disturbance magnetic flux, reducing the influence of noise and improving detection precision.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007565170000001
    Figure 0007565170000001
  • Figure 0007565170000002
    Figure 0007565170000002
  • Figure 0007565170000003
    Figure 0007565170000003
Patent Text Reader

Abstract

To detect a rotation angle of a magnet with high accuracy even when being used in an environment where disturbance magnetic flux occurs.SOLUTION: A rotation angle sensor includes: a first and a second magnetic detection elements for detecting a component of a magnetic field that varies by rotation of a magnet in a first direction; a third and a fourth magnetic detection elements for detecting a component of the magnetic field in a second direction; a calculation signal generation unit for outputting a first magnetic field calculation signal based on outputs of the first and second magnetic detection elements and outputting a second magnetic field calculation signal whose phase is different from that of the first magnetic field calculation signal based on outputs of the third and fourth magnetic detection elements; and an angle signal generation unit for generating an angle signal indicating a rotation angle of the magnet based on the first magnetic field calculation signal and the second magnetic field calculation signal. The first magnetic detection element is arranged at a position different from that of the third magnetic detection element. The first and second magnetic detection elements are arranged at a position where a first arrangement angle, which is an arrangement angle with respect to a center of the magnet, is greater than or equal to 0 degrees and less than 90 degrees.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a rotation angle sensor, an angle signal calculation method, and a program. [Background technology]

[0002] Conventionally, there is known a rotation angle sensor that detects a magnetic field around a magnet that changes as the magnet rotates, and detects the rotation angle θ of the magnet based on the detected magnetic field. A rotating body such as a motor is connected to the magnet. Therefore, the rotation angle sensor can detect the rotation of the motor by detecting the rotation of the magnet.

[0003] In rotation angle sensors, efforts are being made to improve the detection accuracy of the rotation angle of a magnet by examining the arrangement and shape of the magnet and the magnetic detection element disposed around the magnet (Patent Document 1). [Prior art documents] [Patent documents]

[0004] [Patent Document 1] International Publication No. 99 / 013296 Summary of the Invention [Problem to be solved by the invention]

[0005] When a rotation angle sensor is used as a magnetic encoder, leakage magnetic flux from the motor and disturbance magnetic flux such as geomagnetism cause errors in the angle signal output from the rotation angle sensor, making it difficult to accurately detect the rotation of the motor.

[0006] Therefore, an object of the present disclosure is to provide a rotation angle sensor, an angle signal calculation method, and a program that can detect the rotation angle of a magnet with high accuracy even when used in an environment where disturbance magnetic flux occurs. [Means for solving the problem]

[0007] In order to solve the above-mentioned problems, a rotation angle sensor according to one aspect of the present disclosure includes a magnet that is polarized into at least two poles in a direction perpendicular to the rotation axis and is arranged to be rotatable around the rotation axis, a first magnetic detection element and a second magnetic detection element that detect a first directional component of a magnetic field that changes with the rotation of the magnet, a third magnetic detection element and a fourth magnetic detection element that detect a second directional component of the magnetic field that is different from the first direction, a calculation signal generation unit that outputs a first magnetic field calculation signal based on an output of the first magnetic detection element and an output of the second magnetic detection element, and outputs a second magnetic field calculation signal that is out of phase with the first magnetic field calculation signal based on the output of the third magnetic detection element and the output of the fourth magnetic detection element, and a calculation signal generation unit that generates a calculation signal for detecting the rotation of the magnet based on the first magnetic field calculation signal and the second magnetic field calculation signal. and an angle signal generating unit that generates and outputs an angle signal indicating the rotation angle, wherein the first magnetic detection element and the second magnetic detection element are arranged at a position where a first arrangement angle, which is an angle formed by a line segment connecting the first magnetic detection element and the magnet and a line segment connecting the second magnetic detection element and the magnet, is greater than 0 degrees and less than 90 degrees, and the first arrangement angle is the smaller of the angles formed by the line segment connecting the first magnetic detection element and the rotation axis and the line segment connecting the second magnetic detection element and the rotation axis in a planar view, or the smaller of the angles formed by the line segment connecting the first magnetic detection element and the center of the magnet and the line segment connecting the second magnetic detection element and the center in a cross-sectional view, and the first magnetic detection element is arranged at a different position from the third magnetic detection element.

[0008] In order to solve the above-mentioned problems, an angle signal calculation method according to one aspect of the present disclosure includes acquiring, as an output of a first magnetic detection element, a component of a first direction of a magnetic field that changes due to rotation of a magnet that is polarized into at least two poles in a direction perpendicular to a rotation axis and is arranged to be rotatable around the rotation axis, and calculating the component of the first direction of the magnetic field by a second magnetic detection element that is arranged at a position different from the first magnetic detection element and at a position where a first arrangement angle with the first magnetic detection element is greater than 0 degrees and less than 90 degrees, the first arrangement angle being the smaller of an angle formed by a line segment connecting the first magnetic detection element and the rotation axis and a line segment connecting the second magnetic detection element and the rotation axis in a plan view, or an angle formed by a line segment connecting the first magnetic detection element and the center of the magnet in a cross-sectional view. a component of the magnetic field in a second direction different from the first direction is obtained as an output of a third magnetic detection element and an output of a fourth magnetic detection element arranged at a position different from the first magnetic detection element; a first magnetic field calculation signal is output based on the output of the first magnetic detection element and the output of the second magnetic detection element; a second magnetic field calculation signal having a phase different from that of the first magnetic field calculation signal is output based on the output of the third magnetic detection element and the output of the fourth magnetic detection element; and an angle signal indicating the rotation angle of the magnet is output based on the first magnetic field calculation signal and the second magnetic field calculation signal.

[0009] In order to solve the above-mentioned problems, a program according to one aspect of the present disclosure includes acquiring, as an output of a first magnetic detection element, a component of a first direction of a magnetic field that changes due to rotation of a magnet that is polarized into at least two poles in a direction perpendicular to a rotation axis and is arranged rotatably around the rotation axis, and detecting the component of the first direction of the magnetic field by a second magnetic detection element that is arranged at a position different from the first magnetic detection element and at a position where a first arrangement angle with the first magnetic detection element is greater than 0 degrees and less than 90 degrees, the first arrangement angle being the smaller of an angle formed by a line segment connecting the first magnetic detection element and the rotation axis and a line segment connecting the second magnetic detection element and the rotation axis in a plan view, or an angle formed by a line segment connecting the first magnetic detection element and the center of the magnet and the second magnetic detection element in a cross-sectional view. and the center as an output of the second magnetic detection element, which is the smaller angle among the angles formed by the line segment connecting the first magnetic detection element and the center; acquiring a component of the magnetic field in a second direction different from the first direction as an output of a third magnetic detection element and an output of a fourth magnetic detection element arranged at a position different from the first magnetic detection element; outputting a first magnetic field calculation signal based on the output of the first magnetic detection element and the output of the second magnetic detection element; outputting a second magnetic field calculation signal having a phase different from that of the first magnetic field calculation signal based on the output of the third magnetic detection element and the output of the fourth magnetic detection element; and outputting an angle signal indicating the rotation angle of the magnet based on the first magnetic field calculation signal and the second magnetic field calculation signal. Effect of the Invention

[0010] According to the present disclosure, it is possible to provide a rotation angle sensor, an angle signal calculation method, and a program that can detect the rotation angle of a magnet with high accuracy even when used in an environment where disturbance magnetic flux occurs. [Brief description of the drawings]

[0011] [Figure 1] 1 is a schematic diagram showing a configuration example of a rotation angle sensor according to a first embodiment; [Diagram 2] 2 is a block diagram showing an example of the configuration of a magnet and a rotation angle detection device in the rotation angle sensor according to the first embodiment. FIG. [Diagram 3]FIG. 3(A) is a plan view showing the positional relationship between a magnetic detection element and a magnet in a rotation angle sensor according to the first embodiment, and FIG. 3(B) is a cross-sectional view showing the positional relationship between a magnetic detection element and a magnet in the rotation angle sensor according to the first embodiment. [Figure 4] 5 is a plan view showing another example of the arrangement relationship between the magnetic detection elements and the magnets in the rotation angle sensor according to the first embodiment. FIG. [Diagram 5] 5(A) and 5(B) are plan views showing other examples of the arrangement relationship between the magnetic detection elements and the magnets in the rotation angle sensor according to the first embodiment. [Figure 6] 6(A) and 6(B) are plan views showing other examples of the arrangement relationship between the magnetic detection elements and the magnets in the rotation angle sensor according to the first embodiment. [Figure 7] 4 is a flowchart illustrating an angle signal calculation method executed by the rotation angle sensor according to the first embodiment. [Figure 8] FIG. 11 is a block diagram showing an example of the configuration of a magnet and a rotation angle detection device in a rotation angle sensor according to a second embodiment. [Figure 9] 13 is a plan view showing the arrangement relationship between a magnetic detection element and a magnet in a rotation angle sensor according to a second embodiment. FIG. [Figure 10] 13 is a cross-sectional view showing the positional relationship between a magnetic detection element and a magnet in a rotation angle sensor according to a second embodiment. FIG. [Figure 11] FIG. 13 is a schematic diagram showing a configuration example of a rotation angle sensor according to a third embodiment. [Figure 12] FIG. 11 is a block diagram showing an example of the configuration of a magnet and a rotation angle detection device in a rotation angle sensor according to a third embodiment. [Figure 13] 13 is a plan view showing the positional relationship between a magnetic detection element and a magnet in a rotation angle sensor according to a third embodiment. FIG. [Figure 14] FIG. 13 is a block diagram showing an example of the configuration of a magnet and a rotation angle detection device in a rotation angle sensor according to a fourth embodiment. [Figure 15] FIG. 13 is a block diagram showing another example of the configuration of the magnet and the rotation angle detection device in the rotation angle sensor according to the fourth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] Hereinafter, an embodiment of the present disclosure will be described with reference to the drawings. However, the embodiment described below is merely an example, and is not intended to exclude various modifications and application of technologies not specified below. The present disclosure can be implemented in various modifications (for example, combinations of the embodiments) without departing from the spirit of the disclosure. In addition, in the following description of the drawings, the same or similar parts are denoted by the same or similar reference numerals.

[0013] 1. First embodiment The rotation angle sensor 1 according to the first embodiment will be described in detail with reference to Figures 1 to 7. Figure 1 shows an example of the configuration of the rotation angle sensor 1.

[0014] (1-1) Rotation angle sensor configuration The rotation angle sensor 1 detects, in a non-contact manner, the rotation angle of a rotating magnet 10. The rotation angle sensor 1 includes a magnet 10 and a rotation angle detection device 20. In this embodiment, the plane of rotation of the magnet 10 is the XY plane, and the direction parallel to the rotation axis 11A of the magnet 10 is the Z-axis direction. The rotation angle sensor 1 detects and outputs the rotation angle θ of the magnet 10 rotating within the XY plane. In this embodiment, the case where the rotation angle sensor 1 is viewed in a direction parallel to the Z-axis is referred to as a "planar view."

[0015] The magnet 10 rotates in response to the rotation of a motor or the like of an external device (hereinafter, sometimes referred to as a rotating body), for example. The rotation angle detection device 20 detects the magnetic field Br around the magnet 10, which changes as the magnet 10 rotates, as a magnetic field signal, and generates and outputs an angle signal Sθ corresponding to the rotation angle of the magnet 10 based on the magnetic field signal. The rotation angle detection device 20 outputs the angle signal Sθ to the control unit of the rotating body described above, etc., via a terminal provided in the rotation angle sensor 1. This allows the external device to control the operation of the rotating body based on the angle signal Sθ obtained from the rotation angle sensor 1. Each component of the rotation angle sensor 1 will now be described in detail.

[0016] <Magnet> FIG. 2 is a block diagram showing an example of the configuration of a rotation angle sensor 1 including a magnet 10 and a rotation angle detection device 20. As shown in FIG. 1, magnet 10 is fixed to shaft 11 extending along rotation axis 11A and arranged to be rotatable about rotation axis 11A. Magnet 10 is substantially circular in plan view and is polarized into at least two poles in a direction perpendicular to rotation axis 11A. Magnet 10 of this embodiment is a bipolar magnet divided into two semicircular regions, one of which is an S pole and the other is an N pole.

[0017] The shaft 11 extends in the Z-axis direction. One end of the shaft 11 is connected to the center of the magnet 10, and the other end of the shaft 11 is connected to a rotating body of an external device. This causes the magnet 10 to rotate in the XY plane in response to the rotation of the rotating body of the external device. When the magnet 10 rotates in the XY plane, the positions of the S pole and N pole change, changing the magnetic field generated around the magnet 10.

[0018] The magnet 10 rotates on a plane approximately parallel to the XY plane, and the rotation angle detection device 20 detects a periodic magnetic field signal corresponding to the rotation of the magnet 10. The magnetic field signal is expressed by equation (1). Here, B indicates the absolute value of the magnetic field detected by the rotation angle detection device 20. In this embodiment, B is approximately constant and is treated as a constant (B=1). Furthermore, θ indicates the rotation angle of the magnet 10 with respect to a predetermined direction or a reference direction. (Number 1) Br(θ)=B·cosθ

[0019] <Rotation angle detection device> The rotation angle detection device 20 detects a first directional component and a second directional component of the magnetic field Br that changes with the rotation of the magnet 10. The rotation angle detection device 20 generates and outputs an angle signal Sθ indicating the rotation angle θ of the magnet 10 at the detection timing, based on the first directional component and the second directional component of the magnetic field Br. In this embodiment, the "first direction" and the "second direction" may be different directions. In this embodiment, a case will be described in which the "first direction" is a direction perpendicular to the rotation axis 11A, and the "second direction" is a direction perpendicular to the first direction and perpendicular to the rotation axis 11A. Specifically, a case will be described in which the "first direction" is the X-axis direction, and the "second direction" is a direction rotated by δ degrees from the X-axis in the XY plane. Note that in this embodiment, a case will be described in which δ is 90 degrees, and the "second direction" is the Y-axis direction.

[0020] The rotation angle detection device 20 includes magnetic detection elements 31A, 31B, 32A, and 32B, a calculation signal generation unit 40, and an angle signal generation unit 50. The following describes each component of the rotation angle detection device 20. The following description is based on the assumption that a uniform disturbance magnetic field Be is generated in the positions where the magnetic detection elements 31A, 31B, 32A, and 32B are arranged.

[0021] (Magnetic detection element) As shown in FIG. 1, magnetic detection elements 31A, 31B, 32A and 32B (examples of the first, second, third and fourth magnetic detection elements) are disposed on the sides of the magnet 10.

[0022] The magnetic detection elements 31A and 31B are elements that detect a component of a magnetic field in a first direction. As shown in FIG. 2, the magnetic detection element 31A detects a component B of a magnetic field in a first direction that is input to the magnetic detection element 31A at a detection timing. 1A A first magnetic field signal S according to 1A The magnetic detection element 31B outputs the second direction component B of the magnetic field input to the magnetic detection element 31B at the detection timing. 1B A second magnetic field signal S according to 1B Output.

[0023] The magnetic detection elements 32A and 32B are elements for detecting the second directional component of the magnetic field. As shown in FIG. 2, the magnetic detection element 32A detects the second directional component B of the magnetic field input to the magnetic detection element 32A at the detection timing.2A The third magnetic field signal S according to 2A The magnetic detection element 32B outputs the third direction component B of the magnetic field input to the magnetic detection element 32B at the detection timing. 2B The fourth magnetic field signal S according to 2B Output.

[0024] 1st magnetic field signal S 1A , second magnetic field signal S 1B , third magnetic field signal S 2A and the fourth magnetic field signal S 2B is, for example, a signal indicating a voltage. The analog voltage signals detected by the magnetic detection elements 31A, 31B, 32A, and 32B are amplified in signal level and converted into digital signals in an amplifier and an AD converter (not shown), and a first magnetic field signal S 1A , second magnetic field signal S 1B , third magnetic field signal S 2A and the fourth magnetic field signal S 2B will be output as:

[0025] When a disturbance magnetic field Be is generated at the positions where the magnetic detection elements 31A, 31B, 32A, and 32B are arranged, the magnetic detection elements 31A and 31B generate a first magnetic field signal S corresponding to a first direction component of a composite magnetic field of the magnetic field Br and the disturbance magnetic field Be. 1A , second magnetic field signal S 1B Similarly, the magnetic detection elements 32A and 32B output a third magnetic field signal S corresponding to the component of the resultant magnetic field in the second direction. 2A and the fourth magnetic field signal S 2B are output, respectively.

[0026] The magnetic detection elements 31A and 31B may detect the first direction component of the magnetic field with the same first direction as the positive direction, or may detect the first direction component of the magnetic field with the opposite direction of the first direction as the positive direction. In other words, the magnetic detection elements 31A and 31B may have magnetic sensitivity axes facing the same direction, or may have magnetic sensitivity axes facing opposite directions (the angle between the magnetic sensitivity axes is 180 degrees). The magnetic detection elements 32A and 32B may detect the second direction component of the magnetic field with the same second direction as their positive directions, or may detect the second direction component of the magnetic field with opposite directions as their positive directions. That is, the magnetic detection elements 32A and 32B may have magnetic sensitivity axes facing the same direction, or may have magnetic sensitivity axes facing opposite directions (the angle between the magnetic sensitivity axes is 180 degrees).

[0027] The magnetic detection elements 31A, 31B, 32A, and 32B are magnetoelectric conversion elements such as, for example, Hall elements, magnetoresistance elements (MR), giant magnetoresistance elements (GMR), tunnel effect magnetoresistance elements (TMR), magneto-impedance elements (MI elements), and / or inductance sensors. The magnetic detection elements 31A, 31B, 32A, and 32B may be composed of a single magnetoelectric conversion element or may be composed of multiple magnetoelectric conversion elements. An example of a magnetic detection element composed of multiple magnetoelectric conversion elements is a circuit composed of multiple magnetoelectric conversion elements (for example, a bridge circuit such as a half-bridge circuit or a full-bridge circuit). An example of a magnetic detection element composed of multiple magnetoelectric conversion elements may include multiple magnetoelectric conversion elements that output a composite signal including magnetic field components in multiple directions, and a calculation circuit for extracting a magnetic field component in a predetermined direction (for example, a magnetic field component in a first direction or a second direction) from the composite signal. In this case, each magnetoelectric conversion element may be disposed adjacent to the magnetic flux concentrator and detect the magnetic field whose direction has been changed by the magnetic flux concentrator, thereby detecting the first directional component or the second directional component of the magnetic field.

[0028] (calculated signal generation section) The calculation signal generating unit 40 performs calculations to output a first magnetic field calculation signal S1 and a second magnetic field calculation signal S2 based on the outputs of the magnetic detection elements 31A, 31B, 32A, and 32B. The calculation signal generating unit 40 performs calculations according to the orientation of the magnetic sensing axes of the magnetic detection elements 31A and 31B, and outputs a first magnetic field calculation signal S1. Furthermore, the calculation signal generating unit 40 performs calculations according to the orientation of the magnetic sensing axes of the magnetic detection elements 32A and 32B, and outputs a second magnetic field calculation signal S2.

[0029] For example, when the magnetic sensing axis of the magnetic detection element 31A and the magnetic sensing axis of the magnetic detection element 31B are in the same direction, the calculation signal generating unit 40 generates the first magnetic field signal S 1A and the second magnetic field signal S which is the output of the magnetic detection element 31B. 1B When the magnetic sensing axis of the magnetic detection element 32A and the magnetic sensing axis of the magnetic detection element 32B are in the opposite directions, the calculation signal generating unit 40 calculates the difference between the third magnetic field signal S 2A and the fourth magnetic field signal S which is the output of the magnetic detection element 32B. 2B Calculate the sum of with. By performing the above calculations, it is possible to reduce leakage magnetic flux from a rotating body such as a motor that occurs in the arrangement environment of these elements, and disturbance magnetic field Be caused by geomagnetism and the like.

[0030] That is, the calculation signal generating unit 40 performs the above calculation to generate the first magnetic field signal S 1A and the second magnetic field signal S which is the output of the magnetic detection element 31B. 1B This allows the calculation signal generating section 40 to generate the first magnetic field calculation signal S1 from which the disturbance magnetic field Be1 has been removed.

[0031] The calculation signal generating unit 40 also generates a third magnetic field signal S 2A and the fourth magnetic field signal S which is the output of the magnetic detection element 32B. 2B In this way, the calculation signal generating section 40 generates the second magnetic field calculation signal S2 from which the disturbance magnetic field Be2 has been removed.

[0032] When the magnetic detection elements 31A and 31B detect the first direction component of the magnetic field with the same first direction as the positive direction of each other, the calculation signal generating unit 40 generates a first magnetic field signal S 1A and the second magnetic field signal S 1B As a result, the calculation signal generating unit 40 calculates the difference between the first magnetic field signal S1A and the second magnetic field signal S 1B The first magnetic field calculation signal S1 is generated by reducing the component Be1 in the first direction of the disturbance magnetic field contained in the first magnetic field calculation signal S1.

[0033] (Number 8) S1=S 1B -S 1A =[cos{θ+2(γ1-α)}+Be1]-{cos(θ-2α)+Be1} =cos(θ-2α+2·γ1)-cos(θ-2α)

[0034] Similarly, the calculation signal generating unit 40 generates a third magnetic field signal S 2A and the fourth magnetic field signal S 2B As a result, the calculation signal generating unit 40 calculates the third magnetic field signal S 2A and the fourth magnetic field signal S 2B The second direction component Be2 of the disturbance magnetic field included in the first magnetic field calculation signal S1 is reduced, and a second magnetic field calculation signal S2 having a phase different from that of the first magnetic field calculation signal S1 is generated.

[0035] (Number 9) S2=S 2B -S 2A =[cos{θ+δ+2(γ2-β)}+Be2]-{cos(θ+δ-2β)+Be2} =cos(θ+δ-2β+2·γ2)-cos(θ+δ-2β)

[0036] On the other hand, when the magnetic detection elements 31A and 31B detect the first direction component of the magnetic field with a direction different from the first direction being the positive direction, the calculation signal generating unit 40 generates the first magnetic field signal S 1A and the second magnetic field signal S 1B As a result, the calculation signal generating unit 40 calculates the sum of the first magnetic field signal S 1A and the second magnetic field signal S 1B The first magnetic field calculation signal S1 is generated by reducing the component Be1 in the first direction of the disturbance magnetic field contained in the first magnetic field calculation signal S1. (Number 10) S1=S 1A +S 1B ={cos(θ-2α)+Be1}+[-cos{θ+2(γ1-α)}-Be1] =cos(θ-2α)-cos(θ-2α+2·γ1)

[0037] Similarly, the calculation signal generating unit 40 generates a third magnetic field signal S 2A and the fourth magnetic field signal S 2B As a result, the calculation signal generating unit 40 calculates the sum of the third magnetic field signal S 2A and the fourth magnetic field signal S 2B The second direction component Be2 of the disturbance magnetic field included in the first magnetic field calculation signal S1 is reduced, and a second magnetic field calculation signal S2 having a phase different from that of the first magnetic field calculation signal S1 is generated. (Number 11) S2=S 2A +S 2B ={cos(θ+δ-2β)+Be2}+[-cos{θ+δ+2(γ2-β)}-Be2] =cos(θ+δ-2β)-cos(θ+δ-2β+2·γ2)

[0038] As shown in Equation 8 to Equation 11, the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2 calculated by the calculation signal generating unit 40 do not include disturbance magnetic field components. In addition, the second magnetic field calculation signal S2 has a different phase from the first magnetic field calculation signal S1. The calculation signal generating section 40 outputs the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2 to the angle signal generating section 50.

[0039] (Angle signal generator) The angle signal generating unit 50 generates an angle signal Sθ indicating the rotation angle of the magnet 10 based on the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2, and outputs it to a control unit of a device (eg, a motor) outside the rotation angle sensor 1. The angle signal generating unit 50 determines the rotation angle θ of the magnet 10 based on the signal obtained by rotating the magnet 10 once, the arrangement positions of each element (arrangement angles α, β, γ1, γ2), and the angle δ between the magnetic sensing axes, and generates an angle signal indicating the rotation angle θ.

[0040] (Arrangement of magnetic detection elements) An example of the arrangement of the magnetic detection elements 31A, 31B, 32A, and 32B according to this embodiment will be described. Fig. 3(A) shows the arrangement relationship between the magnetic detection elements 31A and 31B that detect a first direction component of the magnetic field Br generated by the magnet 10, the magnetic detection elements 32A and 32B that detect a second direction component of the magnetic field Br, and the magnet 10.

[0041] 3A, the arrows overlapping the magnetic detection elements 31A, 31B, 32A, and 32B indicate the direction of the magnetic sensing axis of each element. The magnetic detection elements 31A, 31B, 32A, and 32B output a positive signal when the direction of the magnetic field they detect is the same as the magnetic sensing axis, and output a negative signal when the direction of the magnetic field they detect is opposite to the magnetic sensing axis. FIG. 3A shows an example of the positional relationship between the magnet 10 and the magnetic detection elements 31A, 31B, 32A, and 32B, and the positions of the south pole and north pole of the magnet 10 are not limited to those shown in the figure.

[0042] 3A, the magnetic detection elements 31A and 31B are arranged to have an arrangement angle γ1 (an example of a first arrangement angle), and the magnetic detection elements 32A and 32B are arranged to have an arrangement angle γ2 (an example of a second arrangement angle). Here, the arrangement angle γ1 is, in a plan view, the distance between the magnetic detection element 31A and the rotation axis 11A (the rotation center O of the magnet 10) and the line segment L 1A , and a line segment L connecting the magnetic detection element 31B and the rotating shaft 11A. 1B This refers to the smaller angle among the angles formed by. The arrangement angle γ2 is a distance between the magnetic detection element 32A and the rotation axis 11A (the rotation center O of the magnet 10) and the line segment L 2A , and a line segment L connecting the magnetic detection element 32B and the rotating shaft 11A. 2B This refers to the smaller angle among the angles formed by.

[0043] 3A, the magnetic detection elements 31A and 32A are arranged to have an arrangement angle γ3 (an example of a third arrangement angle), and the magnetic detection elements 31B and 32B are arranged to have an arrangement angle γ4 (an example of a fourth arrangement angle). Here, the arrangement angle γ3 is, in plan view, the line segment L 1A and line segment L 2A This refers to the smaller angle among the angles formed by. In addition, the arrangement angle γ4 is, in plan view, the line segment L 1B and line segment L 2B This refers to the smaller angle among the angles formed by.

[0044] 3B, the magnetic detection elements 31A and 31B may be disposed at different positions along the rotation axis 11A. In this case, in a cross-sectional view passing through the rotation axis 11A and the magnetic detection elements 31A or 31B, the line segment L connecting the magnetic detection element 31A and the center O' of the magnet 10 (the center of the magnet 10 in the thickness direction on the rotation axis 11A) is 1A ', and a line segment L connecting the magnetic detection element 31B and the center O' of the magnet 10. 1B The smaller angle among the angles formed by the angles γ1′ may be set as the arrangement angle γ1′, which is another example of the first arrangement angle. When the magnetic detection elements 32A and 32B are arranged at different positions in the thickness direction of the magnet 10, the line segment L connecting the magnetic detection element 32A and the center O′ of the magnet 10 in a cross-sectional view passing through the rotation axis 11A and the magnetic detection element 32A or 32B may be set as the arrangement angle γ1′, which is another example of the first arrangement angle. 2A ', and a line segment L connecting the magnetic detection element 32B and the center O' of the magnet 10. 2B The smaller angle among the angles formed by the arrangement angles γ2′ and γ3′ may be set as an arrangement angle γ2′, which is another example of the second arrangement angle. 3B, the magnetic detection elements 31A and 32A are arranged to have an arrangement angle γ3', which is another example of the third arrangement angle, and the magnetic detection elements 31B and 32B are arranged to have an arrangement angle γ4', which is another example of the fourth arrangement angle. Here, the arrangement angle γ3' is the line segment L 1A ' and line segment L 2A ' refers to the smaller angle among the angles formed by. In addition, the arrangement angle γ4' is a line segment L 1B ' and line segment L 2B ' refers to the smaller angle among the angles formed by. The arrangement angles γ1' to γ4' can be replaced with the arrangement angles γ1 to γ4 described below. In addition, when the angles of the first arrangement angle and the second arrangement angle can be specified in both the plan view and the cross-sectional view, it is sufficient that either angle is greater than 0 degrees and less than 90 degrees. For example, when γ1 is 15 degrees and γ1' is 0 degrees, γ1 can be set as the first arrangement angle.

[0045] Fig. 3(A) shows an example in which magnetic detection element 31A is disposed at a position of -α degrees with respect to a line L1 that passes through the rotation center O of magnet 10 and is parallel to the magnetic sensing axes of magnetic detection elements 31A and 31B. Fig. 3(A) shows an example in which magnetic detection element 32A is disposed at a position of -β degrees with respect to a line L2 that passes through the rotation center O of magnet 10 and is parallel to the magnetic sensing axes of magnetic detection elements 32A and 32B.

[0046] A description will be given of outputs from the magnetic detection elements 31A, 31B, 32A and 32B arranged as shown in Fig. 3(A) Here, it is assumed that a uniform disturbance magnetic field Be is generated at the arrangement position of each element. 3A, periodic magnetic field components are generated according to the rotation angle θ of the magnet 10. For simplicity's sake, the magnetic field component parallel to the line segment connecting the rotation center of the magnet 10 and the magnetic detection element 31A is denoted as Br, and is shown in equation (2). In this case, if the magnetic field component perpendicular to the line segment connecting the rotation center of the magnet 10 and the magnetic detection element 31A is denoted as Bt, the magnetic field component shown in equation (3) is generated. Note that the following description will be given assuming that the absolute value B of the magnetic field is "1". (Number 2) Br = cos(θ-α) (Number 3) Bt = sin(θ-α)

[0047] The magnetic detection element 31A detects a component of the magnetic field in the first direction at the position where the magnetic detection element 31A is arranged. Therefore, the magnetic detection element 31A outputs a first magnetic field signal S 1A The magnetic detection element 31A outputs a magnetic field signal obtained by combining the magnetic fields of the first direction components included in the above-mentioned Br and Bt as Be1. Furthermore, when a disturbance magnetic field is applied to the magnetic detection element 31A, a signal corresponding to the first direction component of the disturbance magnetic field is output. Therefore, at this time, the magnetic detection element 31A outputs the magnetic field direction component shown in equation (4). Here, Be1 is the first direction component of the disturbance magnetic field Be. (Number 4) S 1A =cos(θ-2α)+Be1

[0048] The magnetic detection element 31B is disposed at an angle γ1 with respect to the magnetic detection element 31A. Therefore, when calculated in the same manner as in the above description of the magnetic detection element 31A, the magnetic detection element 31B outputs a second magnetic field signal S 1B Then, the magnetic field direction component shown in equation (5) is output. (Number 5) S 1B =cos{θ+2(γ1-α)}+Be1 In addition, when the magnetic sensing axis of the magnetic detection element 31B is oriented in the opposite direction to that of the magnetic detection element 31A, the second magnetic field signal S 1B outputs the magnetic field direction component shown in equation (5'). (Number 5') S 1B =-cos{θ+2(γ1-α)}-Be1

[0049] The magnetic detection element 32A detects a component of the magnetic field in the second direction. The magnetic detection element 32A is disposed at an angle γ3 with respect to the magnetic detection element 31A. Therefore, the magnetic detection element 32A outputs a third magnetic field signal S 2A Then, the magnetic field direction component expressed by the formula (6) is output as follows: Here, Be2 is the second direction component of the disturbance magnetic field Be. (Number 6) S 2A =cos(θ+δ-2β)+Be2

[0050] The magnetic detection element 32B is disposed at an angle γ2 with respect to the magnetic detection element 32A. Therefore, the magnetic detection element 32B outputs a fourth magnetic field signal S 2B Then, the magnetic field direction component shown in equation (7) is output. (Number 7) S 2B =cos{θ+δ+2(γ2-β)}+Be2 In addition, when the magnetic sensing axis of the magnetic detection element 32B is oriented in the opposite direction to that of the magnetic detection element 32A, the second magnetic field signal S 1B outputs the magnetic field direction component shown in equation (7'). (Number 7') S 2B =-cos{θ+δ+2(γ2-β)}-Be2

[0051] In the rotation angle sensor 1, in order to generate an angle signal Sθ indicating the rotation angle θ of the magnet 10, the magnetic detection elements 31A, 31B, 32A, and 32B are arranged so as to satisfy the following arrangement conditions.

[0052] (a) First arrangement condition of the magnetic detection element The magnetic detection elements 31A, 31B, 32A, and 32B are preferably arranged so that the magnetic field components generated by the magnet 10 are not cancelled out together with the disturbance magnetic field components by the calculation of the calculation signal generating unit 40. For example, the magnetic detection elements 31A, 31B, 32A, and 32B are arranged at positions where the arrangement angles γ1 and γ2 are greater than 0 degrees and less than 180 degrees. As described above, the calculation signal generating unit 40 performs calculations based on the outputs of the magnetic detection elements 31A and 31B. It can be seen from (Equation 8) and the like that when the arrangement angles γ1 and γ2 are 0 degrees or 180 degrees, the magnetic field components generated by the magnet 10 are also cancelled out by the calculations performed by the calculation signal generating unit 40. Therefore, the arrangement angle γ1 of the magnetic detection elements 31A and 31B and the arrangement angle γ2 of the magnetic detection elements 32A and 32B are adjusted to be greater than 0 degrees and less than 180 degrees.

[0053] Moreover, it is more preferable that the magnetic detection elements 31A, 31B, 32A, and 32B are disposed at positions where at least one of the arrangement angles γ1 and γ2 is greater than 0 degrees and equal to or less than 90 degrees. The arrangement angles γ1 and γ2 are preferable because the angle signal Sθ output from the rotation angle sensor 1 increases as they approach 90 degrees, and the angle signal Sθ output is maximum when the arrangement angles are 90 degrees. Furthermore, the smaller the arrangement angle γ1, the closer the positions of the magnetic detection elements 31A and 31B are, and the closer the magnitudes of the first-direction component Be1 of the disturbance magnetic field Be detected by the magnetic detection elements 31A and 31B become. Similarly, the smaller the arrangement angle γ2, the closer the magnitudes of the second-direction component Be2 of the disturbance magnetic field Be detected by the magnetic detection elements 32A and 32B become. For this reason, in the rotation angle sensor 1, the smaller the arrangement angles γ1 and γ2 are, the smaller the influence of the disturbance magnetic field components becomes, so it is preferable that at least one of the arrangement angles γ1 and γ2 is greater than 0 degrees and less than 90 degrees, since this improves the detection accuracy of the rotation angle of the magnet 10. It is preferable that the arrangement angles γ1 and γ2 are appropriately selected based on the magnitude of the angle signal output from the rotation angle sensor 1 and the accuracy of the angle signal Sθ.

[0054] 2, the magnetic detection elements 31A and 31B for detecting the magnetic field component in the first direction and the magnetic field components 32A and 32B for detecting the magnetic field component in the second direction are arranged at different positions. The component Be1 in the first direction of the disturbance magnetic field Be and the component Be2 in the second direction may not be equal. For this reason, it is preferable to arrange the magnetic detection elements as described above, since it is possible to improve the effect of canceling out the disturbance magnetic field of each component and improve the accuracy of the angle signal Sθ. The magnetic detection elements 31A and 31B and the magnetic detection elements 32A and 32B may be arranged as shown in Fig. 4. That is, the magnetic detection elements 31A, 31B, 32A, and 32B may be arranged at different positions, and at least one of the arrangement angles γ1 and γ2 may be more than 0 degrees and less than 90 degrees (in Fig. 4, both the arrangement angles γ1 and γ2 are more than 0 degrees and less than 90 degrees). Note that, although the magnetic detection elements 31A, 31B, 32A, and 32B are all arranged at different positions in Fig. 4, it is also possible to simply arrange one of the magnetic detection elements 31A and 31B and one of the magnetic detection elements 32A and 32B at different positions.

[0055] Also, as shown in FIG. 5(A) and FIG. 5(B), the magnetic detection elements 31A, 31B, 32A, and 32B may be arranged such that at least one of the arrangement angles γ1 and γ2 is greater than 0 degrees and less than 90 degrees, and the arrangement angle γ2 is smaller than the arrangement angle γ1. FIG. 5(B) differs from FIG. 5(A) in that the magnetic field detection direction of the magnetic detection element 31B is different by 180 degrees. This can also be said to be arranged such that the distance between the magnetic detection elements 32A and 32B is smaller than the distance between the magnetic detection elements 31A and 31B. By arranging the magnetic detection elements 31A, 31B, 32A, and 32B in this way, when the component Be2 in the second direction of the disturbance magnetic field Be is greater than the component Be1 in the first direction, the effect of canceling out Be2 can be enhanced. Furthermore, the signal that can be detected from the magnetic field component in the first direction generated by the magnet 10 can be increased.

[0056] In addition, the magnetic detection elements 31A, 31B, 32A, and 32B may be arranged such that at least one of the arrangement angles γ1 and γ2 is greater than 0 degrees and less than 90 degrees, and either the magnetic detection elements 31A and 31B or the magnetic detection elements 32A and 32B are arranged along a direction perpendicular to the magnetic detection direction of the magnetic detection element. That is, as shown in FIG. 6(A), the magnetic detection elements 31A and 31B may be arranged along the second direction, and as shown in FIG. 6(B), the magnetic detection elements 32A and 32B may be arranged along the first direction. By arranging the magnetic detection elements as shown in FIG. 6(A) and FIG. 6(B), the effect of canceling out each component of the disturbance magnetic field Be can be enhanced.

[0057] (b) Second arrangement condition of the magnetic detection element In the rotation angle sensor 1, it is necessary to detect the phase difference between the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2 in order to generate the angle signal Sθ indicating the rotation angle θ of the magnet 10. Therefore, it is preferable that the magnetic detection elements 31A, 31B, 32A, and 32B are arranged so that the phases of the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2 do not match. For example, the magnetic detection elements 31A, 31B, 32A, and 32B are arranged on a line L1 and a line segment L 1A The angle α between the line L2 and the line segment L 2A It is preferable that the angle β between the magnetic detection elements 31A and 31B and the magnetic sensing axis of the magnetic detection elements 32A and 32B (the angle between the straight lines L1 and L2) is different, the angle between the magnetic sensing axis of the magnetic detection elements 31A and 31B and the magnetic sensing axis of the magnetic detection elements 32A and 32B is equal to twice the difference between the angle β and the angle α, and the magnetic detection elements are arranged at a position other than the position where the arrangement angle γ1 and the arrangement angle γ2 are the same (Equation 8, Equation 9). That is, it is preferable that the magnetic detection elements 31A, 31B, 32A, and 32B are arranged at positions other than the positions where α≠β, δ=2(β-α), and γ1=γ2 in FIG. 3(A).

[0058] As described above, the calculation signal generating unit 40 generates the first magnetic field signal S, which is the output of the magnetic detection element 31A and the magnetic detection element 31B. 1A , second magnetic field signal S 1BThe calculation signal generating unit 40 calculates the first magnetic field calculation signal S1 using the above. Also, the calculation signal generating unit 40 calculates the third magnetic field signal S 2A , the fourth magnetic field signal S 2B When the magnetic detection elements 31A, 31B, 32A, and 32B are arranged at positions where α≠β, δ=2(β-α), and γ1=γ2, the phases of the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2 may match, and the angle signal Sθ may not be obtained. For this reason, it is preferable that the magnetic detection elements 31A, 31B, 32A, and 32B are disposed at positions other than the positions where α≠β, δ=2(β-α), and γ1=γ2.

[0059] As a result, the rotation angle sensor 1 can output the angle signal Sθ with the influence of the disturbance magnetic field Be reduced.

[0060] (1-2) Angle signal calculation method Hereinafter, the angle signal calculation method executed in the above-mentioned rotation angle sensor 1 will be described using FIG. 7 with reference to FIGS. 1 to 3(A) and 3(B). FIG. 7 is a flowchart illustrating the angle signal calculation method of this embodiment.

[0061] The rotation angle sensor 1 detects a component of the magnetic field in a first direction that changes due to the rotation of the magnet 10 as an output of the magnetic detection element 31A (a first magnetic field signal S 1A The rotation angle sensor 1 acquires the component of the magnetic field in the first direction that changes due to the rotation of the magnet 10 as the output of the magnetic detection element 31B (second magnetic field signal S 1B ) (step S12).

[0062] The rotation angle sensor 1 detects the second direction component of the magnetic field that changes due to the rotation of the magnet 10 as the output of the magnetic detection element 32A (third magnetic field signal S 2A The rotation angle sensor 1 acquires the second direction component of the magnetic field that changes due to the rotation of the magnet 10 as the output of the magnetic detection element 32B (fourth magnetic field signal S 2B) (step S14).

[0063] The first magnetic field signal S obtained in steps S11 to S14 1A and the second magnetic field signal S 1B , and the third magnetic field signal S 2A and the fourth magnetic field signal S 2B The first magnetic field signal S 1A and the second magnetic field signal S 1B The disturbance magnetic field Be1 and the third magnetic field signal S 2A and the fourth magnetic field signal S 2B The disturbance magnetic field Be2 contained in the first magnetic field signal S may change depending on the timing of the measurement. 1A From the fourth magnetic field signal S 2B are signals measured at the same timing, these signals contain disturbance magnetic field components in the first or second direction of the same disturbance magnetic field Be, and the detection accuracy of the angle signal Sθ corresponding to the rotation angle θ is improved.

[0064] Next, the calculation signal generating unit 40 calculates the first magnetic field signal S obtained from the magnetic detection element 31A. 1A and the second magnetic field signal S acquired from the magnetic detection element 31B. 1B The calculation signal generating unit 40 calculates the sum or difference of the third magnetic field signal S obtained from the magnetic detection element 32A to generate the first magnetic field calculation signal S1 (step S15). 2A and the fourth magnetic field signal S obtained from the magnetic detection element 32B. 2B The sum or difference is calculated to generate a second magnetic field calculation signal S2 (step S16).

[0065] Finally, the angle signal generating unit 50 generates an angle signal Sθ indicating the rotation angle of the magnet 10 based on the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2, and outputs it to, for example, a control unit of a device (e.g., a motor) external to the rotation angle sensor 1 (step S17).

[0066] In addition, the first magnetic field signal S 1A , second magnetic field signal S 1B , third magnetic field signal S2A and the fourth magnetic field signal S 2B The acquisition of may be performed simultaneously or at different times or in a different order. Also, the calculations in steps S15 and S16 may be performed simultaneously or at different times or in a different order, as long as step S15 is performed after step S11 and step S12, and step S16 is performed after step S13 and step S14.

[0067] The rotation angle sensor 1 described above includes, for example, at least one processor. In the rotation angle sensor 1, the processor converts a first direction component of a magnetic field that changes due to the rotation of the magnet 10 that is polarized in at least two directions perpendicular to the rotation axis 11A and is arranged to be rotatable around the rotation axis 11A into a first magnetic field signal S that is an output of the magnetic detection element 31A. 1A The magnetic field component in the first direction is acquired as the output of the magnetic detection element 31B that is disposed at a position different from the magnetic detection element 31A and at a position where the first arrangement angle with respect to the magnetic detection element 31A is greater than 0 degrees and less than 90 degrees, and the magnetic field component in the second direction different from the first direction is acquired as the third magnetic field signal S that is the output of the magnetic detection element 32A. 2A and the fourth magnetic field signal S which is the output of the magnetic detection element 32B. 2B and the first magnetic field signal S 1A and the second magnetic field signal S which is the output of the magnetic detection element 31B. 1B and outputs a first magnetic field calculation signal S1 based on the result of the calculation, and a third magnetic field signal S 2A and the fourth magnetic field signal S which is the output of the magnetic detection element 32B. 2B and outputs a second magnetic field calculation signal S2 having a phase different from that of the first magnetic field calculation signal S1 based on the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2, and functions as a calculation signal generating unit 40 and an angle signal generating unit 50 by executing an angle signal calculation method that generates and outputs an angle signal Sθ indicating the rotation angle θ of the magnet 10 based on the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2. Here, the first arrangement angle is a line segment L connecting the rotation axis 11A of the magnet 10 and the magnetic detection element 31A in a plan view. 1A and a line segment L connecting the magnetic detection element 31B and the rotating shaft 11A.1B or the line segment L connecting the magnetic detection element 31A and the center O' of the magnet 10 in a cross-sectional view. 1A ' and a line segment L connecting the magnetic detection element 31B and the center O' of the magnet 10. 1B ' is the smaller of the angles formed by

[0068] (1-3) Program The following describes a program for the angle signal calculation process performed by the rotation angle detection device 20 of the rotation angle sensor 1. The rotation angle detection device 20 generates and outputs an angle signal Sθ corresponding to the rotation angle θ according to a program that causes a computer to execute each of the following steps (a) to (f). The following program is recorded on a recording medium such as an optical disc such as a DVD disc or Blu-ray (registered trademark), a hard disk drive, or a memory. The following program may be distributed via the Internet. Furthermore, the following program may be recorded on a cloud server, and each step may be executed via the Internet.

[0069] (a) A component in a first direction of a magnetic field that changes due to the rotation of a magnet 10 that is polarized into at least two poles in a direction perpendicular to the rotation axis 11A and is arranged to be rotatable around the rotation axis 11A is converted into a first magnetic field signal S, which is an output of a magnetic detection element 31A. 1A To obtain as (b) acquiring the component of the magnetic field in the first direction as an output of the magnetic detection element 31B that is disposed at a position different from the magnetic detection element 31A and at a position where the first arrangement angle with the magnetic detection element 31A is greater than 0 degrees and less than 90 degrees; (c) A component of the magnetic field in a second direction different from the first direction is output from the magnetic detection element 32A arranged at a position different from the magnetic detection element 31A as a third magnetic field signal S 2A and the fourth magnetic field signal S which is the output of the magnetic detection element 32B. 2B To obtain as (d) The first magnetic field signal S which is the output of the magnetic detection element 31A 1A and the second magnetic field signal S which is the output of the magnetic detection element 31B. 1B and outputting a first magnetic field calculation signal S1 based on the (e) The third magnetic field signal S which is the output of the magnetic detection element 32A 2A and the fourth magnetic field signal S which is the output of the magnetic detection element 32B. 2B and outputting a second magnetic field calculation signal S2 having a phase different from that of the first magnetic field calculation signal S1 based on the (f) outputting an angle signal Sθ indicating a rotation angle θ of the magnet 10 based on the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2; Here, the first arrangement angle is a line segment L connecting the rotation axis 11A of the magnet 10 and the magnetic detection element 31A in a plan view. 1A and a line segment L connecting the magnetic detection element 31B and the rotating shaft 11A. 1B or the line segment L connecting the magnetic detection element 31A and the center O' of the magnet 10 in a cross-sectional view. 1A ' and a line segment L connecting the magnetic detection element 31B and the center O' of the magnet 10. 1B ' is the smaller of the angles formed by

[0070] <Effects of the First Embodiment> The rotation angle sensor 1 according to the first embodiment has the following advantages. (1) The rotation angle sensor 1 includes two magnetic detection elements that detect a magnetic field in a first direction and two magnetic detection elements that detect a magnetic field in a second direction different from the first direction, and calculates the sum or difference of the outputs of the magnetic detection elements that detect the magnetic field in the same direction when detecting the rotation angle θ of the magnet 10. The rotation angle sensor 1 detects an angle signal Sθ corresponding to the rotation angle θ using the sum or difference of the outputs of the magnetic detection elements that detect the magnetic field in the same direction. Therefore, even when the rotation angle sensor 1 is used in an environment where disturbance magnetic flux occurs, it is possible to reduce the influence of disturbance magnetic flux and detect the rotation angle of the magnet with high accuracy.

[0071] (2) In the rotation angle sensor 1, two magnetic detection elements that detect a magnetic field in the same direction are arranged so that the angle between the two magnetic detection elements is greater than 0 degrees and less than 180 degrees. Therefore, even if a calculation is performed to remove the disturbance magnetic field components, the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2 used in the calculation of the angle signal Sθ can be obtained.

[0072] (3) In the rotation angle sensor 1, it is preferable that two magnetic detection elements that detect a magnetic field in the same direction are arranged so that the angle between them is greater than 0 degrees and less than or equal to 90 degrees. As a result, when the angle between the two magnetic detection elements that detect a magnetic field in the same direction is 90 degrees, the angle signal Sθ is maximized, and the smaller the angle, the smaller the influence of the disturbance magnetic field components, improving the accuracy of the angle signal Sθ.

[0073] 2. Second embodiment A rotation angle sensor 2 according to a second embodiment will be described in detail using Fig. 8 to Fig. 10 while referring to Fig. 1 to Fig. 7. In this embodiment, a case will be described in which a first direction of a magnetic field detected by the rotation angle sensor 2 is a direction perpendicular to the rotation axis 11A, and a second direction is a direction parallel to the rotation axis 11A. In this embodiment, the "first direction" will be described as the X-axis direction, and the "second direction" will be described as the Z-axis direction.

[0074] 8, the rotation angle sensor 2 includes magnetic detection elements 31A, 31B, 33A, and 33B, a magnet 10, a calculation signal generation unit 40, and an angle signal generation unit 50. That is, the rotation angle sensor 2 differs from the rotation angle sensor 1 according to the first embodiment in that the rotation angle sensor 2 includes magnetic detection elements 33A and 33B that detect magnetic field direction components in the Z-axis direction instead of the magnetic detection elements 32A and 32B.

[0075] The magnetic detection elements 33A and 33B will be described in detail below. The magnetic detection elements 31A and 31B, the magnet 10, the calculation signal generation unit 40, and the angle signal generation unit 50 have the same configurations as the corresponding units of the rotation angle sensor 1 according to the first embodiment, and therefore descriptions thereof will be omitted.

[0076] (Magnetic detection element) The magnetic detection elements 31A and 31B are elements for detecting a component of a magnetic field in a first direction (X-axis direction). The magnetic detection elements 31A and 31B detect a first magnetic field signal S according to a rotation angle θ of the magnet 10. 1A and the second magnetic field signal S 1B are output, respectively. The magnetic detection elements 33A and 33B are elements that detect the component of the magnetic field in the second direction (Z-axis direction). The magnetic detection element 33A detects the component B of the magnetic field in the second direction that is input to the magnetic detection element 33A at the detection timing. 3A The fifth magnetic field signal S according to 3A The magnetic detection element 33B outputs the second direction component B of the magnetic field input to the magnetic detection element 33B at the detection timing. 3B The sixth magnetic field signal S according to 3B Output.

[0077] 5th magnetic field signal S 3A and the sixth magnetic field signal S 3B is, for example, a signal indicating a voltage. The analog voltage signals detected by the magnetic detection elements 33A and 33B are amplified in signal level and converted into digital signals in an amplifier and an AD converter (not shown), and a fifth magnetic field signal S 3A and the sixth magnetic field signal S 3B will be output as: When a disturbance magnetic field Be is generated at the position where the magnetic detection elements 33A and 33B are arranged, the magnetic detection elements 33A and 33B generate a fifth magnetic field signal S corresponding to the component in the second direction (Z-axis direction) of the resultant magnetic field of the magnetic field Br and the disturbance magnetic field Be. 3A , 6th magnetic field signal S 3B are output, respectively. The magnetic detection elements 33A and 33B may detect the second direction component of the magnetic field with the same direction in the second direction (Z-axis direction) as their positive direction, or may detect the second direction component of the magnetic field with opposite directions to the second direction as their positive direction.

[0078] (Arrangement of magnetic detection elements) FIG. 9 shows the positional relationship between the magnet 10 and magnetic detection elements 31A and 31B that detect the first direction component of the magnetic field Br generated by the magnet 10, and the magnetic detection elements 33A and 33B that detect the second direction component of the magnetic field Br. The magnetic detection elements 33A and 33B are arranged in place of the magnetic detection elements 32A and 32B of the rotation angle sensor 1. The arrangement relationship between the magnetic detection elements 31A and 31B and the magnetic detection elements 33A and 33B is similar to that between the magnetic detection elements 31A and 31B and the magnetic detection elements 32A and 32B of the rotation angle sensor 1. That is, the magnetic detection elements 33A and 33B are arranged to have an arrangement angle γ2 (an example of a second arrangement angle), and the magnetic detection elements 31B and 33B are arranged to have an arrangement angle γ4 (an example of a fourth arrangement angle). The magnetic detection element 33A is disposed at a position of −β degrees with respect to a line L3 that passes through the rotation center O of the magnet 10 and is perpendicular to the magnetic sensing axes of the magnetic detection elements 33A and 33B.

[0079] A description will be given of the outputs of the magnetic detection elements 33A and 33B arranged as shown in Fig. 9. It is assumed here that a uniform disturbance magnetic field Be is generated at the arrangement position of each element.

[0080] The magnetic detection element 33A detects a component of the magnetic field in the second direction (Z-axis direction). The magnetic detection element 33A is disposed at an arrangement angle γ3 with respect to the magnetic detection element 31A. Therefore, the magnetic detection element 33A detects a fifth magnetic field signal S 3A Then, the magnetic field direction component expressed by the formula (12) is output as follows: Here, Be2 is the second direction component of the disturbance magnetic field Be. (Number 12) S 3A =cos(θ+δ-β)+Be2

[0081] The magnetic detection element 33B is disposed at an angle γ2 with respect to the magnetic detection element 33A, and detects the component of the magnetic field in the second direction. Therefore, the magnetic detection element 33B outputs a sixth magnetic field signal S 3B and outputs the magnetic field direction component shown in equation (13). (Number 13) S 3B =cos(θ+δ-β+γ2)+Be2

[0082] In the rotation angle sensor 2, in order to generate an angle signal Sθ indicating the rotation angle θ of the magnet 10, the magnetic detection elements 31A and 31B that detect a magnetic field in a first direction perpendicular to the rotation axis 11A and the magnetic detection elements 33A and 33B that detect a magnetic field in a second direction parallel to the rotation axis 11A are arranged so as to satisfy the following arrangement conditions.

[0083] (a) First arrangement condition of the magnetic detection element The first arrangement condition of the magnetic detection elements is similar to the first arrangement condition described in the first embodiment. The magnetic detection elements 31A, 31B, 33A, and 33B are arranged at positions where the arrangement angles γ1 and γ2 are greater than 0 degrees and less than 180 degrees, and it is more preferable that at least one of the arrangement angles γ1 and γ2 is greater than 0 degrees and less than 90 degrees. This is to prevent the magnetic field components generated by the magnet 10 from being cancelled out together with the disturbance magnetic field components when the calculation signal generating unit 40 performs a calculation to cancel out the disturbance magnetic field components. The arrangement angles γ1 and γ2 are preferably set to 90 degrees because the angle signal Sθ output from the rotation angle sensor 2 increases as they approach 90 degrees, and the angle signal output is maximized when the arrangement angles are 90 degrees.

[0084] (b) Second arrangement condition of the magnetic detection element The magnetic detection elements 31A and 31B are disposed at positions asymmetrical with respect to a line L1 that passes through the rotation center O of the magnet 10 and is parallel to the magnetic sensing axes of the magnetic detection elements 31A and 31B. In addition, the magnetic detection elements 33A and 33B are disposed at positions asymmetrical with respect to a line L3 that passes through the rotation center O of the magnet 10 and is perpendicular to the magnetic sensing axes of the magnetic detection elements 33A and 33B.

[0085] When the magnetic detection elements 31A and 31B are arranged in positions that are linearly symmetrical with respect to the line L1, and the magnetic detection elements 33A and 33B are arranged in positions that are linearly symmetrical with respect to the line L3, the phases of the first magnetic field calculation signal S1 and the third magnetic field calculation signal S3, which are outputs of the calculation signal generating unit 40, match, and the angle signal Sθ indicating the rotation angle θ of the magnet 10 cannot be generated.

[0086] (c) Third arrangement condition of the magnetic detection element FIG. 10 is a cross-sectional view taken along line VII-VII in FIG. In the rotation angle sensor 2 using the magnetic detection elements 33A and 33B that detect the magnetic field parallel to the rotation axis 11A, the magnetic detection element 31A is disposed in a position where the magnetic sensing surface of the magnetic detection element 31A is shifted from the center of the thickness of the magnet 10. Here, the "thickness of the magnet 10" refers to the distance of the magnet 10 in the direction of the rotation axis 11A. Similarly, the magnetic sensing surfaces of the magnetic detection elements 31B, 33A, and 33B are also disposed at positions shifted from the center of the thickness of the magnet 10.

[0087] (d) Fourth arrangement condition of the magnetic detection element It is preferable that the magnetic detection elements 31A, 31B, 33A, and 33B are arranged at positions where the arrangement angles γ3 and γ4 are different from the angle δ between the first direction and the second direction, and the arrangement angles γ1 and γ2 are different.

[0088] (calculated signal generation section) The calculation signal generating section 40 performs calculations based on the outputs of the magnetic detection elements 31A, 31B, 33A, and 33B, and outputs a first magnetic field calculation signal S1 and a third magnetic field calculation signal S3. The calculation signal generating unit 40 generates a first magnetic field signal S 1A and the second magnetic field signal S 1B Calculate the difference between As a result, the calculation signal generating unit 40 calculates the first magnetic field signal S 1A and the second magnetic field signal S 1B It is possible to generate a first magnetic field calculation signal S1 in which the component Be1 in the first direction of the disturbance magnetic field contained in the first magnetic field calculation signal S1 is reduced. Equation (14) is the same as equation (8).

[0089] (Number 14) S1=S 1B -S 1A =[cos{θ+2(γ1-α)}+Be1]-{cos(θ-2α)+Be1} =cos(θ-2α+2·γ1)-cos(θ-2α)

[0090] The calculation signal generating unit 40 generates a third magnetic field calculation signal S3 by performing a calculation such that the disturbance magnetic field Be2 included in the output of the magnetic detection element 33A and the disturbance magnetic field Be2 included in the output of the magnetic detection element 33B have opposite signs. The calculation signal generating unit 40 outputs the fifth magnetic field signal S 3A and the sixth magnetic field signal S which is the output of the magnetic detection element 33B. 3B As a result, the calculation signal generating unit 40 calculates the fifth magnetic field signal S 3A and the sixth magnetic field signal S 3B The component Be2 in the second direction of the disturbance magnetic field contained in the first magnetic field calculation signal S1 is reduced, and a third magnetic field calculation signal S3 having a phase different from that of the first magnetic field calculation signal S1 is generated.

[0091] (Number 15) S3=S 3B -S 3A ={cos(θ+δ-β+γ2)+Be2}-{cos(θ+δ-β)+Be2} =cos(θ+δ-β+γ2)-cos(θ+δ-β)

[0092] As shown in Equation 14 and Equation 15, the first magnetic field calculation signal S1 and the third magnetic field calculation signal S3 calculated by the calculation signal generating unit 40 do not include disturbance magnetic field components. In addition, the third magnetic field calculation signal S3 has a different phase from the first magnetic field calculation signal S1. The calculation signal generating section 40 outputs the first magnetic field calculation signal S1 and the third magnetic field calculation signal S3 to the angle signal generating section 50.

[0093] In addition, when the magnetic detection elements 33A and 33B detect the second direction component of the magnetic field with a direction different from the second direction being the positive direction, the calculation signal generating unit 40 outputs the fifth magnetic field signal S 3A and the sixth magnetic field signal S which is the output of the magnetic detection element 33B. 3B This generates the third magnetic field calculation signal S3 in which the disturbance magnetic field has been cancelled.

[0094] As a result, the rotation angle sensor 2 can output the angle signal Sθ with the influence of the disturbance magnetic field Be reduced.

[0095] <Effects of the Second Embodiment> In addition to the effects described in the first embodiment, the rotation angle sensor 2 according to the second embodiment has the following effects. (4) The rotation angle sensor 2 can detect magnetic fields not only in a direction parallel to the rotation plane of the magnet 10 but also in a direction perpendicular to the rotation plane of the magnet 10 and output an angle signal Sθ corresponding to the rotation angle θ of the magnet 10.

[0096] 3. Third embodiment A rotation angle sensor 3 according to a third embodiment will be described in detail using Figures 11 to 13 while referring to Figures 1 to 7. In this embodiment, a case will be described in which the rotation angle sensor 3 has a biaxial magnetic detection element capable of detecting magnetic fields in two directions, the X-axis direction being a first direction and the Z direction being a second direction different from the first direction.

[0097] <Configuration of rotation angle sensor> Fig. 11 shows an example of the configuration of the rotation angle sensor 3. The rotation angle sensor 3 includes biaxial magnetic detection elements 30A and 30B, a magnet 10, a calculation signal generation unit 40, and an angle signal generation unit 50 (the calculation signal generation unit 40 and the angle signal generation unit 50 are not shown in Fig. 11). That is, the rotation angle sensor 3 differs from the rotation angle sensor 1 according to the first embodiment in that it includes a biaxial magnetic detection element 30A instead of the magnetic detection elements 31A and 32A, and includes a biaxial magnetic detection element 30B instead of the magnetic detection elements 31B and 32B. The biaxial magnetic detection elements 30A and 30B will be described in detail below. The magnet 10, the calculation signal generating unit 40, and the angle signal generating unit 50 have the same configurations as the corresponding units of the rotation angle sensor 1 according to the first embodiment, and therefore their descriptions will be omitted.

[0098] <Two-axis magnetic detection element> The biaxial magnetic detection elements 30A and 30B are magnetic detection elements capable of detecting magnetic fields in both two directions: the X-axis direction which is a first direction, and the Z direction which is a second direction different from the first direction. The biaxial magnetic detection element 30A includes a magnetic detection element 31A and a magnetic detection element 32A that detect magnetic fields in different directions. The magnetic detection element 31A is an element arranged so as to be able to detect a magnetic field in the X-axis direction, and the magnetic detection element 32A is an element arranged so as to be able to detect a magnetic field in the Z-axis direction. The biaxial magnetic detection element 30A detects the component B in the X-axis direction of the magnetic field input to the biaxial magnetic detection element 30A at the detection timing. 1A A first magnetic field signal S according to 1A and the Y-axis component B of the magnetic field input to the two-axis magnetic detection element 30A. 2A The third magnetic field signal S according to 2A The first magnetic field signal S 1A and the third magnetic field signal S 2A is a signal corresponding to the rotation angle θ of the magnet 10 at the detection timing.

[0099] The biaxial magnetic detection element 30B has a magnetic detection element 31B and a magnetic detection element 32B that detect magnetic fields in different directions. The magnetic detection element 31B is an element arranged so as to be able to detect a magnetic field in the X-axis direction, and the magnetic detection element 32A is an element arranged so as to be able to detect a magnetic field in the Z-axis direction. The biaxial magnetic detection element 30B detects the component B in the X-axis direction of the magnetic field input to the biaxial magnetic detection element 30B at the detection timing. 1B A second magnetic field signal S according to 1B and the Y-axis component B of the magnetic field input to the two-axis magnetic detection element 30B. 2B The fourth magnetic field signal S according to 2B The second magnetic field signal S 1B and the fourth magnetic field signal S 2B is a signal corresponding to the rotation angle θ of the magnet 10 at the detection timing.

[0100] The magnetic detection elements 31A, 31B, 32A, and 32B are, for example, magnetoresistance elements. Furthermore, each of the two-axis magnetic detection elements 30A and 30B may include, for example, a magnetic flux concentrator and a plurality of Hall elements. The biaxial magnetic detection element 30A may be an element in which two magnetic detection elements (magnetic detection element 31A and magnetic detection element 32A) are integrally formed, or may be a single device in which the magnetic detection element 31A and the magnetic detection element 32A, which are separately formed, are built in.

[0101] When the magnetic detection element 31A and the magnetic detection element 32A are integrally formed, i.e., formed on the same substrate to form the biaxial magnetic detection element 30A, it is preferable that the magnetic detection element 31A and the magnetic detection element 32A are formed in an area of ​​the substrate closer to the magnet 10. In this case, the detected magnetic field becomes larger, and the output of the rotation angle sensor 3 becomes larger, which is preferable. Moreover, it is preferable that the magnetic detection elements 31A and 32A are formed in adjacent regions on the substrate, since this reduces the difference in the value of the disturbance magnetic field Be input to the magnetic detection elements 31A and 32A, and increases the effect of removing the disturbance magnetic field in the rotation angle sensor 3. The same applies to the biaxial magnetic detection element 30B.

[0102] <Arrangement of two-axis magnetic detection element and magnet> 13 shows an example of the configuration in plan view of the rotation angle sensor 3. Hereinafter, the arrangement of the biaxial magnetic detection elements 30A and 30B and the magnet 10 in the rotation angle sensor 3 will be described with reference to FIG. As shown in Fig. 13, the biaxial magnetic detection elements 30A and 30B are arranged to have an arrangement angle γ1. Fig. 13 shows an example in which the biaxial magnetic detection element 30A is arranged at a position of -α degrees with respect to a straight line L1 that passes through the rotation center O of the magnet 10 and is parallel to the magnetic sensing axes of the biaxial magnetic detection elements 30A and 30B in the X-axis direction.

[0103] At this time, the biaxial magnetic detection element 30A outputs a first magnetic field signal S according to the rotation angle θ of the magnet 10 at the detection timing. 1A , third magnetic field signal S 2A Then, magnetic field signals expressed by the following equations (16) and (17) are output. Here, Be1 is the component of the disturbance magnetic field Be in the X-axis direction, and Be2 is the component of the disturbance magnetic field Be in the Y-axis direction. (Number 16) S 1A =cos(θ-2α)+Be1 (Number 17) S 2A =cos{θ+δ-2(δ+α)}+Be2 =cos(θ-δ-2α)+Be2

[0104] In addition, the biaxial magnetic detection element 30B outputs a second magnetic field signal S according to the rotation angle θ of the magnet 10 at the detection timing. 1B , the fourth magnetic field signal S 2B The second magnetic field signal S is expressed by the following equations (18) and (19): 1B , the fourth magnetic field signal S 2B Output. (Number 18) S 1B =cos{θ+2(γ1-α)}+Be1 (Number 19) S 2B =cos{θ+δ-2(δ+α-γ1)}+Be2=cos{θ-δ+2(γ1-α)}+Be2 When δ=90°, the third magnetic field signal S 2A , the fourth magnetic field signal S 2B (Number 17') The third magnetic field signal S 2A , the fourth magnetic field signal S 2B Output. (Number 17') S 2A =sin(θ-δ-2α)+Be2 (Number 19') S 2B =sin{θ-δ+2(γ1-α)}+Be2

[0105] In the rotation angle sensor 3, in order to generate an angle signal Sθ indicating the rotation angle θ of the magnet 10, the two-axis magnetic detection elements 30A and 30B are arranged so as to satisfy the following arrangement conditions.

[0106] (a) First arrangement condition of the two-axis magnetic detection element The two-axis magnetic detection elements 30A and 30B are arranged at positions that are not symmetrical with respect to straight lines L1 and L2 that pass through the rotation axis 11A of the magnet 10 and are parallel to the magnetic field detection direction (X-axis direction and Z-axis direction) of the two-axis magnetic detection element 30A or the two-axis magnetic detection element 30B. This enables the rotation angle sensor 3 to generate an angle signal Sθ that indicates the rotation angle θ of the magnet 10.

[0107] <Calculation signal generation section> The calculation signal generating unit 40 performs calculations based on the outputs of the two-axis magnetic detection elements 30A and 30B, and outputs a first magnetic field calculation signal S1 and a second magnetic field calculation signal S2. The calculation signal generating unit 40, like the calculation signal generating unit 40 of the first embodiment, outputs the first magnetic field signal S 1A and the second magnetic field signal S 1B The sum or difference of these is calculated to generate a first magnetic field calculation signal S1, and the third magnetic field signal S 2A and the fourth magnetic field signal S 2B The sum or difference between these is calculated to generate the second magnetic field calculation signal S2. By the calculation signal generating unit performing the above calculation, it is possible to reduce the disturbance magnetic field Be component included in the outputs of the two-axis magnetic detection elements 30A and 30B.

[0108] <Angle signal generator> The angle signal generating unit 50 generates an angle signal Sθ indicating the rotation angle of the magnet 10 based on the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2, and outputs it to a control unit of a device (eg, a motor) outside the rotation angle sensor 3. The angle signal generating unit 50 determines the rotation angle θ of the magnet 10 based on the signal obtained by rotating the magnet 10 once, the arrangement positions of each element (arrangement angles α, γ1), and the angle δ between the magnetic sensing axes, and generates an angle signal indicating the rotation angle θ.

[0109] As a result, the rotation angle sensor 3 can output the angle signal Sθ with the influence of the disturbance magnetic field Be reduced. <Effects of the Third Embodiment> In addition to the effects described in the first embodiment, the rotation angle sensor 3 according to the third embodiment has the following effects. (5) The rotation angle sensor 3 uses a biaxial magnetic detection element capable of detecting magnetic fields in at least two directions. When a biaxial magnetic detection element in which magnetic detection elements capable of detecting magnetic fields in different directions are integrally formed (on the same substrate) is used, the magnetic detection elements capable of detecting magnetic fields in different directions are arranged close to each other, improving the accuracy of the angle signal Sθ.

[0110] 4. Fourth embodiment A rotation angle sensor 4 according to a fourth embodiment will be described in detail using Fig. 14 and Fig. 15 while referring to Fig. 1 to Fig. 13. Fig. 14 is a block diagram showing an example of the configuration of the rotation angle sensor 4, and Fig. 15 is a block diagram showing another example of the configuration of the rotation angle sensor 4. The rotation angle sensor 4 differs from the rotation angle sensor 1 according to the first embodiment to the rotation angle sensor 3 according to the third embodiment in that the rotation angle sensor 4 includes a correction unit 60 or a correction unit .

[0111] The correction unit 60 or the correction unit 70 will be described in detail below. Note that Fig. 14 and Fig. 15 show the configuration of the rotation angle sensor 4 from the calculation signal generation unit 40 onwards, and the magnet 10 and each magnetic detection element (magnetic detection elements 31A, 31B, 32A and 32B, or biaxial magnetic detection elements 30A and 30B) are omitted. Also, the calculation signal generation unit 40 and the angle signal generation unit 50 have the same configuration as the corresponding parts of the rotation angle sensor 1 according to the first embodiment to the rotation angle sensor 3 according to the third embodiment, and therefore their description will be omitted. The correction unit 60 or the correction unit 70 can be combined with any of the rotation angle sensor 1 according to the first embodiment to the rotation angle sensor 3 according to the third embodiment.

[0112] <Correction section> The first magnetic field calculation signal S1 and the second magnetic field calculation signal S2 output from the calculation signal generating unit 40 may have error components. Such types of errors include an amplitude error between the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2, an other-axis sensitivity error caused by the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2 each having a other-axis sensitivity, and an offset error caused by the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2 each having an offset component. The rotation angle sensor 4 of this embodiment may have a correction unit 60 or 70 for reducing the influence of such error components.

[0113] The correction unit will be described in detail below. First, the rotation angle sensor 4 shown in FIG. The correction unit 60 corrects the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2 input from the calculation signal generation unit 40, and outputs a first corrected calculation signal S1' and a second corrected calculation signal S2', which are the corrected first magnetic field calculation signal S1 and the second magnetic field calculation signal S2, to the angle signal generation unit 50. The correction unit 60 has a calculation signal correction unit 61, a storage unit 62, and a correction value calculation unit 63. The correction unit 60 also has an acquisition unit 64 and a supply unit 65.

[0114] (Calculation signal correction section) The calculation signal correcting unit 61 is connected to the calculation signal generating unit 40, and receives the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2. The calculation signal correcting unit 61 also outputs a first corrected calculation signal S1' obtained by correcting the first magnetic field calculation signal S1 and a second corrected calculation signal S2' obtained by correcting the second magnetic field calculation signal S2 based on the correction value ε, and supplies them to the angle signal generating unit 50. As a result, the angle signal generating section 50 receives the first corrected calculation signal S1' and the second corrected calculation signal S2' supplied by the calculation signal correcting section 61 as magnetic field calculation signals, and outputs the angle signal Sθ.

[0115] The storage unit 62 stores the correction value ε used when the calculation signal correction unit 61 performs the correction calculation. The storage unit 62 may store a plurality of correction values ​​ε. Furthermore, the storage unit 62 may update the correction value ε when the creation date and time of the correction value ε received from the correction value calculation unit 63 described later is newer than the creation date and time of the stored correction value ε. Alternatively, the storage unit 62 may linearly combine the plurality of correction values ​​ε and store it as a new correction value ε.

[0116] The correction value calculation unit 63 receives the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2 from the calculation signal generation unit 40, and calculates a correction value ε for correcting the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2. The correction value calculation unit 63 receives the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2, and calculates a correction value ε for reducing at least one error among the offset error, the amplitude error, and the other axis sensitivity error of these signals. The correction value calculation unit 63 supplies the calculated correction value ε to the storage unit 62.

[0117] The acquisition unit 64 receives the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2 from the calculation signal generation unit 40 and outputs them to the correction value calculation unit 63. The supplying unit 65 receives the correction value ε from the correction value calculating unit 63 and outputs it to the storage unit 62 .

[0118] Next, the rotation angle sensor 4 shown in FIG. 15 will be described. The correction unit 70 receives an angle signal Sθ calculated by the angle signal generation unit 50 based on the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2. If the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2 output from the calculation signal generation unit 40 have an error component, the angle signal Sθ calculated based on the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2 also contains an error. The correction unit 70 corrects the angle signal Sθ input from the angle signal generation unit 50 and outputs a corrected angle signal Sθ'. The correction unit 70 includes an angle signal correction unit 71, a storage unit 72, and a correction value calculation unit 73. The correction unit 70 also includes an acquisition unit 74 and a supply unit 75.

[0119] (Angle signal correction section) In order to reduce the error caused in the angle signal Sθ due to the error component described above, the angle signal correction unit 71 corrects the angle signal Sθ to generate and output a corrected angle signal Sθ'. The angle signal correction unit 71 receives the angle signal Sθ, corrects the error of the angle signal Sθ based on the correction value ε, and generates and outputs a corrected angle signal Sθ' in which the error of the angle signal Sθ has been reduced.

[0120] The storage unit 72 stores the correction value ε used when the angle signal correction unit 71 performs a correction calculation. The storage unit 72 may store a plurality of correction values. Furthermore, the storage unit 72 may update the correction value when the creation date and time of a correction value received from the correction value calculation unit 73 described later is newer than the creation date and time of the stored correction value. Alternatively, the storage unit 72 may linearly combine the plurality of correction values ​​and store them as a new correction value.

[0121] The correction value calculation unit 73 receives the angle signal Sθ from the angle signal generation unit 50 and calculates a correction value for correcting the angle signal Sθ. The correction value calculation unit 73 receives the angle signal Sθ and calculates a correction value for reducing an error in this signal. The correction value calculation unit 73 supplies the calculated correction value to the storage unit 72.

[0122] In this embodiment, the configuration has been described in which the correction value is calculated inside the rotation angle sensor 4, but the present invention is not limited to this. That is, the calculation of the correction value may be performed outside the rotation angle sensor 4. In this case, for example, the correction value calculation unit 63, the acquisition unit 64, and the supply unit 65 are provided outside the rotation angle sensor 4 as a correction calculation device. At this time, the acquisition unit 64 receives the first magnetic field calculation signal S1 and the second magnetic field calculation signal S2 from the rotation angle sensor, and the supply unit 65 supplies the correction value to the rotation angle sensor.

[0123] <Effects of the Fourth Embodiment> The rotation angle sensor 4 of the fourth embodiment has the following advantages in addition to the advantages described in the first and third embodiments. (6) The rotation angle sensor 4 includes the correction unit 60 or 70. Therefore, errors that cannot be completely removed even by the calculation in the calculation signal generation unit 40 can be corrected, and angle signals (Sθ, Sθ′) with higher accuracy can be output.

[0124] 5. Variations In the rotation angle sensor 1 according to the first embodiment to the rotation angle sensor 4 according to the fourth embodiment, the magnet 10 is polarized to one S pole and one N pole, but the invention is not limited to this configuration. For example, the magnet 10 may be polarized with four or more poles in plan view. Even in this case, each rotation angle sensor can detect a signal corresponding to the magnetic field at the element arrangement position using four magnetic detection elements or two biaxial magnetic detection elements, as in the case of using a magnet polarized with two poles. Therefore, the calculation signal generating unit 40 generates a first magnetic field calculation signal and a second magnetic field calculation signal that are out of phase with each other and in which disturbance magnetic field components are reduced, and the angle signal generating unit 50 can generate and output an angle signal indicating the rotation angle of the magnet.

[0125] Although the embodiments of the present disclosure have been described above, the technical scope of the present disclosure is not limited to the technical scope described in the above-mentioned embodiments. Various modifications or improvements can be made to the above-mentioned embodiments, and it is clear from the claims that the forms to which such modifications or improvements are made are also included in the technical scope of the present disclosure. [Explanation of symbols]

[0126] 1, 2, 3, 4 Rotation angle sensor 10. Magnets 11 Shaft 11A Rotating shaft 20 Rotation angle detection device 30A, 30B Two-axis magnetic detection element 31A, 31B, 32A, 32B, 33A, 33B Magnetic detection element 40 Arithmetic signal generation section 50 Angle signal generator 60,70 Correction section

Claims

1. a first magnetic detection element and a second magnetic detection element that are polarized into at least two poles in a direction perpendicular to a rotation axis and detect a first direction component of a magnetic field that changes due to rotation of a magnet that is rotatably arranged around the rotation axis; a third magnetic detection element and a fourth magnetic detection element that detect a component of the magnetic field in a second direction different from the first direction; a calculation signal generating unit that receives an output of the first magnetic detection element and an output of the second magnetic detection element as inputs and outputs a first magnetic field calculation signal, and receives an output of the third magnetic detection element and an output of the fourth magnetic detection element as inputs and outputs a second magnetic field calculation signal having a phase different from that of the first magnetic field calculation signal; an angle signal generating unit that receives the first magnetic field calculation signal and the second magnetic field calculation signal as input, generates an angle signal indicating a rotation angle of the magnet, and outputs the angle signal; Equipped with the first magnetic detection element and the second magnetic detection element are arranged at positions where a first arrangement angle, which is an angle formed by a line segment connecting the first magnetic detection element and the magnet and a line segment connecting the second magnetic detection element and the magnet, is greater than 0 degrees and less than 90 degrees; the first arrangement angle is a smaller angle of an angle formed by a line segment connecting the first magnetic detection element and the rotation shaft and a line segment connecting the second magnetic detection element and the rotation shaft in a plan view, or a smaller angle of an angle formed by a line segment connecting the first magnetic detection element and the center of the magnet and a line segment connecting the second magnetic detection element and the center in a cross-sectional view, the first magnetic detection element is disposed at a position different from that of the fourth magnetic detection element, The calculation signal generating unit, When the first magnetic detection element and the second magnetic detection element detect a component of the magnetic field in the first direction with the first direction being mutually positive directions, a difference between an output of the first magnetic detection element and an output of the second magnetic detection element is calculated; when the first magnetic detection element detects a component of the magnetic field in the first direction with the first direction being a positive direction and a direction opposite to the first direction being a negative direction and the second magnetic detection element detects a component of the magnetic field in the first direction with the first direction being a negative direction and a direction opposite to the first direction being a positive direction, a sum of an output of the first magnetic detection element and an output of the second magnetic detection element is calculated to generate a first magnetic field calculation signal; When the elements detect the component of the magnetic field in the second direction with the second direction being mutually positive directions, a difference between an output of the third magnetic detection element and an output of the fourth magnetic detection element is calculated; when the third magnetic detection element detects the component of the magnetic field in the second direction with the first direction being a positive direction and the direction opposite to the first direction being a negative direction and the fourth magnetic detection element detects the component of the magnetic field in the second direction with the first direction being a negative direction and the direction opposite to the first direction being a positive direction, a sum of the output of the third magnetic detection element and the output of the fourth magnetic detection element is calculated to generate a second magnetic field calculation signal having a phase different from that of the first magnetic field calculation signal, and output the first magnetic field calculation signal and the second magnetic field calculation signal. Rotation angle sensor.

2. a second arrangement angle, which is a smaller angle of an angle formed by a line segment connecting the third magnetic detection element and the rotation shaft and a line segment connecting the fourth magnetic detection element and the rotation shaft in a plan view or a cross-sectional view, is smaller than the first arrangement angle.

2. The rotation angle sensor according to claim 1.

3. The first magnetic detection element and the second magnetic detection element are arranged along the second direction.

3. The rotation angle sensor according to claim 1.

4. The third magnetic detection element and the fourth magnetic detection element are arranged along the first direction. The rotation angle sensor according to claim 1 .

5. The first direction is a direction perpendicular to the rotation axis. The rotation angle sensor according to claim 1 .

6. the second direction is a direction parallel to the rotation axis, The third magnetic detection element and the fourth magnetic detection element are each disposed at a position offset from the center of the thickness of the magnet in the rotation axis direction.

6. The rotation angle sensor according to claim 5.

7. The second direction is perpendicular to the first direction and perpendicular to the rotation axis.

6. The rotation angle sensor according to claim 5.

8. 2. The rotation angle sensor according to claim 1, wherein the second magnetic detection element is disposed at a position different from that of the third magnetic detection element and the fourth magnetic detection element.

9. a first two-axis magnetic detection element having the first magnetic detection element and the third magnetic detection element and detecting magnetic fields in both the first direction and the second direction; and a second two-axis magnetic detection element having the second magnetic detection element and the fourth magnetic detection element and detecting magnetic fields in both the first direction and the second direction. The rotation angle sensor according to claim 1 .

10. The first two-axis magnetic detection element and the second two-axis magnetic detection element are provided to detect a magnetic field in a direction parallel to at least a rotation axis, The first biaxial magnetic detection element and the second biaxial magnetic detection element are disposed at positions that are not symmetrical with respect to a line that passes through the rotation axis of the magnet and is parallel to the magnetic field detection directions of the first biaxial magnetic detection element and the second biaxial magnetic detection element in a plan view. The rotation angle sensor according to claim 9.

11. The first biaxial magnetic detection element or the second biaxial magnetic detection element has a magnetic flux concentrator and a plurality of Hall elements.

11. The rotation angle sensor according to claim 9 or 10.

12. The first magnetic detection element, the second magnetic detection element, the third magnetic detection element, and the fourth magnetic detection element are magnetoresistance elements. The rotation angle sensor according to claim 1 .

13. a magnetic field signal correction unit that is provided before the angle signal generation unit, corrects the first magnetic field calculation signal and the second magnetic field calculation signal using a correction value calculated using the first magnetic field calculation signal and the second magnetic field calculation signal input from the calculation signal generation unit, and outputs the corrected first magnetic field calculation signal and the second magnetic field calculation signal to the angle signal generation unit. The rotation angle sensor according to claim 2 .

14. a correction unit that is provided downstream of the angle signal generation unit, corrects the angle signal using a correction value calculated using the angle signal input from the angle signal generation unit, and outputs the corrected angle signal. The rotation angle sensor according to claim 1 .

15. acquiring, as an output of a first magnetic detection element, a component in a first direction of a magnetic field that changes due to rotation of a magnet that is polarized into at least two poles in a direction perpendicular to a rotation axis and is arranged to be rotatable around the rotation axis; a second magnetic detection element is disposed at a position different from the first magnetic detection element and at a position where a first arrangement angle with respect to the first magnetic detection element is greater than 0 degrees and less than 90 degrees, and the first arrangement angle is the smaller of the angles formed by a line segment connecting the first magnetic detection element and the rotation axis and a line segment connecting the second magnetic detection element and the rotation axis in a plan view, or the smaller of the angles formed by a line segment connecting the first magnetic detection element and the center of the magnet and a line segment connecting the second magnetic detection element and the center in a cross-sectional view, A component of the magnetic field in a second direction different from the first direction is acquired as an output of a third magnetic detection element and an output of a fourth magnetic detection element arranged at a position different from that of the first magnetic detection element, an output of the first magnetic detection element and an output of the second magnetic detection element are used as inputs, and when the first magnetic detection element and the second magnetic detection element detect a component of the magnetic field in the first direction with the first direction being mutually positive directions, a difference between the output of the first magnetic detection element and the output of the second magnetic detection element is calculated; when the first magnetic detection element detects a component of the magnetic field in the first direction with the first direction being a positive direction and the direction opposite to the first direction being a negative direction and the second magnetic detection element detects a component of the magnetic field in the first direction with the first direction being a negative direction and the direction opposite to the first direction being a positive direction, a sum of the output of the first magnetic detection element and the output of the second magnetic detection element is calculated to generate and output a first magnetic field calculation signal; an output of the third magnetic detection element and an output of the fourth magnetic detection element are used as inputs, and when the third magnetic detection element and the fourth magnetic detection element detect the component of the magnetic field in the second direction with the second direction being mutually positive directions, a difference between the output of the third magnetic detection element and the output of the fourth magnetic detection element is calculated; when the third magnetic detection element detects the component of the magnetic field in the second direction with the first direction being the positive direction and the direction opposite to the first direction being the negative direction and the fourth magnetic detection element detects the component of the magnetic field in the second direction with the first direction being the negative direction and the direction opposite to the first direction being the positive direction, a sum of the output of the third magnetic detection element and the output of the fourth magnetic detection element is calculated to generate and output a second magnetic field calculation signal having a phase different from that of the first magnetic field calculation signal; The first magnetic field calculation signal and the second magnetic field calculation signal are input, and an angle signal indicating a rotation angle of the magnet is output. Angle signal calculation method.

16. acquiring, as an output of a first magnetic detection element, a component in a first direction of a magnetic field that changes due to rotation of a magnet that is polarized into at least two poles in a direction perpendicular to a rotation axis and is arranged to be rotatable about the rotation axis; acquiring the component of the first direction of the magnetic field as an output of the second magnetic detection element, the second magnetic detection element being disposed at a position different from the first magnetic detection element and at a position where a first arrangement angle with the first magnetic detection element is greater than 0 degrees and less than 90 degrees, the first arrangement angle being the smaller of the angles formed by a line segment connecting the first magnetic detection element and the rotation axis and a line segment connecting the second magnetic detection element and the rotation axis in a plan view, or the smaller of the angles formed by a line segment connecting the first magnetic detection element and the center of the magnet and a line segment connecting the second magnetic detection element and the center in a cross-sectional view; acquiring a component of the magnetic field in a second direction different from the first direction as an output of a third magnetic detection element and an output of a fourth magnetic detection element disposed at a position different from that of the first magnetic detection element; using an output of the first magnetic detection element and an output of the second magnetic detection element as input, when the first magnetic detection element and the second magnetic detection element detect a component of a magnetic field in a first direction with the first direction being mutually positive directions, calculating a difference between the output of the first magnetic detection element and the output of the second magnetic detection element, and when the first magnetic detection element detects a component of a magnetic field in the first direction with the first direction being a positive direction and a direction opposite to the first direction being a negative direction and the second magnetic detection element detects a component of the magnetic field in the first direction with the first direction being a negative direction and a direction opposite to the first direction being a positive direction, calculating a sum of the output of the first magnetic detection element and the output of the second magnetic detection element to generate and output a first magnetic field calculation signal; using an output of the third magnetic detection element and an output of the fourth magnetic detection element as inputs, when the third magnetic detection element and the fourth magnetic detection element detect the second direction component of the magnetic field with the second direction being mutually positive directions, calculating a difference between the output of the third magnetic detection element and the output of the fourth magnetic detection element; and when the third magnetic detection element detects the second direction component of the magnetic field with the first direction being a positive direction and the direction opposite to the first direction being a negative direction and the fourth magnetic detection element detects the second direction component of the magnetic field with the first direction being a negative direction and the direction opposite to the first direction being a positive direction, calculating a sum of the output of the third magnetic detection element and the output of the fourth magnetic detection element to generate and output a second magnetic field calculation signal having a phase different from that of the first magnetic field calculation signal; outputting an angle signal indicating a rotation angle of the magnet using the first magnetic field calculation signal and the second magnetic field calculation signal as input; A program that causes a computer to execute the following.

Citation Information

Patent Citations

  • Rotation angle detection device

    JP2005326291A

  • Magnetic field detector, and method for regulating the same

    JP2010197399A

  • Magnetic angle or linear position sensor that is less susceptible to external field influences

    JP2011503630A

  • Apparatus and method for redundantly measuring the absolute position of a moving object

    JP2015508899A

  • Rotation angle sensor calibration method, module calibration method, calibration parameter generation device, rotation angle sensor, rotation angle sensor module and program

    JP2019028037A