Anti-interference magnetic encoder

By using non-fixed periodic magnetic field and differential potential detection technology in magnetic encoder, the problem of difficult to decode PRBS code channels under external interference magnetic fields in the prior art is solved, and higher anti-interference ability and accuracy of position detection are achieved sex.

CN221945250UActive Publication Date: 2024-11-01WUXI ESTHER MAGNETIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing magnetic encoders are difficult to accurately decode the PRBS code channel under external interference magnetic fields, resulting in position detection errors or failure to find the position.

Method used

A magnetic encoder with anti-interference is designed, and a non-fixed periodic magnetic field generator and a magnetic sensor are used to configure the magnetic induction unit through the detection of magnetic field components in the first and second directions by means of the difference potential and the intensity of the magnetic field component. , realize accurate decoding of PRBS code channels.

Benefits of technology

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

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221945250U_ABST
    Figure CN221945250U_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 and a second direction, the object magnetic field is a non-fixed periodic magnetic field, and the first direction and the second direction are perpendicular to each other; a magnetic sensor configured to detect the target magnetic field in the first direction or the second direction; 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. 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 magnetic field components in a first direction and a second direction, wherein the object magnetic field is a non-fixed periodic magnetic field, wherein the first direction and the second direction are perpendicular to each other;

[0009] A magnetic sensor configured to detect a magnetic field of the object in a first direction or a second 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 or the second 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 in the first direction or the second direction.

[0012] Furthermore, the magnetic field generator is a code channel composed of multiple groups of N poles and S poles, wherein the first direction and the second direction are perpendicular to each other and perpendicular to the extension direction of the code channel.

[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, wherein a connecting line between the first position and the second position is perpendicular to an extending direction of the magnetic field generator, and the connecting line is parallel to the direction.

[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 direction of the detected magnetic field component.

[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. Alternatively, 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

[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 1cIt is a schematic diagram of the output waveform of the prior art;

[0026] Figure 2 This 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 This is a circuit diagram of the utility model composed of two magnetic sensing elements of the magnetic sensor in a half-bridge structure;

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

[0036] Description of reference numerals;

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

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

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

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

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

[0042] Example

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

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

[0045] like Figures 2 to 11 The embodiment of a magnetic encoder with anti-interference is shown in the figure, and the magnetic encoder with anti-interference comprises: a magnetic field generator 1, which generates an object magnetic field including magnetic field components in a first direction and a second direction, and the object magnetic field is a non-fixed periodic magnetic field, wherein the first direction and the second direction are perpendicular to each other; a magnetic sensor 2, which is configured to detect the object magnetic field in the first direction or the second 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 and the Y direction is set as the second 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 defined as the first direction and the Y direction is defined as the second direction.

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

[0047] 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 in the second direction (Y 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.

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

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

[0050] The first magnetic induction unit and the second magnetic induction unit are arranged in one of the first direction or the second 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 or the second direction. 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. 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.

[0051] The magnetic field generator 1 is a code channel composed of multiple groups of N poles and S poles, wherein the first direction and the second direction are perpendicular to each other and perpendicular to the extension direction of the code channel. 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. At this time, the PRBS code channel has a magnetic field component in the first direction or the second direction. 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.

[0052] Furthermore, the first magnetic induction unit and the second magnetic induction unit are respectively arranged at a first position and a second position, wherein a connecting line between the first position and the second position is perpendicular to the extension direction of the magnetic field generator (1), and the connecting line is parallel to the direction in which the magnetic field generator (1) is located. In this embodiment, the first magnetic induction unit and the second magnetic induction unit are arranged in the second direction (that is, the Y direction) and the magnetic field component in the first direction (that is, the Z direction) is detected as an example, and the connecting line between the first magnetic induction unit and the second magnetic induction unit is parallel to the second direction (that is, the Y 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 In the embodiment, the first position and the second position can be considered as a position point indicating a position. Figure 5 It can be considered as one of the best distribution modes that the first magnetic induction unit is located in the middle of the code channel in the extending direction of the first direction, and the second magnetic induction unit is located in the extending direction of the first position along the second direction.

[0053] 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. This embodiment takes the magnetic sensor 2 detecting the magnetic field of the object in the first direction as an example, 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 first direction. The present application selects to detect the first direction or the second direction of the object magnetic field according to the needs, and accordingly selects the first magnetic induction unit and the second magnetic induction unit whose magnetic sensitivity direction is consistent with the detection direction.

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

[0055] 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 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 in the Z (Y) direction at the positions d1 and d2, 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.

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

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

[0058] The potential signal of the V+ port is a first potential, and the potential signal of the V- port is a second potential. Figure 7As 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:

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

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

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

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

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

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

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

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

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

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

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

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

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

[0072] Among them, H1 is greater than H2. For the convenience of calculation, H2 can be regarded as 0 without affecting the subsequent processing results.

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

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

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

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

[0077] Therefore, it can be obtained that

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

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

[0080] 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), and R2 = R3 = R - S * (H1 + H0).

[0081] For the existing technology,

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

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

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

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

[0086] Therefore, the output voltage under the interference magnetic field in the existing technology is:

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

[0088] When the output voltage under the condition of no interfering magnetic field (i.e., H0 = 0) is:

[0089] V′0 = Vcc*S*H1 / R……(9)

[0090] Therefore, it can be obtained that

[0091] Interference rate of the prior art = 丨V2 - V′0丨 / V′0

[0092] = H0 / H1……(10)

[0093] By comparing the magnitudes of Formula 7 and Formula 10, it can be known that:

[0094] When S*H1 < 2R + 2S*H0, the interference rate of this application is smaller than that of the prior art.

[0095] 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 300Gs, and S to 8Ω / Gs. H0 is taken from 0 to 300Gs. As shown in the appendix 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. In the appendix Figure 8 The existing design, specifically the curve corresponding to Formula 10 after assignment; in the appendix Figure 8 This application, specifically the curve corresponding to Formula 7 after assignment, can be clearly seen in the appendix 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.

[0096] In addition, the magnetic sensor 2 may further include a signal processing circuit. The signal processing circuit 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 obtains the encoding at the corresponding position on the PRBS code track corresponding to the current position. The signal processing circuit can be implemented by an application-specific integrated circuit (ASIC) or a microcomputer.

[0097] It should be noted that in other embodiments, there may be multiple magnetic sensors 2, which are arranged at intervals of distance m along the extending direction of the code track (m is the width of each coding region, that is, the width of each N pole and S pole along the extending direction of the code track). Assuming there are N of them, generally N is greater than or equal to 1. Each magnetic sensor 2 obtains a potential difference. After subsequent processing, the encoding "0" or "1" at the position on the PRBS code track corresponding to the magnetic sensor 2 at the current moment is obtained, and thus a group of N-bit binary encodings can be obtained. Based on this, the specific position can be confirmed to achieve position detection.

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

[0099] 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, characterized in that: include: A magnetic field generator (1) generates an object magnetic field including magnetic field components in a first direction and a second direction, wherein the object magnetic field is a non-fixed periodic magnetic field, wherein the first direction and the second direction are perpendicular to each other; A magnetic sensor (2) configured to detect a magnetic field of the object in a first direction or a second 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 or the second 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 in the first direction or the second direction.

2. The magnetic encoder with anti-interference according to claim 1, characterized in that: The magnetic field generator (1) is a code channel composed of multiple groups of N poles and S poles, wherein the first direction and the second direction are perpendicular to each other and perpendicular to the extension direction of the code channel.

3. The magnetic encoder with anti-interference according to claim 2, 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 function according to claim 1, 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, wherein a connecting line between the first position and the second position is perpendicular to the extension direction of the magnetic field generator (1), and the connecting line is parallel to the direction.

5. The magnetic encoder with anti-interference function according to claim 4, 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.

6. The magnetic encoder with anti-interference function according to claim 1, 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, 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.