Anti-interference magnetic encoder

By using multiple sets of PRBS code channels with N poles and S poles arranged in a pseudo-random binary sequence in a magnetic encoder, and configuring a magnetic induction unit to generate associated potential differences, the existing technology solves the problem of PRBS code channels under external interference. It solves the problem of inaccurate decoding and achieves higher anti-interference ability and position detection accuracy.

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

Patent Information

Application Number
CN202323662908.2
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2024-10-18
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 inability to find the position.

Method used

An anti-interference magnetic encoder is designed, which uses multiple sets of PRBS code channels with N poles and S poles arranged in a pseudo-random binary sequence, and configures the first magnetic induction unit and the second magnetic induction unit between the magnetic field generator and the sensor. , generating potential differences associated with the intensity of magnetic field components to achieve decoding of non-fixed periodic magnetic fields.

Benefits of technology

The anti-interference ability is significantly improved, the interference rate is reduced, the PRBS code channel can be decoded more accurately under external interference magnetic fields, and the error rate of the central processor in position judgment is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221859588U_ABST
    Figure CN221859588U_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 for generating an object magnetic field containing a magnetic field component in a first direction, and the object magnetic field is a non-fixed periodic magnetic field; a magnetic sensor configured to detect the target magnetic field; 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, respectively; the first magnetic induction unit and the second magnetic induction unit are arranged in the first direction in such a manner that the difference between the first potential and the second potential is associated with the magnetic field component intensity in the first direction. According to the invention, the anti-interference capability of the method is higher than that of the prior art in specific working conditions, so that the method can decode the PRBS code channel more accurately, and the subsequent central processing unit is not liable to make mistakes during 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 a magnetic field component in a first direction, wherein the object magnetic field is a non-fixed periodic magnetic field;

[0009] a magnetic sensor configured to detect a magnetic field of the object;

[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 the first direction in such a way that the difference between the first potential and the second potential is associated with the intensity of the magnetic field component in the first direction.

[0012] Furthermore, the magnetic field generator is a code channel composed of multiple groups of N poles and S poles.

[0013] Furthermore, the 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 in the first direction, wherein the first position is located between the magnetic field generator and the second position, and when observed from the first direction, the first position and the second position overlap.

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

[0016] 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;

[0017] 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.

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

[0019] 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.

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

[0021] 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. Or 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. It can be made that 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 not prone to errors in position judgment. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] 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.

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

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

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

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

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

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

[0029] 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;

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

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

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

[0033] 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;

[0034] Fig.10 The utility model is a circuit diagram consisting of two magnetic sensing elements of a magnetic sensor in a half-bridge structure.

[0035] Description of reference numerals;

[0036] 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

[0037] 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.

[0038] 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.

[0039] 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.

[0040] 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.

[0041] Example

[0042] 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.

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

[0044] like Figures 2 to 10 A specific embodiment of a magnetic encoder with anti-interference is shown, and the magnetic encoder with anti-interference includes: a magnetic field generator 1 and a magnetic sensor 2, wherein the magnetic field generator 1 generates an object magnetic field including a magnetic field component in a first direction, and the object magnetic field is a non-fixed periodic magnetic field, and the magnetic sensor 2 is configured to detect the object magnetic field, that is, to detect the magnetic field component in the first direction; if the magnetic field generator 1 is a linear type, as shown in the attached Figure 2As 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. 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.

[0045] 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".

[0046] 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 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.

[0047] 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.

[0048] 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.

[0049] The first magnetic induction unit and the second magnetic induction unit are arranged in the first 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 in the first direction. The difference between the first potential and the second potential is different under different magnetic field component strengths, and the PRBS code channel is decoded after processing and calculating the difference.

[0050] The magnetic field generator 1 is a code channel composed of multiple groups of N poles and S poles. The code channel is a PRBS code channel in which the N poles and S poles are arranged according to a pseudo-random binary sequence. 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.

[0051] Further, the first magnetic induction unit and the second magnetic induction unit are respectively arranged at a first position and a second position in the first direction, wherein the first position is located between the magnetic field generator 1 and the second position, and when observed from the first direction, the first position and the second position coincide, wherein the first position may 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.

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

[0053] 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.

[0054] Assume that the distance between the first magnetic induction element 3 and the fourth magnetic induction element 6 and the XY plane is d1, and the distance between the second magnetic induction element 4 and the third magnetic induction element 5 and the XY plane is d2. Figure 5 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 and the magnetic field components at the distances d1 and d2 from the XY plane in the Z direction, 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 adopt magnetoresistance or Hall elements.

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

[0056] 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;

[0057] 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:

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

[0059] 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 .

[0060] 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:

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

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

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

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

[0065] Among them, 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 when there is no external magnetic field, and the unit is ohm (Ω), H1 is the first direction magnetic field component of the object magnetic field at the first magnetic induction element 3 and the fourth magnetic induction element 6, H2 is the first direction magnetic field component 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 interfering magnetic field in the first direction, the unit of magnetic field is Gauss (Gs), and S is the sensitivity coefficient of the first to fourth magnetic induction elements, and the unit is Ω / Gs.

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

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

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

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

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

[0071] 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.

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

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

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

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

[0076] Therefore, it can be obtained that

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

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

[0079] When decoding the existing object magnetic field with non-fixed period, the four magnetoresistors are located at the same position. And 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, and the magnetic sensitive directions of the first magnetic induction element 3 and the fourth magnetic induction element 6 are the same (along the positive direction of the Z axis), the magnetic sensitive directions of the second magnetic induction element 4 and the third magnetic induction element 5 are the same (along the negative direction of the Z 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 sensitive directions are completely 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), R2 = R3 = R - S * (H1 + H0).

[0080] For the prior art,

[0081] V'+ = Vcc * R4 / (R3 + R4)

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

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

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

[0085] Therefore, the output voltage under the existing technology with an interfering magnetic field is:

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

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

[0088] V'0 = Vcc * S * H1 / R...(9)

[0089] Therefore, it can be obtained that

[0090] Existing technology interference rate = |V2 - V'0| / V'0

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

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

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

[0094] In typical applications, R is generally several thousand ohms, H1 is generally from zero to several hundred Gs, and H0 < H1. S is generally several Ω / Gs. Specifically, R can be set to 7500 Ω, H1 to 300 Gs, and S to 8 Ω / Gs, and H0 is taken from 0 to 300 Gs. As shown in the attached Figure 8 , the horizontal axis is the ratio of the interference field to the signal field, i.e., H0 / H1, and the vertical axis is the degree of interference (interference rate). The smaller the degree of interference (the smaller the interference rate), the stronger the anti-interference ability. The attached Figure 8 shows the existing design, specifically the curve corresponding to Formula 10 after assignment; the attached Figure 8 shows this application, specifically the curve corresponding to Formula 7 after assignment. It can be clearly seen from the attached Figure 8 that the degree of interference of the existing design is always greater than that of this application, that is, the anti-interference ability of the existing design is always less than that of this application.

[0095] 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.

[0096] 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.

[0097] 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.

[0098] 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 a magnetic field component in a first direction, wherein the object magnetic field is a non-fixed periodic magnetic field; A magnetic sensor (2) configured to detect the magnetic field of the object; 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 the first direction in such a way that the difference between the first potential and the second potential is associated with the intensity of the magnetic field component in the first direction.

2. The magnetic encoder with anti-interference according to claim 1, It is characterized in that The magnetic field generator (1) is a code channel composed of multiple groups of N poles and S poles.

3. The magnetic encoder with anti-interference function according to claim 2, It is characterized in that The 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 in the first direction, wherein the first position is located between the magnetic field generator (1) and the second position, and when observed from the first direction, the first position and the second position overlap.

5. 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 first direction.

6. 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).

7. 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.