Encoder protection circuit and encoder

The encoder protection circuit, composed of MOSFETs and control chips, achieves reverse connection protection and monitoring protection, solving the problems of high voltage drop and high power consumption in existing technologies. It ensures stable operation of the encoder in long-distance power supply environments and has feedback monitoring functions.

CN223978424UActive Publication Date: 2026-03-06BEIJING A&E TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202520205295.X
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2025-02-10
Publication Date
2026-03-06
Estimated Expiration
2035-02-10

AI Technical Summary

Technical Problem

The existing reverse connection protection scheme in encoder protection circuits has the problems of large voltage drop and high power consumption, resulting in insufficient power supply to the encoder.

Method used

The protection circuit, composed of MOSFETs and a control chip, uses dual-loop control with voltage and current feedback to achieve reverse connection protection and monitoring of the encoder. The MOSFETs are used as switches to control the circuit's on and off states, and the control chip provides real-time monitoring and feedback of voltage and current.

Benefits of technology

It effectively prevents encoder reverse connection, reduces voltage drop loss, ensures stable operation of the encoder in long-distance power supply environments, has feedback monitoring function, and adapts to different power consumption requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223978424U_ABST
    Figure CN223978424U_ABST
Patent Text Reader

Abstract

The utility model discloses an encoder protection circuit and an encoder, which are applied to the field of encoder design. Wherein the grid electrode of the MOS tube is connected with the first end of the control chip and the first end of the first resistor; the source electrode of the MOS tube is connected with the negative electrode of the power supply and the second end of the first resistor; the drain electrode of the MOS tube is connected with the negative electrode of the encoder and the first end of the second resistor; the second end of the second resistor is connected with the second end of the control chip and the first end of the third resistor; the second end of the third resistor is connected with the anode of the power supply and the anode of the encoder. It can be seen that the first end of the control chip sends the break-over voltage to the MOS tube, then the second end of the control chip obtains the current voltage and judges the voltage, and therefore the voltage at the first end of the control chip is controlled to achieve voltage feedback of the circuit. Therefore, the encoder protection circuit provided by the utility model has the function of feedback monitoring protection besides the function of reverse connection prevention.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This utility model relates to the field of encoder design, and in particular to an encoder protection circuit and an encoder. Background Technology

[0002] With the continuous development of power electronics technology, AC servo control technology is being used more and more widely. In servo control technology, speed and position control involves encoders. Encoders are generally mounted on the motor and powered by a power supply, making it easy for the positive and negative terminals of the power supply to be reversed. Reversing the power supply terminals can easily cause damage to the encoder and even render the motor unusable.

[0003] Currently, reverse connection protection for encoders is typically achieved using either a unidirectional diode or a rectifier bridge connected in series, or a transistor operating in its linear region connected in series. However, the unidirectional diode or rectifier bridge connection method results in a voltage drop of 0.3-0.6V or 0.6-1.4V, which is relatively large and can easily lead to insufficient power supply voltage for encoders over long distances. The transistor connection method, which uses a transistor operating in its linear region, suffers from high power dissipation, making the transistor prone to burning out. Furthermore, the relatively large voltage drop across the transistor's Vce phase can also cause insufficient power supply voltage for encoders over long distances.

[0004] In view of the above-mentioned technology, finding an encoder protection circuit is a problem that urgently needs to be solved by those skilled in the art. Utility Model Content

[0005] The purpose of this invention is to provide an encoder protection circuit and an encoder. This solves the problem in existing technologies where reverse connection protection is implemented, but this results in a large voltage drop and insufficient power supply to the encoder.

[0006] To solve the above-mentioned technical problems, this utility model provides an encoder protection circuit, including: a control chip, a MOSFET, a first resistor, a second resistor, and a third resistor;

[0007] The gate of the MOSFET is connected to the first terminal of the control chip, and the gate of the MOSFET is connected to the first terminal of the first resistor; the source of the MOSFET is connected to the negative terminal of the power supply, and the source of the MOSFET is connected to the second terminal of the first resistor; the drain of the MOSFET is connected to the negative terminal of the encoder, and the drain of the MOSFET is connected to the first terminal of the second resistor.

[0008] The second terminal of the second resistor is connected to the second terminal of the control chip;

[0009] The first end of the third resistor is connected to the second end of the control chip, and the first end of the third resistor is connected to the second end of the second resistor; the second end of the third resistor is connected to the positive terminal of the power supply, and the second end of the third resistor is connected to the positive terminal of the encoder.

[0010] Preferably, it further includes: a comparator and a fourth resistor;

[0011] The non-inverting input of the comparator is connected to the second terminal of the first resistor and the source of the MOSFET, and the non-inverting input of the comparator is connected to the first terminal of the fourth resistor; the inverting input of the comparator is connected to the negative terminal of the power supply; and the output of the comparator is connected to the third terminal of the control chip.

[0012] Preferably, it further includes: a fifth resistor and a first capacitor;

[0013] The first terminal of the fifth resistor is connected to the non-inverting input terminal of the comparator; the second terminal of the fifth resistor is connected to the source of the MOSFET and the second terminal of the first resistor; and the second terminal of the fifth resistor is connected to the first terminal of the fourth resistor.

[0014] The first terminal of the first capacitor is connected to the non-inverting input of the comparator, and the first terminal of the first capacitor is connected to the first terminal of the fifth resistor; the second terminal of the first capacitor is connected to the negative terminal of the power supply, and the second terminal of the first capacitor is connected to the second terminal of the fourth resistor.

[0015] Preferably, it further includes: a sixth resistor and a seventh resistor;

[0016] The first end of the sixth resistor is connected to the first pin of the comparator, and the first end of the sixth resistor is connected to the positive terminal of the power supply; the second end of the sixth resistor is connected to the output of the comparator and the third end of the control chip.

[0017] The first terminal of the seventh resistor is connected to the output terminal of the comparator and the third terminal of the control chip, and the first terminal of the seventh resistor is connected to the second terminal of the sixth resistor; the second terminal of the seventh resistor is connected to the second pin terminal of the comparator and the third terminal of the control chip, and the second terminal of the seventh resistor is grounded.

[0018] Preferably, it further includes: an eighth resistor and a second capacitor;

[0019] The first terminal of the eighth resistor is connected to the output terminal of the comparator, and the first terminal of the eighth resistor is connected to the second terminal of the sixth resistor and the first terminal of the seventh resistor; the second terminal of the eighth resistor is connected to the third terminal of the control chip.

[0020] The first terminal of the second capacitor is connected to the third terminal of the control chip, and the first terminal of the second capacitor is connected to the second terminal of the eighth resistor; the second terminal of the second capacitor is connected to the second pin of the comparator and the second terminal of the seventh resistor, and the second terminal of the second capacitor is grounded.

[0021] Preferably, it further includes: a third capacitor;

[0022] The first terminal of the third capacitor is connected to the first terminal of the sixth resistor and the first pin of the comparator, and the first terminal of the third capacitor is connected to the positive terminal of the power supply; the second terminal of the third capacitor is grounded.

[0023] Preferably, it further includes: a ninth resistor and a tenth resistor;

[0024] Among them, the first end of the ninth resistor is connected to the first end of the fourth resistor, and the first end of the ninth resistor is connected to the negative terminal of the power supply; the second end of the ninth resistor is connected to the inverting input terminal of the comparator.

[0025] The first terminal of the tenth resistor is connected to the inverting input of the comparator, and the first terminal of the tenth resistor is connected to the second terminal of the ninth resistor; the second terminal of the tenth resistor is connected to the positive terminal of the power supply.

[0026] Preferably, it further includes: an eleventh resistor;

[0027] Among them, the first end of the eleventh resistor is connected to the second end of the tenth resistor; the second end of the eleventh resistor is connected to the positive terminal of the power supply.

[0028] Preferably, it further includes: a voltage regulator diode;

[0029] The first terminal of the Zener diode is connected to the first terminal of the fourth resistor and the negative terminal of the power supply, and the first terminal of the Zener diode is connected to the first terminal of the ninth resistor; the second terminal of the Zener diode is connected to the inverting input terminal of the comparator, and the second terminal of the Zener diode is connected to the second terminal of the ninth resistor and the first terminal of the tenth resistor.

[0030] On the other hand, this application also provides an encoder, including the encoder protection circuit described above.

[0031] This utility model provides an encoder protection circuit, comprising: a control chip, a MOSFET, a first resistor, a second resistor, and a third resistor; wherein, the gate of the MOSFET is connected to a first terminal of the control chip, and the gate of the MOSFET is connected to a first terminal of the first resistor; the source of the MOSFET is connected to the negative terminal of the power supply, and the source of the MOSFET is connected to a second terminal of the first resistor; the drain of the MOSFET is connected to the negative terminal of the encoder, and the drain of the MOSFET is connected to a first terminal of the second resistor; the second terminal of the second resistor is connected to a second terminal of the control chip; the first terminal of the third resistor is connected to a second terminal of the control chip, and the first terminal of the third resistor is connected to a second terminal of the second resistor; the second terminal of the third resistor is connected to the positive terminal of the power supply, and the second terminal of the third resistor is connected to the positive terminal of the encoder. Therefore, this application uses the MOSFET as a switch to realize the circuit's on and off states. When the positive and negative terminals of the power supply are normally connected to the positive and negative terminals of the encoder, the circuit is on; when the positive and negative terminals of the power supply are abnormally connected to the positive and negative terminals of the encoder, the circuit is off. Furthermore, in the encoder protection circuit provided in this application, the first terminal of the control chip sends a conduction voltage to the MOSFET, while the second terminal of the control chip acquires the current voltage and judges it, thereby controlling the voltage value at the first terminal of the control chip to achieve voltage feedback of the encoder protection circuit. Therefore, the encoder protection circuit provided in this application, in addition to having reverse connection protection, also has feedback monitoring protection functionality. Attached Figure Description

[0032] To more clearly illustrate the embodiments of this utility model, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this utility model. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0033] Figure 1 A circuit diagram of an encoder protection circuit provided in an embodiment of this application;

[0034] Figure 2 A first circuit diagram of the complete encoder protection circuit provided in the embodiments of this application;

[0035] Figure 3 A second circuit diagram of the complete encoder protection circuit provided in the embodiments of this application;

[0036] Figure 4 A third circuit diagram of a complete encoder protection circuit provided for embodiments of this application. Detailed Implementation

[0037] The technical solutions of the present utility model will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present utility model, and not all embodiments. Based on the embodiments of the present utility model, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present utility model.

[0038] The core of this invention is to provide an encoder protection circuit and an encoder.

[0039] To enable those skilled in the art to better understand the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0040] Figure 1 A circuit diagram of an encoder protection circuit provided in this application embodiment includes: a control chip, a MOSFET Q1, a first resistor R1, a second resistor R2, and a third resistor R3, wherein the MOSFET Q1 is an N-type MOSFET. In this circuit, the MOSFET Q1, the first resistor R1, and the second resistor R2 constitute a voltage feedback circuit. The circuit connections are as follows: the gate of MOSFET Q1 is connected to the first terminal I / O-1 of the control chip, and the gate of MOSFET Q1 is connected to the first terminal of the first resistor R1; the source of MOSFET Q1 is connected to the negative terminal GND of the power supply, and the source of MOSFET Q1 is connected to the second terminal of the first resistor R1; the drain of MOSFET Q1 is connected to the negative terminal BMQ- of the encoder, and the drain of MOSFET Q1 is connected to the first terminal of the second resistor R2; the second terminal of the second resistor R2 is connected to the second terminal I / O-2 of the control chip; the first terminal of the third resistor R3 is connected to the second terminal I / O-2 of the control chip, and the first terminal of the third resistor R3 is connected to the second terminal of the second resistor R2; the second terminal of the third resistor R3 is connected to the positive terminal VCC of the power supply, and the second terminal of the third resistor R3 is connected to the positive terminal BMQ+ of the encoder.

[0041] In a specific embodiment, the circuit principle is as follows: After loading, the control chip sends a voltage to the MOSFET Q1 through its first I / O-1 terminal to control Q1's conduction. If a high-level signal is detected at the second I / O-1 terminal of the control chip at this time (a low level indicates a fault signal), then the circuit is normal, and MOSFET Q1 remains on. When an internal short circuit occurs in the encoder, the voltage between BMQ+ and BMQ- decreases. Therefore, by proportionally selecting the second resistor R2 and the third resistor R3 and controlling the current flowing through them, the encoder's power supply voltage status can be monitored and transmitted to the control chip through its second I / O-2 terminal for logical judgment, thereby controlling the voltage at the first I / O-1 terminal of the control chip. The ratio between the second resistor R2 and the third resistor R3 can be set according to user needs, as long as the signal monitored by the second I / O-1 terminal of the control chip is lower than the conduction voltage sent to the MOSFET Q1 by the first I / O-1 terminal of the control chip. The first resistor R1 is used to ensure the normal operation of the MOSFET Q1.

[0042] In one preferred embodiment, the first terminal I / O-1 of the control chip first outputs a voltage of 3.3V to the MOSFET Q1. The turn-on threshold voltage of the MOSFET Q1 is 2.5V, and the MOSFET Q1 is an N-type MOSFET.

[0043] This utility model provides an encoder protection circuit, comprising: a control chip, a MOSFET, a first resistor, a second resistor, and a third resistor; wherein, the gate of the MOSFET is connected to a first terminal of the control chip, and the gate of the MOSFET is connected to a first terminal of the first resistor; the source of the MOSFET is connected to the negative terminal of the power supply, and the source of the MOSFET is connected to a second terminal of the first resistor; the drain of the MOSFET is connected to the negative terminal of the encoder, and the drain of the MOSFET is connected to a first terminal of the second resistor; the second terminal of the second resistor is connected to a second terminal of the control chip; the first terminal of the third resistor is connected to a second terminal of the control chip, and the first terminal of the third resistor is connected to a second terminal of the second resistor; the second terminal of the third resistor is connected to the positive terminal of the power supply, and the second terminal of the third resistor is connected to the positive terminal of the encoder. Therefore, this application uses the MOSFET as a switch to realize the circuit's on and off states. When the positive and negative terminals of the power supply are normally connected to the positive and negative terminals of the encoder, the circuit is on; when the positive and negative terminals of the power supply are abnormally connected to the positive and negative terminals of the encoder, the circuit is off. Furthermore, in the encoder protection circuit provided in this application, the first terminal of the control chip sends a conduction voltage to the MOSFET, while the second terminal of the control chip acquires the current voltage and judges it, thereby controlling the voltage value at the first terminal of the control chip to achieve voltage feedback of the encoder protection circuit. Therefore, the encoder protection circuit provided in this application, in addition to having reverse connection protection, also has feedback monitoring protection functionality.

[0044] Figure 2 The first circuit diagram of the complete encoder protection circuit provided in this application embodiment includes, in addition to: a control chip, a MOSFET Q1, a first resistor R1, a second resistor R2, and a third resistor R3, a fourth resistor R4, a comparator U1, a fifth resistor R5, a first capacitor C1, a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, a second capacitor C2, and a third capacitor C3. In this structure, the control chip, MOSFET Q1, first resistor R1, second resistor R2, and third resistor R3 constitute a voltage feedback circuit, while the fourth resistor R4, comparator U1, fifth resistor R5, first capacitor C1, sixth resistor R6, seventh resistor R7, eighth resistor R8, second capacitor C2, and third capacitor C3 constitute a current feedback circuit.

[0045] The specific circuit connections are as follows: the first terminal of the fifth resistor R5 is connected to the non-inverting input of comparator U1; the second terminal of the fifth resistor R5 is connected to the source of MOSFET Q1 and the second terminal of the first resistor R1, and the second terminal of the fifth resistor R5 is connected to the first terminal of the fourth resistor R4; the first terminal of the first capacitor C1 is connected to the non-inverting input of comparator U1, and the first terminal of the first capacitor C1 is connected to the first terminal of the fifth resistor R5; the second terminal of the first capacitor C1 is connected to the negative power supply GND, and the second terminal of the first capacitor C1 is connected to the second terminal of the fourth resistor R4; the first terminal of the sixth resistor R6 is connected to the first pin of comparator U1, and the first terminal of the sixth resistor R6 is connected to the positive power supply VCC; the second terminal of the sixth resistor R6 is connected to the output of comparator U1; the first terminal of the seventh resistor R7 is connected to the output of comparator U1, and the first terminal of the seventh resistor R7 is connected to the second terminal of the sixth resistor R6; The second terminal of resistor R7 is connected to the second pin of comparator U1 and the third terminal I / O-3 of the control chip, and the second terminal of resistor R7 is grounded; the first terminal of resistor R8 is connected to the output of comparator U1, and the first terminal of resistor R8 is connected to the second terminal of resistor R6 and the first terminal of resistor R7; the second terminal of resistor R8 is connected to the third terminal I / O-3 of the control chip; the first terminal of capacitor C2 is connected to the third terminal I / O-3 of the control chip, and the first terminal of capacitor C2 is connected to the second terminal of resistor R8; the second terminal of capacitor C2 is connected to the second pin of comparator U1 and the second terminal of resistor R7, and the second terminal of capacitor C2 is grounded; the first terminal of capacitor C3 is connected to the first terminal of resistor R6 and the first pin of comparator U1, and the first terminal of capacitor C3 is connected to the positive power supply VCC; the second terminal of capacitor C3 is grounded.

[0046] Among them, Figure 2In the circuit shown, the current feedback circuit works as follows: when the current across the fourth resistor R4 reaches a certain value, a voltage drop is formed across R4. This voltage drop is transmitted to the non-inverting input of comparator U1 through the RC low-pass filter circuit formed by the fifth resistor R5 and the first capacitor C1. The voltage is compared with the voltage at the inverting input of comparator U1 at this time. The output signal of comparator U1 is then input to the control chip for logic determination through the RC low-pass filter circuit formed by the eighth resistor R8 and the second capacitor C2. The ratio of the sixth resistor R6 to the seventh resistor R7 needs to be set to prevent the output signal voltage of comparator U1 from exceeding 3.3V.

[0047] Figure 3 The second circuit diagram of the complete encoder protection circuit provided in the embodiments of this application includes a ninth resistor R9, a tenth resistor R10, an eleventh resistor R11, and a Zener diode D. The circuit connections are as follows: the first terminal of the ninth resistor R9 is connected to the first terminal of the fourth resistor R4, and the first terminal of the ninth resistor R9 is connected to the negative power supply GND; the second terminal of the ninth resistor R9 is connected to the inverting input terminal of comparator U1; the first terminal of the tenth resistor R10 is connected to the inverting input terminal of comparator U1, and the first terminal of the tenth resistor R10 is connected to the second terminal of the ninth resistor R9; the second terminal of the tenth resistor R10 is connected to the positive power supply VCC; the first terminal of the eleventh resistor R11 is connected to the second terminal of the tenth resistor R10; the second terminal of the eleventh resistor R11 is connected to the positive power supply VCC; the first terminal of the Zener diode D is connected to the first terminal of the fourth resistor R4 and the negative power supply GND, and the first terminal of the Zener diode D is connected to the first terminal of the ninth resistor R9; the second terminal of the Zener diode D is connected to the inverting input terminal of comparator U1, and the second terminal of the Zener diode D is connected to the second terminal of the ninth resistor R9 and the first terminal of the tenth resistor R10.

[0048] Among them, the ninth resistor R9, the tenth resistor R10 and the eleventh resistor R11 form a voltage divider circuit to set the threshold for the inverting input of comparator U1, while the Zener diode D can be selected to set a threshold value.

[0049] Will Figure 2 and Figure 3 By combining the circuits shown, we can obtain... Figure 4 ,That Figure 4 This is a third circuit diagram of a complete encoder protection circuit provided for embodiments of this application. Figure 4The voltage feedback principle in the circuit shown is as follows: After the control chip completes loading, it first sends a voltage to the MOSFET Q1 through its first terminal I / O-1 to control Q1's conduction. If a high-level signal is detected at the second terminal I / O-1 of the control chip at this time (a low level indicates a fault signal), then the circuit is normal, and MOSFET Q1 will remain on. When an internal short circuit occurs in the encoder, the voltage between BMQ+ and BMQ- will decrease. Therefore, by proportionally selecting the second resistor R2 and the third resistor R3 and controlling the current flowing through them, the encoder's power supply voltage status can be monitored. This data is then transmitted to the control chip through its second terminal I / O-2 for logical judgment, thereby controlling the voltage at the first terminal I / O-1 of the control chip. The function of the first resistor R1 is to ensure the normal operation of MOSFET Q1.

[0050] That Figure 4 The current feedback principle in the circuit shown is as follows: When the current flowing through the fourth resistor R4 reaches a certain value, a voltage drop is formed across R4. This voltage drop is transmitted to the non-inverting input of comparator U1 through the RC low-pass filter circuit formed by the fifth resistor R5 and the first capacitor C1. The inverting input of comparator U1 is then connected to a voltage divider circuit formed by the ninth resistor R9, the tenth resistor R10, and the eleventh resistor R11 to set a threshold. The output signal of comparator U1 is input to the third terminal I / O-3 of the control chip for logic determination through the RC low-pass filter circuit formed by the eighth resistor R8 and the second capacitor C2. The sixth resistor R6 and the seventh resistor R7 primarily ensure that the output signal voltage of comparator U1 is lower than the turn-on voltage sent to the MOSFET Q1 by the first terminal I / O-1 of the control chip. The result of the logic determination at the third terminal I / O-3 of the control chip is also used to control the voltage at the first terminal I / O-1 of the control chip.

[0051] Therefore, in summary, the encoder protection circuit provided in this application uses the control logic of the control chip for protection. The protection mechanism is fast, and the dual-loop (voltage feedback and current feedback) control is more complete, safe and effective. It can effectively protect the encoder circuit with low loop voltage drop loss, meet the power supply requirements of long-distance encoders, and set the current threshold of the encoder to meet the needs of encoders with different power consumption.

[0052] On the other hand, this application also provides an encoder that includes the encoder protection circuit described above and has the same beneficial effects. The embodiment of the encoder is the same as the embodiment of the reverse connection protection circuit described above, and will not be described in detail here.

[0053] The encoder protection circuit and encoder provided by this utility model have been described in detail above. The various embodiments in the specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make several improvements and modifications to this utility model without departing from the principle of this utility model, and these improvements and modifications also fall within the protection scope of the claims of this utility model.

[0054] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

Claims

1. An encoder protection circuit, characterized by Comprise: Control chip, MOS tube, first resistance, second resistance and third resistance; Wherein, the gate of the MOS tube is connected with the first end of the control chip, and the gate of the MOS tube is connected with the first end of the first resistance; the source of the MOS tube is connected with the negative electrode of the power supply, and the source of the MOS tube is connected with the second end of the first resistance; the drain of the MOS tube is connected with the negative electrode of the encoder, and the drain of the MOS tube is connected with the first end of the second resistance; The second end of the second resistance is connected with the second end of the control chip; The first end of the third resistance is connected with the second end of the control chip, and the first end of the third resistance is connected with the second end of the second resistance; the second end of the third resistance is connected with the positive electrode of the power supply, and the second end of the third resistance is connected with the positive electrode of the encoder.

2. The encoder protection circuit of claim 1, wherein, Also include: Comparator and fourth resistance; Wherein, the noninverting input terminal of the comparator is connected with the second end of the first resistance and the source of the MOS tube, and the noninverting input terminal of the comparator is connected with the first end of the fourth resistance; the inverting input terminal of the comparator is connected with the negative electrode of the power supply; the output terminal of the comparator is connected with the third end of the control chip.

3. The encoder protection circuit of claim 2, wherein, Also include: Fifth resistance and first capacitor; Wherein, the first end of the fifth resistance is connected with the noninverting input terminal of the comparator; the second end of the fifth resistance is connected with the source of the MOS tube and the second end of the first resistance, and the second end of the fifth resistance is connected with the first end of the fourth resistance; The first end of the first capacitor is connected with the noninverting input terminal of the comparator, and the first end of the first capacitor is connected with the first end of the fifth resistance; the second end of the first capacitor is connected with the negative electrode of the power supply, and the second end of the first capacitor is connected with the second end of the fourth resistance.

4. The encoder protection circuit of claim 3, wherein, Also include: Sixth resistance and seventh resistance; Wherein, the first end of the sixth resistance is connected with the first pin end of the comparator, and the first end of the sixth resistance is connected with the positive electrode of the power supply; the second end of the sixth resistance is connected with the output terminal of the comparator and the third end of the control chip; The first end of the seventh resistance is connected with the output terminal of the comparator and the third end of the control chip, and the first end of the seventh resistance is connected with the second end of the sixth resistance; the second end of the seventh resistance is connected with the second pin end of the comparator and the third end of the control chip, and the second end of the seventh resistance is grounded.

5. The encoder protection circuit of claim 4, wherein, Also include: Eighth resistance and second capacitor; Wherein, the first end of the eighth resistance is connected with the output terminal of the comparator, and the first end of the eighth resistance is connected with the second end of the sixth resistance and the first end of the seventh resistance; the second end of the eighth resistance is connected with the third end of the control chip; The first end of the second capacitor is connected with the third end of the control chip, and the first end of the second capacitor is connected with the second end of the eighth resistor; the second end of the second capacitor is connected with the second pin end of the comparator and the second end of the seventh resistor, and the second end of the second capacitor is grounded.

6. The encoder protection circuit of claim 5, wherein, Further comprising: a third capacitor; The first end of the third capacitor is connected with the first end of the sixth resistor and the first pin end of the comparator, and the first end of the third capacitor is connected with the positive electrode of the power supply; the second end of the third capacitor is grounded.

7. The encoder protection circuit of claim 2, wherein, Further comprising: A ninth resistor and a tenth resistor; The first end of the ninth resistor is connected with the first end of the fourth resistor, and the first end of the ninth resistor is connected with the negative electrode of the power supply; the second end of the ninth resistor is connected with the inverting input end of the comparator; The first end of the tenth resistor is connected with the inverting input end of the comparator, and the first end of the tenth resistor is connected with the second end of the ninth resistor; the second end of the tenth resistor is connected with the positive electrode of the power supply.

8. The encoder protection circuit of claim 7, wherein, Further comprising: An eleventh resistor; The first end of the eleventh resistor is connected with the second end of the tenth resistor; the second end of the eleventh resistor is connected with the positive electrode of the power supply.

9. The encoder protection circuit of claim 8, wherein, Further comprising: A voltage stabilizing tube; The first end of the voltage stabilizing tube is connected with the first end of the fourth resistor and the negative electrode of the power supply, and the first end of the voltage stabilizing tube is connected with the first end of the ninth resistor; the second end of the voltage stabilizing tube is connected with the inverting input end of the comparator, and the second end of the voltage stabilizing tube is connected with the second end of the ninth resistor and the first end of the tenth resistor.

10. An encoder comprising: The encoder protection circuit comprises the circuit according to any one of claims 1-9.