Magnetic sensor and magnetic sensor device
Patent Information
- Application Number
- PCT/JP2026/005621
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-02-18
- Filing Date
- 2026-02-17
- Publication Date
- 2026-08-27
Smart Images

Figure JP2026005621_27082026_PF_FP_ABST
Abstract
Description
Magnetic Sensor and Magnetic Sensor Device
[0001] The present disclosure relates to a magnetic sensor and a magnetic sensor device including an anisotropic magnetoresistive effect element.
[0002] In recent years, magnetic sensors have been used in various applications. As a magnetic sensor, there is one using a magnetoresistive effect element provided on a substrate. As the magnetoresistive effect element, there are an AMR element using an anisotropic magnetoresistive effect, a GMR element using a giant magnetoresistive effect, a TMR element using a tunnel magnetoresistive effect, and the like.
[0003] In a system including a magnetic sensor, there may be a case where a magnetic field including a component in a direction perpendicular to the surface of the substrate is detected by a magnetoresistive effect element provided on the substrate. In this case, by disposing the magnetoresistive effect element on an inclined surface formed on the substrate, a magnetic field including a component in a direction perpendicular to the surface of the substrate can be detected.
[0004] Japanese Patent Laid-Open Publication No. 2020-197491 (JP2020-197491A) discloses a magnetic sensor including a spin valve type magnetoresistive effect element disposed on an inclined surface. Further, Japanese Patent Laid-Open Publication No. 2020-197491 (JP2020-197491A) discloses that the spin valve type magnetoresistive effect element may be a tunnel magnetoresistive effect element or a giant magnetoresistive effect element.
[0005] Japanese Patent Laid-Open Publication No. 9-219546 (JPH09219546A) discloses a magnetoresistive effect device in which two magnetic thin film stripes are disposed in parallel with a groove on each inclined surface of a plurality of grooves formed on a silicon crystal substrate.
[0006] U.S. Patent Publication No. 2005 / 0270020A1 discloses a magnetic sensor unit in which a magnetoresistive strip is disposed on an inclined surface.
[0007] U.S. Patent Publication No. 2010 / 0327864A1 discloses a magnetoresistive sensor in which a magnetoresistive effect element formed by a strip of a magnetoresistive material is provided on an inclined wall, and a barb pole is provided on the magnetoresistive effect element.
[0008] Japanese Patent Publication No. 2020-197491, Japanese Patent Publication No. 9-219546, U.S. Patent Publication US2005 / 0270020A1, U.S. Patent Publication US2010 / 0327864A1
[0009] Magnetic sensors are sometimes used in environments with strong external magnetic fields. Furthermore, some systems that include magnetic sensors detect the magnetic field of a magnet moving relative to the sensor. In such systems, magnets that generate relatively strong magnetic fields may be used.
[0010] One of the purposes of this disclosure is to provide a magnetic sensor and magnetic sensor device that can perform stable detection even when a relatively strong magnetic field is applied.
[0011] A magnetic sensor according to a first aspect of this disclosure comprises a substrate having a reference plane, a support member disposed on the substrate and having an inclined surface tilted with respect to the reference plane, and a magnetoresistive element disposed on the inclined surface and configured to detect a target magnetic field generated by a magnetic field generator. The target magnetic field includes a first magnetic field component whose direction changes in a first plane perpendicular to the reference plane, and a second magnetic field component whose direction changes in a second plane defined based on the tangential direction of the inclined surface. The directions of the first magnetic field component and the second magnetic field component change according to the relative position, which is the relative position of the magnetic field generator with respect to the substrate. The magnetoresistive element is configured such that its resistance changes in accordance with the change in the direction of the second magnetic field component. The inclination angle of the inclined surface with respect to the reference plane corresponds to a parameter that indicates the nonlinearity of the change in the direction of the first magnetic field component due to the change in relative position.
[0012] A magnetic sensor according to a second aspect of this disclosure comprises a substrate having a reference plane, a support member disposed on the substrate and having an inclined surface tilted with respect to the reference plane, a magnetoresistive element disposed on the inclined surface and configured to detect a target magnetic field generated by a magnetic field generator, and a detection circuit including the magnetoresistive element and configured to generate a detection signal capable of generating an output value corresponding to the direction of the target magnetic field. The target magnetic field includes a first magnetic field component whose direction changes in a first plane perpendicular to the reference plane, and a second magnetic field component whose direction changes in a second plane defined based on the tangential direction of the inclined surface. The directions of the first magnetic field component and the second magnetic field component change according to the relative position, which is the relative position of the magnetic field generator with respect to the substrate. The magnetoresistive element is configured such that its resistance value changes in accordance with the change in the direction of the second magnetic field component. The inclination angle of the inclined surface with respect to the reference plane corresponds to a parameter that indicates the nonlinearity of the change in the direction of the first magnetic field component accompanying the change in relative position. The tilt angle is set such that the nonlinearity of the output value is smaller than the nonlinearity of the change in direction of the first magnetic field component, which is represented by the parameter.
[0013] A magnetic sensor device according to one embodiment of the present disclosure comprises a magnetic sensor according to one embodiment of the present disclosure and a magnetic field generator. The magnetic field generator and the magnetic sensor are configured such that their relative positions change in a first direction parallel to a reference plane.
[0014] The technology disclosed herein enables the realization of a magnetic sensor and magnetic sensor device that can perform stable detection even when a relatively strong magnetic field is applied.
[0015] Figure 1 is a perspective view showing the schematic configuration of a magnetic sensor device according to the first embodiment of this disclosure. Figure 2 is an explanatory diagram showing the operation of a magnetic sensor device according to the first embodiment of this disclosure. Figure 3 is a characteristic diagram schematically showing the strength of multiple magnetic field components in the first embodiment of this disclosure. Figure 4A is an explanatory diagram showing the relationship between relative angle and resistance in the first embodiment of this disclosure. Figure 4B is a characteristic diagram showing the relationship between the position of the magnetic field generator and the relative angle in the first embodiment of this disclosure. Figure 5 is a perspective view showing the schematic configuration of a magnetic sensor device according to the first embodiment of this disclosure. Figure 6 is an explanatory diagram showing an inclined surface structure according to the first embodiment of this disclosure. Figure 7A is an explanatory diagram for explaining the inclined surface coordinate system according to the first embodiment of this disclosure. Figure 7B is an explanatory diagram for explaining the inclined surface coordinate system according to the first embodiment of this disclosure. Figure 8 is an explanatory diagram for explaining the definitions of current angle and magnetization angle in the first embodiment of this disclosure. Figure 9A is a circuit diagram showing the circuit configuration of a magnetic sensor according to the first embodiment of this disclosure. Figure 9B is a functional block diagram showing a magnetic sensor and processor according to a first embodiment of the present disclosure. Figure 10A is a plan view showing the first and second magnetoresistive elements in a first embodiment of the present disclosure. Figure 10B is a plan view showing the third and fourth magnetoresistive elements in a first embodiment of the present disclosure. Figure 11A is an explanatory diagram for illustrating the first and second directions in a first embodiment of the present disclosure. Figure 11B is an explanatory diagram for illustrating the third and fourth directions in a first embodiment of the present disclosure. Figure 11C is an explanatory diagram showing the relationship between the first and fourth directions in a first embodiment of the present disclosure. Figure 11D is an explanatory diagram showing the relationship between the second and third directions in a first embodiment of the present disclosure. Figure 12 is a waveform diagram showing an example of the resistance values of the first and second magnetoresistive elements in a first embodiment of the present disclosure. Figure 13 is a waveform diagram showing an example of the resistance values of the third and fourth magnetoresistive elements in the first embodiment of the present disclosure. Figure 14 is a waveform diagram showing an example of the first and second detection signals in the first embodiment of the present disclosure.Figure 15 is a plan view showing a first example of a plurality of magnetoresistive elements, a plurality of first wirings, and a plurality of second wirings in a first embodiment of the present disclosure. Figure 16 is a plan view showing a second example of a plurality of magnetoresistive elements, a plurality of first wirings, and a plurality of second wirings in a first embodiment of the present disclosure. Figure 17 is a plan view showing a third example of a plurality of magnetoresistive elements, a plurality of first wirings, and a plurality of second wirings in a first embodiment of the present disclosure. Figure 18 is a plan view showing two inclined surfaces of a protrusion in a first embodiment of the present disclosure. Figure 19 is a characteristic diagram showing a second magnetic field component of an ideal target magnetic field in a first embodiment of the present disclosure. Figure 20 is a characteristic diagram showing angular output values calculated based on the second magnetic field component shown in Figure 19. Figure 21 is a characteristic diagram showing an example of a first magnetic field component in a first embodiment of the present disclosure. Figure 22 is a characteristic diagram showing angular output values calculated based on the first magnetic field component shown in Figure 21. Figure 23 is a characteristic diagram showing the linearity error calculated based on the angular output value in Figure 22. Figure 24 is a characteristic diagram showing an example of the second magnetic field component in the first embodiment of this disclosure. Figure 25 is a characteristic diagram showing the angular output value calculated based on the second magnetic field component shown in Figure 24. Figure 26 is a characteristic diagram showing the linearity error calculated based on the angular output value shown in Figure 25. Figure 27 is a characteristic diagram showing the Lissajous curves of the first and second magnetic field components in the first embodiment of this disclosure. Figure 28 is a plan view showing the magnetoresistive element in the second embodiment of this disclosure. Figure 29A is a plan view showing the first and second magnetoresistive elements in the third embodiment of this disclosure. Figure 29B is a plan view showing the third and fourth magnetoresistive elements in the third embodiment of this disclosure. Figure 30 is a waveform diagram showing the first and second detection signals in the fourth embodiment of this disclosure. Figure 31 is a waveform diagram showing the corrected signal in the fourth embodiment of this disclosure. Figure 32 is a characteristic diagram showing the angle output values in the fourth embodiment of this disclosure.
[0016] [First Embodiment] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings. First, with reference to Figure 1, the general configuration of the magnetic sensor device 100 in the first embodiment of the present disclosure will be described. Figure 1 is a perspective view showing the general configuration of the magnetic sensor device 100.
[0017] The magnetic sensor device 100 comprises a magnetic sensor 1 according to an embodiment of the present disclosure and a magnetic field generator 5 configured to generate a magnetic field applied to the magnetic sensor 1, and is configured to detect the position of an object moving in a certain direction. The magnetic sensor device 100 may also be used as a position detection device. The magnetic sensor 1 and the magnetic field generator 5 may be configured such that the relative position of the magnetic field generator 5 with respect to the magnetic sensor 1 changes in conjunction with the movement of the object whose position is to be detected. For example, the magnetic field generator 5 may be configured to move in conjunction with the movement of the object.
[0018] The magnetic sensor device 100 can be applied to a camera module equipped with an optical image stabilization mechanism as described below. This camera module comprises a lens, a support mechanism, and a drive device. The support mechanism supports the lens so that it can move in first and second directions perpendicular to the optical axis of the lens. The drive device is a device for moving the lens in the first and second directions.
[0019] This camera module detects the position of the lens in a first direction and the position of the lens in a second direction. The magnetic sensor device 100 according to this embodiment can be used to detect the position of the lens. When the magnetic sensor device 100 is used to detect the position of the lens, the magnetic sensor device 100 should be configured so that the magnetic field generator 5 moves in conjunction with the movement of the lens.
[0020] Furthermore, the magnetic sensor device 100 according to this embodiment can be applied to a camera module equipped with an autofocus mechanism, for example, as described below. This camera module comprises a lens, a support mechanism, and a drive device. The support mechanism supports the lens so that it can move in a direction parallel to the optical axis of the lens. The drive device is a device for moving the lens in a direction parallel to the optical axis of the lens.
[0021] This camera module detects the position of the lens in a direction parallel to the optical axis of the lens. The magnetic sensor device 100 according to this embodiment can be used to detect this lens position. In this case, the magnetic sensor device 100 should be configured so that the magnetic field generator 5 moves in conjunction with the movement of the lens.
[0022] Alternatively, the magnetic sensor device 100 can be applied to the following type of switch mechanism. The switch mechanism is a mechanism equipped with a movable part that can be displaced by user operation, such as a key switch, trigger switch, or button switch. The movable part may be, for example, a key top, trigger, or button. In a switch mechanism, it is necessary to detect the position and displacement of the movable part associated with the operation. The magnetic sensor device 100 according to this embodiment can be used to detect the position of this movable part. In this case, the magnetic sensor device 100 should be configured so that the magnetic field generator 5 moves in conjunction with the movement of the movable part. This makes it possible to produce an analog output corresponding to the amount of push or stroke of the switch, or to determine whether it is on or off.
[0023] Hereinafter, the relative position of the magnetic field generator 5 with respect to the magnetic sensor 1 will be referred to as the relative position. The relative position may change due to a change in the position of either the magnetic sensor 1 or the magnetic field generator 5, or it may change due to a change in the positions of both the magnetic sensor 1 and the magnetic field generator 5. For convenience, the following explanation will use the case where the relative position changes due to a change in the position of the magnetic field generator 5 as an example. Furthermore, the relative position of the magnetic field generator 5 with respect to the substrate of the magnetic sensor 1, as described later, is substantially the same as the relative position of the magnetic field generator 5 with respect to the magnetic sensor 1. In the following explanation, the relative position may also be referred to as the relative position of the magnetic field generator 5 with respect to the substrate of the magnetic sensor 1.
[0024] Here, we will explain the reference coordinate system defined by the X, Y, and Z directions, as shown in Figure 1. The reference coordinate system is a coordinate system based on the magnetic sensor 1, with the Z direction being one direction perpendicular to the surface of the substrate, which will be described later. The X, Y, and Z directions are orthogonal to each other. The direction opposite to the X direction is called the -X direction, the direction opposite to the Y direction is called the -Y direction, and the direction opposite to the Z direction is called the -Z direction. Furthermore, the direction parallel to the X direction and the -X direction is called the X-axis direction, the direction parallel to the Y direction and the -Y direction is called the Y-axis direction, and the direction parallel to the Z direction and the -Z direction is called the Z-axis direction.
[0025] Furthermore, below, a position located at the end of the Z-direction relative to a certain reference position will be referred to as "above," and a position on the opposite side from "above" relative to a certain reference position will be referred to as "below." Also, with respect to the components of the magnetic sensor device 100, the surface located at the end in the Z-direction will be referred to as the "top surface," and the surface located at the end in the -Z-direction will be referred to as the "bottom surface." Furthermore, with respect to the components of the magnetic sensor device 100, the shape in a planar view from a specific direction will be referred to as the "planar shape."
[0026] The following explanation will take the case where the magnetic field generator 5 is configured to move in a direction parallel to the X direction as an example. The magnetic field generator 5 is positioned ahead of the magnetic sensor 1 in the Z direction. In the example shown in Figure 1, the magnetic field generator 5 is a magnet containing two sets of north and south poles. Note that the magnetic field generator 5 is not limited to the example shown in Figure 1; it may be a magnet containing only one set of north and south poles, or a magnet containing three or more sets of north and south poles. The magnet may be, for example, a neodymium magnet (NdFeB magnet).
[0027] Figure 2 is an explanatory diagram showing the operation of the magnetic sensor device 100. In Figure 2, the arrow drawn to overlap the magnetic sensor 1 indicates the direction of the magnetic field applied to the magnetic sensor 1 from the magnetic field generator 5. In the example shown in Figure 2, when the position of the center of the magnetic sensor 1 in the X-axis direction (hereinafter referred to as the X position of the magnetic sensor 1) and the position of the center of the magnetic field generator 5 in the X-axis direction (hereinafter simply referred to as the X position of the magnetic field generator 5) coincide, a magnetic field in the X direction is applied to the magnetic sensor 1. When the X position of the magnetic field generator 5 is located beyond the X position of the magnetic sensor 1 in the -X direction, and the X position of the magnetic field generator 5 is on the -X side of the X position of the magnetic sensor 1, a magnetic field is applied to the magnetic sensor 1 in a direction tilted from the X direction toward the Z direction. When the X position of the magnetic field generator 5 is ahead of the X position of the magnetic sensor 1 in the X direction, and the X position of the magnetic field generator 5 is on the X side of the X position of the magnetic sensor 1, a magnetic field is applied to the magnetic sensor 1 in a direction tilted from the X direction toward the -Z direction.
[0028] Here, we will explain the magnetic field components Bx, By, and Bz applied to the magnetic sensor 1. Magnetic field component Bx is the X-axis component of the magnetic field generated by the magnetic field generator 5 and applied to the magnetic sensor 1. Magnetic field component By is the Y-axis component of the magnetic field generated by the magnetic field generator 5 and applied to the magnetic sensor 1. Magnetic field component Bz is the Z-axis component of the magnetic field generated by the magnetic field generator 5 and applied to the magnetic sensor 1.
[0029] Figure 3 is a characteristic diagram schematically showing the strengths of the magnetic field components Bx, By, and Bz. In Figure 3, the horizontal axis represents the X position of the magnetic field generator 5, and the vertical axis represents the strength of the magnetic field components. In Figure 3, the X position of the magnetic field generator 5 is set to 0 when it coincides with the X position of the magnetic sensor 1, the X position of the magnetic field generator 5 is represented as a negative value when it is located beyond the X position of the magnetic sensor 1 in the -X direction, and the X position of the magnetic field generator 5 is represented as a positive value when it is located beyond the X position of the magnetic sensor 1 in the X direction. In the diagrams used in the following explanation, where the horizontal axis represents the X position of the magnetic field generator 5, the X position of the magnetic field generator 5 is represented in the same way as in Figure 3.
[0030] As can be seen from Figure 3, the strength of magnetic field component Bx is maximum when the X position of the magnetic field generator 5 is 0, and decreases as the X position of the magnetic field generator 5 moves away from 0. The strength of magnetic field component By is 0 regardless of the X position of the magnetic field generator 5. The strength of magnetic field component Bz decreases as the X position of the magnetic field generator 5 increases. In the example shown in Figure 3, when the X position of the magnetic field generator 5 is 0, the strength of magnetic field component Bz is 0.
[0031] Incidentally, when the magnetic sensor 1 detects only changes in the intensity of a unidirectional component of the magnetic field (for example, magnetic field component Bz), relatively large changes occur in the detection signal of the magnetic sensor 1 due to the respective temperature characteristics of the magnetic sensor 1 and the magnetic field generator 5. In contrast, when the magnetic sensor 1 detects changes in the direction of the magnetic field applied to it, changes in the detection signal caused by the respective temperature characteristics of the magnetic sensor 1 and the magnetic field generator 5 can be suppressed. Furthermore, by configuring the magnetic sensor 1, which consists of a single chip, to obtain multiple detection signals with different phases from each other, characteristic variations caused by manufacturing variations can be suppressed for the multiple detection signals.
[0032] Hereinafter, the magnetic field to be detected by the magnetic sensor 1 will be referred to as the target magnetic field. The magnetic sensor 1 includes a magnetoresistive element configured to detect the target magnetic field. Hereinafter, the magnetoresistive element will be referred to as an MR element. In this embodiment, the magnetic sensor 1 includes an AMR element that uses the anisotropic magnetoresistive effect as the MR element. The AMR element contains a ferromagnetic metal material such as Ni or Fe and is configured such that current flows in one direction, for example. The AMR element is formed from, for example, NiFe, CoFe, etc. In an AMR element, a change in resistance occurs due to the anisotropic magnetoresistive effect when the direction of magnetization DM of the AMR element forms a specific relative angle θ with respect to the direction of current flowing through the AMR element DI.
[0033] Furthermore, AMR elements do not require a magnetization fixed layer, unlike spin-bulb type MR elements such as GMR elements that utilize the giant magnetoresistive effect or TMR elements that utilize the tunnel magnetoresistive effect. Therefore, AMR elements can be used even in environments where relatively strong magnetic fields are used. Examples of relatively strong magnetic fields include those stronger than the Earth's magnetic field, those that change the direction of magnetization of the magnetization fixed layer of a spin-bulb type MR element, and those stronger than the bias magnetic field applied to a spin-bulb type MR element. Magnetic sensor 1 using an AMR element can obtain a stable detection signal even in environments where relatively strong magnetic fields are used.
[0034] An AMR element has a resistance value R that changes due to the anisotropic magnetoresistance effect. Figure 4A is a characteristic diagram showing the relationship between the relative angle θ of the magnetization direction DM and the current direction DI, and the resistance value R of the AMR element. In Figure 4A, the horizontal axis represents the relative angle θ, and the vertical axis represents the resistance value R of the AMR element. As shown in Figure 4A, the resistance value R changes by two periods while the relative angle θ changes by 360°. Therefore, the resistance value R changes at a frequency twice the frequency of the relative angle θ. Also, when the relative angle θ changes with a specific period, the resistance value R changes with a period half the period of the relative angle θ. The resistance value R is maximum when the relative angle θ is 0° and 180°, and minimum when the relative angle θ is 90° and 270°.
[0035] The relative angle θ is also angular information of the target magnetic field. As shown in Figure 4A, the resistance value R of the AMR element contains angular information of the target magnetic field. Therefore, the magnetic sensor 1 can acquire a detection signal as angular information of the target magnetic field by detecting a change in the resistance value R of the AMR element.
[0036] As will be described later, in this embodiment, the magnetization direction DM is configured to change in accordance with the change in the X position of the magnetic field generator 5. The direction of the current DI is constant. Therefore, the relative angle θ changes in accordance with the change in relative position. Figure 4B is a characteristic diagram showing the relationship between the X position of the magnetic field generator 5 and the relative angle θ. In Figure 4B, the horizontal axis represents the X position of the magnetic field generator 5, and the vertical axis represents the relative angle θ. As shown in Figure 4B, the relative angle θ changes according to the X position of the magnetic field generator 5. In the example shown in Figure 4B, when the X position of the magnetic field generator 5 is 0, the relative angle θ is 0. The magnetic sensor device 100 may be configured such that the relative angle θ changes monotonically according to the X position of the magnetic field generator 5. In the example shown in Figure 4B, the relative angle θ decreases monotonically according to the X position of the magnetic field generator 5.
[0037] The detection signal from the magnetic sensor 1 corresponds to the relative angle θ, which is the angular information of the target magnetic field. Therefore, based on the detection signal from the magnetic sensor 1, information about the X position or relative position of the magnetic field generator 5 can be obtained. The magnetic sensor device 100 or the magnetic sensor system including the magnetic sensor device 100 may include a processor configured to generate a detection value as information about the X position or relative position of the magnetic field generator 5.
[0038] The magnetic sensor device 100 may be configured such that the relative angle θ changes periodically in accordance with the X position of the magnetic field generator 5. In this case, the processor may be configured to generate a detected value as information about the X position or relative position of the magnetic field generator 5, for example, based on the magnitude of the relative angle θ and the number of periods included in the change of the relative angle θ or the number of times the relative angle θ shows a specific value.
[0039] Next, the configuration of the magnetic sensor 1 will be described. Figure 5 is a perspective view showing an outline of the configuration of the magnetic sensor 1. In Figure 5, the arrows labeled with the symbol DSp indicate the direction of movement of the magnetic field generator 5 when it moves in the X direction, and the arrows labeled with the symbol DSn indicate the direction of movement of the magnetic field generator 5 when it moves in the -X direction.
[0040] The magnetic sensor 1 comprises a substrate 20 and an inclined surface structure 2 disposed on the substrate 20. The substrate 20 has an upper surface 20a parallel to the XY plane, which is a plane perpendicular to the Z direction. In the magnetic sensor 1 and magnetic sensor device 100, the upper surface 20a of the substrate 20 may be used as a reference plane. The inclined surface structure 2 has an inclined surface that is inclined with respect to the Z-axis direction and the upper surface 20a (reference plane) of the substrate 20. The magnetic sensor 1 further includes a plurality of MR elements 50 disposed on the inclined surface of the inclined surface structure 2. The plurality of MR elements 50 are shown in Figure 6, which will be described later.
[0041] Each of the plurality of MR elements 50 may be an AMR element and detects at least one of the direction and intensity of a magnetic field in a plane corresponding to the inclined surface. Hereinafter, similar to the above-described AMR element, the direction of magnetization of the MR element 50, the direction of the current flowing through the MR element 50, and the resistance value of the MR element 50 are represented by symbols DM, DI, and R, respectively. Also, similar to the AMR element, the relative angle formed by the direction of magnetization DM of the MR element 50 with respect to the direction of the current DI flowing through the MR element 50 is represented by the symbol θ.
[0042] In the present embodiment, the target magnetic field includes a first magnetic field component whose direction changes in the XZ plane perpendicular to the upper surface 20a of the substrate 20 which is the reference plane, and a second magnetic field component whose direction changes in a plane corresponding to the inclined surface. The direction of the first magnetic field component and the direction of the second magnetic field component change according to the relative position which is the relative position of the magnetic field generator 5 with respect to the magnetic sensor 1 or the substrate 20. Each of the plurality of MR elements 50 is configured such that the resistance value R changes at least according to the change in the direction of the second magnetic field component. <所定の平面に対して垂直な平面内において方向が変化する第1の磁界成分と、傾斜面に対応する平面内において方向が変化する第2の磁界成分を含んでいる。第1の磁界成分の方向と第2の磁界成分の方向は、磁気センサ1または基板20に対する磁界発生器5の相対的な位置である相対位置に応じて変化する。複数のMR素子50の各々は、少なくとも、第2の磁界成分の方向の変化に応じて抵抗値Rが変化するように構成されている。
[0043] Hereinafter, the XZ plane in which the direction of the first magnetic field component changes is referred to as the first plane, and the plane corresponding to the inclined surface is referred to as the second plane. The first plane and the second plane are each a virtual plane. The second plane is defined based on the tangential direction of the inclined surface. The inclined surface may be a plane, a curved surface, or a surface including a plane and a curved surface. When the inclined surface is a plane, the second plane is parallel to the tangential direction of the inclined surface and also parallel to the inclined surface itself. When the inclined surface includes a curved surface, the second plane may be parallel to the tangent of the portion of the inclined surface where the MR element 50 is disposed. In the following description and drawings, for convenience, the inclined surface is assumed to be a plane. The inclined surface is perpendicular to the YZ plane and inclined with respect to both the XY plane (reference plane) and the XZ plane. The second plane is inclined with respect to both the first plane and the XY plane (reference plane). The first plane and the second plane intersect at a dihedral angle other than 90°.
[0044] The magnetization direction DM of the MR element 50 changes according to the direction of the second magnetic field component. For the sake of convenience of explanation, it is assumed that the magnetization direction DM of the MR element 50 changes within the second plane.
[0045] The direction of the first magnetic field component changes non-linearly with respect to the change in the X position of the magnetic field generator 5. In contrast, the magnetic sensor 1 is configured such that a parameter indicating the non-linearity of the change in the direction of the second magnetic field component with respect to the change in the X position of the magnetic field generator 5 is smaller than a parameter indicating the non-linearity of the change in the direction of the first magnetic field component with respect to the change in the X position of the magnetic field generator 5.
[0046] Next, referring to FIG. 6, the inclined surface structure 2 will be specifically described. FIG. 6 is an explanatory diagram showing the inclined surface structure 2. The magnetic sensor 1 further includes a support member 30 that supports a plurality of MR elements 50. The support member 30 is formed, for example, by an insulating layer made of an insulating material formed on the substrate 20 and constitutes the inclined surface structure 2. The insulating layer may be a single-layer film or a multi-layer film.
[0047] The support member 30 includes a flat surface 30a parallel to the upper surface 20a of the substrate 20 which is a reference plane, and a plurality of inclined surfaces 31a and a plurality of inclined surfaces 31b each inclined with respect to the upper surface 20a of the substrate 20. Each of the plurality of inclined surfaces 31a is a plane parallel to a plane inclined in the Y direction about an axis parallel to the X axis in the XZ plane. Each of the plurality of inclined surfaces 31b is a plane parallel to a plane inclined in the -Y direction about an axis parallel to the X axis in the XZ plane.
[0048] Each of the multiple inclined surfaces 31a and 31b extends along the X-axis direction. The multiple inclined surfaces 31a and 31b are arranged such that they alternate in the Y-axis direction. Also, one inclined surface 31a and one inclined surface 31b constitute one projection 31c. In one projection 31c, the inclined surfaces 31a and 31b are adjacent to each other and face in different directions. The support member 30 includes multiple projections 31c that project in the Z-direction from the flat surface 30a. Each of the multiple projections 31c extends along the X-axis direction. Also, the multiple projections 31c are arranged so as to be aligned in the Y-axis direction. A flat surface 30a is interposed between two adjacent projections 31c in the Y-axis direction.
[0049] The support members 30 may each include grooves recessed in the -Z direction from the flat surface 30a. The multiple protrusions 31c may be provided within the grooves. The multiple inclined surfaces 31a and 31b may substantially be the walls of the grooves.
[0050] The multiple MR elements 50 include a plurality of first elements arranged on a plurality of inclined surfaces 31a and a plurality of second elements arranged on a plurality of inclined surfaces 31b. On each of the plurality of inclined surfaces 31a, the plurality of first elements are arranged along the X-axis direction. On each of the plurality of inclined surfaces 31b, the plurality of second elements are arranged along the X-axis direction.
[0051] The magnetic sensor 1 further includes multiple wirings 40 for supplying current to multiple MR elements 50. Each of the multiple wirings 40 is made of a wiring material with high electrical conductivity, such as Cu or Au. In the example shown in Figure 6, the multiple wirings 40 connect multiple first elements arranged on an inclined surface 31a and multiple second elements arranged on an inclined surface 31b adjacent to this inclined surface 31a in the Y-axis direction in series. However, the example shown in Figure 6 is not limited to the multiple wirings 40, and the multiple wirings 40 may connect multiple first elements arranged on an inclined surface 31a in series with multiple first elements arranged on other inclined surfaces 31a, and connect multiple second elements arranged on an inclined surface 31b in series with multiple second elements arranged on other inclined surfaces 31b.
[0052] Here, the inclined surface coordinate system will be explained with reference to Figures 7A and 7B. Figures 7A and 7B are explanatory diagrams for illustrating the inclined surface coordinate system. The inclined surface coordinate system is used to describe the directions on each of the inclined surfaces 31a and 31b. In the inclined surface coordinate system, the D1 direction and the D2 direction are defined for each of the inclined surfaces 31a and 31b. As shown in Figure 7A, on the inclined surface 31a, the D1 direction coincides with the X direction. Also, on the inclined surface 31a, the D2 direction is the gradient direction of the inclined surface 31a. The gradient direction is also called the maximum gradient direction. Each of the inclined surfaces 31a and 31b has a lower end that is closest to the upper surface 20a (reference plane) of the substrate 20 in the Z-axis direction, and an upper end that is furthest from the upper surface 20a (reference plane) of the substrate 20 in the Z-axis direction. On the inclined surface 31a, the D2 direction is the direction that travels the shortest distance from the lower end to the upper end of the inclined surface 31a, while being perpendicular to each of the multiple contour lines (not shown) of the inclined surface 31a. Also, on the inclined surface 31a, the D2 direction coincides with the direction obtained by rotating by α° from the Z direction to the Y direction. Here, α is greater than 0 and less than 90. The direction opposite to the D2 direction is denoted as the -D2 direction.
[0053] As shown in Figure 7B, on the inclined surface 31b, the D1 direction coincides with the X direction. Also, on the inclined surface 31b, the D2 direction is the direction of the slope of the inclined surface 31b. On the inclined surface 31b, the D2 direction is the direction that travels the shortest distance from the lower end to the upper end of the inclined surface 31b, perpendicular to each of the multiple contour lines (not shown) of the inclined surface 31b. Also, on the inclined surface 31b, the D2 direction coincides with the direction obtained by rotating by β° from the Z direction toward the -Y direction. Note that β is greater than 0 and less than 90. The direction opposite to the D2 direction is called the -D2 direction.
[0054] α and β may be equal to each other or may be different to each other. Furthermore, α and β may be constant regardless of the position in the Z direction and the Y direction, or they may change depending on the position in the Z direction and the Y direction.
[0055] Although not shown in the diagram, the direction perpendicular to both the D1 and D2 directions is defined as the D3 direction. The D3 direction is the normal direction to the inclined surface 31a or 31b, and is the direction away from the inclined surface 31a or 31b to the side away from the substrate 20. The direction opposite to the D3 direction is defined as the -D3 direction.
[0056] Furthermore, the directions in the second plane may also be explained using the inclined plane coordinate system described above. The D1 and D2 directions in the second plane corresponding to the inclined surface 31a are the same as the D1 and D2 directions in the inclined surface 31a. The D1 and D2 directions in the second plane corresponding to the inclined surface 31b are the same as the D1 and D2 directions in the inclined surface 31b.
[0057] Next, with reference to Figure 8, the definitions of current angle and magnetization angle in this embodiment will be explained. Figure 8 is an explanatory diagram for explaining the definitions of current angle θI and magnetization angle θM. The current angle θI and magnetization angle θM are defined in the inclined coordinate system corresponding to the MR element 50. In this embodiment, the current angle θI is the angle that the direction DI of the current flowing through the MR element 50, which is an AMR element, makes with respect to a specific direction. The magnetization angle θM is the angle that the direction DM of the magnetization of the MR element 50 makes with respect to a specific direction. The specific direction may be the D1 direction of the inclined coordinate system, a direction of the inclined coordinate system other than the D1 direction, or a direction of the reference coordinate system. The current angle θI and magnetization angle θM may be expressed as values between 0° and less than 360°. The relative angle θ corresponds to the difference between the current angle θI and the magnetization angle θM.
[0058] The resistance R of the AMR element 50 is expressed by the following equation (1), using the current angle θI and the magnetization angle θM. R0 represents the resistance of the MR element 50 when the current direction DI and the magnetization direction DM of the AMR element are orthogonal, and MR represents the MR ratio of the MR element 50. R = R0(1 + MR・cos 2 (θM−θI)) …(1)
[0059] Next, the circuit configuration of the magnetic sensor 1 will be described with reference to Figures 9A and 9B. Figure 9A is a circuit diagram showing the circuit configuration of the magnetic sensor 1. Figure 9B is a functional block diagram showing the magnetic sensor 1 and the processor. The magnetic sensor 1 may include at least one detection circuit configured to generate at least one detection signal that is composed of a plurality of MR elements 50 and has a corresponding relationship with the target magnetic field. The at least one detection circuit is composed of at least one bridge circuit.
[0060] In a system including a magnetic sensor device 100, for example, an angle output value corresponding to the magnetic field angle θMF, which is the angle that the direction of the target magnetic field makes with respect to a specific direction, may be generated as angle information of the target magnetic field. In order to generate the angle output value, the magnetic sensor 1 may be configured to generate two detection signals that have different phases from each other. In this embodiment, the magnetic sensor 1 includes a first detection circuit 101 configured to generate a first detection signal S1, and a second detection circuit 102 configured to generate a second detection signal S2 that has a different phase from the first detection signal S1. In the example shown in Figure 9A, both the first detection circuit 101 and the second detection circuit 102 are full-bridge circuits. The first detection circuit 101 is also referred to as the first full-bridge circuit. The second detection circuit 102 is also referred to as the second full-bridge circuit. Note that the first detection circuit 101 and the second detection circuit 102 are not limited to full-bridge circuits, but may also be half-bridge circuits.
[0061] The system including the magnetic sensor device 100 may also include a processor 140 electrically connected to a first detection circuit 101 and a second detection circuit 102. The processor 140 is configured to generate the angle output value as a detection value based on a first detection signal S1 and a second detection signal S2. As described above, the target magnetic field includes a first magnetic field component whose direction changes in the XZ plane perpendicular to the upper surface 20a of the substrate 20, which is the reference plane, and a second magnetic field component whose direction changes in the plane corresponding to the inclined surface. The angle output value has a correspondence with at least one of the direction and intensity of the first magnetic field component.
[0062] The first detection circuit 101 includes a power port, a power terminal V1, a ground port, a ground terminal G1, two output ports, E11 and E12, and four sub-circuits 111, 112, 113, and 114. The first resistor, sub-circuit 111, is provided between the power terminal V1 and the output terminal E11. The second resistor, sub-circuit 112, is provided between the ground terminal G1 and the output terminal E11. The third resistor, sub-circuit 113, is provided between the ground terminal G1 and the output terminal E12. The fourth resistor, sub-circuit 114, is provided between the power terminal V1 and the output terminal E12.
[0063] One end of each of the subcircuits 111 and 114 is connected to the power terminal V1. One end of each of the subcircuits 112 and 113 is connected to the ground terminal G1. The other end of each of the subcircuits 111 and 112 is connected to the output terminal E11. The other end of each of the subcircuits 113 and 114 is connected to the output terminal E12. A voltage or current of a specific magnitude is applied to the power terminal V1. The ground terminal G1 is connected to ground.
[0064] The second detection circuit 102 includes a power port, a power terminal V2, a ground port, a ground terminal G2, two output ports, E21 and E22, and four sub-circuits 121, 122, 123, and 124. The first resistor, sub-circuit 121, is provided between the power terminal V2 and the output terminal E21. The second resistor, sub-circuit 122, is provided between the ground terminal G2 and the output terminal E21. The third resistor, sub-circuit 123, is provided between the ground terminal G2 and the output terminal E22. The fourth resistor, sub-circuit 124, is provided between the power terminal V2 and the output terminal E22.
[0065] One end of each of the sub-circuits 121 and 124 is connected to the power supply terminal V2. One end of each of the sub-circuits 122 and 123 is connected to the ground terminal G2. The other end of each of the sub-circuits 121 and 122 is connected to the output terminal E21. The other end of each of the sub-circuits 123 and 124 is connected to the output terminal E22. A voltage or current of a specific magnitude is applied to the power supply terminal V2. The ground terminal G2 is connected to ground.
[0066] The power supply terminal V1 of the first detection circuit 101 and the power supply terminal V2 of the second detection circuit 102 may be connected to separate power supplies. In this case, variations in resistance and output values between the first detection circuit 101 and the second detection circuit 102 can be adjusted and suppressed by the power supply. For example, when a voltage of a specific magnitude is applied to the power supply terminals V1 and V2, variations can be suppressed by adjusting the magnitude of the voltage applied by the power supply. This improves the accuracy of the magnetic sensor 1.
[0067] Alternatively, a single power supply may be connected to the power supply terminal V1 of the first detection circuit 101 and the power supply terminal V2 of the second detection circuit 102. In this case, the influence of the temperature characteristics of the power supply system, including the power supply, is canceled out when calculating the angle output value described later, thereby improving the accuracy of the magnetic sensor 1.
[0068] The magnetic sensor 1 further includes two differential amplifiers (differential detectors) 103 and 104. The two input terminals of differential amplifier 103 are connected to two output terminals E11 and E12. The two input terminals of differential amplifier 104 are connected to two output terminals E21 and E22. Differential amplifier 103 is configured to output a first detection signal S1 corresponding to the potential difference between the two output terminals E11 and E12. Differential amplifier 104 is configured to output a second detection signal S2 corresponding to the potential difference between the two output terminals E21 and E22.
[0069] Each of the first detection signal S1 and the second detection signal S2 includes a periodic component that changes periodically in accordance with the direction of the second magnetic field component or the periodic change in the magnetic field angle θMF. The phase difference between the periodic component of the first detection signal S1 and the periodic component of the second detection signal S2 is an odd multiple of one-quarter of the period of the periodic component. The first detection signal S1 is also called the cos signal. The second detection signal S2 is also called the sin signal. The first detection circuit 101 is also called the cos bridge. The second detection circuit 102 is also called the sin bridge.
[0070] Subcircuits 111-114 and 121-124 are composed of multiple MR elements 50 and multiple wirings 40. Each of subcircuits 111-114 and 121-124 includes at least one MR element 50. In this embodiment, each of subcircuits 111-114 and 121-124 includes multiple MR elements 50 connected in series by multiple wirings 40.
[0071] In this embodiment, subcircuits 111-114 and 121-124 are composed of four types of MR elements 50. Hereinafter, the four types of MR elements 50 will be distinguished using reference numerals 50A, 50B, 50C, and 50D. The plurality of MR elements 50 that constitute each of the subcircuits 111 and 113 are a plurality of first MR elements 50A. The plurality of MR elements 50 that constitute each of the subcircuits 112 and 114 are a plurality of second MR elements 50B. The plurality of MR elements 50 that constitute each of the subcircuits 121 and 123 are a plurality of third MR elements 50C. The plurality of MR elements 50 that constitute each of the subcircuits 122 and 124 are a plurality of fourth MR elements 50D. The first detection circuit 101 is composed of a plurality of first MR elements 50A and a plurality of second MR elements 50B. The second detection circuit 102 is configured using a plurality of third MR elements 50C and a plurality of fourth MR elements 50D.
[0072] Among the multiple inclined surfaces 31a and 31b, the inclined surfaces on which multiple first MR elements 50A are arranged are also referred to as the first inclined surfaces. Among the multiple inclined surfaces 31a and 31b, the inclined surfaces on which multiple second MR elements 50B are arranged are also referred to as the second inclined surfaces. Among the multiple inclined surfaces 31a and 31b, the inclined surfaces on which multiple third MR elements 50C are arranged are also referred to as the third inclined surfaces. Among the multiple inclined surfaces 31a and 31b, the inclined surfaces on which multiple fourth MR elements 50D are arranged are also referred to as the fourth inclined surfaces.
[0073] Figure 10A is a plan view showing the first MR element 50A and the second MR element 50B in the first detection circuit 101. Figure 10B is a plan view showing the third MR element 50C and the fourth MR element 50D in the second detection circuit 102. Figure 11A is an explanatory diagram for illustrating the first and second directions. Figure 11B is an explanatory diagram for illustrating the third and fourth directions. Figures 10A and 10B show the planar shape in a plan view from the direction D3.
[0074] The first MR element 50A may be configured such that the main component of the current flowing through the first MR element 50A flows in a certain reference direction. Alternatively, the first MR element 50A may be configured such that the current flows along a first direction from the first end to the second end of the first MR element 50A. At least one of the above-mentioned reference direction and first direction may be defined in an inclined coordinate system or in a reference coordinate system. In this embodiment, both the above-mentioned reference direction and first direction are assumed to be defined in an inclined coordinate system. In the following description, the first direction will be represented by the symbol Da. The reference direction of the MR element 50 is shown in Figures 15 and 16, which will be described later.
[0075] Furthermore, the first end of the first MR element 50A is also the input terminal for current, and the second end of the first MR element 50A is also the output terminal for current. On the other hand, the two physical ends of the first MR element 50A are sometimes referred to as the first end and the second end. The first end and the second end are defined based on a reference coordinate system or an inclined coordinate system. Depending on the orientation of the first MR element 50A, the first end and the second end may be either the input terminal (first end) or the output terminal (second end). The above explanation of the first end, second end, first end and second end also applies to MR elements 50 other than the first MR element 50A.
[0076] In Figure 10A, the line denoted by the symbol LA is the reference axis in the inclined coordinate system and is an axis extending in a direction parallel to the first direction Da. In the first MR element 50A, current flows along axis LA from the first end to the second end of the first MR element 50A. The first MR element 50A may have a shape that extends along axis LA.
[0077] The second MR element 50B may be configured such that the main component of the current flowing through it flows in a certain reference direction. Alternatively, the second MR element 50B may be configured such that the current flows along a second direction from the first end to the second end. The explanation of the reference direction and the first direction in the first MR element 50A also applies to the reference direction and the second direction in the second MR element 50B. In the following explanation, the second direction will be represented by the symbol Db.
[0078] In Figure 10A, the line denoted by the symbol LB is the reference axis in the inclined coordinate system and is an axis extending in a direction parallel to the second direction Db. In the second MR element 50B, current flows along the axis LB from the first end to the second end of the second MR element 50B. The second MR element 50B may have a shape that extends along the axis LB.
[0079] The third MR element 50C may be configured such that the main component of the current flowing through it flows in a certain reference direction. Alternatively, the third MR element 50C may be configured such that the current flows along a third direction from the first end to the second end of the third MR element 50C. The explanation of the reference direction and the first direction in the first MR element 50A also applies to the reference direction and the third direction in the third MR element 50C. In the following explanation, the third direction will be represented by the symbol Dc.
[0080] In Figure 10B, the line denoted by the symbol LC is the reference axis in the inclined coordinate system and is an axis extending in a direction parallel to the third direction Dc. In the third MR element 50C, current flows along axis LC from the first end to the second end of the third MR element 50C. The third MR element 50C may have a shape that extends along axis LC.
[0081] The fourth MR element 50D may be configured such that the main component of the current flowing through it flows in a certain reference direction. Alternatively, the fourth MR element 50D may be configured such that the current flows along a fourth direction from the first end to the second end of the fourth MR element 50D. The explanation of the reference direction and the first direction in the first MR element 50A also applies to the reference direction and the fourth direction in the fourth MR element 50D. In the following explanation, the fourth direction will be represented by the symbol Dd.
[0082] In Figure 10B, the line denoted by the symbol LD is the reference axis in the inclined coordinate system and is an axis extending in a direction parallel to the fourth direction Dd. In the fourth MR element 50D, current flows along the axis LD from the first end to the second end of the fourth MR element 50D. The fourth MR element 50D may have a shape that extends along the axis LD.
[0083] The first direction Da, the second direction Db, the third direction Dc, and the fourth direction Dd are defined with respect to the X-axis direction. For example, the first direction Da, the second direction Db, the third direction Dc, and the fourth direction Dd are defined as directions obtained by rotating the D1 direction, which is parallel to the X-axis direction, around the axis of an axis parallel to the D3 direction. The directions in which the D1 direction is rotated are from the D1 direction toward the D2 direction, from the D2 direction toward the -D1 direction, from the -D1 direction toward the -D2 direction, and from the -D2 direction toward the D1 direction. In this embodiment, the first direction Da, the second direction Db, the third direction Dc, and the fourth direction Dd all intersect with the X-axis direction and the D1 direction.
[0084] The first direction Da is the direction obtained by rotating the direction D1 by an angle θ1a. The second direction Db is the direction obtained by rotating the direction D1 by an angle θ1b. The third direction Dc is the direction obtained by rotating the direction D1 by an angle θ1c. The fourth direction Dd is the direction obtained by rotating the direction D1 by an angle θ1d. In Figures 11A and 11B, the lines labeled RL11 and RL12 are reference axes in the inclined coordinate system, and represent reference axes extending in a direction parallel to the direction D1. In Figure 11A, angle θ1a is represented as the angle that the first direction Da makes with the reference axis RL11, and angle θ1b is represented as the angle that the second direction Db makes with the reference axis RL11. In Figure 11B, angle θ1c is represented as the angle that the third direction Dc makes with the reference axis RL12, and angle θ1d is represented as the angle that the fourth direction Dd makes with the reference axis RL12.
[0085] The first MR element 50A and the second MR element 50B may be intersected such that the first direction Da and the second direction Db intersect at an angle of 90°. In this case, the difference between angles θ1a and θ1b is 90°. The third MR element 50C and the fourth MR element 50D may be intersected such that the third direction Dc and the fourth direction Dd intersect at an angle of 90°. In this case, the difference between angles θ1c and θ1d is 90°.
[0086] Furthermore, the first direction Da, the second direction Db, the third direction Dc, and the fourth direction Dd may all intersect with the D2 direction. The D2 direction is the gradient direction in the inclined plane coordinate system. The first MR element 50A may be configured such that the first direction Da intersects with the D2 direction, which is the gradient direction of the first inclined surface. The second MR element 50B may be configured such that the second direction Db intersects with the D2 direction, which is the gradient direction of the second inclined surface. The third MR element 50C may be configured such that the third direction Dc intersects with the D2 direction, which is the gradient direction of the third inclined surface. The fourth MR element 50D may be configured such that the fourth direction Dd intersects with the D2 direction, which is the gradient direction of the fourth inclined surface.
[0087] If the first direction Da, the second direction Db, the third direction Dc, and the fourth direction Dd all intersect with both direction D1 and direction D2, then angles θ1a, θ1b, θ1c, and θ1d will be angles other than 0°, 90°, 180°, and 270°, within the range of 0° or more and less than 360°. For example, angle θ1a may be 112.5°. Angles θ1b may be 22.5°. Angles θ1c may be 157.5°. Angles θ1d may be 67.5°.
[0088] Here, with reference to Figures 11C and 11D, the relationship between the first direction Da and the fourth direction Dd, and the relationship between the second direction Db and the third direction Dc will be explained. In Figures 11C and 11D, the lines indicated by the symbols RL21 and RL22 are reference axes in the reference coordinate system, and represent reference axes parallel to the upper surface 20a (reference plane) of the substrate 20. Each of the reference axes RL21 and RL22 may be defined as intersecting the X-axis direction, or as intersecting the D1 direction in a plan view from the Z direction. In this embodiment, in a plan view from the Z direction, each of the reference axes RL21 and RL22 is orthogonal to the D1 direction and parallel to the direction obtained by projecting the D2 direction onto the XY plane. Therefore, the reference axis RL21 and the reference axis RL22 are parallel to each other.
[0089] The first MR element 50A and the fourth MR element 50D may be configured such that, in a plan view from the Z direction, the first direction Da and the fourth direction Dd are symmetrical with respect to the reference axis RL21. The angle θ2a between the reference axis RL21 projected onto the first inclined surface on which the first MR element 50A is located and the first direction Da, and the angle θ2d between the reference axis RL21 projected onto the fourth inclined surface on which the fourth MR element 50D is located and the fourth direction Dd, may be, for example, 22.5°. Angle θ2a is also the angle that the first direction Da makes with respect to the D2 direction. Angle θ2d is also the angle that the fourth direction Dd makes with respect to the D2 direction. Furthermore, the first MR element 50A and the fourth MR element 50D do not need to be arranged symmetrically with respect to the reference axis RL21, as long as the requirement that the first direction Da and the fourth direction Dd are symmetrical with respect to the reference axis RL21 is satisfied.
[0090] The second MR element 50B and the third MR element 50C may be configured such that, in a plan view from the Z direction, the second direction Db and the third direction Dc are symmetrical with respect to the reference axis RL22. The angle θ2b between the reference axis RL22 projected onto the second inclined surface on which the second MR element 50B is located and the second direction Db, and the angle θ2c between the reference axis RL22 projected onto the third inclined surface on which the third MR element 50C is located and the third direction Dc, may be, for example, 67.5°. Angle θ2b is also the angle that the second direction Db makes with respect to the D2 direction. Angle θ2c is also the angle that the third direction Dc makes with respect to the D2 direction. Furthermore, the second MR element 50B and the third MR element 50C do not need to be arranged symmetrically with respect to the reference axis RL22, as long as the requirement that the second direction Db and the third direction Dc are symmetrical with respect to the reference axis RL22 is satisfied.
[0091] Next, with reference to Figures 12 and 13, the resistance values R of the first MR element 50A, the second MR element 50B, the third MR element 50C, and the fourth MR element 50D will be described. Figure 12 is a waveform diagram showing an example of the resistance values R of the first MR element 50A and the second MR element 50B. Figure 13 is a waveform diagram showing an example of the resistance values R of the third MR element 50C and the fourth MR element 50D. In Figures 12 and 13, the horizontal axis represents the magnetization angle θM that the magnetization direction DM of the MR element 50 makes with respect to a specific direction. The vertical axis represents the resistance value R.
[0092] Furthermore, in Figure 12, the waveform denoted by reference numeral 81 represents the resistance value R of the first MR element 50A, and the waveform denoted by reference numeral 82 represents the resistance value R of the second MR element 50B. The first MR element 50A and the second MR element 50B are configured such that, in response to the periodic change in the target magnetic field, the resistance values R of the first MR element 50A and the resistance values R of the second MR element 50B change in different phases from each other. In the example shown in Figure 12, the first MR element 50A and the second MR element 50B are configured such that, in response to the change in the target magnetic field, one of the resistance values R of the first MR element 50A and the other of the second MR element 50B increases and the other decreases. In addition, the resistance values R of the first MR element 50A and the second MR element 50B each change periodically in response to the change in the target magnetic field. When the target magnetic field changes, the magnetization angle θM changes. When the magnetization angle θM changes, the relative angle θ between the magnetization direction DM of the MR element 50 and the direction DI of the current flowing through the MR element 50 changes. When angle θ1a is 112.5°, the resistance value R of the first MR element 50A can be expressed by an equation including -cos(2(θ-π / 8)). When angle θ1b is 22.5°, the resistance value R of the second MR element 50B can be expressed by an equation including cos(2(θ-π / 8)).
[0093] Furthermore, in Figure 13, the waveform denoted by reference numeral 83 represents the resistance value R of the third MR element 50C, and the waveform denoted by reference numeral 84 represents the resistance value R of the fourth MR element 50D. The third MR element 50C and the fourth MR element 50D are configured such that, in response to the periodic change in the target magnetic field, the resistance values R of the third MR element 50C and the resistance values R of the fourth MR element 50D change in different phases from each other. In the example shown in Figure 13, the third MR element 50C and the fourth MR element 50D are configured such that, in response to the change in the target magnetic field, one of the resistance values R of the third MR element 50C and the other of the fourth MR element 50D increases and the other decreases. In addition, the resistance values R of the third MR element 50C and the fourth MR element 50D change periodically in response to the change in the target magnetic field. When the target magnetic field changes, the magnetization angle θM and the relative angle θ change. When the angle θ1c is 157.5°, the resistance R of the third MR element 50C can be expressed by an expression including -sin(2(θ-π / 8)). When the angle θ1d is 67.5°, the resistance R of the fourth MR element 50D can be expressed by an expression including sin(2(θ-π / 8)).
[0094] The resistance values of each of the subcircuits 111 to 114 of the first detection circuit 101 change in accordance with the change in the resistance values R of the first MR element 50A and the second MR element 50B, respectively. Each of the subcircuits 111 and 113 is composed of multiple first MR elements 50A, and each of the subcircuits 112 and 114 is composed of multiple second MR elements 50B. Therefore, when the target magnetic field changes, the resistance value of one of the subcircuits 111, 113 pair and the subcircuit 112, 114 pair decreases, while the resistance value of the other pair increases. As a result, the potentials of the output terminals E11 and E12 change.
[0095] The resistance values of each of the subcircuits 121 to 124 of the second detection circuit 102 change in accordance with the change in the resistance values R of the third MR element 50C and the fourth MR element 50D, respectively. Each of the subcircuits 121 and 123 is composed of multiple third MR elements 50C, and each of the subcircuits 122 and 124 is composed of multiple fourth MR elements 50D. Therefore, when the target magnetic field changes, the resistance value of one of the subcircuits 121, 123 pair and the subcircuit 122, 124 pair decreases, while the resistance value of the other pair increases. As a result, the potentials of the output terminals E21 and E22 change.
[0096] Furthermore, the resistance value R of the MR element 50 configured to allow current to flow in the direction opposite to the first direction Da shown in Figure 11A changes in the same phase and period as the resistance value R of the first MR element 50A in response to the change in the target magnetic field. Each of the subcircuits 111 and 113 may consist only of a plurality of first MR elements 50A, or only of a plurality of MR elements 50 configured to allow current to flow in the direction opposite to the first direction Da, or may consist of a plurality of first MR elements 50A and a plurality of MR elements 50 configured to allow current to flow in the direction opposite to the first direction Da. For convenience, in the following description, an MR element 50 configured to allow current to flow in the direction opposite to the first direction Da may also be referred to as the first MR element 50A.
[0097] Similarly, the resistance R of the MR element 50 configured to allow current to flow in the direction opposite to the second direction Db shown in Figure 11A changes in the same phase and period as the resistance R of the second MR element 50B in response to the change in the target magnetic field. Each of the subcircuits 112 and 114 may consist only of a plurality of second MR elements 50B, or only of a plurality of MR elements 50 configured to allow current to flow in the direction opposite to the second direction Db, or may consist of a plurality of second MR elements 50B and a plurality of MR elements 50 configured to allow current to flow in the direction opposite to the second direction Db. For convenience, in the following description, an MR element 50 configured to allow current to flow in the direction opposite to the second direction Db may also be referred to as a second MR element 50B.
[0098] Similarly, the resistance R of the MR element 50 configured to allow current to flow in the direction opposite to the third direction Dc shown in Figure 11B changes in the same phase and period as the resistance R of the third MR element 50C in response to the change in the target magnetic field. Each of the subcircuits 121 and 123 may consist only of a plurality of third MR elements 50C, or only of a plurality of MR elements 50 configured to allow current to flow in the direction opposite to the third direction Dc, or may consist of a plurality of third MR elements 50C and a plurality of MR elements 50 configured to allow current to flow in the direction opposite to the third direction Dc. For convenience, in the following description, an MR element 50 configured to allow current to flow in the direction opposite to the third direction Dc may also be referred to as a third MR element 50C.
[0099] Similarly, the resistance R of the MR element 50 configured to allow current to flow in the direction opposite to the fourth direction Dd shown in Figure 11B changes in the same phase and period as the resistance R of the fourth MR element 50D in response to the change in the target magnetic field. Each of the subcircuits 122 and 124 may consist only of a plurality of fourth MR elements 50D, or only of a plurality of MR elements 50 configured to allow current to flow in the direction opposite to the fourth direction Dd, or may consist of a plurality of fourth MR elements 50D and a plurality of MR elements 50 configured to allow current to flow in the direction opposite to the fourth direction Dd. For convenience, in the following description, an MR element 50 configured to allow current to flow in the direction opposite to the fourth direction Dd may also be referred to as the fourth MR element 50D.
[0100] Next, the first detection signal S1 and the second detection signal S2 will be described with reference to Figure 14. Figure 14 is a waveform diagram showing an example of the first detection signal S1 and the second detection signal S2. In Figure 14, the horizontal axis represents the magnetization angle θM, and the vertical axis represents the magnitude of the first detection signal S1 and the second detection signal S2, respectively. The waveform denoted by reference numeral 85 represents the first detection signal S1. The waveform denoted by reference numeral 86 represents the second detection signal S2.
[0101] The first detection signal S1 corresponds to the potential difference between the output terminals E11 and E12. The first detection signal S1 may be the potential difference between the output terminals E11 and E12 itself, or it may be the potential difference between the output terminals E11 and E12 to which specific corrections such as gain adjustment and offset adjustment have been applied. Similarly, the second detection signal S2 corresponds to the potential difference between the output terminals E21 and E22. The second detection signal S2 may be the potential difference between the output terminals E21 and E22 itself, or it may be the potential difference between the output terminals E21 and E22 to which specific corrections such as gain adjustment and offset adjustment have been applied.
[0102] The first detection signal S1 and the second detection signal S2 change at a frequency twice the frequency of the magnetization angle θM and the relative angle θ, respectively, and change at a period half the period of the magnetization angle θM and the relative angle θ, respectively. The first detection signal S1 can be expressed by an equation including cos(2(θ-δ)), similar to the resistance values R of the first MR element 50A and the second MR element 50B. The second detection signal S2 can be expressed by an equation including sin(2(θ-δ)), similar to the resistance values R of the third MR element 50C and the fourth MR element 50D.
[0103] The system including the magnetic sensor device 100 generates an angle output value using, for example, the first detection signal S1 and the second detection signal S2 shown in Figure 14. The angle output value θA can be generated, for example, by the following equation (2). Note that S1 represents the magnitude of the first detection signal S1, and S2 represents the magnitude of the second detection signal S2. θA = tan -1 (S2 / S1) …(2)
[0104] Equation (2) essentially represents the calculation of arctangent using the first detection signal S1 and the second detection signal S2. Although not shown in the figure, the angular output value θA changes with respect to the magnetization angle θM and the relative angle θ at a frequency twice the frequency of the respective magnetization angle θM and relative angle θ, and changes with a period half the period of the respective magnetization angle θM and relative angle θ.
[0105] Next, the multiple wirings 40 will be described with reference to Figures 15, 16, and 17. Figure 15 is a plan view showing a first example of multiple MR elements 50, multiple first wirings, and multiple second wirings. Figure 16 is a plan view showing a second example of multiple MR elements 50, multiple first wirings, and multiple second wirings. Figure 17 is a plan view showing a third example of multiple MR elements 50, multiple first wirings, and multiple second wirings.
[0106] The first example is a case where the direction of the current flowing through the MR element 50 is rotated by an angle of less than 90° from the D2 direction toward the D1 direction, or rotated by an angle of less than 90° from the -D2 direction toward the -D1 direction, such as multiple second MR elements 50B and multiple fourth MR elements 50D. The second example is a case where the direction of the current flowing through the MR element 50 is rotated by an angle of less than 90° from the D2 direction toward the -D1 direction, or rotated by an angle of less than 90° from the -D2 direction toward the D1 direction, such as multiple first MR elements 50A and multiple third MR elements 50C. The third example is a case where the rotation angle of the direction of the current flowing through the MR element 50 is smaller than in the first example.
[0107] In the first, second, and third examples, the plurality of MR elements 50 are arranged along the X-axis and the D1 direction. The plurality of wirings 40 include a plurality of first wirings 41 and a plurality of second wirings 42. The plurality of first wirings 41 and the plurality of second wirings 42 electrically connect the plurality of MR elements 50 such that the first wirings 41 and the second wirings 42 are arranged alternately along the direction of current flow. Each of the plurality of first wirings 41 electrically connects two adjacent MR elements 50 in the D1 direction. Each of the plurality of second wirings 42 electrically connects two adjacent MR elements 50 in the D1 direction, each connected to a different first wiring 41. The plurality of first wirings 41 are arranged on the D2 direction side of the plurality of MR elements 50.
[0108] As shown in Figures 15 and 16, in the first and second examples, the multiple first wires 41 and the multiple second wires 42 connect the multiple MR elements 50 such that the entire arrangement of the multiple MR elements 50 and the multiple wires 40 forms a meander shape when viewed from a planar perspective in the Z direction. The meander shape is an example of a shape that allows for an increase in the number of MR elements 50 arranged on an inclined surface. In addition, in the first and second examples, the multiple second wires 42 are arranged on the -D2 direction side of the multiple MR elements 50.
[0109] As shown in Figure 17, in the third example, the plurality of first wirings 41 and plurality of second wirings 42 are arranged alternately along the X-axis direction and the D1 direction. An MR element 50 is placed between adjacent first wirings 41 and second wirings 42 in the X-axis direction and the D1 direction.
[0110] Each of the multiple MR elements 50 has a first end 50a and a second end 50b that are located opposite each other in directions that intersect with the X-axis and D1 directions at angles other than 90°. The first end 50a is located on the -D2 direction side of the MR element 50. The second end 50b is located on the D2 direction side of the MR element 50.
[0111] Here, we focus on the three MR elements 50 arranged in the D1 direction. As shown in Figures 15 to 17, the reference MR element 50 is denoted by reference numeral 50-1, the MR element 50 located ahead of MR element 50-1 in the D1 direction is denoted by reference numeral 50-2, and the MR element 50 located ahead of MR element 50-1 in the -D1 direction is denoted by reference numeral 50-3. In MR element 50-1 in the first and second examples, current flows along the direction from the first end 50a to the second end 50b. In MR elements 50-2 and 50-3 in the first and second examples, current flows along the direction from the second end 50b to the first end 50a. Therefore, in MR element 50-1 in the first and second examples, the first end 50a is the input end (first end) of the current, and the second end 50b is the output end (second end) of the current. Furthermore, in the MR elements 50-2 and 50-3 in the first and second examples, the second end 50b is the current input terminal (first terminal), and the first end 50a is the current output terminal (second terminal).
[0112] The direction of the main component of the current flowing through MR element 50-1 is also referred to as the first reference direction DR1, the direction of the main component of the current flowing through MR element 50-2 is also referred to as the second reference direction DR2, and the direction of the main component of the current flowing through MR element 50-3 is also referred to as the third reference direction DR3. In the first and second examples, MR elements 50-1, 50-2, and 50-3 are configured such that the first reference direction DR1 and the second reference direction DR2 are in opposite directions, and the first reference direction DR1 and the third reference direction DR3 are in opposite directions. Alternatively, in the first and second examples, MR elements 50-2 and 50-3 may be configured such that the second reference direction DR2 and the third reference direction DR3 coincide.
[0113] In the third example, in the MR elements 50-1, 50-2, and 50-3, current flows along the direction from the first end 50a to the second end 50b. Therefore, in the MR elements 50-1, 50-2, and 50-3 in the third example, the first end 50a is the input terminal (first end) of the current, and the second end 50b is the output terminal (second end) of the current. The MR elements 50-1, 50-2, and 50-3 in the third example are configured such that the first reference direction DR1, the second reference direction DR2, and the third reference direction DR3 are in the same direction.
[0114] Figures 15 to 17 show multiple MR elements 50, multiple first wirings 41, and multiple second wirings 42 arranged on one of the multiple inclined surfaces 31a and multiple inclined surfaces 31b. Here, we will focus on the inclined surfaces 31a and 31b of one protrusion 31c and describe the multiple MR elements 50, multiple first wirings 41, and multiple second wirings 42 arranged on each of the inclined surfaces 31a and 31b. Figure 18 is a plan view showing the two inclined surfaces 31a and 31b of one protrusion 31c. In Figure 18, the straight lines denoted by RLs indicate reference axes extending in the X-axis direction and the D1 direction. In the example shown in Figure 18, the upper edges of the inclined surface 31a and the upper edges of the inclined surface 31b coincide with the reference axis RLs in a plan view from the Z direction.
[0115] Here, the group of elements including a plurality of MR elements 50 arranged on the inclined surface 31a is referred to as the first group of elements, and the group of elements including a plurality of MR elements 50 arranged on the inclined surface 31b is referred to as the second group of elements. The first group of elements and the second group of elements are arranged so as to straddle the reference axis RLs. The first reference direction DR1, the second reference direction DR2, and the third reference direction DR3 in the second group of elements may be symmetrical with respect to the first reference direction DR1, the second reference direction DR2, and the third reference direction DR3 in the first group of elements, with respect to the reference axis RLs.
[0116] The first group of elements and the second group of elements may be electrically connected in series. In this case, the first group of elements and the second group of elements may be included in one of the subcircuits 111-114 and 121-124.
[0117] The shapes of the first group of elements in a plan view from the Z direction and the shapes of the second group of elements in a plan view from the Z direction may be symmetrical with respect to the reference axis RLs.
[0118] Furthermore, a group of wirings including a plurality of first wirings 41 and a plurality of second wirings 42 arranged on the inclined surface 31a is referred to as the first wiring group, and a group of wirings including a plurality of first wirings 41 and a plurality of second wirings 42 arranged on the inclined surface 31b is referred to as the second wiring group. The shape of the first wiring group in a plan view from the Z direction and the shape of the second wiring group in a plan view from the Z direction may be symmetrical with respect to the reference axis RLs.
[0119] Note that the shapes of the first element group, the second element group, the first wiring group, and the second wiring group are not limited to the example shown in Figure 18. For example, the planar shapes of the second element group and the second wiring group may coincide with the shape obtained by shifting the planar shapes of the first element group and the first wiring group in the Y direction.
[0120] Next, the configurations of the first wiring 41 and the second wiring 42 will be described. Here, we will focus on a specific first wiring 41 among the plurality of first wirings 41 shown in Figures 15 to 17 that electrically connects MR element 50-1 and MR element 50-2. The specific first wiring 41 has a first junction surface connected to MR element 50-1 and a second junction surface connected to MR element 50-2. The specific first wiring 41 also includes a first portion 41A which includes the first junction surface and is configured so that the main component of the current flows in a first reference direction DR1, a second portion 41B which includes a second junction surface and is configured so that the main component of the current flows in a second reference direction DR2, and a third portion 41C which electrically connects the first portion 41A and the second portion 41B. In the first and second examples, the third portion 41C may be configured so that the main component of the current flows in the X-axis direction. The third portion 41C in the third example may be configured such that the main component of the current flows in a direction that intersects both the D1 direction and the D2 direction.
[0121] Furthermore, among the plurality of second wirings 42 shown in Figures 15 and 16, we will focus on a specific second wiring 42 that electrically connects MR element 50-1 and MR element 50-3. The specific second wiring 42 has a third junction surface 42a connected to MR element 50-1 and a fourth junction surface connected to MR element 50-3. The specific second wiring 42 also includes a fourth portion 42A which includes the third junction surface and is configured so that the main component of the current flows in a first reference direction DR1, a fifth portion 42B which includes the fourth junction surface and is configured so that the main component of the current flows in a third reference direction DR3, and a sixth portion 42C which electrically connects the fourth portion 42A and the fifth portion 42B. In the first and second examples, the sixth portion 42C may be configured so that the main component of the current flows in the X-axis direction. The sixth portion 42C in the third example may be configured such that the main component of the current flows in a direction that intersects both the D1 direction and the D2 direction.
[0122] Next, the features of the plurality of inclined surfaces 31a and plurality of inclined surfaces 31b in this embodiment will be described in detail. Hereinafter, the angle that each of the plurality of inclined surfaces 31a makes with respect to the upper surface 20a (reference plane) of the substrate 20 and the angle that each of the plurality of inclined surfaces 31b makes with respect to the upper surface 20a (reference plane) of the substrate 20 will be assumed to be equal to each other. These angles will also be referred to as inclination angles. As described above, in this embodiment, the target magnetic field includes a first magnetic field component whose direction changes in a first plane which is the XZ plane perpendicular to the upper surface 20a of the substrate 20, and a second magnetic field component whose direction changes in a second plane which is the plane corresponding to the inclined surface. In this embodiment, the angle that the second plane makes with respect to the upper surface 20a of the substrate 20 is substantially equal to the inclination angle.
[0123] Here, the first magnetic field component is denoted by the symbol MF1, and the second magnetic field component is denoted by the symbol MF2. When the inclination angle changes, the angle detection value calculated based on the second magnetic field component MF2 changes. Figure 19 is a characteristic diagram showing the second magnetic field component MF2 of an ideal target magnetic field. The second magnetic field component includes component MF21, which is the component in the D1 direction of the inclined coordinate system, and component MF22, which is the component in the D2 direction of the inclined coordinate system. Component MF21 is substantially the component obtained by projecting the X-axis component MF1x of the first magnetic field component MF1 onto the second plane. Component MF22 is substantially the component obtained by projecting the Z-axis component MF1z of the first magnetic field component MF1 onto the second plane. An ideal target magnetic field is one in which, when the relative position of the magnetic field generator 5 with respect to the magnetic sensor 1 changes, the magnitudes of the X-axis component MF1x and the Z-axis component MF1z change in such a way that they trace an ideal sinusoidal curve (including sine and cosine waveforms).
[0124] When the target magnetic field changes according to the relative position within the variable range of the relative position, component MF1x may be oriented in the X direction or the -X direction, component MF1z may be oriented in the Z direction or the -Z direction, component MF21 may be oriented in the D1 direction or the -D1 direction, and component MF22 may be oriented in the D2 direction or the -D2 direction.
[0125] In Figure 19, the horizontal axis represents the magnitude of the normalized component MF21, and the vertical axis represents the magnitude of the normalized component MF22. Figure 19 shows the Lissajous curves of the second magnetic field component MF2 when the tilt angle is changed in 10° increments from 10° to 80°.
[0126] The locus of the Lissajous curve of the first magnetic field component MF1 of an ideal target magnetic field traces a portion of a circle. On the other hand, the locus of the Lissajous curve of the second magnetic field component MF2 traces a portion of an ellipse with a constant major axis. As shown in Figure 19, the minor axis of the ellipse traced by the locus of the Lissajous curve of the second magnetic field component MF2 decreases as the angle of inclination decreases.
[0127] Figure 20 is a characteristic diagram showing the angular output value calculated based on the second magnetic field component MF2 shown in Figure 19. In Figure 20, the horizontal axis represents the angle θR that the direction of the first magnetic field component MF1 of the ideal target magnetic field makes with respect to the reference direction (e.g., the X direction). The vertical axis represents the angular output value. Figure 20 shows the angular output value when the tilt angle is changed in 10° increments from 10° to 80°. The angular output value changes linearly with respect to the change in angle θR. However, as shown in Figure 20, the angular output value includes a periodic component that changes periodically with respect to the angle θR. This periodic component is a source of error in the angular output value. The amplitude of the periodic component increases as the tilt angle decreases. From Figures 19 and 20, it can be seen that the amplitude of the periodic component increases as the minor axis of the ellipse drawn by the trajectory of the Lissajous curve of the second magnetic field component MF2 decreases.
[0128] Up to this point, the explanation has been based on an ideal target magnetic field. The curve showing the change in the angle θR that the direction of the first magnetic field component MF1 of the ideal target magnetic field makes with respect to the reference direction in response to a change in relative position is a sine curve (including sine and cosine waveforms). However, in reality, the curve showing the change in the angle that the direction of the first magnetic field component MF1 makes with respect to the reference direction in response to a change in relative position is distorted from a sine curve depending on the configuration of the magnetic field generator 5. For example, in the magnetic field generator 5 shown in Figures 1 and 2, when the magnetic sensor 1 is near the boundary between the N pole and S pole of the magnetic field generator 5 in a plan view from the Z direction, the amount of change in the direction of the first magnetic field component MF1 becomes large. Such distortion becomes a factor in the error of the angle detection value.
[0129] On the other hand, as explained with reference to Figures 19 and 20, changing the tilt angle changes the error in the angle output value. The error in the angle output value due to the tilt angle changes independently of the change in the error in the angle output value due to the configuration of the magnetic field generator 5. Therefore, it is possible to suppress the error in the angle output value by adjusting the tilt angle. In other words, by appropriately adjusting the tilt angle, it is possible to cancel out at least a portion of the error in the angle output value and the error due to the tilt angle.
[0130] Furthermore, if the X-axis component MF1x and the Z-axis component MF1z of the first magnetic field component MF1 are detected and the angle output value is generated directly from the first magnetic field component MF1, an error may occur in the angle output value due to the configuration of the magnetic field generator 5, but the error in the angle output value cannot be suppressed by the inclination angle. Therefore, as in this embodiment, by arranging multiple MR elements 50 on multiple inclined surfaces 31a and multiple inclined surfaces 31b, the error in the angle output value can be suppressed.
[0131] The following describes simulation results demonstrating that errors in the angle output value can be suppressed by the tilt angle. Figure 21 is a characteristic diagram showing an example of the first magnetic field component MF1 obtained by simulation. In Figure 21, the curve labeled 501 shows the magnitude of the X-axis component MF1x of the first magnetic field component MF1. The curve labeled 502 shows the magnitude of the Z-axis component MF1z of the first magnetic field component MF1. In Figure 21, the horizontal axis shows the relative position, and the vertical axis shows the magnitudes of the components MF1x and MF1z, respectively.
[0132] Figure 22 shows the angular output values calculated based on the first magnetic field component MF1 shown in Figure 21. In Figure 22, the horizontal axis represents the relative position, and the vertical axis represents the angular output value.
[0133] Figure 23 shows the linearity error calculated based on the angular output values shown in Figure 22. In Figure 23, the horizontal axis represents the relative position, and the vertical axis represents the linearity error. The linearity error shown in Figure 23 is calculated based on the characteristic curve of the angular output values shown in Figure 22 and the approximate line obtained by approximating the characteristic curve with a straight line. Specifically, it is calculated based on the maximum value of the residual between the approximate line and the characteristic curve and the value at the endpoint of the characteristic curve.
[0134] The characteristic curve of the angular output value shown in Figure 22 is a curve that represents the relationship between the relative position and the angular output value. This curve essentially represents the relationship between a variable that corresponds to the relative position and the angle that the direction of the first magnetic field component MF1 makes with respect to the reference direction (e.g., the X direction) in the first plane. The linearity error shown in Figure 23 is essentially the linearity error related to the change in the direction of the first magnetic field component MF1. The variable that corresponds to the relative position may be, for example, a variable that directly represents the relative position with respect to a certain reference position, a variable that represents a normalized relative position, a variable that represents a relative position transformed into a specific coordinate system, or a variable that represents a relative position transformed using a specific calculation formula or transformation table.
[0135] The approximate line is a straight line approximating the characteristic curve within the variable range of relative position. The value at the endpoint of the characteristic curve is an angular output value that corresponds to the angle that the direction of the first magnetic field component MF1 at the endpoint of the variable range of relative position makes with respect to the reference direction in the first plane.
[0136] As the linearity error increases, the error in the angular output value also increases. The maximum value of the linearity error related to the change in the direction of the first magnetic field component MF1 is 1% or more. In the example shown in Figure 23, the maximum value of the linearity error is 6.4%.
[0137] Figure 24 is a characteristic diagram showing an example of a second magnetic field component MF2 obtained by simulation. In Figure 24, the curve labeled 511 shows the magnitude of component MF21 in the D1 direction of the second magnetic field component MF2. The curve labeled 512 shows the magnitude of component MF22 in the D2 direction of the second magnetic field component MF2. In Figure 24, the horizontal axis shows the relative position, and the vertical axis shows the magnitudes of components MF21 and MF22, respectively.
[0138] Figure 25 shows the angular output values calculated based on the second magnetic field component MF2 shown in Figure 24. In Figure 25, the horizontal axis represents the relative position, and the vertical axis represents the angular output value.
[0139] Figure 26 shows the linearity error calculated based on the angle output values shown in Figure 25. In Figure 26, the horizontal axis represents the relative position, and the vertical axis represents the linearity error. The linearity error shown in Figure 26 is calculated based on the characteristic curve of the angle output values shown in Figure 25 and the approximate line obtained by approximating the characteristic curve with a straight line. In the example shown in Figure 26, the linearity error is 0.5%.
[0140] As can be seen from Figures 21 to 26, generating the angle output value based on the second magnetic field component MF2 can suppress errors in the angle output value compared to generating the angle output value based on the first magnetic field component MF1.
[0141] Next, an example of a method for setting the tilt angle to suppress errors in the angle output value will be described. The tilt angle corresponds to a parameter that indicates the nonlinearity of the change in direction of the first magnetic field component MF1 accompanying the change in relative position. The tilt angle may be set to an angle such that the nonlinearity of the angle output value is smaller than the nonlinearity of the change in direction of the first magnetic field component represented by the parameter.
[0142] The parameter may be, for example, a linearity error relating to the change in direction of the first magnetic field component MF1, or in practice, a linearity error of the angle output value shown in Figure 22 (Figure 23). In this embodiment, the tilt angle is set to decrease as the linearity error increases (as the error in the angle detection value increases). The linearity error may be calculated, for example, by the processor 140 shown in Figure 9B or by an external processor of the magnetic sensor device 100.
[0143] The tilt angle may be set, for example, based on the Lissajous curve of the first magnetic field component MF1 and the Lissajous curve of the second magnetic field component MF2. Figure 27 is a characteristic diagram showing the Lissajous curves of the first magnetic field component MF1 and the second magnetic field component MF2. In Figure 27, the horizontal axis represents the magnitude of component MF1x or component MF21, and the vertical axis represents the magnitude of component MF1z or component MF22. The curve denoted by reference numeral 521 represents the first magnetic field component MF1, and the curve denoted by reference numeral 522 represents the second magnetic field component MF2. Figure 27 substantially shows a first Cartesian coordinate system in which one of components MF1x and MF1z of the first magnetic field component MF1 is on the horizontal axis and the other on the vertical axis, and a second Cartesian coordinate system in which one of components MF21 and MF22 of the second magnetic field component MF2 is on the horizontal axis and the other on the vertical axis. As shown in Figure 27, the maximum value of component MF21 is substantially equal to the maximum value of component MF1x.
[0144] In Figure 27, each of the points represented in a circular sequence on curve 521 represents a first coordinate corresponding to the magnitude of component MF1x and component MF1z. Each of the points represented in a rectangular sequence on curve 522 represents a second coordinate corresponding to the magnitude of component MF21 and component MF22. The first coordinate moves along curve 521 in response to changes in relative position. The second coordinate moves along curve 522 in response to changes in relative position. Figure 27 shows the trajectories of the first coordinate and the second coordinate when the relative position is changed by the same step width. As shown in Figure 27, the inclination angle may be set such that, for example, the amount of movement of the second coordinate in the second Cartesian coordinate system (the amount of movement of the second coordinate in Figure 27) when the relative position is changed by the same step width is smaller than the amount of movement of the first coordinate in the first Cartesian coordinate system (the amount of movement of the first coordinate in Figure 27). In other words, for example, in Figure 27, the inclination angle may be set such that the amount of movement between adjacent first coordinates on curve 521 is smaller than the amount of movement between adjacent second coordinates on curve 522.
[0145] As mentioned above, in the magnetic field generator 5 shown in Figures 1 and 2, when the magnetic sensor 1 is near the boundary between the N pole and S pole of the magnetic field generator 5 in a plan view from the Z direction, the amount of change in the direction of the first magnetic field component MF1 becomes large. As a result, as shown in Figure 27, when the relative position is changed by the same step width, the amount of movement of the first coordinate in the first Cartesian coordinate system (the amount of movement of the first coordinate in Figure 27) changes according to the magnitude of component MF1x, which is determined according to the relative position. Specifically, the larger the magnitude of component MF1x, the larger the amount of movement.
[0146] Furthermore, the inclination angle may be set such that the absolute value of the second difference, which is the difference between the magnitude of component MF22 at one end of the variable range of relative position and the magnitude of component MF22 at the other end of the variable range of relative position, is smaller than the absolute value of the first difference, which is the difference between the magnitude of component MF1z at one end of the variable range of relative position and the magnitude of component MF1z at the other end of the variable range of relative position. One end of the variable range of relative position may be, for example, the end in the -X direction of the movable range of the magnetic field generator 5. In Figure 27, one end of the variable range of relative position may be one end of each of the curves 521 and 522, or a point where component MF1x or component MF21 is larger than this end. Furthermore, the other end of the variable range of relative position may be, for example, the end in the X direction of the movable range of the magnetic field generator 5. In Figure 27, the other end of the variable range of relative position may be one end of each of the curves 521 and 522, or a point where component MF1x or component MF21 is larger than this other end.
[0147] The first difference substantially represents the distance between one end and the other end of curve 521. The second difference substantially represents the distance between one end and the other end of curve 522. The inclination angle may be set such that the distance between one end and the other end of curve 522 is smaller than the distance between one end and the other end of curve 521.
[0148] Furthermore, the variable range of relative position includes a first range that includes the relative position where the magnitude of component MF1x is maximum, and a second range other than the first range. The inclination angle may be set such that the amount of movement of the second coordinate in the second Cartesian coordinate system (the amount of movement of the second coordinate in Figure 27) when the relative position is changed within the first range is smaller than the amount of movement of the first coordinate in the first Cartesian coordinate system (the amount of movement of the first coordinate in Figure 27). The first range may be, for example, a range in which the magnitude of component MF1x is between 50% and 100% of the maximum value of component MF1x.
[0149] Thus, according to this embodiment, even if an error occurs in the angle output value due to the configuration of the magnetic field generator 5, the error in the angle output value can be suppressed by the tilt angle. As a result, according to this embodiment, stable detection is possible even under conditions where a relatively strong magnetic field is applied.
[0150] [Second Embodiment] Next, a second embodiment of the present disclosure will be described with reference to Figure 28. Figure 28 is a plan view showing the MR element in this embodiment.
[0151] In this embodiment, the planar shape of the MR element 250 in a plan view from the direction D3 is circular or nearly circular. Also, in Figure 28, the arrow indicates the direction of the current flowing through the MR element 250. The reference direction DR, which is the direction of the main component of the current flowing through the MR element 250, can be defined by the arrangement of the wiring 40. For example, by arranging two wirings 40 so as to sandwich the MR element 250 along the first direction Da shown in Figure 11A, the reference direction DR can be set to a direction along the first direction Da, similar to the first MR element 50A.
[0152] In this embodiment, the magnetic symmetry of the MR element 250 can be improved. As a result, according to this embodiment, the temperature characteristics of the MR element 250 can be improved.
[0153] Other configurations in this embodiment may be the same as those in the first embodiment.
[0154] [Third Embodiment] Next, a third embodiment of the present disclosure will be described with reference to Figures 29A and 29B. Figure 29A is a plan view showing the first and second magnetoresistive elements in this embodiment. Figure 29B is a plan view showing the third and fourth magnetoresistive elements in this embodiment.
[0155] As shown in Figure 29A, in this embodiment, the direction of axis LA related to the first MR element 50A and the direction of axis LB related to the second MR element 50B are different from those of the first embodiment. Also, as shown in Figure 29B, in this embodiment, the direction of axis LC related to the third MR element 50C and the direction of axis LD related to the fourth MR element 50D are different from those of the first embodiment.
[0156] Axis LA is an axis that extends in a direction parallel to the first direction Da shown in Figure 11A. In this embodiment, the first direction Da coincides with the D1 direction or the -D1 direction.
[0157] Axis LB is an axis that extends in a direction parallel to the second direction Db shown in Figure 11A. In this embodiment, the second direction Db coincides with the D2 direction or the -D2 direction.
[0158] Axis LC is an axis that extends in a direction parallel to the third direction Dc shown in Figure 11B. In this embodiment, the third direction Dc is the direction obtained by rotating the D1 direction by 135° or 315° around the axis of the axis parallel to the D3 direction.
[0159] Axis LD is an axis that extends in a direction parallel to the fourth direction Dd shown in Figure 11B. In this embodiment, the fourth direction Dd is the direction obtained by rotating the D1 direction by 45° or 225° around the axis of the axis parallel to the D3 direction.
[0160] Other configurations in this embodiment may be the same as those in the first embodiment.
[0161] [Fourth Embodiment] Next, a fourth embodiment of the present disclosure will be described. In this embodiment, the method for calculating the angle output value θA differs from that of the first embodiment. First, a first correction method for correcting the amplitude and offset of the first detection signal S1 and the second detection signal S2 will be described. Figure 30 is a waveform diagram showing the first detection signal S1 and the second detection signal S2 before applying the first correction method. In Figure 30, the horizontal axis represents the magnetization angle θM, and the vertical axis represents the magnitude of the first detection signal S1 and the second detection signal S2, respectively. Waveforms denoted by reference numeral 91 represent the first detection signal S1. Waveforms denoted by reference numeral 92 represent the second detection signal S2.
[0162] In the first correction method, the maximum value S1h of the first detection signal S1, the minimum value S1s of the first detection signal S1, the maximum value S2h of the second detection signal S2, and the minimum value S2s of the second detection signal S2 are first obtained. In this case, the movement range of the magnetic field generator 5 is within the range in which these values can be obtained.
[0163] Next, the corrected signal S1a of the first detection signal S1 is calculated using equation (3) below, and the corrected signal S2a of the second detection signal S2 is calculated using equation (4) below. In equation (3), S1 represents the first detection signal S1, and in equation (4), S2 represents the second detection signal S2. S1a = (2 * S1 - (S1h + S1s)) / (S1h - S1s) ... (3) S2a = (2 * S2 - (S2h + S2s)) / (S2h - S2s) ... (4)
[0164] Next, we will explain orthogonality correction, which corrects the degree of orthogonality. Orthogonality correction may be performed on the corrected signals S1a and S2a. In this case, first, the first signal S3 and the second signal S4 are calculated using the following equations (5) and (6): S3 = S2a + S1a ... (5) S4 = S2a - S1a ... (6)
[0165] Next, a second correction method is performed to correct the amplitude and offset of the first signal S3 and the second signal S4, respectively. Figure 31 is a waveform diagram showing the first signal S3 and the second signal S4. In Figure 31, the horizontal axis represents the magnetization angle θM, and the vertical axis represents the magnitude of the first signal S3 and the second signal S4, respectively. The waveform denoted by reference numeral 93 represents the first signal S3, and the waveform denoted by reference numeral 94 represents the second signal S4.
[0166] In the second correction method, first, the maximum value S3h and minimum value S3s of the first signal S3, the maximum value S4h and minimum value S4s of the second signal S4 are obtained. In this case, the movement range of the magnetic field generator 5 is within the range in which these values can be obtained. Furthermore, the movement ranges in which the maximum value (maximum value) and minimum value (minimum value) of each signal can be obtained are different in the first and second correction methods.
[0167] Next, the corrected signal S3a of the first signal S3 is calculated using equation (7) below, and the corrected signal S4a of the second signal S4 is calculated using equation (8) below. S3a = (2 * S3 - (S3h + S3s)) / (S3h - S3s) ... (7) S4a = (2 * S4 - (S4h + S4s)) / (S4h - S4s) ... (8)
[0168] Next, the technical significance of the above series of signal corrections will be explained. Here, we assume a first detection signal S1 and a second detection signal S2, each containing amplitude error, offset error, and orthogonality error, respectively. The first detection signal S1 and the second detection signal S2, each containing amplitude error, offset error, and orthogonality error, are expressed by the following equations (9) and (10). In equation (9), S1 represents the first detection signal S1, B indicates the amplitude error of the first detection signal S1, S1o indicates the offset error of the first detection signal S1, and ε indicates the orthogonality error. In equation (10), S2 represents the second detection signal S2, A indicates the amplitude error of the second detection signal S2, and S2o indicates the offset error of the second detection signal S2. S1 = B・cos(2θ + ε) + S1o …(9) S2 = A・sin(2θ) + S2o …(10)
[0169] Furthermore, the first detection signal S1 and the second detection signal S2, represented by equations (9) and (10), and the corrected signals S1a, S2a and S3a, S4a obtained from these first and second detection signals S1 and S2, are used to calculate the angle output values θA1, θA2, and θA3. The angle output value θA1 is the angle output value when no signal correction is applied. The angle output value θA2 is the angle output value when the first correction method is applied but orthogonality correction is not applied. The angle output value θA3 is the angle output value when the first correction method and orthogonality correction are applied.
[0170] The angle output values θA1, θA2, and θA3 can be calculated using the following equations (11), (12), and (13), respectively: θA1 = tan -1 (S2 / S1) ...(11) θA2=tan -1 (S2a / S1a) ...(12) θA3=tan -1 (S4a / S3a) …(13)
[0171] Figure 32 is a characteristic diagram showing the effect of the series of signal corrections described above. In Figure 32, the horizontal axis represents the magnetization angle θM, and the vertical axis represents the magnitude of the angle output value. The curve labeled 201 represents the angle output value θA1. The curve labeled 202 represents the angle output value θA2. The curve labeled 203 represents the angle output value θA3. As can be seen from Figure 32, even if each of the first detection signal S1 and the second detection signal S2 contains amplitude error, offset error, and orthogonality error, a linearly sound angle output value θA (angle output value θA3) can be obtained by the first correction method and orthogonality correction.
[0172] Other configurations in this embodiment may be the same as those in the first, second, or third embodiment.
[0173] This disclosure is not limited to the embodiments described above, and various modifications are possible. For example, assuming that the orthogonality correction described in the fourth embodiment is performed, the first MR element 50A, the second MR element 50B, the third MR element 50C, and the fourth MR element 50D may be configured to satisfy the following first and second requirements. The first requirement is that the direction of the current flowing through the second MR element 50B includes a component in a direction orthogonal to the direction of the current flowing through the first MR element 50A, and the direction of the current flowing through the fourth MR element 50D includes a component in a direction orthogonal to the direction of the current flowing through the third MR element 50C.
[0174] The second requirement is that the angle θ1a formed by the first direction Da with respect to the reference axis RL11, as shown in Figure 11A, and the angle θ1b formed by the second direction Db with respect to the reference axis RL11, satisfy the following equations (14) and (15), where n is an integer. θ1a - θ1b ≠ 180° × n …(14) θ1a + θ1b ≠ 90° × n …(15)
[0175] Furthermore, the angle θ1c that the third direction Dc shown in Figure 11B makes with respect to the reference axis RL12 may be 180° - θ1b. Also, the angle θ1d that the fourth direction Dd shown in Figure 11B makes with respect to the reference axis RL12 may be 180° - θ1a.
[0176] Furthermore, the magnetic sensor 1 does not necessarily include the inclined surface structure 2. In this case, the multiple MR elements 50 may be arranged on a plane parallel to the upper surface 20a of the substrate 20. Even in this case, the multiple MR elements 50 may be configured to satisfy the requirements of this disclosure regarding direction, etc. In this case, the direction of the inclined surface coordinate system and the axes defined based on the inclined surface coordinate system may be replaced with the direction and axes projected onto the XY plane of the reference coordinate system.
[0177] Furthermore, the embodiments described above can be combined as appropriate, provided that no technical inconsistencies arise between them. Also, each embodiment should not be interpreted independently or restrictively; it is possible to extract specific configurations or operations described in one embodiment and apply them to other embodiments, or to substitute them with configurations from other embodiments. Thus, configurations obtained by combining each embodiment, or by combining or modifying partial elements included in each embodiment, are also included within the scope of the technical concept of this disclosure.
[0178] As described above, the magnetic sensor according to the first aspect of this disclosure comprises a substrate having a reference plane, a support member disposed on the substrate and having an inclined surface tilted with respect to the reference plane, and a magnetoresistive element disposed on the inclined surface and configured to detect a target magnetic field generated by a magnetic field generator. The target magnetic field includes a first magnetic field component whose direction changes in a first plane perpendicular to the reference plane, and a second magnetic field component whose direction changes in a second plane defined based on the tangential direction of the inclined surface. The directions of the first magnetic field component and the second magnetic field component change according to the relative position, which is the relative position of the magnetic field generator with respect to the substrate. The magnetoresistive element is configured such that its resistance value changes in accordance with the change in the direction of the second magnetic field component. The inclination angle of the inclined surface with respect to the reference plane corresponds to a parameter that indicates the nonlinearity of the change in the direction of the first magnetic field component accompanying the change in relative position.
[0179] In a magnetic sensor according to a first aspect of the present disclosure, the angle that the second plane makes with respect to the reference plane may be substantially equal to the inclination angle.
[0180] Furthermore, in the magnetic sensor according to the first aspect of this disclosure, the tilt angle may be set to decrease as the parameter increases.
[0181] Furthermore, in the magnetic sensor according to the first aspect of this disclosure, the parameter may be a linearity error calculated based on a characteristic curve and an approximate straight line obtained by approximating the characteristic curve with a straight line. The linearity error may be calculated based on the maximum value of the residual between the approximate straight line and the characteristic curve and the value at the endpoint of the characteristic curve. The characteristic curve may be a curve that represents the relationship between a variable having a relationship with the relative position and the angle that the direction of the first magnetic field component makes with respect to a reference direction in the first plane. The approximate straight line may be a straight line approximating the characteristic curve within the variable range of the relative position. The value at the endpoint of the characteristic curve may be the angle that the direction of the first magnetic field component at the endpoint of the variable range of the relative position makes with respect to a reference direction in the first plane. The linearity error with respect to the change in the direction of the first magnetic field component may be 1% or more.
[0182] Furthermore, in a magnetic sensor according to a first aspect of this disclosure, the first magnetic field component may include a first component in a first direction parallel to the reference plane and a second component in a second direction perpendicular to the reference plane. The second magnetic field component may include a third component obtained by projecting the first component onto a second plane and a fourth component obtained by projecting the second component onto a second plane. The magnitudes of the first, second, third, and fourth components may change with changes in relative position. In a first Cartesian coordinate system where one of the magnitudes of the first component and the second component is the horizontal axis and the other is the vertical axis, the first coordinates corresponding to the magnitudes of the first and second components determined according to the relative position may move along a first curve. In a second Cartesian coordinate system where one of the magnitudes of the third component and the fourth component is the horizontal axis and the other is the vertical axis, the second coordinates corresponding to the magnitudes of the third and fourth components, which are determined according to the relative position, may move along the second curve. The inclination angle may be set such that the amount of movement of the second coordinates in the second Cartesian coordinate system when the relative position is changed by the same step width is smaller than the amount of movement of the first coordinates in the first Cartesian coordinate system. The amount of movement of the first coordinates in the first Cartesian coordinate system when the relative position is changed by the same step width may change according to the magnitude of the first component, which is determined according to the relative position. When the target magnetic field changes according to the relative position within a variable range of relative position, the first component may point in one direction parallel to the first direction or the opposite direction, the second component may point in one direction parallel to the second direction or the opposite direction, the third component may point in one direction parallel to the direction obtained by projecting the first direction onto the second plane or the opposite direction, and the fourth component may point in one direction parallel to the direction obtained by projecting the second direction onto the second plane or the opposite direction.
[0183] The inclination angle may be set such that the absolute difference between the magnitude of the fourth component at one end of the variable range of relative position and the magnitude of the fourth component at the other end of the variable range of relative position is smaller than the absolute difference between the magnitude of the second component at one end of the variable range of relative position and the magnitude of the second component at the other end of the variable range of relative position. The maximum value of the third component may be substantially equal to the maximum value of the first component. The variable range of relative position may include a first range that includes the relative position where the magnitude of the first component is maximum, and a second range other than the first range. The inclination angle may be set such that the amount of movement of the second coordinate in the second Cartesian coordinate system when the relative position is changed within the first range is smaller than the amount of movement of the first coordinate in the first Cartesian coordinate system.
[0184] A magnetic sensor according to a second aspect of this disclosure comprises a substrate having a reference plane, a support member disposed on the substrate and having an inclined surface tilted with respect to the reference plane, a magnetoresistive element disposed on the inclined surface and configured to detect a target magnetic field generated by a magnetic field generator, and a detection circuit including the magnetoresistive element and configured to generate a detection signal capable of generating an output value corresponding to the direction of the target magnetic field. The target magnetic field includes a first magnetic field component whose direction changes in a first plane perpendicular to the reference plane, and a second magnetic field component whose direction changes in a second plane defined based on the tangential direction of the inclined surface. The directions of the first magnetic field component and the second magnetic field component change according to the relative position, which is the relative position of the magnetic field generator with respect to the substrate. The magnetoresistive element is configured such that its resistance value changes in accordance with the change in the direction of the second magnetic field component. The inclination angle of the inclined surface with respect to the reference plane corresponds to a parameter that indicates the nonlinearity of the change in the direction of the first magnetic field component accompanying the change in relative position. The tilt angle is set such that the nonlinearity of the output value is smaller than the nonlinearity of the change in direction of the first magnetic field component, which is represented by the parameter.
[0185] A magnetic sensor device according to one embodiment of the present disclosure comprises a magnetic sensor according to one embodiment of the present disclosure and a magnetic field generator. The magnetic field generator and the magnetic sensor are configured such that their relative positions change in a first direction parallel to a reference plane.
[0186] Furthermore, another embodiment of the magnetic sensor according to this disclosure includes an AMR element arranged on an inclined surface. This magnetic sensor may be configured to provide at least two detection signals for a magnetic field angle, which is the angle that the magnetic field makes with respect to a reference direction in a first plane. The two detection signals may include components whose phases are orthogonal to each other.
[0187] Another embodiment of the position detection device according to this disclosure comprises a sloped surface structure, a plurality of AMR elements, and a magnetic field generator. The magnetic field generator is configured to move such that the angle at which the magnetic field makes with respect to the reference direction changes within a first plane, where the magnetic field angle is the angle that the magnetic field applied to the sensor makes with respect to the reference direction. The magnetic field generator may also be configured to move along the direction in which the ridge of the sloped surface structure extends. The position detection device may include a plurality of arrays arranged such that their centers of gravity coincide in the direction of movement of the magnetic field generator. The center of gravity of the magnetic field generator and the centers of gravity of the plurality of arrays may coincide in the direction of movement of the magnetic field generator. The inclination angle of the sloped surface of the sloped surface structure may be in the range of 10° to 80°.
[0188] A position detection device according to another embodiment of the present disclosure may be configured such that the linearity error of the angle output value is smaller than the linearity error of the magnetic field angle in the first plane when the magnetic field generator moves.
[0189] A position detection device according to another embodiment of the present disclosure may be configured such that the angle between the direction of the magnetic field in the first plane and the reference direction changes within the range of -90° to 90°.
[0190] In another embodiment of the magnetic sensor of this disclosure, a plurality of AMR elements may be electrically connected on each of the first and second inclined surfaces of the inclined surface structure. The plurality of AMR elements arranged on the first inclined surface and the plurality of AMR elements arranged on the second inclined surface may have a symmetrical shape with respect to a plane that intersects with the ridge of the inclined surface structure and is perpendicular to the surface of the substrate 20.
[0191] A magnetic sensor according to another embodiment of the present disclosure may include a plurality of AMR elements such that the current directions are 0°, 90°, 45°, and 135° with respect to any direction in the inclined coordinate system.
[0192] A magnetic sensor according to another embodiment of the present disclosure may include a plurality of AMR elements whose current directions are 22.5°, 112.5°, 67.5°, and 157.5° with respect to a first direction in the inclined coordinate system.
[0193] A magnetic sensor according to another embodiment of the present disclosure may include a plurality of AMR elements whose current directions are θ1, θ2, 180°-θ1, and 180°-θ2 with respect to a first direction in the inclined coordinate system.
[0194] A magnetic sensor according to another embodiment of the present disclosure may include meander-shaped wiring when viewed from the direction normal to the inclined surface.
[0195] Another embodiment of the magnetic sensor according to this disclosure may include an AMR element that is rectangular or substantially circular when viewed from the direction normal to the inclined surface.
[0196] In another embodiment of the magnetic sensor described herein, the junction surface between the AMR element and the wiring material may be perpendicular to the direction of the main component of the current flowing through the AMR element.
[0197] Another embodiment of the present disclosure of a magnetic sensor may include a plurality of AMR elements extending along the ridge of a slope structure and a plurality of wiring materials. The plurality of wiring materials may include a wiring material whose connection to the electrode is 0° with respect to any direction in the slope coordinate system and is perpendicular to the current direction, a wiring material whose connection to the electrode is 90° with respect to any direction in the slope coordinate system and is perpendicular to the current direction, a wiring material whose connection to the electrode is 45° with respect to any direction in the slope coordinate system and is perpendicular to the current direction, and a wiring material whose connection to the electrode is 135° with respect to any direction in the slope coordinate system and is perpendicular to the current direction. Furthermore, the distance between two adjacent wiring materials may be smaller than the width of the AMR element (the dimension in the direction perpendicular to the longitudinal direction of the AMR element (the short-side direction of the AMR element)).
[0198] Another embodiment of the magnetic sensor according to this disclosure may include a plurality of AMR elements extending along the ridge of a slope structure and a plurality of wiring materials. The plurality of wiring materials may include a wiring material whose connection to the electrode is 22.5° with respect to a first direction of the slope coordinate system and is perpendicular to the current direction, a wiring material whose connection to the electrode is 112.5° with respect to a first direction of the slope coordinate system and is perpendicular to the current direction, a wiring material whose connection to the electrode is 67.5° with respect to a first direction of the slope coordinate system and is perpendicular to the current direction, and a wiring material whose connection to the electrode is 157.5° with respect to a first direction of the slope coordinate system and is perpendicular to the current direction. The spacing between two adjacent wiring materials may be smaller than the width of the AMR element (the dimension in the direction perpendicular to the longitudinal direction of the AMR element (the short-side direction of the AMR element)).
[0199] Another embodiment of the magnetic sensor according to this disclosure may include a plurality of AMR elements extending along the ridge of a slope structure and a plurality of wiring materials. The plurality of wiring materials may include a wiring material whose connection portion with the electrode is perpendicular to the current direction at θ1 with respect to a first direction of the slope coordinate system, a wiring material whose connection portion with the electrode is perpendicular to the current direction at θ2 with respect to a first direction of the slope coordinate system, a wiring material whose connection portion with the electrode is perpendicular to the current direction at 180°-θ1 with respect to a first direction of the slope coordinate system, and a wiring material whose connection portion with the electrode is perpendicular to the current direction at 180°-θ2 with respect to a first direction of the slope coordinate system. Furthermore, the distance between two adjacent wiring materials may be smaller than the width of the AMR element (the dimension in the direction perpendicular to the longitudinal direction of the AMR element (the short-side direction of the AMR element)).
[0200] In another embodiment of the magnetic sensor described herein, the inclination angle of the inclined surface may change continuously. Furthermore, even if the positions of the AMR elements on the first inclined surface and the AMR elements on the second inclined surface are shifted in the same direction, the two AMR elements may be positioned such that the change in the inclination angle of the AMR element on the first inclined surface and the change in the inclination angle of the AMR element on the second inclined surface cancel each other out.
[0201] A magnetic sensor according to another embodiment of the present disclosure may include two bridge circuits and two power supplies, each capable of supplying voltage or current to the two bridge circuits.
[0202] A magnetic sensor according to another embodiment of the present disclosure may include two bridge circuits and one power supply capable of supplying a common voltage or current to the two bridge circuits.
[0203] In another embodiment of the position detection device according to the present disclosure, the magnetic field generator may be configured to move so as to obtain the maximum and minimum values of each of the two detection signals.
[0204] In another embodiment of the magnetic sensor described herein, the arrangement of the AMR elements may be adjusted so that the harmonic components of the magnetic field angle are corrected.
[0205] The technology relating to this disclosure can also be expressed in configurations such as those shown in the following appendix, but the technology of this disclosure is not limited to these.
[0206] Note 1. A magnetic sensor comprising: a substrate having a reference plane; a support member disposed on the substrate and having an inclined surface inclined with respect to the reference plane; and a magnetoresistive element disposed on the inclined surface and configured to detect a target magnetic field generated by a magnetic field generator, wherein the target magnetic field includes a first magnetic field component whose direction changes in a first plane perpendicular to the reference plane, and a second magnetic field component whose direction changes in a second plane defined based on the tangential direction of the inclined surface, the direction of the first magnetic field component and the direction of the second magnetic field component change according to the relative position, which is the relative position of the magnetic field generator with respect to the substrate, the magnetoresistive element is configured such that its resistance value changes according to the change in the direction of the second magnetic field component, and the inclination angle made by the inclined surface with respect to the reference plane corresponds to a parameter indicating the nonlinearity of the change in the direction of the first magnetic field component accompanying the change in the relative position.
[0207] Note 2. The magnetic sensor as described in Note 1, wherein the angle that the second plane makes with respect to the reference plane is substantially equal to the inclination angle.
[0208] Note 3. The magnetic sensor described in Note 1 or Note 2, wherein the above tilt angle is set to decrease as the above parameter increases.
[0209] Note 4. The above parameter is a linearity error calculated based on the characteristic curve and an approximate straight line obtained by approximating the characteristic curve with a straight line; the linearity error is calculated based on the maximum value of the residual between the approximate straight line and the characteristic curve and the value at the endpoint of the characteristic curve; the characteristic curve is a curve that represents the relationship between a variable having a correspondence with the relative position and the angle that the direction of the first magnetic field component makes with respect to the reference direction in the first plane; the approximate straight line is an approximate straight line of the characteristic curve within the variable range of the relative position; the value at the endpoint of the characteristic curve is the angle that the direction of the first magnetic field component at the endpoint of the variable range of the relative position makes with respect to the reference direction in the first plane; and the linearity error regarding the change in the direction of the first magnetic field component is 1% or more; a magnetic sensor as described in any one of Notes 1 to 3.
[0210] Note 5. The first magnetic field component includes a first component in a first direction parallel to the reference plane and a second component in a second direction perpendicular to the reference plane; the second magnetic field component includes a third component obtained by projecting the first component onto the second plane and a fourth component obtained by projecting the second component onto the second plane; the magnitudes of the first, second, third, and fourth components change with the change in relative position; in a first Cartesian coordinate system with one of the magnitudes of the first component and the second component as the horizontal axis and the other as the vertical axis, the first coordinates corresponding to the magnitudes of the first and second components determined according to the relative position move along the first curve; In a second Cartesian coordinate system where one of the magnitudes of the third component and the fourth component is the horizontal axis and the other is the vertical axis, the second coordinates corresponding to the magnitudes of the third component and the fourth component, determined according to the relative position, move along the second curve, and the inclination angle is set such that the amount of movement of the second coordinates in the second Cartesian coordinate system when the relative position is changed by the same step width is less than the amount of movement of the first coordinates in the first Cartesian coordinate system, as described in any one of the appendices 1 to 4.
[0211] Note 6. The magnetic sensor as described in Note 5, wherein the amount of movement of the first coordinate in the first Cartesian coordinate system when the relative position is changed by the same step width changes according to the magnitude of the first component determined according to the relative position.
[0212] Note 7. When the target magnetic field changes according to the relative position within the variable range of the relative position, the first component is directed in one direction parallel to the first direction or the opposite direction, the second component is directed in one direction parallel to the second direction or the opposite direction, the third component is directed in one direction parallel to the direction obtained by projecting the first direction onto the second plane or the opposite direction, and the fourth component is directed in one direction parallel to the direction obtained by projecting the second direction onto the second plane or the opposite direction, as described in Note 5 or Note 6.
[0213] Note 8. The magnetic sensor as described in Note 7, wherein the inclination angle is set such that the absolute value of the difference between the magnitude of the fourth component at one end of the variable range of relative position and the magnitude of the fourth component at the other end of the variable range of relative position is smaller than the absolute value of the difference between the magnitude of the second component at one end of the variable range of relative position and the magnitude of the second component at the other end of the variable range of relative position.
[0214] Note 9. The magnetic sensor described in Note 8, wherein the maximum value of the third component is substantially equal to the maximum value of the first component.
[0215] Note 10. The magnetic sensor according to any one of Notes 7 to 9, wherein the variable range of the relative position includes a first range that includes the relative position in which the magnitude of the first component is maximized, and a second range other than the first range, and the tilt angle is set such that when the relative position is changed within the first range, the amount of movement of the second coordinate in the second Cartesian coordinate system is less than the amount of movement of the first coordinate in the first Cartesian coordinate system.
[0216] Note 11. The device comprises: a substrate having a reference plane; a support member disposed on the substrate and having an inclined surface tilted with respect to the reference plane; a magnetoresistive element disposed on the inclined surface and configured to detect a target magnetic field generated by a magnetic field generator; and a detection circuit including the magnetoresistive element and configured to generate a detection signal capable of generating an output value corresponding to the direction of the target magnetic field, wherein the target magnetic field includes a first magnetic field component whose direction changes in a first plane perpendicular to the reference plane, and a second magnetic field component whose direction changes in a second plane defined based on the tangential direction of the inclined surface, the direction of the first magnetic field component and the direction of the second magnetic field component change according to the relative position, which is the relative position of the magnetic field generator with respect to the substrate, the magnetoresistive element is configured such that its resistance value changes according to the change in the direction of the second magnetic field component, and the inclination angle made by the inclined surface with respect to the reference plane corresponds to a parameter indicating the nonlinearity of the change in the direction of the first magnetic field component accompanying the change in the relative position. A magnetic sensor in which the above tilt angle is set to an angle such that the nonlinearity of the above output value is smaller than the nonlinearity of the change in direction of the first magnetic field component represented by the above parameter.
[0217] Appendix 12. A magnetic sensor device comprising a magnetic sensor described in any one of Appendix 1 to Appendix 11, and the magnetic field generator, wherein the magnetic field generator and the magnetic sensor are configured such that their relative positions change in a first direction parallel to the reference plane.
[0218] This application claims priority to U.S. Provisional Patent Application No. 63 / 759,781, filed on 18 February 2025, which is incorporated herein by reference in its entirety.
Claims
1. A magnetic sensor comprising: a substrate having a reference plane; a support member disposed on the substrate and having an inclined surface inclined with respect to the reference plane; and a magnetoresistive element disposed on the inclined surface and configured to detect a target magnetic field generated by a magnetic field generator, wherein the target magnetic field includes a first magnetic field component whose direction changes in a first plane perpendicular to the reference plane, and a second magnetic field component whose direction changes in a second plane defined based on the tangential direction of the inclined surface, the direction of the first magnetic field component and the direction of the second magnetic field component change according to the relative position, which is the relative position of the magnetic field generator with respect to the substrate, the magnetoresistive element is configured such that its resistance value changes according to the change in the direction of the second magnetic field component, and the inclination angle made by the inclined surface with respect to the reference plane corresponds to a parameter indicating the nonlinearity of the change in the direction of the first magnetic field component accompanying the change in the relative position.
2. The magnetic sensor according to claim 1, wherein the angle that the second plane makes with respect to the reference plane is substantially equal to the inclination angle.
3. The magnetic sensor according to claim 1, wherein the tilt angle is set to decrease as the parameter increases.
4. The parameter is a linearity error calculated based on a characteristic curve and an approximate straight line that approximates the characteristic curve with a straight line, the linearity error is calculated based on the maximum value of the residual between the approximate straight line and the characteristic curve and the value at the endpoint of the characteristic curve, the characteristic curve is a curve that represents the relationship between a variable having a correspondence with the relative position and the angle that the direction of the first magnetic field component makes with respect to the reference direction in the first plane, the approximate straight line is an approximate straight line of the characteristic curve within the variable range of the relative position, the value at the endpoint of the characteristic curve is the angle that the direction of the first magnetic field component at the endpoint of the variable range of the relative position makes with respect to the reference direction in the first plane, and the linearity error with respect to the change in the direction of the first magnetic field component is 1% or more, the magnetic sensor according to claim 3.
5. The first magnetic field component includes a first component in a first direction parallel to the reference plane and a second component in a second direction perpendicular to the reference plane; the second magnetic field component includes a third component obtained by projecting the first component onto the second plane and a fourth component obtained by projecting the second component onto the second plane; the magnitudes of the first, second, third, and fourth components change with the change in relative position; in a first Cartesian coordinate system with one of the magnitudes of the first component and the second component as the horizontal axis and the other as the vertical axis, the first coordinates corresponding to the magnitudes of the first and second components determined according to the relative position move along a first curve; In a second Cartesian coordinate system where one of the magnitudes of the third component and the fourth component is the horizontal axis and the other is the vertical axis, the second coordinates corresponding to the magnitudes of the third component and the fourth component, determined according to the relative position, move along a second curve, and the inclination angle is set such that the amount of movement of the second coordinates in the second Cartesian coordinate system when the relative position is changed by the same step width is smaller than the amount of movement of the first coordinates in the first Cartesian coordinate system, according to claim 1.
6. The magnetic sensor according to claim 5, wherein the amount of movement of the first coordinate in the first Cartesian coordinate system when the relative position is changed by the same step width changes according to the magnitude of the first component determined according to the relative position.
7. When the target magnetic field changes in accordance with the relative position within the variable range of the relative position, the first component is directed in one direction parallel to the first direction or the opposite direction, the second component is directed in one direction parallel to the second direction or the opposite direction, the third component is directed in one direction parallel to the direction obtained by projecting the first direction onto the second plane or the opposite direction, and the fourth component is directed in one direction parallel to the direction obtained by projecting the second direction onto the second plane or the opposite direction, the magnetic sensor according to claim 5.
8. The magnetic sensor according to claim 7, wherein the inclination angle is set such that the absolute value of the difference between the magnitude of the fourth component at one end of the variable range of relative position and the magnitude of the fourth component at the other end of the variable range of relative position is smaller than the absolute value of the difference between the magnitude of the second component at one end of the variable range of relative position and the magnitude of the second component at the other end of the variable range of relative position.
9. The magnetic sensor according to claim 8, wherein the maximum value of the third component is substantially equal to the maximum value of the first component.
10. The variable range of the relative position includes a first range that includes the relative position in which the magnitude of the first component is maximized, and a second range other than the first range, and the tilt angle is set such that when the relative position is changed within the first range, the amount of movement of the second coordinate in the second Cartesian coordinate system is less than the amount of movement of the first coordinate in the first Cartesian coordinate system, according to claim 7.
11. The device comprises: a substrate having a reference plane; a support member disposed on the substrate and having an inclined surface inclined with respect to the reference plane; a magnetoresistive element disposed on the inclined surface and configured to detect a target magnetic field generated by a magnetic field generator; and a detection circuit including the magnetoresistive element and configured to generate a detection signal capable of generating an output value corresponding to the direction of the target magnetic field, wherein the target magnetic field includes a first magnetic field component whose direction changes in a first plane perpendicular to the reference plane, and a second magnetic field component whose direction changes in a second plane defined based on the tangential direction of the inclined surface, the direction of the first magnetic field component and the direction of the second magnetic field component change according to the relative position, which is the relative position of the magnetic field generator with respect to the substrate, the magnetoresistive element is configured such that its resistance value changes according to the change in the direction of the second magnetic field component, and the inclination angle made by the inclined surface with respect to the reference plane corresponds to a parameter indicating the nonlinearity of the change in the direction of the first magnetic field component accompanying the change in the relative position. A magnetic sensor in which the tilt angle is set to an angle such that the nonlinearity of the output value is smaller than the nonlinearity of the change in the direction of the first magnetic field component represented by the parameter.
12. A magnetic sensor device comprising the magnetic sensor according to claim 1 and the magnetic field generator, wherein the magnetic field generator and the magnetic sensor are configured such that their relative positions change in a first direction parallel to the reference plane.