Anti-interference magnetic encoder

By using parallel dual-code-channel magnetic field generators and magnetic induction unit difference processing technology in the magnetic encoder, the problem of PRBS code-channel decoding errors under external interference is solved and more accurate position detection is achieved.

CN221925158UActive Publication Date: 2024-10-29WUXI ESTHER MAGNETIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202323666280.3
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2024-10-29
Estimated Expiration
2033-12-29

AI Technical Summary

Technical Problem

It is difficult for existing magnetic encoders to accurately decode PRBS code channels under external interference magnetic fields, resulting in position detection errors or distortion.

Method used

A magnetic encoder with anti-interference is designed, using a dual-code channel magnetic field generator set in parallel. The magnetic sensor includes a first and a second magnetic induction unit, which respectively generate potentials associated with the strength of the magnetic field component, and achieve this through difference processing. Decoding of non-stationary periodic magnetic fields.

Benefits of technology

The anti-interference ability is improved, the interference rate is reduced, the accurate decoding of the PRBS code channel is ensured, and the possibility of position judgment errors is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221925158U_ABST
    Figure CN221925158U_ABST
Patent Text Reader

Abstract

The utility model relates to the technical field of encoders, in particular to an anti-interference magnetic encoder. Comprising a magnetic field generator which generates an object magnetic field containing magnetic field components in a first direction, a second direction and a third direction, the object magnetic field is a non-fixed periodic magnetic field, and the first direction, the second direction and the third direction are perpendicular to one another; a magnetic sensor configured to detect the target magnetic field in one of a first direction, a second direction, or a third direction; the magnetic sensor comprises a first magnetic induction unit and a second magnetic induction unit, and generates a first potential and a second potential corresponding to the intensity of the magnetic field component, so that the anti-interference capability of the magnetic sensor is greater than the anti-interference capability of the prior art in specific working conditions; therefore, the PRBS code channel can be decoded more accurately, so that the subsequent central processing unit is not easy to make mistakes in position judgment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of encoders, in particular to a magnetic encoder with anti-interference function. Background Art

[0002] An encoder is a measuring device used to determine the position of two relatively movable bodies (such as a magnetic field generator and a magnetic sensor) in a linear or rotational direction. It is currently widely used in the fields of civil instruments and industrial control as a displacement or angle measuring device. Encoders can be divided into incremental encoders and absolute encoders according to their functions, and can be divided into optical encoders, magnetic encoders, etc. according to the type of sensor.

[0003] like Figure 1a As shown in the prior art, the incremental code track (magnetic field generator) of a general magnetic encoder is composed of an N magnetic pole (hereinafter referred to as N pole) and an S magnetic pole (hereinafter referred to as S pole) with a fixed pole pitch of p arranged alternately (the distance between the centers of the N pole and the S pole is p, and the width of the N pole and the S pole in the relative movement direction is also p), and the amplitude curve period of the component of the magnetic field generated in a certain direction is 2p; as shown in FIG1, the magnetic sensor includes an A-phase bridge circuit composed of MR elements ( Figure 1b Left half) and B-phase bridge circuit ( Figure 1b In the right half), multiple MR elements are arranged at a distance of p / 2 in the direction of relative movement (that is, R1, R2, R3, and R4 are sequentially spaced at a distance of p / 2 in the direction of relative movement). In this way, output waveforms with a phase shift of p / 2 (90°) can be obtained from the A-phase bridge circuit and the B-phase bridge circuit, and position detection can be achieved after processing and calculating the output VA of the A-phase bridge circuit and the output VB of the B-phase bridge circuit.

[0004] Absolute encoders usually output absolute position. In the design of absolute encoders using PRBS (pseudo-random binary sequence) code channels, the N and S poles of the PRBS code channels are not arranged alternately, but are arranged according to a pseudo-random binary sequence, such as Figure 2 and 3 As shown. Therefore, the amplitude curve of the magnetic field component in any direction generated by the PRBS code channel is not a fixed periodic waveform. Figure 1a The arrangement of the sensors in the embodiment is not suitable for the PRBS code channel, and the PRBS code channel cannot be effectively decoded.

[0005] During use, the magnetic encoder may be affected by external interference magnetic fields. This interference field will cause the magnetic field sensed by the magnetic sensor to be different from the magnetic field generated by the real code channel, resulting in a large deviation in the magnetic field obtained by the magnetic sensor. For example, during position detection, it is easy to cause position errors or problems with finding the position; for the PRBS code channel, it is impossible to decode the PRBS code channel more accurately. Utility Model Content

[0006] Therefore, the utility model aims to overcome the above-mentioned problems in the prior art, thereby providing a magnetic encoder with anti-interference ability, which can decode the PRBS code channel in the absolute encoder in the presence of external magnetic field interference and obtain a relatively accurate PRBS encoding signal.

[0007] The utility model provides a magnetic encoder with anti-interference function, comprising:

[0008] A magnetic field generator generates an object magnetic field including magnetic field components in a first direction, a second direction, and a third direction, wherein the object magnetic field is a non-fixed periodic magnetic field, wherein the first direction, the second direction, and the third direction are perpendicular to each other;

[0009] a magnetic sensor configured to detect the magnetic field of the object in one of a first direction, a second direction, or a third direction;

[0010] The magnetic sensor is configured to include a first magnetic induction unit and a second magnetic induction unit, and to generate a first potential and a second potential corresponding to the intensity of the magnetic field component, respectively;

[0011] The first magnetic induction unit and the second magnetic induction unit are arranged in one of the first direction, the second direction or the third direction in such a manner that the difference between the first potential and the second potential is associated with the intensity of the magnetic field component.

[0012] Furthermore, the magnetic field generator is a dual code channel arranged in parallel, and the magnetic field generator is composed of multiple groups of N poles and S poles, wherein one of the first direction, the second direction or the third direction is the extension direction of the code channel.

[0013] Furthermore, the dual code channel is a PRBS code channel in which the N pole and the S pole are arranged according to a pseudo-random binary sequence.

[0014] Furthermore, the first magnetic induction unit and the second magnetic induction unit are respectively configured at a first position and a second position, and a connecting line between the first position and the second position is parallel to the direction.

[0015] Furthermore, the first position is a middle position of the dual code channels, and the second position is a middle position of one of the dual code channels.

[0016] Furthermore, the first position is a middle position of one of the dual code channels, and the second position is a middle position of the other of the dual code channels.

[0017] Furthermore, the magnetic sensitivity directions of the first magnetic induction unit and the second magnetic induction unit are the same and parallel to the direction of the detected magnetic field component.

[0018] Further, the first magnetic induction unit includes a first magnetic induction element and a fourth magnetic induction element, and the second magnetic induction unit includes a second magnetic induction element and a third magnetic induction element;

[0019] The first potential is a voltage value between the first magnetic induction element and the second magnetic induction element, and the second potential is a voltage value between the third magnetic induction element and the fourth magnetic induction element.

[0020] Further, the first magnetic induction unit includes a fifth magnetic induction element, and the second magnetic induction unit includes a sixth magnetic induction element;

[0021] The first potential is the voltage value between the fifth magnetic induction element and the sixth magnetic induction element, and the second potential is the reference voltage.

[0022] The technical solution of the utility model has the following advantages:

[0023] The utility model provides a magnetic encoder with anti-interference, wherein the first magnetic induction unit includes a first magnetic induction element and a fourth magnetic induction element, and the second magnetic induction unit includes a second magnetic induction element and a third magnetic induction element; wherein the first potential is the voltage value between the first magnetic induction element and the second magnetic induction element, and the second potential is the voltage value between the third magnetic induction element and the fourth magnetic induction element. The first magnetic induction unit includes a fifth magnetic induction element, and the second magnetic induction unit includes a sixth magnetic induction element; wherein the first potential is the voltage value between the fifth magnetic induction element and the sixth magnetic induction element, and the second potential is a reference voltage. In specific working conditions, the interference rate of the present application is lower than the interference rate of the prior art, that is, the anti-interference ability of the present application is greater than the anti-interference ability of the prior art, so the present application can decode the PRBS code channel more accurately, so that the subsequent central processor is less likely to make mistakes in position judgment. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the specific implementation methods of the utility model or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1a It is a schematic diagram of incremental code channel and magnetic resistance distribution in the prior art;

[0026] Figure 1b It is a schematic diagram of the circuit structure composed of magnetic resistance in the prior art;

[0027] Figure 1c It is a schematic diagram of the output waveform of the prior art;

[0028] Figure 2 This is a schematic diagram of the structure of the linear magnetic field generator of the utility model;

[0029] Figure 3 This is a schematic diagram of the structure of the disk-type magnetic field generator of the utility model.

[0030] Figure 4 A schematic diagram showing the comparison between an interfering magnetic field and a non-interfering magnetic field;

[0031] Figure 5 It is a schematic diagram of the arrangement of magnetic sensing elements of the magnetic sensor of the utility model and a schematic diagram of magnetic field components at different positions in the first direction;

[0032] Figure 6 This is a circuit diagram of the magnetic sensor of the utility model composed of four magnetic sensing elements;

[0033] Figure 7 This is a schematic diagram of a differential operation circuit of the utility model;

[0034] Figure 8 A schematic diagram comparing the anti-interference capabilities of the utility model and the prior art;

[0035] Fig. 9 It is a schematic diagram of the arrangement of magnetic sensing elements of the magnetic sensor of the utility model under the half-bridge structure and a schematic diagram of the magnetic field components at different positions in the first direction;

[0036] Fig.10 This is a circuit diagram of the utility model composed of two magnetic sensing elements of the magnetic sensor in a half-bridge structure;

[0037] Fig.11 It is a schematic diagram of the arrangement of magnetic sensing elements of the magnetic sensor of the utility model under the full-bridge structure and a side view of the magnetic field components at different positions in the first direction;

[0038] Fig.12 This is the double-channel magnetic field distribution diagram of the utility model;

[0039] Fig.13 These are the magnetic field components in three directions at the first position and the second position of the dual code channel of the utility model.

[0040] Description of reference numerals;

[0041] 1. Magnetic field generator; 2. Magnetic sensor; 3. First magnetic induction element; 4. Second magnetic induction element; 5. Third magnetic induction element; 6. Fourth magnetic induction element. DETAILED DESCRIPTION

[0042] The technical solution of the utility model will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.

[0043] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0044] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0045] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0046] Example

[0047] Magnetic encoders can be divided into absolute encoders and incremental encoders. This application is mainly aimed at absolute encoders, but it can also be used on incremental encoders. This application is mainly explained by using an absolute encoder using a PRBS code channel. The biggest advantage of using a PRBS code channel is that it can be decoded at a static position to obtain information about the absolute position or absolute angle.

[0048] Figure 1a , Figure 1b as well as Figure 1c It is a figure of the incremental encoder in the background technology.

[0049] like Figures 2 to 13 A specific embodiment of a magnetic encoder with anti-interference is shown, which comprises: a magnetic field generator 1, which generates an object magnetic field including magnetic field components in a first direction, a second direction and a third direction, wherein the object magnetic field is a non-fixed periodic magnetic field, wherein the first direction, the second direction and the third direction are perpendicular to each other; a magnetic sensor 2, which is configured to detect the object magnetic field in one of the first direction, the second direction or the third direction; if the magnetic field generator 1 is a linear type, as shown in the attached Figure 2 As shown, the X direction, Y direction and Z direction are defined. In this embodiment, the extension direction of the magnetic field generator 1 is identified as the X direction, the direction perpendicular to the X direction in the horizontal plane is identified as the Y direction, and the direction perpendicular to the XY plane is identified as the Z direction, but this embodiment is not limited to this. In this embodiment, the Z direction is set as the first direction, the Y direction is set as the second direction, and the X direction is set as the third direction. If the magnetic field generator 1 is a magnetic ring or disk type, such as Figure 3 As shown, the circumferential direction is defined as the X direction, the radial direction is defined as the Y direction, and the direction perpendicular to the XY plane is identified as the Z direction. Similarly, the Z direction is set as the first direction, the Y direction is set as the second direction, and the X direction is set as the third direction.

[0050] like Figure 4 As shown, the code channel shown is a section of the PRBS code channel. The binary code corresponding to the N pole is set to "1", and the binary code corresponding to the S pole is set to "0". When the magnetic encoder is working, when the interference field has a component in the first direction, the magnetic field component in the first direction sensed by the magnetic sensor 2 has a large deviation, which makes the comparison window invalid or partially invalid, so that the obtained binary output is distorted, resulting in an error in decoding the PRBS code channel, which causes the subsequent central processor to have a wrong position / cannot find the position when making a position judgment. Of course, the binary code corresponding to the S pole can also be set to "1" and the binary code corresponding to the N pole to "0".

[0051] The interfering magnetic field can be regarded as a constant. The present application is to read the gradient of the magnetic field at a position where the distance difference of the magnetic field in the first direction is (d2-d1), such as Figure 5 and Fig.11 As shown, this distance difference can basically provide true feedback and detection for the coding of the PRBS code channel, but for the external interfering magnetic field, the gradient magnetic field of this distance difference is very small and can be ignored.

[0052] In addition, in the gradient design of the sensor, the magnetic field signal of the PRBS code channel is a magnetic field very close to the magnetic sensor, and the external interference magnetic field is a magnetic field at a farther distance. It can be intuitively concluded from the square attenuation relationship of the magnetic field that the gradient design has a strong ability to resist external magnetic fields.

[0053] The magnetic sensor 2 is constructed to include a first magnetic induction unit and a second magnetic induction unit, and respectively generate a first potential and a second potential corresponding to the strength of the magnetic field component. The first magnetic induction unit and the second magnetic induction unit can be composed of magnetic induction elements, and the magnetic induction elements can be magnetoresistors or Hall elements, and respectively generate a first potential and a second potential corresponding to the strength of the magnetic field component; the encoding of the position on the PRBS code channel corresponding to the current position of the magnetic sensor 2 is obtained by subsequent processing of the outputs of the first potential and the second potential, thereby realizing decoding.

[0054] The first magnetic induction unit and the second magnetic induction unit are arranged in one of the first direction, the second direction or the third direction in such a way that the difference between the first potential and the second potential is associated with the strength of the magnetic field component. It should be noted that if the first magnetic induction unit and the second magnetic induction unit are arranged along the first direction, it can be considered that the connecting line of the positions of the first magnetic induction unit and the second magnetic induction unit is parallel to the first direction. The first magnetic induction unit and the second magnetic induction unit are arranged along the second direction, and similarly, it is considered that the connecting line of the positions of the first magnetic induction unit and the second magnetic induction unit is parallel to the second direction. The first magnetic induction unit and the second magnetic induction unit are arranged along the third direction, and similarly, it is considered that the connecting line of the positions of the first magnetic induction unit and the second magnetic induction unit is parallel to the third direction. Among them, under different magnetic field component strengths, the difference between the first potential and the second potential is different, and the PRBS code channel is decoded after processing and calculating the above-mentioned difference.

[0055] The magnetic field generator 1 is a dual code channel arranged in parallel, and the magnetic field generator 1 is composed of multiple groups of N poles and S poles, wherein one of the first direction, the second direction or the third direction is the extension direction of the code channel, and the dual code channel is a PRBS code channel in which the N pole and the S pole are arranged according to a pseudo-random binary sequence. At this time, the PRBS code channel has magnetic field components in the first direction, the second direction and the third direction, and has a magnetic field difference between the first position and the second position, such as Fig.12 , 13 As shown. Figure 2 The code channel shown in is a segment of the PRBS code channel, and the present embodiment is not limited thereto. Of course, an incremental code channel consisting of multiple groups of N poles and S poles arranged alternately is also applicable.

[0056] Furthermore, the first magnetic induction unit and the second magnetic induction unit are respectively arranged at a first position and a second position, and a connecting line between the first position and the second position is parallel to the direction. The first position is generally at a certain distance from the dual code channel.

[0057] Further, the first position is the middle position of the dual code channel, and the second position is the middle position of one of the dual code channels. Figure 5 , 11 At this time, the first position and the second position are one of the optimal positions, which can achieve more accurate detection.

[0058] Furthermore, the first position is the middle position of one of the dual code channels, and the second position is the middle position of the other of the dual code channels. In this case, the first position and the second position are one of the optimal positions, especially for detecting the magnetic field component in the first direction, which can achieve more accurate detection.

[0059] In this embodiment, the first magnetic induction unit and the second magnetic induction unit are configured in the second direction (that is, the Y direction) and detect the magnetic field component in the second direction. Figure 5 and Fig.11 , the first position can be attached Figure 5 The d1 position in the second position can be attached Figure 5 The d2 position in the embodiment, the first position and the second position can be considered as a position point representing a position.

[0060] Furthermore, the magnetic sensitivity directions of the first magnetic induction unit and the second magnetic induction unit are the same and parallel to the direction of the detected magnetic field component. If the magnetic field component in the first direction is detected, the magnetic sensitivity directions of the first magnetic induction unit and the second magnetic induction unit are parallel to the first direction. If the magnetic field component in the second direction is detected, the magnetic sensitivity directions of the first magnetic induction unit and the second magnetic induction unit are parallel to the second direction. If the magnetic field component in the third direction is detected, the magnetic sensitivity directions of the first magnetic induction unit and the second magnetic induction unit are parallel to the third direction. This embodiment takes the example that the first magnetic induction unit and the second magnetic induction unit are configured in the second direction (that is, the Y direction) and the magnetic sensor 2 detects the object magnetic field in the second direction, as shown in the attached figure. Figure 5 Therefore, when selecting the first magnetic induction unit and the second magnetic induction unit, the magnetic sensitivity direction is parallel to the second direction. The present application selects to detect the magnetic field of the object in the first direction, the second direction or the third direction as needed, and accordingly selects the first magnetic induction unit and the second magnetic induction unit whose magnetic sensitivity direction is consistent with the detection direction.

[0061] Further, such as Figure 5 As shown, the first magnetic induction unit includes a first magnetic induction element 3 and a fourth magnetic induction element 6, and the second magnetic induction unit includes a second magnetic induction element 4 and a third magnetic induction element 5; wherein the first potential is the voltage value between the first magnetic induction element 3 and the second magnetic induction element 4, and the second potential is the voltage value between the third magnetic induction element 5 and the fourth magnetic induction element 6. In this case, it can be considered as a full-bridge structure of this embodiment.

[0062] Assume that the distance between the first magnetic induction element 3 and the fourth magnetic induction element 6 and the XZ plane is d1, and the distance between the second magnetic induction element 4 and the third magnetic induction element 5 and the XZ plane is d2. Figure 5 is the distribution of the first magnetic induction element 3, the second magnetic induction element 4, the third magnetic induction element 5 and the fourth magnetic induction element 6, Fig.12 are the magnetic field components in the X, Y, and Z directions at the positions d1 and d2, respectively, wherein the first magnetic induction element 3, the second magnetic induction element 4, the third magnetic induction element 5, and the fourth magnetic induction element 6 can be magnetoresistors or Hall elements. It should be noted that if the Y direction is assumed to be the first direction, or the X direction is assumed to be the first direction, the derivation process is the same.

[0063] It should be noted that the magnetic sensor 2 also includes a Vcc port, a GND port, a V+ port and a V- port;

[0064] The first magnetic induction element 3 is arranged at a path connecting the Vcc port and the V- port, the second magnetic induction element 4 is arranged at a path connecting the V- port and the GND port, the third magnetic induction element 5 is arranged at a path connecting the Vcc port and the V+ port, and the fourth magnetic induction element 6 is arranged at a path connecting the V+ port and the GND port;

[0065] The potential signal of the V+ port is a first potential, and the potential signal of the V- port is a second potential. Figure 7 As shown, the magnetic sensor 2 further includes a differential operation circuit, the V+ input terminal of the differential operation circuit is connected to the V+ port, the V- input terminal of the differential operation circuit is connected to the V- port, and the output of the differential operation circuit is:

[0066] Generally, Ra=Rb=Rd, Vout=V+-V-.

[0067] Assume that the resistances of the first magnetic induction element 3 , the second magnetic induction element 4 , the third magnetic induction element 5 and the fourth magnetic induction element 6 are R1 , R2 , R3 and R4 .

[0068] In the present application, when there is an interfering magnetic field, R1, R2, R3 and R4 can be expressed as Formulas 1, 2, 3 and 4 respectively:

[0069] R1=R+S*(H1+H0)……(1)

[0070] R2=R+S*(H2+H0)……(2)

[0071] R3=R+S*(H2+H0)……(3)

[0072] R4=R+S*(H1+H0)……(4)

[0073] Wherein, R is the resistance of the first magnetic induction element 3, the second magnetic induction element 4, the third magnetic induction element 5, and the fourth magnetic induction element 6 without an external magnetic field, with the unit of ohm (Ω); H1 is the magnetic field component in the second direction of the object magnetic field at the first magnetic induction element 3 and the fourth magnetic induction element 6; H2 is the magnetic field component in the second direction of the object magnetic field at the second magnetic induction element 4 and the third magnetic induction element 5; H0 is the magnetic field component of the interference magnetic field in the second direction, with the unit of the magnetic field being gauss (Gs); S is the sensitivity coefficient of the first to fourth magnetic induction elements, with the unit of Ω / Gs.

[0074] Then: V+ = Vcc * R4 / (R3 + R4)

[0075] = Vcc * (R + S(H1 + H0)) / (R + S(H2 + H0) + R + S(H1 + H0))

[0076] = Vcc * (R + S * H1 + S * H0) / (2R + S * H2 + S * H1 + 2S * H0)

[0077] V- = Vcc * R2 / (R1 + R2)

[0078] = Vcc * (R + S * H2 + S * H0) / (2R + S * H1 + S * H2 + 2S * H0)

[0079] Wherein, H1 is greater than H2. For the convenience of calculation, H2 can be regarded as 0, which does not affect the subsequent processing results.

[0080] The output voltage of this application under the interference magnetic field is:

[0081] V1 = V+ - V- = Vcc * S * H1 / (2R + S * H1 + 2S * H0)......(5)

[0082] When there is no interference magnetic field (i.e., H0 = 0), the output voltage is:

[0083] V0 = V+ - V- = Vcc * S * H1 / (2R + S * H1)......(6)

[0084] Therefore, it can be obtained that

[0085] The interference rate of this application = |V1 - V0| / V0

[0086] = 2 * S * H0 / (2 * R + S * H1 + 2S * H0)......(7)

[0087] When decoding the existing non-fixed-period object magnetic field, four magnetoresistors are located at the same position. For comparison, it can be considered that the four magnetoresistors are placed at d1, where the magnetic field component of the object magnetic field is H1. The magnetic sensitivity directions of the first magnetic induction element 3 and the fourth magnetic induction element 6 are the same (along the positive Y-axis), and the magnetic sensitivity directions of the second magnetic induction element 4 and the third magnetic induction element 5 are the same (along the negative Y-axis) and are respectively opposite to the sensitivity directions of the first magnetic induction element 3 and the fourth magnetic induction element 6 (if the magnetic sensitivity directions are exactly the same, Vout will always be 0, which is meaningless). Therefore, it can be assumed that the resistance values of R1, R2, R3, and R4 are R1 = R4 = R + S*(H1 + H0) and R2 = R3 = R - S*(H1 + H0), respectively.

[0088] For the prior art,

[0089] V′+ = Vcc*R4 / (R3 + R4)

[0090] = Vcc*(R + S*(H1 + H0)) / (2*R)

[0091] V′- = Vcc*R2 / (R1 + R2)

[0092] = Vcc*(R - S*(H1 + H0)) / (2*R)

[0093] Therefore, the output voltage under the existing interference magnetic field is:

[0094] V2 = V′+ - V′- = Vcc*S*(H1 + H0) / R...(8)

[0095] When there is no interference magnetic field (i.e., H0 = 0), the output voltage is:

[0096] V′0 = Vcc*S*H1 / R...(9)

[0097] Therefore, it can be obtained that

[0098] Existing technology interference rate = 丨V2 - V′0丨 / V′0

[0099] = H0 / H1...(10)

[0100] Comparing the magnitudes of Formula 7 and Formula 10, it can be seen that:

[0101] When S*H1 < 2R + 2S*H0, the interference rate of this application is smaller than that of the existing technology.

[0102] In a typical application, R is usually several thousand ohms, H1 is usually zero to several hundred Gs, and H0 < H1, S is usually several Ω / Gs. Specifically, R can be set to 7500Ω, H1 to 300Gs, S to 8Ω / Gs, and H0 can be set to 0-300Gs. Figure 8 The horizontal axis is the ratio of the interference field to the signal field, that is, H0 / H1, and the vertical axis is the interference degree (interference rate). The smaller the interference degree (the smaller the interference rate), the stronger the anti-interference ability. Figure 8 The existing design in is specifically the curve corresponding to the formula 10 after the assignment; Figure 8 The present application, specifically the curve corresponding to the assigned formula 7, can be found in the attached Figure 8 It can be clearly seen that the interference level of the existing design is always greater than the interference level of the present application, that is, the anti-interference ability of the existing design is always less than the anti-interference ability of the present application.

[0103] In addition, the magnetic sensor 2 may also include a signal processing circuit, which obtains the magnitude of the magnetic field sensed by the magnetic sensor 2 based on the first potential output and the second potential output and thereby derives the encoding of the corresponding position on the PRBS code channel corresponding to the current position. The signal processing circuit may be implemented by an application-specific integrated circuit (ASIC) or a microcomputer.

[0104] It should be noted that, in other embodiments, there may be multiple magnetic sensors 2, which are arranged in sequence with a distance m along the extension direction of the code channel (m is the width of each coding area, that is, the width of each N pole and S pole along the extension direction of the code channel). Assume that there are N magnetic sensors 2, and generally N is greater than or equal to 1. Each magnetic sensor 2 obtains a potential difference, and after subsequent processing, the code "0" or "1" at the position on the PRBS code channel corresponding to the magnetic sensor 2 at the current moment is obtained, thereby obtaining a set of N-bit binary codes, thereby confirming the specific position and realizing position detection.

[0105] Further, as attached Fig. 9 and attached Fig.10 As shown, the first magnetic induction unit includes a fifth magnetic induction element 7, and the second magnetic induction unit includes a sixth magnetic induction element 8; wherein the first potential is the voltage value between the fifth magnetic induction element 7 and the sixth magnetic induction element 8, the fifth magnetic induction element 7 and the sixth magnetic induction element 8 can use magnetic resistance or Hall element, and the second potential is a reference voltage. In this case, it can be considered as a half-bridge structure of this embodiment. The derivation steps are similar to those of the full-bridge structure and will not be repeated here. It can also be proved that under the half-bridge structure, the anti-interference ability of the present application is greater than that of the prior art.

[0106] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the invention of the utility model.

Claims

1. A magnetic encoder with anti-interference, It is characterized in that include: A magnetic field generator (1) generates an object magnetic field including magnetic field components in a first direction, a second direction and a third direction, wherein the object magnetic field is a non-fixed periodic magnetic field, wherein the first direction, the second direction and the third direction are perpendicular to each other; A magnetic sensor (2) configured to detect the magnetic field of the object in one of a first direction, a second direction or a third direction; The magnetic sensor (2) is configured to include a first magnetic induction unit and a second magnetic induction unit, and to generate a first potential and a second potential corresponding to the intensity of the magnetic field component respectively; The first magnetic induction unit and the second magnetic induction unit are arranged in one of the first direction, the second direction or the third direction in such a manner that the difference between the first potential and the second potential is associated with the intensity of the magnetic field component.

2. The magnetic encoder with anti-interference according to claim 1, It is characterized in that The magnetic field generator (1) is a dual code channel arranged in parallel, and the magnetic field generator (1) is composed of multiple groups of N poles and S poles, wherein one of the first direction, the second direction or the third direction is the extension direction of the code channel.

3. The magnetic encoder with anti-interference function according to claim 2, It is characterized in that The dual code channel is a PRBS code channel in which the N pole and the S pole are arranged according to a pseudo-random binary sequence.

4. The magnetic encoder with anti-interference according to claim 1, It is characterized in that The first magnetic induction unit and the second magnetic induction unit are respectively arranged at a first position and a second position, and a connecting line between the first position and the second position is parallel to the direction.

5. The magnetic encoder with anti-interference function according to claim 4, It is characterized in that The first position is a middle position of the dual code channels, and the second position is a middle position of one of the dual code channels.

6. The magnetic encoder with anti-interference function according to claim 4, It is characterized in that The first position is a middle position of one of the dual code channels, and the second position is a middle position of the other of the dual code channels.

7. The magnetic encoder with anti-interference function according to claim 4, It is characterized in that The magnetic sensitivity directions of the first magnetic induction unit and the second magnetic induction unit are the same and parallel to the direction of the detected magnetic field component.

8. The magnetic encoder with anti-interference function according to claim 1, It is characterized in that The first magnetic induction unit comprises a first magnetic induction element (3) and a fourth magnetic induction element (6), and the second magnetic induction unit comprises a second magnetic induction element (4) and a third magnetic induction element (5); The first potential is the voltage value between the first magnetic induction element (3) and the second magnetic induction element (4), and the second potential is the voltage value between the third magnetic induction element (5) and the fourth magnetic induction element (6).

9. The magnetic encoder with anti-interference function according to claim 1, It is characterized in that The first magnetic induction unit includes a fifth magnetic induction element (7), and the second magnetic induction unit includes a sixth magnetic induction element (8); The first potential is the voltage value between the fifth magnetic induction element (7) and the sixth magnetic induction element (8), and the second potential is the reference voltage.