Magnetic sensor system and lens position detection device
The magnetic sensor system stabilizes detection signals by applying a bias magnetic field and reducing harmonics through strategic MR element arrangement, addressing distance deviations and ensuring accurate, high-resolution position detection.
Patent Information
- Application Number
- JP2020132658
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-08-04
- Publication Date
- 2024-08-14
- Estimated Expiration
- 2040-08-04
AI Technical Summary
Magnetic sensor systems face issues with signal distortion due to harmonics and detection accuracy deterioration when the distance between the magnetic sensor and the magnetic field generator deviates, leading to signal saturation and reduced resolution.
The magnetic sensor system employs a configuration with a magnetic field generator and sensor that includes magnetoresistive elements with a bias magnetic field applied perpendicularly, amplifies the magnetic field component, and arranges MR elements to reduce harmonics, ensuring the resistance value changes with magnetic field strength, thereby stabilizing the detection signal.
This configuration suppresses fluctuations in the detection signal due to distance variations, maintains accurate detection, and reduces harmonic distortion, enhancing the overall detection accuracy and resolution of the magnetic sensor system.
Smart Images

Figure 0007534146000011 
Figure 0007534146000005 
Figure 0007534146000014
Abstract
Description
[Technical field]
[0001] The present invention relates to a magnetic sensor system and a lens position detection device using the magnetic sensor system. [Background technology]
[0002] As a magnetic sensor system using a magnetic sensor, a magnetic sensor system configured to change the relative position of a magnetic field generator such as a magnetic scale with respect to the magnetic sensor within a predetermined range is known. When the relative position of the magnetic field generator with respect to the magnetic sensor changes, the strength of a one-directional component of a target magnetic field generated by the magnetic field generator and applied to the magnetic sensor changes. The magnetic sensor, for example, detects the strength of the one-directional component of the target magnetic field and generates two detection signals corresponding to the strength of the one-directional component and having different phases from each other. The magnetic sensor system generates a detection value corresponding to the relative position of the magnetic field generator with respect to the magnetic sensor based on the two detection signals.
[0003] The magnetic sensor system includes a detection value generating circuit that generates a detection value. In general, the main part of the detection value generating circuit is configured with a digital signal processor (DSP), an application specific integrated circuit (ASIC), or a microcomputer. The detection value generating circuit generates a detection value based on a detection signal of the magnetic sensor that is converted into a digital signal by an analog-to-digital converter (hereinafter also referred to as an A / D converter).
[0004] The magnetic sensor system is used, for example, in a position detection device that detects the position of a movable object whose position changes in a predetermined direction. Hereinafter, a position detection device using the magnetic sensor system is referred to as a magnetic position detection device. In the magnetic position detection device, the relative position of a magnetic field generator with respect to the magnetic sensor is configured to change in response to the change in position of the movable object. The predetermined direction is a linear direction or a rotational direction.
[0005] Magnetic position detection devices are described, for example, in Patent Documents 1 to 3. In the position detection devices described in Patent Documents 1 to 3, a magnetoresistance effect element (hereinafter also referred to as an MR element) is used as a magnetic detection element. The MR element is disposed at a predetermined distance from a magnetic recording medium or a magnetic scale.
[0006] Incidentally, it is known that in magnetic sensor systems and magnetic position detection devices, the waveform of the detection signal of the magnetic sensor is distorted due to harmonics. If the output waveform of the detection signal of the magnetic sensor is distorted, it becomes impossible to accurately detect the relative position of the magnetic field generator with respect to the magnetic sensor. In response to this, the position detection device described in Patent Document 1 provides a bias magnet that applies a bias magnetic field to the MR element, thereby removing distortion components due to harmonics in the detection signal.
[0007] Moreover, in the position detection device described in Patent Document 3, multiple MR elements (TMR elements) are arranged along the longitudinal direction of the magnetic scale based on a pitch P of the wavelength λ of the recording signal of the magnetic scale or ½ of λ, thereby canceling odd-order harmonic distortion of the detection signal.
[0008] Patent Document 4 describes a magnetic encoder equipped with a magnetic sensor and a rod-shaped magnet. In this magnetic encoder, a soft magnetic layer is provided near an MR element, which amplifies the external magnetic field applied to the MR element, thereby improving the magnetic detection sensitivity of the MR element. [Prior art documents] [Patent documents]
[0009] [Patent Document 1] Japanese Patent Application Publication No. 6-207834 [Patent Document 2] JP 2015-232473 A [Patent Document 3] JP 2015-190881 A [Patent Document 4] International Publication No. 2008 / 072610 Summary of the Invention [Problem to be solved by the invention]
[0010] Patent Documents 1 to 3 To In a magnetic sensor system in which a magnetic sensor is arranged at a predetermined distance from a magnetic field generator, such as the position detection device described in the above and the magnetic encoder described in Patent Document 4, the distance between the magnetic sensor and the magnetic field generator may be shifted depending on the accuracy of the installation of the magnetic sensor. If this distance is shifted, the magnitude of the detection signal of the magnetic sensor input to the detection value generation circuit will be shifted. Therefore, in the past, it was necessary to calibrate the detection signal for each lot or each product, which was a hassle.
[0011] Furthermore, as the distance between the magnetic sensor and the magnetic field generator decreases, the strength of the target magnetic field applied to the magnetic sensor increases. As a result, the maximum value of the detection signal of the magnetic sensor input to the detection value generation circuit increases. This may cause the magnitude of the detection signal to exceed the input range of the A / D converter, resulting in saturation of the detection signal input to the detection value generation circuit. If the detection signal becomes saturated, the detection accuracy of the magnetic sensor system will deteriorate.
[0012] In general, the detection signal is multiplied by a predetermined gain by an amplifier before being input to an A / D converter. In order to prevent saturation of the detection signal, it is possible to set the gain assuming the minimum distance between the magnetic sensor and the magnetic field generator. However, this causes a problem that the entire input range of the A / D converter cannot be used, resulting in a decrease in resolution and a deterioration in detection accuracy.
[0013] Furthermore, the distance between the magnetic sensor and the magnetic field generator may be displaced due to physical shock during use, which also causes a problem of saturation of the detection signal and deterioration of the detection accuracy of the magnetic sensor system.
[0014] The present invention has been made in consideration of these problems, and its object is to provide a magnetic sensor system that can suppress fluctuations in the detection signal due to misalignment of the distance between the magnetic sensor and the magnetic field generator, and a lens position detection device that uses this magnetic sensor system. [Means for solving the problem]
[0015] The magnetic sensor system of the present invention includes a magnetic field generator that generates a target magnetic field, and a magnetic sensor that detects the target magnetic field. The magnetic sensor and the magnetic field generator are configured such that, when the position of the magnetic field generator relative to the magnetic sensor changes, the strength of the magnetic field component in a first direction of the target magnetic field detected by the magnetic sensor changes.
[0016] The magnetic sensor includes a plurality of magnetoresistance effect elements. Each of the plurality of magnetoresistance effect elements includes a magnetization fixed layer having magnetization whose direction is fixed, a free layer having magnetization whose direction can be changed according to the direction and strength of a magnetic field component, and a gap layer disposed between the magnetization fixed layer and the free layer, and is configured so that a bias magnetic field in a second direction perpendicular to the first direction is applied to the free layer and the resistance value changes according to the strength of the magnetic field component. The maximum strength of the magnetic field component applied to each of the plurality of magnetoresistance effect elements is 1.2 times or more the strength of the bias magnetic field.
[0017] In the magnetic sensor system of the present invention, the maximum intensity of the magnetic field component applied to each of the plurality of magnetoresistance effect elements may be equal to or less than 15.6 times the intensity of the bias magnetic field.
[0018] In the magnetic sensor system of the present invention, the bias magnetic field may be one or both of an external magnetic field applied from the outside to the free layer and an anisotropic magnetic field caused by the anisotropy of the free layer.
[0019] In the magnetic sensor system of the present invention, the magnetic sensor may further include a bias magnetic field generator that generates an external magnetic field applied to the free layer. In this case, the bias magnetic field may be at least due to an external magnetic field. The bias magnetic field generator may also include a plurality of magnet pairs each consisting of a first magnet and a second magnet. In this case, the first magnet and the second magnet in each of the plurality of magnet pairs may be arranged at a predetermined interval in the second direction so that the external magnetic field is applied to the entire free layer of at least one magnetoresistance effect element among the plurality of magnetoresistance effect elements. In this case, the magnetization pinned layer, the free layer, and the gap layer may form a laminated film. The laminated film has a width that is a dimension in a direction parallel to the first direction. The width of the laminated film may be equal to or less than the interval between the first magnet and the second magnet in each of the plurality of magnet pairs.
[0020] In the magnetic sensor system of the present invention, the free layer may have shape magnetic anisotropy, in which case the bias magnetic field may be due to at least the shape magnetic anisotropy.
[0021] In the magnetic sensor system of the present invention, the magnetic sensor may further include a magnetic field amplifier that amplifies a magnetic field component applied to each of the magnetoresistance effect elements. In this case, the magnetic field amplifier may include a plurality of soft magnetic layers. Each of the soft magnetic layers may be disposed at a position overlapping at least one of the magnetoresistance effect elements when viewed from a third direction perpendicular to the first and second directions.
[0022] In the magnetic sensor system of the present invention, the gap layer may be a tunnel barrier layer.
[0023] In the magnetic sensor system of the present invention, the magnetic field generator may be a magnetic scale in which a plurality of sets of N poles and S poles are alternately arranged at a predetermined pitch in a predetermined direction. In this case, the magnetic sensor may generate a detection signal having a corresponding relationship with each resistance value of the plurality of magnetoresistance effect elements. The detection signal includes an ideal component that changes periodically to draw an ideal sine curve, and an error component consisting of a plurality of harmonics of the ideal component. The plurality of magnetoresistance effect elements may be arranged in a predetermined pattern based on a predetermined pitch so that the error component is reduced. In this case, the plurality of magnetoresistance effect elements may be arranged so that a component corresponding to at least the seventh or less odd-order harmonics included in the error component is reduced.
[0024] In addition, the magnetic sensor system of the present invention may further include a detection value generating circuit that generates a detection value corresponding to the relative position of the magnetic field generator with respect to the magnetic sensor based on the resistance value of each of the multiple magnetoresistance effect elements.
[0025] The lens position detection device of the present invention is for detecting the position of a lens whose position can be changed. The lens position detection device includes the magnetic sensor system of the present invention. The lens is configured to be movable in a first direction. The magnetic sensor and the magnetic field generator are configured such that the strength of the magnetic field component changes when the position of the lens changes.
[0026] The lens position detection device of the present invention may further include a detection value generating circuit that generates a detection value corresponding to the position of the lens based on the resistance value of each of the plurality of magnetoresistive elements. Effect of the Invention
[0027] In the magnetic sensor system and lens position detection device of the present invention, each of the magnetoresistance effect elements is configured so that a bias magnetic field in a second direction perpendicular to the first direction is applied to the free layer, and the resistance value is configured to change according to the strength of the magnetic field component. The maximum strength of the magnetic field component applied to each of the magnetoresistance effect elements is 1.2 times or more the strength of the bias magnetic field. As a result, according to the present invention, it is possible to suppress fluctuations in the detection signal caused by deviations in the distance between the magnetic sensor and the magnetic field generator. [Brief description of the drawings]
[0028] [Figure 1] 1 is a perspective view showing a magnetic sensor system according to an embodiment of the present invention; [Diagram 2] 1 is a front view showing a magnetic sensor system according to an embodiment of the present invention. [Diagram 3] 1 is a circuit diagram showing a configuration of a magnetic sensor according to an embodiment of the present invention. [Figure 4] 4 is a block diagram showing an example of the configuration of a detection value generating circuit shown in FIG. 3. [Diagram 5] 1 is a plan view showing a magnetic sensor according to an embodiment of the present invention; [Figure 6] FIG. 2 is a plan view showing a first resistor in the embodiment of the present invention. [Figure 7] 1 is a perspective view showing a magnetoresistive effect element according to an embodiment of the present invention; [Figure 8] 1 is a plan view showing a magnetoresistive effect element according to an embodiment of the present invention; [Figure 9] FIG. 2 is an explanatory diagram for explaining a bias magnetic field applied to a free layer in one embodiment of the present invention. [Figure 10] FIG. 4 is a characteristic diagram showing an example of a relationship between a gap and a magnetic field component in the embodiment of the present invention. [Figure 11] 5 is a characteristic diagram showing an example of a relationship between a gap and a detection signal in the embodiment of the present invention. [Figure 12]5 is a characteristic diagram showing an example of a relationship between a magnetic field component and a detection signal in the embodiment of the present invention. [Figure 13] FIG. 11 is a characteristic diagram showing the relationship between the gap and the peak-to-peak value of the first detection signal obtained by a first simulation. [Figure 14] FIG. 4 is a characteristic diagram showing the relationship between the intensity of a magnetic field component and the output fluctuation rate obtained by a first simulation. [Figure 15] FIG. 11 is a characteristic diagram showing the relationship between the intensity of the magnetic field component and the 13th harmonic obtained by a second simulation. [Figure 16] FIG. 11 is a characteristic diagram showing the relationship between the magnetic field magnification and the angle error obtained by a second simulation. [Figure 17] FIG. 11 is a characteristic diagram showing the relationship between the magnetic field component and the first detection signal obtained by a third simulation. [Figure 18] FIG. 11 is a characteristic diagram showing the relationship between the bias magnetic field and hysteresis obtained by a third simulation. [Figure 19] 1 is a perspective view showing a lens module including a position detection device according to an embodiment of the present invention. [Figure 20] 1 is a perspective view showing a position detection device according to an embodiment of the present invention; [Figure 21] FIG. 1 is a perspective view showing a first modified example of a magnetoresistive effect element in an embodiment of the present invention. [Figure 22] FIG. 11 is a plan view showing a second modified example of the magnetoresistive effect element in the embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0029] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. First, a schematic configuration of a magnetic sensor system according to an embodiment of the present invention will be described with reference to Figs. 1 and 2. Fig. 1 is a perspective view showing the magnetic sensor system 1. Fig. 2 is a front view showing the magnetic sensor system 1. The magnetic sensor system 1 according to this embodiment includes a magnetic sensor 2 according to this embodiment and a magnetic field generator 3.
[0030] The magnetic field generator 3 generates a target magnetic field MF, which is a magnetic field to be detected by the magnetic sensor 2 (magnetic field to be detected). The target magnetic field MF includes a magnetic field component in a direction parallel to an imaginary line. The magnetic sensor 2 and the magnetic field generator 3 are configured such that, when the relative position of the magnetic field generator 3 with respect to the magnetic sensor 2 changes, the intensity of the magnetic field component of the target magnetic field MF detected by the magnetic sensor 2 changes. The magnetic sensor 2 detects the target magnetic field MF including the magnetic field component, and generates at least one detection signal corresponding to the intensity of the magnetic field component.
[0031] The magnetic field generator 3 may be a magnetic scale in which multiple sets of N poles and S poles are alternately arranged in a predetermined direction. The magnetic scale may be a magnetic medium such as a magnetic tape in which multiple sets of N poles and S poles are alternately magnetized, or multiple magnets may be arranged along the above-mentioned predetermined direction. The magnetic sensor 2 or the magnetic field generator 3 is movable within a predetermined range along the predetermined direction. The relative position of the magnetic field generator 3 with respect to the magnetic sensor 2 changes as the magnetic sensor 2 or the magnetic field generator 3 moves. The predetermined direction may be a linear direction or a rotational direction.
[0032] In this embodiment, the magnetic field generator 3 is a linear scale with multiple pairs of N poles and S poles magnetized in a linear direction. The magnetic sensor 2 or the magnetic field generator 3 is movable along the longitudinal direction of the magnetic field generator 3. In the magnetic field generator 3, the multiple pairs of N poles and S poles are arranged alternately at a predetermined pitch. As shown in FIG. 2, the distance between two adjacent N poles in the longitudinal direction of the magnetic field generator 3 (the same as the distance between two adjacent S poles in the longitudinal direction of the magnetic field generator 3) is called one pitch, and the size of one pitch is represented by the symbol Lp.
[0033] Here, the X direction, Y direction, and Z direction are defined as shown in Fig. 1 and Fig. 2. In this embodiment, one direction parallel to the longitudinal direction of the magnetic field generator 3 is defined as the X direction. Two directions perpendicular to the X direction and perpendicular to each other are defined as the Y direction and the Z direction. In Fig. 2, the Y direction is represented as the direction from the front to the back in Fig. 2. Also, the direction opposite to the X direction is defined as the -X direction, the direction opposite to the Y direction is defined as the -Y direction, and the direction opposite to the Z direction is defined as the -Z direction.
[0034] The direction parallel to the X direction corresponds to the first direction of the present invention. The Y direction or -Y direction corresponds to the second direction of the present invention. The Z direction or -Z direction corresponds to the third direction of the present invention.
[0035] The magnetic sensor 2 is disposed at a position spaced apart from the magnetic field generator 3 in the Z direction. The magnetic sensor 2 is configured to detect the intensity of a magnetic field component MFx in a direction parallel to the X direction of the target magnetic field MF. When the magnetic sensor 2 or the magnetic field generator 3 moves along a direction parallel to the X direction, the intensity of the magnetic field component MFx changes periodically.
[0036] The intensity of the magnetic field component MFx is expressed, for example, as a positive value when the direction of the magnetic field component MFx is the X direction, and as a negative value when the direction of the magnetic field component MFx is the -X direction. The magnetic sensor 2 can detect whether the intensity of the magnetic field component MFx is a positive value or a negative value. Therefore, the magnetic sensor 2 can substantially detect the direction of the magnetic field component MFx (X direction or -X direction). In the following description, unless otherwise specified, the intensity of the magnetic field component MFx includes a positive value and a negative value.
[0037] Next, the configuration of the magnetic sensor 2 will be described with reference to Fig. 3. Fig. 3 is a circuit diagram showing the configuration of the magnetic sensor 2. The magnetic sensor 2 includes a first resistor R11, a second resistor R12, a third resistor R21, and a fourth resistor R22, each of which is configured so that its resistance value changes according to the strength of the magnetic field component MFx. Each of the first to fourth resistors R11, R12, R21, and R22 includes a plurality of magnetoresistance effect elements (hereinafter, referred to as MR elements) 50.
[0038] The magnetic sensor 2 further includes a power supply port V1, a ground port G1, a first output port E1, and a second output port E2. The first resistor R11 is provided between the power supply port V1 and the first output port E1. The second resistor R12 is provided between the ground port G1 and the first output port E1. The third resistor R21 is provided between the power supply port V1 and the second output port E2. The fourth resistor R22 is provided between the ground port G1 and the second output port E2. A voltage of a predetermined magnitude is applied to the power supply port V1. The ground port G1 is connected to the ground. The magnetic sensor 2 is preferably driven by a constant voltage.
[0039] The magnetic sensor 2 generates a signal having a corresponding relationship with the potential of the first output port E1 as a first detection signal S1, and generates a signal having a corresponding relationship with the potential of the second output port E2 as a second detection signal S2.
[0040] 3, the magnetic sensor system 1 further includes a detection value generating circuit 4. The detection value generating circuit 4 generates a detection value Vs having a correspondence relationship with the relative position of the magnetic field generator 3 with respect to the magnetic sensor 2, based on the first and second detection signals S1 and S2.
[0041] Here, an example of the configuration of the detection value generating circuit 4 will be described with reference to Fig. 4. Fig. 4 is a block diagram showing an example of the configuration of the detection value generating circuit 4 shown in Fig. 3. In the example shown in Fig. 4, the detection value generating circuit 4 includes two low-pass filters 41 and 42 that remove high-frequency components, two amplifiers 43 and 44 that amplify signals, two analog-to-digital converters (hereinafter referred to as A / D converters) 45 and 46 that convert analog signals into digital signals, and an arithmetic circuit 47.
[0042] The arithmetic circuit 47 generates the detection value Vs based on the first and second detection signals S1, S2 converted into digital signals by the A / D converters 45, 46. The arithmetic circuit 47 can be realized by, for example, a digital signal processor (DSP), an application specific integrated circuit (ASIC), or a microcomputer.
[0043] The detection value generating circuit 4 may be configured to correct the offsets of the first and second detection signals S1 and S2. Specifically, for example, the detection value generating circuit 4 may be configured to add an offset correction signal Sc1 to the first detection signal S1 and add an offset correction signal Sc2 to the second detection signal S2. The offset correction signals Sc1 and Sc2 may be signals converted into analog signals by a digital-to-analog converter (not shown), for example.
[0044] Next, the configuration of the magnetic sensor 2 will be described in more detail with reference to Fig. 5. As shown in Fig. 5, the magnetic sensor 2 further includes a substrate 10, and a power supply terminal 11, a ground terminal 12, a first output terminal 13, and a second output terminal 14 arranged on the substrate 10. The power supply terminal 11 constitutes a power supply port V1. The ground terminal 12 constitutes a ground port G1. The first and second output terminals 13 and 14 constitute first and second output ports E1 and E2, respectively.
[0045] The first to fourth resistors R11, R12, R21, and R22 are arranged on the substrate 10 as follows. In the following description, the arrangement of the first to fourth resistors R11, R12, R21, and R22 will be described based on the center of gravity of the resistors when viewed from the Z direction (hereinafter simply referred to as center of gravity). The second resistor R12 is arranged at the same position as the first resistor R11 in the X direction. The second resistor R12 is also arranged ahead of the first resistor R11 in the -Y direction.
[0046] The third resistor R21 is disposed at a position spaced apart from the first resistor R11 by Lp / 4 (see FIG. 2) in the X direction, and is disposed ahead of the first resistor R11 in the Y direction.
[0047] The fourth resistor R22 is disposed at a position Lp / 4 (see FIG. 2) away from the second resistor R12 in the X direction. The fourth resistor R22 is disposed at the same position as the third resistor R21 in the X direction. The fourth resistor R22 is disposed ahead of the second resistor R12 in the -Y direction.
[0048] 5, the symbol L indicates an imaginary straight line parallel to the X direction. In particular, in this embodiment, the center of gravity of the first resistor R11 and the center of gravity of the second resistor R12 are located symmetrically with respect to the imaginary straight line L. The center of gravity of the third resistor R21 and the center of gravity of the fourth resistor R22 are located symmetrically with respect to the imaginary straight line L.
[0049] Next, the configuration of the first to fourth resistors R11, R12, R21, and R22 will be described. Each of the first and second detection signals S1 and S2 contains an ideal component that changes periodically with a predetermined signal period so as to draw an ideal sine curve (including a sine waveform and a cosine waveform). The magnitude Lp of one pitch shown in FIG. 2 corresponds to one period of the ideal component, that is, 360° of electrical angle. Each of the first and second detection signals S1 and S2 contains an error component consisting of harmonics of the ideal component in addition to the ideal component. In this embodiment, the first to fourth resistors R11, R12, R21, and R22 are configured so as to reduce the error component.
[0050] The configurations of the first to fourth resistors R11, R12, R21, and R22 will be specifically described below. First, the configuration of the MR element 50 will be described. Each of the multiple MR elements 50 is configured so that its resistance value changes according to the strength of the magnetic field component MFx. In this embodiment, the MR element 50 is a spin-valve type MR element. This spin-valve type MR element includes a magnetization fixed layer having a magnetization whose direction is fixed, a free layer having a magnetization whose direction can be changed according to the magnetic field component MFx, and a gap layer disposed between the magnetization fixed layer and the free layer. The spin-valve type MR element may be a TMR (tunnel magnetoresistance) element or a GMR (giant magnetoresistance) element. In this embodiment, in particular, in order to reduce the size of the magnetic sensor 2, it is preferable that the MR element 50 is a TMR element. In the TMR element, the gap layer is a tunnel barrier layer. In the GMR element, the gap layer is a nonmagnetic conductive layer. In a spin-valve MR element, the resistance value changes depending on the angle that the magnetization direction of the free layer makes with respect to the magnetization direction of the magnetization fixed layer; when this angle is 0°, the resistance value is at its minimum, and when the angle is 180°, the resistance value is at its maximum.
[0051] 3, the arrows drawn in the first to fourth resistors R11, R12, R21, and R22 represent the magnetization direction of each of the magnetization pinned layers of the multiple MR elements 50 included in the resistors. The magnetization direction of each of the magnetization pinned layers of the multiple MR elements 50 included in the first and third resistors R11 and R21 is a first magnetization direction. The magnetization direction of each of the magnetization pinned layers of the multiple MR elements 50 included in the second and fourth resistors R12 and R22 is a second magnetization direction opposite to the first magnetization direction.
[0052] In particular, in this embodiment, the first magnetization direction is the −X direction, and the second magnetization direction is the X direction. In this case, the magnetization direction of each of the free layers of the multiple MR elements 50 changes in the XY plane according to the strength of the magnetic field component MFx. As a result, the resistance value of each of the multiple MR elements 50 changes according to the strength of the magnetic field component MFx. As a result, the potential of each of the first and second output ports E1, E2 changes according to the strength of the magnetic field component MFx. As described above, the first detection signal S1 has a corresponding relationship with the potential of the first output port E1, and the second detection signal S2 has a corresponding relationship with the potential of the second output port E2. Therefore, the first and second detection signals S1, S2 change according to the strength of the magnetic field component MFx.
[0053] Moreover, the potential of the first output port E1 depends on the resistance values of the first and second resistors R11, R12, which in turn depend on the resistance values of the MR elements 50 of the first and second resistors R11, R12. Therefore, the first detection signal S1 has a corresponding relationship with the resistance values of the MR elements 50 of the first and second resistors R11, R12.
[0054] Similarly, the potential of the second output port E2 depends on the resistance value of each of the third and fourth resistors R21, R22, which in turn depends on the resistance value of each of the multiple MR elements 50 of the third and fourth resistors R21, R22. Therefore, the second detection signal S2 has a corresponding relationship with the resistance value of each of the multiple MR elements 50 of the third and fourth resistors R21, R22.
[0055] Next, the arrangement of the MR elements 50 in each of the first to fourth resistors R11, R12, R21, and R22 will be described. The MR elements 50 are arranged in a predetermined pattern based on the size Lp of one pitch so as to reduce error components. Here, a collection of one or more MR elements 50 is called an element group. Each of the first to fourth resistors R11, R12, R21, and R22 includes a plurality of element groups. In this embodiment, the positions of the MR elements 50 are specified for each element group. The element groups are arranged at a predetermined interval based on the size Lp of one pitch so as to reduce error components. In the following description, when the arrangement of the element groups is described, the description will be based on a predetermined position of the element group. The predetermined position is, for example, the center of gravity of the element group when viewed from the Z direction.
[0056] Here, n and m are integers equal to or greater than 1 and different from each other. For example, when reducing a component corresponding to a 2n+1-th harmonic among the error components, the first element group is arranged at a position Lp / (4n+2) away from the second element group in the X direction. Furthermore, when reducing a component corresponding to a 2m+1-th harmonic among the error components, the third element group is arranged at a position Lp / (4m+2) away from the first element group in the X direction, and the fourth element group is arranged at a position Lp / (4m+2) away from the second element group in the X direction. In this way, when reducing components corresponding to multiple harmonics included in the error components, each of the multiple element groups for reducing a component corresponding to one harmonic is arranged at a predetermined interval based on the size Lp of one pitch in the X direction from each of the multiple element groups for reducing components corresponding to other harmonics.
[0057] The multiple element groups (multiple MR elements 50) are arranged so that components corresponding to at least the 7th or lower odd-order harmonics included in the error components are reduced. By increasing the number of element groups, it is possible to reduce components corresponding to higher-order harmonics. The components to be reduced are preferably components corresponding to the 11th or lower odd-order harmonics, and more preferably components corresponding to the 13th or lower odd-order harmonics.
[0058] In this embodiment, the multiple element groups (multiple MR elements 50) of each of the first to fourth resistors R11, R12, R21, and R22 are arranged so that components corresponding to odd-order harmonics of 11th order or less, which are included in the error components, are reduced. FIG. 6 is a plan view showing the first resistor R11. The first resistor R11 includes 16 element groups 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, and 516. Each of the element groups 501 to 516 is divided into four sections. One or more MR elements 50 are arranged in each section. Therefore, each element group includes four or more MR elements 50. The multiple MR elements 50 may be connected in series within the element group. In this case, the multiple element groups may be connected in series. Alternatively, the multiple MR elements 50 may be connected in series regardless of element group.
[0059] In the first resistor R11, the element groups 501 to 516 are arranged so that the components corresponding to the third harmonic (third harmonic) of the ideal component, the fifth harmonic (fifth harmonic) of the ideal component, the seventh harmonic (seventh harmonic) of the ideal component, and the eleventh harmonic (eleventh harmonic) of the ideal component, which are included in the error components, are reduced. As shown in FIG. 6, the element groups 501 to 504 are arranged along the X direction. The element group 502 is arranged at a position Lp / 10 away from the element group 501 in the X direction. The element group 503 is arranged at a position Lp / 6 away from the element group 501 in the X direction. The element group 504 is arranged at a position Lp / 10+Lp / 6 away from the element group 501 in the X direction (a position Lp / 6 away from the element group 502 in the X direction).
[0060] 6, element groups 505 to 508 are arranged along the X direction, ahead of element groups 501 to 504 in the -Y direction. Element group 505 is arranged at a position Lp / 22 away from element group 501 in the X direction. Element group 506 is arranged at a position Lp / 22+Lp / 10 away from element group 501 in the X direction. Element group 507 is arranged at a position Lp / 22+Lp / 6 away from element group 501 in the X direction. Element group 508 is arranged at a position Lp / 22+Lp / 10+Lp / 6 away from element group 501 in the X direction. Element groups 505 to 508 are arranged at positions Lp / 22 away from element groups 501 to 504 in the X direction, respectively.
[0061] 6, element groups 509 to 512 are arranged along the X direction, ahead of element groups 505 to 508 in the -Y direction. Element group 509 is arranged at a position Lp / 14 away from element group 501 in the X direction. Element group 510 is arranged at a position Lp / 14+Lp / 10 away from element group 501 in the X direction. Element group 511 is arranged at a position Lp / 14+Lp / 6 away from element group 501 in the X direction. Element group 512 is arranged at a position Lp / 14+Lp / 10+Lp / 6 away from element group 501 in the X direction. Element groups 509 to 512 are arranged at positions Lp / 14 away from element groups 501 to 504 in the X direction, respectively.
[0062] 6, the element groups 513 to 516 are arranged along the X direction, ahead of the element groups 509 to 512 in the -Y direction. The element group 513 is arranged at a position Lp / 14+Lp / 22 away from the element group 501 in the X direction. The element group 514 is arranged at a position Lp / 14+Lp / 22+Lp / 10 away from the element group 501 in the X direction. The element group 515 is arranged at a position Lp / 14+Lp / 22+Lp / 6 away from the element group 501 in the X direction. The element group 516 is arranged at a position Lp / 14+Lp / 22+Lp / 10+Lp / 6 away from the element group 501 in the X direction. The element groups 513 to 516 are arranged at a position Lp / 14 away from the element groups 505 to 508 in the X direction.
[0063] In this embodiment, the configuration of the plurality of element groups in each of the second to fourth resistors R12, R21, and R22 is the same as the configuration of the plurality of element groups in the first resistor R11. That is, each of the second to fourth resistors R12, R21, and R22 also includes 16 element groups 501 to 516 configured as shown in FIG. 6. The element groups 501 to 516 of the first resistor R11 and the element groups 501 to 516 of the second resistor R12 are arranged in symmetrical positions with respect to the virtual straight line L. The element groups 501 to 516 of the second resistor R12 are arranged in the same positions as the element groups 501 to 516 of the first resistor R11 in the X direction.
[0064] The element group 501 of the third resistor R21 is disposed at a position spaced apart by Lp / 4 in the X direction from the element group 501 of the first resistor R11. The arrangement of the element groups 501-516 in the third resistor R21 is the same as the arrangement of the element groups 501-516 in the first resistor R11.
[0065] The element group 501-516 of the third resistor R21 and the element group 501-516 of the fourth resistor R22 are disposed symmetrically with respect to an imaginary straight line L. The element group 501-516 of the fourth resistor R22 are disposed in the same positions as the element group 501-516 of the third resistor R21 in the X direction.
[0066] With the configuration of the first to fourth resistors R11, R12, R21, and R22 described above, the phase difference between the ideal component of the second detection signal S2 and the ideal component of the first detection signal S1 becomes an odd multiple of 1 / 4 of a predetermined signal period (the signal period of the ideal component), and the error components of each of the first and second detection signals S1 and S2 are reduced.
[0067] In addition, the magnetization direction of the magnetization fixed layer, the positions of the first to fourth resistors R11, R12, R21, R22, and the positions of the element groups 501 to 516 may be slightly deviated from the above-mentioned directions and positions in terms of the manufacturing accuracy of the MR element 50, etc.
[0068] Next, the configuration of the MR element 50 will be described with reference to Fig. 7 and Fig. 8. Fig. 7 is a perspective view showing the MR element 50. Fig. 8 is a plan view showing the MR element 50. The MR element 50 includes a laminated film 50A including a magnetization fixed layer 51, a gap layer 52, and a free layer 53, which are laminated in this order in the Z direction. The planar shape of the laminated film 50A as viewed from the Z direction is rectangular or approximately rectangular.
[0069] The lower surface of the laminated film 50A of the MR element 50 is electrically connected to the lower surface of the laminated film 50A of another MR element 50 by a lower electrode (not shown), and the upper surface of the laminated film 50A of the MR element 50 is further electrically connected to the upper surface of the laminated film 50A of the other MR element 50 by an upper electrode (not shown). In this way, the multiple MR elements 50 are connected in series. Note that the arrangement of the layers 51 to 53 in the laminated film 50A may be upside down from the arrangement shown in FIG. 7.
[0070] The magnetic sensor 2 includes a bias magnetic field generator 50B that generates an external magnetic field to be applied to the free layer 53 of each of the multiple MR elements 50, and a magnetic field amplifier 50D that amplifies the magnetic field component MFx applied to each of the multiple MR elements 50. In this embodiment, particularly, the bias magnetic field generator 50B includes multiple magnet pairs 50C, and the magnetic field amplifier 50D includes multiple soft magnetic layers 50E.
[0071] Each of the magnet pairs 50C includes a first magnet 54 and a second magnet 55. In each of the magnet pairs 50C, the first magnet 54 and the second magnet 55 are arranged at a predetermined interval in the Y direction so that an external magnetic field is applied to the entire free layer 53 of at least one of the MR elements 50. As shown in FIG. 7, the first magnet 54 and the second magnet 55 are arranged ahead of the laminated film 50A in the Z direction. As shown in FIG. 7 and FIG. 8, the first magnet 54 is located near the end of the laminated film 50A in the -Y direction, and the second magnet 55 is located near the end of the laminated film 50A in the Y direction. Each of the first and second magnets 54, 55 has a planar shape (shape viewed from the Z direction) that is long in the X direction. In FIG. 7, the arrows in the first and second magnets 54, 55 indicate the magnetization directions of the first and second magnets 54, 55. The direction of the external magnetic field applied to the free layer 53 by the first and second magnets 54 and 55 is the Y direction.
[0072] 8, the first magnet 54 overlaps with a portion including the end of the laminated film 50A in the -Y direction when viewed from the Z direction. However, the first magnet 54 may be disposed ahead of the laminated film 50A in the -Y direction. Similarly, the second magnet 55 overlaps with a portion including the end of the laminated film 50A in the Y direction when viewed from the Z direction. However, the second magnet 55 may be disposed ahead of the laminated film 50A in the Y direction.
[0073] Each of the soft magnetic layers 50E is disposed at a position overlapping at least one of the MR elements 50 when viewed from the Z direction. In the example shown in FIG. 7, the soft magnetic layer 50E is disposed at a position overlapping one of the MR elements 50. The soft magnetic layer 50E is disposed between the laminated film 50A and the magnet pair 50C (first and second magnets 54, 55). The soft magnetic layer 50E has a planar shape that is elongated in the Y direction. The soft magnetic layer 50E may overlap each of the first and second magnets 54, 55 when viewed from the Z direction.
[0074] Next, referring to FIG. 9, the bias magnetic field applied to each free layer 53 of the multiple MR elements 50 will be described. FIG. 9 is an explanatory diagram for explaining the bias magnetic field MFb applied to the free layer 53. In this embodiment, the following first and second requirements are defined for the bias magnetic field MFb. The first requirement is that each of the multiple MR elements 50 is configured so that the bias magnetic field MFb in the Y direction or the -Y direction is applied to the free layer 53, and the resistance value is configured to change according to the intensity of the magnetic field component MFx. The second requirement is that the maximum intensity of the magnetic field component MFx applied to each MR element 50 is 1.2 times or more the intensity of the bias magnetic field MFb.
[0075] The first requirement specifies the direction of the bias magnetic field MFb and also specifies the strength of the bias magnetic field MFb. That is, if the bias magnetic field MFb is too large, the resistance value of the MR element 50 does not change according to the strength of the magnetic field component MFx. On the other hand, if the bias magnetic field MFb is too small, the resistance value of the MR element 50 saturates within the range of the strength of the magnetic field component MFx. When the resistance value of the MR element 50 saturates, the resistance value of the MR element 50 does not change according to the strength of the magnetic field component MFx. Therefore, the first requirement specifies that the strength of the bias magnetic field MFb is within the range of strength within which the resistance value changes according to the strength of the magnetic field component MFx.
[0076] The second requirement, in other words, specifies that the strength of the bias magnetic field MFb is equal to or less than 0.83 times the maximum strength of the magnetic field component MFx applied to the MR element 50. Therefore, the first and second requirements, taken together, specify that the strength of the bias magnetic field MFb is within a range of strengths in which the resistance value changes depending on the strength of the magnetic field component MFx, and within this range of strengths, is equal to or less than 0.83 times the maximum strength of the magnetic field component MFx applied to the MR element 50.
[0077] The bias magnetic field MFb is caused by one or both of an external magnetic field applied from the outside to the free layer 53 and an anisotropic magnetic field caused by the anisotropy of the free layer 53. In particular, in this embodiment, as the above-mentioned external magnetic field, an external magnetic field generated by the bias magnetic field generator 50B (magnet pair 50C) is applied to the free layer 53. That is, an external magnetic field acts as the bias magnetic field MFb. As described above, the direction of the external magnetic field is the Y direction. Therefore, when the bias magnetic field MFb is caused by an external magnetic field, the direction of the bias magnetic field MFb is also the Y direction.
[0078] The bias magnetic field MFb applied to the free layer 53 may be an anisotropic magnetic field in addition to or instead of the external magnetic field. For example, the free layer 53 may have shape magnetic anisotropy in which the easy axis of magnetization is oriented in a direction parallel to the Y direction. In this case, the anisotropic magnetic field due to the shape magnetic anisotropy acts as the bias magnetic field MFb.
[0079] 8, the distance between the first magnet 54 and the second magnet 55 is represented by the symbol D, and the width, which is the dimension of the laminated film 50A in a direction parallel to the X direction, is represented by the symbol W. The width W is equal to or smaller than the dimension of the laminated film 50A in the Y direction. Moreover, the width W is preferably equal to or smaller than the distance D. This allows both the external magnetic field and the anisotropic magnetic field to act as the bias magnetic field MFb.
[0080] As long as the bias magnetic field MFb in the Y or -Y direction is applied to the free layer 53, the direction of the external magnetic field may be inclined with respect to the Y or -Y direction, and the direction of the easy axis of magnetization may be inclined with respect to a direction parallel to the Y direction. The anisotropy magnetic field may be due to uniaxial magnetic anisotropy other than shape magnetic anisotropy, such as magnetocrystalline anisotropy.
[0081] Next, a method for generating the detection value Vs in this embodiment will be described. The detection value generation circuit 4 generates the detection value Vs, for example, as follows. The arithmetic circuit 47 of the detection value generation circuit 4 calculates the arc tangent of the ratio of the second detection signal S2 to the first detection signal S1, i.e., atan(S2 / S1), to obtain an initial detection value within a range of 0° or more and less than 360°. The initial detection value may be the above-mentioned arc tangent value itself, or may be the arc tangent value plus a predetermined angle.
[0082] When the value of the arctangent is 0°, the position of the S pole of the magnetic field generator 3 and the position of each of the element groups 501 of the first and second resistors R11 and R12 coincide with each other in the X direction. When the value of the arctangent is 180°, the position of the N pole of the magnetic field generator 3 and the position of each of the element groups 501 of the first and second resistors R11 and R12 coincide with each other in the X direction. Therefore, the initial detection value corresponds to the relative position of the magnetic field generator 3 with respect to the magnetic sensor 2 within one pitch (hereinafter also referred to as the relative position).
[0083] The arithmetic circuit 47 of the detection value generating circuit 4 counts the number of electrical angle rotations from a reference position, with one period of the initial detection value being 360° of electrical angle. One electrical angle rotation corresponds to one pitch of movement of the relative position. The arithmetic circuit 47 of the detection value generating circuit 4 generates a detection value Vs that corresponds to the relative position, based on the initial detection value and the number of electrical angle rotations.
[0084] As described above, the first and second detection signals S1, S2 correspond to the resistance values of the multiple MR elements 50. Therefore, it can be said that the arithmetic circuit 47 of the detection value generating circuit 4 generates the detection value Vs based on the resistance values of the multiple MR elements 50 of the first to fourth resistors R11, R12, R21, R22.
[0085] Next, the operation and effect of the magnetic sensor system 1 and the magnetic sensor 2 according to this embodiment will be described. In this embodiment, the MR element 50 is configured so that the bias magnetic field MFb is applied to the free layer 53. As described above, in this embodiment, the first and second requirements are defined for the bias magnetic field MFb. According to this embodiment, by satisfying the first and second requirements, it is possible to suppress the fluctuation of the first and second detection signals S1, S2 caused by the deviation in the distance between the magnetic sensor 2 and the magnetic field generator 3. This will be described in detail below.
[0086] First, we will explain the influence of the distance between the magnetic sensor 2 and the magnetic field generator 3 on the magnetic field component MFx and the first and second detection signals S1, S2. As shown in Figures 1 and 2, the magnetic sensor 2 is disposed at a predetermined distance from the magnetic field generator 3. Hereinafter, the distance between the magnetic sensor 2 and the magnetic field generator 3 will be referred to as the gap and represented by the symbol AG.
[0087] FIG. 10 is a characteristic diagram showing an example of the relationship between the gap AG and the magnetic field component MFx. FIG. 11 is a characteristic diagram showing an example of the relationship between the gap AG and the detection signal. In FIG. 10 and FIG. 11, the horizontal axis indicates the gap AG. In FIG. 10, the vertical axis indicates the magnitude of the magnetic flux density Bx corresponding to the maximum strength of the magnetic field component MFx that the magnetic sensor 2 can detect. In FIG. 11, the vertical axis indicates the peak-to-peak value Vpp of the first detection signal S1 when the relative position of the magnetic field generator 3 with respect to the magnetic sensor 2 is changed. In FIG. 10, the curve marked with the reference numeral 71 indicates the magnetic flux density Bx when a magnetic field generator 3 with a pitch size Lp of 1000 μm is used. In addition, the curve marked with the reference numeral 72 indicates the magnetic flux density Bx when a magnetic field generator 3 with a pitch size Lp of 750 μm is used.
[0088] As can be seen from Fig. 10, the magnetic flux density Bx, i.e., the strength of the magnetic field component MFx, decreases as the gap AG increases. Also, as can be seen from Fig. 11, the peak-to-peak value Vpp, i.e., the magnitude of the first detection signal S1, decreases as the gap AG increases. Although not shown, the relationship between the gap AG and the first detection signal S1 also applies to the relationship between the gap AG and the second detection signal S2. Therefore, the second detection signal S2 also decreases as the gap AG increases.
[0089] Fig. 12 is a characteristic diagram showing an example of the relationship between the magnetic field component MFx and the detection signal. In Fig. 12, the horizontal axis indicates the magnitude of the magnetic flux density Bx corresponding to the magnetic field component MFx, and the vertical axis indicates the magnitude of the first detection signal S1. In Fig. 12, the magnetic flux density Bx is expressed as a positive value when the magnetic field component MFx is in the X direction, and the magnetic flux density Bx is expressed as a negative value when the magnetic field component MFx is in the -X direction. In Fig. 12, the first detection signal S1 is normalized so that the maximum value of the first detection signal S1 is 1 and the minimum value of the first detection signal S1 is -1.
[0090] 12, when the range of change in the strength of the magnetic field component MFx (magnetic flux density Bx) includes 0 and is relatively narrow (e.g., ±7 mT), the first detection signal S1 changes significantly with respect to the change in the strength of the magnetic field component MFx. Therefore, the maximum value of the first detection signal S1 also changes significantly with respect to the change in the maximum strength of the magnetic field component MFx. In this case, if the gap AG shifts and the maximum strength of the magnetic field component MFx shifts, the maximum value of the first detection signal S1 will fluctuate significantly.
[0091] In contrast, in this embodiment, due to the second requirement, the maximum strength of the magnetic field component MFx applied to each MR element 50 is set to 1.2 times or more the strength of the bias magnetic field MFb. As a result, in this embodiment, the range of change of the first detection signal S1 is increased so that the maximum value of the first detection signal S1 does not change significantly with respect to the change in the maximum strength of the magnetic field component MFx. As a result, according to this embodiment, it is possible to suppress the fluctuation of the maximum value of the first detection signal S1 when the gap AG shifts and the maximum strength of the magnetic field component MFx shifts.
[0092] The above description of the first detection signal S1 also applies to the second detection signal S2. According to the present embodiment, similar to the first detection signal S1, it is possible to suppress the fluctuation of the maximum value of the second detection signal S2 when the gap AG shifts and the maximum intensity of the magnetic field component MFx shifts.
[0093] Next, the relationship between the maximum intensity of the magnetic field component MFx and the intensity of the bias magnetic field MFb will be described in detail with reference to the results of the first and second simulations. In the following description, the intensity of the magnetic field component MFx is the maximum intensity of the magnetic field component MFx unless otherwise specified.
[0094] First, a first simulation will be described. In the first simulation, a model of the magnetic sensor system 1 was used. The size Lp of one pitch of the magnetic field generator 3 was set to 1000 μm.
[0095] In the first simulation, the gap AG was changed to obtain the relationship between the gap AG and the peak-to-peak value Vpp of the first detection signal S1. Also, in the first simulation, the magnetic flux density Bb corresponding to the strength of the bias magnetic field MFb was changed to 0.1 mT, 2 mT, 5 mT, 10 mT, and 15 mT. The relationship between the gap AG and the peak-to-peak value Vpp of the first detection signal S1 was obtained for each strength of the bias magnetic field MFb (each magnetic flux density Bb).
[0096] In the first simulation, the fluctuation rate of the first detection signal S1 when the gap AG changes (hereinafter, referred to as the output fluctuation rate) was obtained. Here, the peak-to-peak value Vpp when the gap AG is at a first value is referred to as the first peak-to-peak value, and the peak-to-peak value Vpp when the gap AG is at a second value that is 50 μm larger than the first value is referred to as the second peak-to-peak value. In the first simulation, the difference between the first peak-to-peak value and the second peak-to-peak value divided by the first peak-to-peak value was set as the output fluctuation rate when the gap AG is at the first value. Then, the relationship between the strength of the magnetic field component MFx and the output fluctuation rate was obtained from the relationship between the gap AG and the strength of the magnetic field component MFx. This relationship was obtained for each strength of the bias magnetic field MFb (for each magnetic flux density Bb).
[0097] Fig. 13 is a characteristic diagram showing the relationship between the gap AG and the peak-to-peak value Vpp of the first detection signal S1. In Fig. 13, the horizontal axis indicates the gap AG, and the vertical axis indicates the peak-to-peak value Vpp. In Fig. 13, the curve indicated by reference numeral 73 indicates the peak-to-peak value Vpp when the magnetic flux density Bb is 0.1 mT, the curve indicated by reference numeral 74 indicates the peak-to-peak value Vpp when the magnetic flux density Bb is 2 mT, the curve indicated by reference numeral 75 indicates the peak-to-peak value Vpp when the magnetic flux density Bb is 5 mT, the curve indicated by reference numeral 76 indicates the peak-to-peak value Vpp when the magnetic flux density Bb is 10 mT, and the curve indicated by reference numeral 77 indicates the peak-to-peak value Vpp when the magnetic flux density Bb is 15 mT.
[0098] 13, except when the magnetic flux density Bb is 0.1 mT, the peak-to-peak value Vpp, i.e., the magnitude of the first detection signal S1, decreases as the gap AG increases. Also, FIG. 13 shows that the amount of change in the first detection signal S1 when the gap AG changes decreases as the strength of the bias magnetic field MFb (magnetic flux density Bb) decreases.
[0099] Fig. 14 is a characteristic diagram showing the relationship between the strength of the magnetic field component MFx and the output fluctuation rate. In Fig. 14, the horizontal axis shows the magnitude of the magnetic flux density Bx corresponding to the strength of the magnetic field component MFx, and the vertical axis shows the output fluctuation rate. In Fig. 14, the curve indicated by reference numeral 78 shows the output fluctuation rate when the magnetic flux density Bb is 2 mT, the curve indicated by reference numeral 79 shows the output fluctuation rate when the magnetic flux density Bb is 5 mT, the curve indicated by reference numeral 80 shows the output fluctuation rate when the magnetic flux density Bb is 10 mT, and the curve indicated by reference numeral 81 shows the output fluctuation rate when the magnetic flux density Bb is 15 mT.
[0100] It can be seen from Fig. 14 that the output fluctuation rate decreases as the strength of the magnetic field component MFx (magnetic flux density Bx) increases, and that the output fluctuation rate decreases as the strength of the bias magnetic field MFb (magnetic flux density Bb) decreases.
[0101] From the results of the first simulation, it can be seen that the output fluctuation rate can be reduced by increasing the strength of the magnetic field component MFx or decreasing the strength of the bias magnetic field MFb. The upper limit of the output fluctuation rate at which it is determined that the fluctuation of the detection signal is small is, for example, 15%. From FIG. 14, the magnetic flux density Bx at which the output fluctuation rate becomes 15% is 6 mT when the magnetic flux density Bb is 5 mT, 12 mT when the magnetic flux density Bb is 10 mT, and 18 mT when the magnetic flux density Bb is 15 mT. Therefore, when the magnetic flux density Bx is 1.2 times the magnetic flux density Bb, the output fluctuation rate becomes 15%.
[0102] The magnetic flux density Bx corresponds to the maximum strength of the magnetic field component MFx applied to each of the MR elements 50, and the magnetic flux density Bb corresponds to the strength of the bias magnetic field MFb. In this embodiment, the maximum strength of the magnetic field component MFx applied to each of the MR elements 50 is set to be 1.2 times or more the strength of the bias magnetic field MFb. As a result, according to this embodiment, the output fluctuation rate can be reduced to 15% or less.
[0103] The output fluctuation rate is preferably 10% or less, and more preferably 8% or less. From Fig. 14, the magnetic flux density Bx at which the output fluctuation rate becomes 10% is 8.5mT when the magnetic flux density Bb is 5mT, 17mT when the magnetic flux density Bb is 10mT, and 25.5mT when the magnetic flux density Bb is 15mT. Therefore, the output fluctuation rate becomes 10% when the magnetic flux density Bx is 1.7 times the magnetic flux density Bb.
[0104] 14, the magnetic flux density Bx at which the output fluctuation rate becomes 8% is 10 mT when the magnetic flux density Bb is 5 mT, 20 mT when the magnetic flux density Bb is 10 mT, and 30 mT when the magnetic flux density Bb is 15 mT. Therefore, when the magnetic flux density Bx is twice the magnetic flux density Bb, the output fluctuation rate becomes 8%.
[0105] From the above, the maximum intensity of the magnetic field component MFx applied to each of the MR elements 50 is preferably 1.7 times or more, and more preferably 2 times or more, the intensity of the bias magnetic field MFb.
[0106] Next, a second simulation will be described. In the second simulation, the model of the magnetic sensor system 1 was used, as in the first simulation. Note that the magnetic flux density Bb corresponding to the bias magnetic field MFb was set to 5 mT.
[0107] Here, the magnification of the maximum strength of the magnetic field component MFx applied to each MR element 50 relative to the strength of the bias magnetic field MFb is called the magnetic field magnification. In the second simulation, the strength of the magnetic field component MFx was changed to investigate the effect of the magnetic field magnification on the detection signal and the detection value Vs. Specifically, a component corresponding to the 13th harmonic (13th order harmonic) of the ideal component contained in the error component of the first detection signal S1 was obtained, and the relationship between the strength of the magnetic field component MFx and the 13th harmonic was obtained.
[0108] In the second simulation, the initial detection value was obtained from the first and second detection signals S1 and S2. The ideal angle corresponding to the initial detection value was obtained from each ideal component of the first and second detection signals S1 and S2, and the difference between the initial detection value and the ideal angle (hereinafter referred to as the angle error) was obtained. Then, the relationship between the magnetic field magnification and the angle error was obtained.
[0109] Fig. 15 is a characteristic diagram showing the relationship between the intensity of the magnetic field component MFx and the 13th harmonic. In Fig. 15, the horizontal axis indicates the magnetic flux density Bx corresponding to the intensity of the magnetic field component MFx. Also, in Fig. 15, the vertical axis indicates the ratio V13th / V1st of the amplitude of the 13th harmonic to the amplitude of the ideal component. From Fig. 15, it can be seen that the ratio V13th / V1st increases as the magnetic flux density Bx increases. From this result, it can be seen that as the magnetic field magnification increases, the amplitude of the 13th harmonic increases.
[0110] In the magnetic sensor 2 of the magnetic sensor system 1, a plurality of MR elements 50 are arranged so as to reduce components corresponding to 11th or lower odd-order harmonics included in the error components. In other words, the magnetic sensor 2 is not configured to reduce components corresponding to 13th or higher harmonics included in the error components. Therefore, as shown in FIG. 15, when the magnetic flux density Bx increases, the amplitude of the 13th harmonic increases. Therefore, when the magnetic field magnification increases, the component corresponding to the 13th harmonic included in the error components increases.
[0111] Fig. 16 is a characteristic diagram showing the relationship between the magnetic field magnification and the angle error. In Fig. 16, the horizontal axis indicates the magnetic field magnification, and the vertical axis indicates the angle error. From Fig. 16, it can be seen that as the magnetic field magnification increases, the angle error increases. This is because, as mentioned above, as the magnetic field magnification increases, the component of the error component that corresponds to the 13th harmonic increases.
[0112] As the angle error increases, the error in the detection value Vs also increases. Therefore, as can be seen from Fig. 16, as the magnetic field magnification increases, the error in the detection value Vs also increases.
[0113] The upper limit of the angle error that allows the error of the detection value Vs is, for example, 3°. From FIG. 16, the magnetic field magnification at which the angle error is 3° is 15.6. The magnetic field magnification corresponds to the magnification of the maximum intensity of the magnetic field component MFx applied to each of the MR elements 50 relative to the intensity of the bias magnetic field MFb. Therefore, by making the maximum intensity of the magnetic field component MFx applied to each of the MR elements 50 15.6 times or less the intensity of the bias magnetic field MFb, the angle error can be made 3° or less.
[0114] The angle error is preferably 2° or less, and more preferably 1° or less. From Fig. 16, the magnetic field magnification at which the angle error is 2° is 9.2, and the magnetic field magnification at which the angle error is 1° is 5.6. Therefore, the maximum intensity of the magnetic field component MFx applied to each of the MR elements 50 is preferably 9.2 times or less, and more preferably 5.6 times or less, of the intensity of the bias magnetic field MFb.
[0115] In the present embodiment, the magnetic sensor system 1 is provided with a detection value generating circuit 4. When the magnetic sensor 2 in the present embodiment is used, the detection value generating circuit 4 or the arithmetic circuit 47 can correct the first and second detection signals S1, S2 or the detection value Vs to reduce errors caused by angle errors. As described above, by setting the magnetic field magnification to a value that reduces the angle error to a certain degree, it becomes easy to correct the first and second detection signals S1, S2 or the detection value Vs.
[0116] Next, the strength of the bias magnetic field MFb will be described with reference to the results of the third simulation. In the third simulation, the model of the magnetic sensor system 1 was used, as in the first and second simulations.
[0117] In the third simulation, the relationship between the magnetic field component MFx and the detection signal was obtained when the strength of the bias magnetic field MFb was changed. In the third simulation, the first detection signal S1 was used as the detection signal. In the third simulation, the magnetic flux density Bb corresponding to the strength of the bias magnetic field MFb was changed to 0 mT, 2 mT, 5 mT, 8 mT, 10 mT, 15 mT, and 20 mT. The relationship between the magnetic field component MFx and the first detection signal S1 was obtained for each strength of the bias magnetic field MFb (each magnetic flux density Bb).
[0118] Fig. 17 is a characteristic diagram showing the relationship between the magnetic field component MFx and the first detection signal S1. In Fig. 17, the horizontal axis represents the magnetic flux density Bx corresponding to the strength of the magnetic field component MFx, and the vertical axis represents the first detection signal S1. In addition, in FIG. 17, the curve indicated by the reference symbol 82 indicates the first detection signal S1 when the magnetic flux density Bb is 0 mT, the curve indicated by the reference symbol 83 indicates the first detection signal S1 when the magnetic flux density Bb is 2 mT, the curve indicated by the reference symbol 84 indicates the first detection signal S1 when the magnetic flux density Bb is 5 mT, the curve indicated by the reference symbol 85 indicates the first detection signal S1 when the magnetic flux density Bb is 8 mT, the curve indicated by the reference symbol 86 indicates the first detection signal S1 when the magnetic flux density Bb is 10 mT, the curve indicated by the reference symbol 87 indicates the first detection signal S1 when the magnetic flux density Bb is 15 mT, and the curve indicated by the reference symbol 88 indicates the first detection signal S1 when the magnetic flux density Bb is 20 mT.
[0119] 17, the first detection signal S1 (offset of the first detection signal S1) when the magnetic flux density Bx is 0 is ideally 1.4 V. Here, the value of the magnetic flux density Bx at which the first detection signal S1 becomes 1.4 V when the magnetic flux density Bx is increased from a negative value is referred to as a first value, and the value of the magnetic flux density Bx at which the first detection signal S1 becomes 1.4 V when the magnetic flux density Bx is decreased from a positive value is referred to as a second value. The absolute value of the difference between the first value and the second value is referred to as a hysteresis Hys.
[0120] Fig. 18 is a characteristic diagram showing the relationship between the bias magnetic field MFb and the hysteresis Hys. In Fig. 18, the horizontal axis indicates the magnetic flux density Bb corresponding to the strength of the bias magnetic field MFb, and the vertical axis indicates the hysteresis Hys. It can be seen from Fig. 18 that the hysteresis Hys decreases as the strength (magnetic flux density Bb) of the bias magnetic field MFb decreases.
[0121] The error of the detection value Vs is caused by the hysteresis Hys as well as the angle error described above. The upper limit of the hysteresis Hys that allows the error of the detection value Vs is, for example, 1 mT. From FIG. 18, the magnetic flux density Bb at which the hysteresis Hys is 1 mT is 3 mT. Therefore, it is preferable that the magnetic flux density Bb corresponding to the strength of the bias magnetic field MFb is 3 mT or more.
[0122] In addition, when the strength of the bias magnetic field MFb is increased, the strength of the magnetic field component MFx must be increased in order to reduce the output fluctuation rate. In order to increase the strength of the magnetic field component MFx, for example, the gap AG must be reduced. From the viewpoint of increasing the gap AG to a certain extent, it is preferable that the magnetic flux density Bb corresponding to the strength of the bias magnetic field MFb is 40 mT or less.
[0123] The bias magnetic field MFb is generated by one or both of an external magnetic field generated by the bias magnetic field generator 50B and an anisotropic magnetic field caused by the anisotropy of the free layer 53 of the MR element 50. When the magnet pair 50C (first and second magnets 54, 55) is provided as the bias magnetic field generator 50B, the direction of the bias magnetic field MFb can be set to one direction (Y direction or -Y direction). The magnitude, i.e., offset, of each of the first and second detection signals S1, S2 when the strength of the magnetic field component MFx is 0 can differ depending on whether the magnetization direction of the free layer 53 is the Y direction or the -Y direction. In contrast, by providing the magnet pair 50C (first and second magnets 54, 55), the magnetization direction of the free layer 53 when the strength of the magnetic field component MFx is 0 can be fixed to one direction (Y direction or -Y direction). This makes it easier to correct the offset.
[0124] Furthermore, by increasing the strength of the external magnetic field by the bias magnetic field generator 50B to a certain degree, when a magnetic field in the opposite direction to the external magnetic field is applied to the MR element 50, it is possible to prevent the magnetization direction of the free layer 53 from being reversed when the strength of the magnetic field component MFx is 0, and thus the offset from fluctuating. From this viewpoint as well, it is preferable that the magnetic flux density Bb corresponding to the strength of the bias magnetic field MFb is relatively large, specifically, 3 mT or more.
[0125] Next, other effects of this embodiment will be described. In this embodiment, the multiple MR elements 50 are arranged so that the components corresponding to the 11th or lower odd-order harmonics included in the error components of each of the first and second detection signals S1, S2 are reduced. As can be seen from the results of the second simulation, the components corresponding to the 13th order harmonics included in the error components become larger as the magnetic field magnification, specifically, the strength of the magnetic field component MFx, increases. If the multiple MR elements 50 are not arranged as described above, the components corresponding to the 11th or lower odd-order harmonics also become larger as the strength of the magnetic field component MFx increases. In this case, the waveforms of the first and second detection signals S1, S2 are distorted into a rectangular wave shape. As a result, the error of the detection value Vs becomes larger.
[0126] In contrast, according to the present embodiment, by arranging the multiple MR elements 50 as described above, it is possible to increase the strength of the magnetic field component MFx while reducing the error components contained in each of the first and second detection signals S1, S2, and bring the waveforms of each of the first and second detection signals S1, S2 closer to ideal sine curves. As a result, according to the present embodiment, it is possible to reduce the error in the detection value Vs while reducing the output regulation rate.
[0127] Next, Fig. 19 and figure A lens position detection device (hereinafter, simply referred to as a position detection device) according to this embodiment will be described with reference to Fig. 19. Fig. 20 is a perspective view showing a lens module including a position detection device according to this embodiment. Fig. 20 is a perspective view showing a position detection device according to this embodiment.
[0128] The lens module 300 shown in Fig. 19 constitutes, for example, a part of a camera for a smartphone, and is used in combination with an image sensor 310 using a CMOS or the like. In the example shown in Fig. 19, the lens module 300 includes a triangular prism 302 and three lenses 303A, 303B, and 303C provided between the image sensor 310 and the prism 302. At least one of the lenses 303A, 303B, and 303C is configured to be movable by a drive device (not shown) so as to perform at least one of focusing and zooming.
[0129] 20 shows an arbitrary lens 303 among lenses 303A, 303B, and 303C. Lens module 300 further includes lens holder 304 for holding lens 303, and shaft 305. In lens module 300, the position of lens 303 can be changed in the optical axis direction of lens 303 by lens holder 304, shaft 305, and a driving device (not shown). In FIG. 20, an arrow marked with symbol D indicates the movement direction of lens 303.
[0130] The lens module 300 further includes a position detection device 301 for detecting the position of the variable position lens 303. The position detection device 301 is used to detect the position of the lens 303 when focusing or zooming.
[0131] The position detection device 301 is a magnetic position detection device, and includes the magnetic sensor system 1 according to this embodiment. In the lens module 300, the magnetic sensor 2 and the magnetic field generator 3 of the magnetic sensor system 1 are configured so that the strength of the magnetic field component MFx (see FIG. 2) changes when the position of the lens 303 changes in the moving direction D. Specifically, the magnetic sensor 2 is fixed, and the magnetic field generator 3 is configured to be movable in the moving direction D together with the lens 303. The moving direction D is parallel to the X direction shown in FIGS. 1 and 2. As a result, when the position of the lens 303 changes, the relative position of the magnetic field generator 3 with respect to the magnetic sensor 2 changes, and as a result, the strength of the magnetic field component MFx changes.
[0132] The position detection device 301 further includes a detection value generating circuit 4 (see FIG. 3) according to this embodiment. The position detection device 301 generates a detection value Vs that corresponds to the position of the lens 303, based on the first and second detection signals S1, S2 generated by the magnetic sensor 2. The position of the lens 303 corresponds to the relative position of the magnetic field generator 3 with respect to the magnetic sensor 2. The method of generating the detection value Vs in the position detection device 301 is similar to the method of generating the detection value Vs described above.
[0133] [Variations] Next, modified examples of the MR element 50 in this embodiment will be described. First, a first modified example of the MR element 50 will be described with reference to FIG. 21. In the first modified example, two of the multiple soft magnetic layers 50E are arranged at positions overlapping with the same MR element 50 when viewed from the Z direction. The two soft magnetic layers 50E are aligned in the X direction and arranged with a predetermined gap between them. One of the two soft magnetic layers 50E is located near the end of the laminated film 50A in the -X direction. The other of the two soft magnetic layers 50E is located near the end of the laminated film 50A in the -X direction. X The two soft magnetic layers 50E are located near the ends in the Y direction. The two soft magnetic layers 50E are disposed between the stacked film 50A and the magnet pair 50C (first and second magnets 54, 55). Each of the two soft magnetic layers 50E has a planar shape that is long in the Y direction.
[0134] Next, a second modification of the MR element 50 will be described with reference to FIG. 22. In the second modification, the MR element 50 includes two laminated films 50A1 and 50A2 instead of the laminated film 50A shown in FIG. 7 and FIG. 8. The configuration of each of the laminated films 50A1 and 50A2 is the same as that of the laminated film 50A. The laminated films 50A1 and 50A2 are connected in parallel by electrodes to form a laminated film pair. The laminated film pair is connected in series to the laminated film pair of another MR element 50 by electrodes. For example, the lower surface of each of the laminated films 50A1 and 50A2 is electrically connected to the lower surface of each of the laminated films 50A1 and 50A2 of the other MR element 50 by a lower electrode (not shown), and the upper surface of each of the laminated films 50A1 and 50A2 is further electrically connected to the upper surface of each of the laminated films 50A1 and 50A2 of the other MR element 50 by an upper electrode (not shown).
[0135] In the second modification, the first magnet 54 of the magnet pair 50C is located near the ends of the laminated films 50A1 and 50A2 in the -Y direction. The second magnet 55 is located near the ends of the laminated films 50A1 and 50A2 in the Y direction. The soft magnetic layer 50E is located at a position overlapping both the laminated films 50A1 and 50A2 when viewed from the Z direction.
[0136] The configurations of the MR element 50, the magnet pair 50C, and the soft magnetic layer 50E are not limited to the examples shown in FIGS. 7, 8, 21, and 22. For example, the number of laminated films included in one MR element 50 is one in the examples shown in FIGS. 7, 8, and 21, and is two in the example shown in FIG. 22. However, the number of laminated films may be three or more. Also, the number of soft magnetic layers 50E overlapping one MR element 50 is one in the examples shown in FIGS. 7, 8, and 22, and is two in the example shown in FIG. 21. However, the number of soft magnetic layers 50E may be three or more, or may be zero.
[0137] Hereinafter, a case will be described in which a plurality of laminated films are arranged along the X direction, and a plurality of soft magnetic layers 50E are arranged along the X direction. For example, when the number of laminated films is two and the number of soft magnetic layers 50E is two, the first soft magnetic layer 50E may be disposed at a position overlapping the first laminated film when viewed from the Z direction, and the second soft magnetic layer 50E may be disposed at a position overlapping the second laminated film when viewed from the Z direction.
[0138] In addition, when the number of laminated films is two and the number of soft magnetic layers 50E is three, the first soft magnetic layer 50E is disposed at a position overlapping only with the first laminated film when viewed from the Z direction, the second soft magnetic layer 50E is disposed at a position overlapping both the first and second laminated films when viewed from the Z direction, and the third soft magnetic layer 50E is disposed at a position overlapping only with the first laminated film when viewed from the Z direction. 2 It may be arranged at a position overlapping only with the second laminated film.
[0139] Also, when the number of laminated films is three and the number of soft magnetic layers 50E is two, the first soft magnetic layer 50E may be positioned at a position overlapping both the first laminated film and the second laminated film when viewed from the Z direction, and the second soft magnetic layer 50E may be positioned at a position overlapping both the second laminated film and the third laminated film when viewed from the Z direction.
[0140] Furthermore, when the number of laminated films is three and the number of soft magnetic layers 50E is four, the first soft magnetic layer 50E is disposed at a position overlapping only with the first laminated film when viewed from the Z direction, the second soft magnetic layer 50E is disposed at a position overlapping both the first laminated film and the second laminated film when viewed from the Z direction, and the third soft magnetic layer 50E is disposed at a position overlapping both the second laminated film and the third laminated film when viewed from the Z direction. 4 The third soft magnetic layer 50E may be disposed at a position overlapping only with the third stacked film when viewed from the Z direction.
[0141] The present invention is not limited to the above-mentioned embodiments, and various modifications are possible. For example, as long as the requirements of the claims are met, the shape, number, and arrangement of the MR element 50 are not limited to the examples shown in the respective embodiments, and may be arbitrary. The planar shape of the MR element 50 is not limited to a rectangle, and may be a circle, an ellipse, or the like.
[0142] Also, each resistor may have only the element groups 501 to 504 and 509 to 512 of the element groups 501 to 516 shown in Fig. 6. This makes it possible to reduce components corresponding to odd-order harmonics of the seventh order or less, which are included in the error components.
[0143] The magnetic field generator 3 may also be a rotary scale with multiple pairs of N and S poles magnetized in the direction of rotation. The rotary scale may be a ring-shaped magnet, or a magnetic medium such as a magnetic tape fixed to a ring or disk. [Explanation of symbols]
[0144] 1...magnetic sensor system, 2...magnetic sensor, 3...magnetic field generator, 4...detection value generating circuit, 10...substrate, 11-14...terminals, 50...MR element, 50A...laminated film, 50B...bias magnetic field generator, 50C...magnet pair, 50D...magnetic field amplifier, 50E...soft magnetic layer, 51...magnetization fixed layer, 52...gap layer, 53...free layer, 54...first magnet, 55...second magnet, 300...lens module, 301...position detection device, 302...prism, 303, 303A-303C...lenses, 304...lens holder, 305...shaft, 310...image sensor, 501-516...element group, MF...target magnetic field, MFb...bias magnetic field, MFx...magnetic field component.
Claims
1. a magnetic field generator for generating a target magnetic field; A magnetic sensor for detecting the target magnetic field, the magnetic sensor and the magnetic field generator are configured such that, when a relative position of the magnetic field generator with respect to the magnetic sensor changes, a strength of a magnetic field component in a first direction of the target magnetic field detected by the magnetic sensor changes; the magnetic sensor includes a plurality of magnetoresistance effect elements; Each of the plurality of magnetoresistance effect elements includes a magnetization fixed layer having a magnetization whose direction is fixed, a free layer having a magnetization whose direction is variable depending on the direction and strength of the magnetic field component, and a gap layer disposed between the magnetization fixed layer and the free layer, and is configured such that a bias magnetic field in a second direction perpendicular to the first direction is applied to the free layer, and a resistance value changes depending on the strength of the magnetic field component; A magnetic sensor system, characterized in that a maximum intensity of the magnetic field component applied to each of the plurality of magnetoresistance effect elements is 1.2 times or more the intensity of the bias magnetic field.
2. 2. The magnetic sensor system according to claim 1, wherein a maximum intensity of the magnetic field component applied to each of the plurality of magnetoresistance effect elements is equal to or less than 15.6 times the intensity of the bias magnetic field.
3. 3. The magnetic sensor system according to claim 1, wherein the bias magnetic field is due to one or both of an external magnetic field applied to the free layer from the outside and an anisotropic magnetic field resulting from the anisotropy of the free layer.
4. The magnetic sensor further includes a bias magnetic field generator that generates an external magnetic field applied to the free layer; 3. The magnetic sensor system according to claim 1, wherein the bias magnetic field is generated by at least the external magnetic field.
5. the bias magnetic field generator includes a plurality of magnet pairs, each of which includes a first magnet and a second magnet; The magnetic sensor system of claim 4, characterized in that in each of the multiple magnet pairs, the first magnet and the second magnet are arranged at a predetermined interval in the second direction so that the external magnetic field is applied to the entire free layer of at least one magnetoresistive element among the multiple magnetoresistive elements.
6. the free layer has a shape magnetic anisotropy; 3. The magnetic sensor system according to claim 1, wherein the bias magnetic field is due to at least the shape magnetic anisotropy.
7. 7. The magnetic sensor system according to claim 1, further comprising a magnetic field amplifier for amplifying the magnetic field component applied to each of the plurality of magnetoresistance effect elements.
8. 8. The magnetic sensor system according to claim 1, wherein the gap layer is a tunnel barrier layer.
9. The magnetic sensor system according to any one of claims 1 to 8, further comprising a detection value generating circuit that generates a detection value corresponding to a relative position of the magnetic field generator with respect to the magnetic sensor based on the resistance value of each of the plurality of magnetoresistance effect elements.
10. A lens position detection device for detecting a position of a lens whose position can be changed, comprising: A magnetic sensor system according to any one of claims 1 to 8, The lens is configured to be movable in the first direction; A lens position detection device, characterized in that the magnetic sensor and the magnetic field generator are configured so that the strength of the magnetic field component changes when the position of the lens changes.
11. 11. The lens position detection device according to claim 10, further comprising a detection value generating circuit that generates a detection value having a correspondence relationship with the position of the lens based on the resistance value of each of the plurality of magnetoresistive elements.
Citation Information
Patent Citations
Position detector
JP1994207834A
Magnetic sensor
JP2012122792A
Position detector
JP2015190881A
Position detector
JP2015232473A
Magnetic sensor
JP2016130686A
