Encoder detection circuit and detection equipment
Through the combination of voltage switching module and processing module, the problem of incompatibility between the detection circuit and the encoder is solved, the compatibility and anti-interference ability of the detection circuit are realized, and the cost is reduced.
Patent Information
- Application Number
- CN202422319559.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-23
- Publication Date
- 2025-07-01
- Estimated Expiration
- 2034-09-23
AI Technical Summary
The problem of incompatibility of detection circuits and encoders, especially the compatibility problems caused by different supply voltages and the voltage of the encoder output signal, and the cost problems caused by the need for different detection circuits by different encoders.
Using a combination of a voltage switching module and a processing module, different signal voltages are provided through control signal switching to match the output voltage of the encoder, and the control branch and auxiliary branch of the voltage switching module are used to realize voltage switching, combining filtering and comparison units to process the encoder's digital signal.
The compatibility of the detection circuit with different encoders is achieved, the cost of the detection circuit is reduced, and the anti-interference ability is improved.
Smart Images

Figure CN223050665U_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of signal detection, and particularly to an encoder detection circuit and a detection device. Background Art
[0002] An encoder is a device that converts a rotating angle / displacement into a digital signal. Generally, an encoder outputs a voltage signal through a differential signal. During the process of detecting the output signal of the encoder, the detection circuit generally requires a supply voltage to maintain its operation. When the supply voltage is different from the voltage of the encoder output signal, it will cause incompatibility between the detection circuit and the encoder. Moreover, there are many differential signals. If different detection circuits are used to detect different encoder output signals, the cost of the detection circuit will be high. Utility Model Content
[0003] In view of this, embodiments of this application provide an encoder detection circuit and a detection device, which can effectively solve the problem of incompatibility between the detection circuit and the encoder, etc.
[0004] In a first aspect, embodiments of this application provide an encoder detection circuit, including a voltage switching module and a processing module;
[0005] A first input terminal of the voltage switching module is connected to a first voltage, a second input terminal of the voltage switching module is connected to a second voltage, and a control terminal of the voltage switching module is used to receive a control signal; an output terminal of the voltage switching module is used to connect to an output terminal of the encoder; wherein, the first voltage is less than the second voltage;
[0006] The voltage switching module is used to provide different signal voltages to the encoder through the first voltage or the second voltage under the action of the control signal;
[0007] An input terminal of the processing module is connected to an output terminal of the voltage switching module and an output terminal of the encoder, and the processing module is used to process the digital signal output by the encoder and then output a detection signal.
[0008] In some embodiments, the voltage switching module includes a first control branch, a second control branch, and an auxiliary branch;
[0009] An input terminal of the first control branch is connected to the first voltage;
[0010] An input terminal of the second control branch is connected to the second voltage;
[0011] A control terminal of the auxiliary branch serves as a control terminal of the voltage switching module, an input terminal of the auxiliary branch is respectively connected to an output terminal of the first control branch and an output terminal of the second control branch; an output terminal of the auxiliary branch is connected to an output terminal of the encoder;
[0012] According to the control signal, the auxiliary branch connects the first voltage or the second voltage to the voltage switching module.
[0013] In some embodiments, the first control branch includes a diode. The anode of the diode is connected to the first voltage, and the cathode of the diode is connected to the input end of the auxiliary branch. When the diode is turned on, the first control branch provides a power supply voltage for the auxiliary branch.
[0014] In some embodiments, the second control branch includes a first triode. The emitter of the first triode is connected to the second voltage, and the collector of the first triode is connected to the input end of the auxiliary branch. When the first triode is turned on, the second control branch provides a power supply voltage for the auxiliary branch.
[0015] In some embodiments, the auxiliary branch includes a first resistor, a second triode, a second resistor, a first filter capacitor, and a third resistor;
[0016] The first end of the first resistor is the control end of the auxiliary branch. The second end of the first resistor is connected to the base of the second triode. The emitter of the second triode is grounded. The collector of the second triode is connected to the first end of the second resistor. The second end of the second resistor is connected to the base of the first triode;
[0017] The first end of the first filter capacitor is grounded. The second end of the first filter capacitor is connected to the second end of the third resistor. The first end of the third resistor serves as the input end of the auxiliary branch. The connection point between the second end of the third resistor and the first filter capacitor serves as the output end of the auxiliary branch.
[0018] In some embodiments, the processing module includes a filtering unit and a comparison unit;
[0019] The input end of the filtering unit is connected to the output end of the encoder. The filtering unit is used to perform filtering processing on the digital signal to obtain an intermediate signal;
[0020] The first input end of the comparison unit is connected to the output end of the filtering unit. The second input end of the comparison unit is connected to a reference voltage. The comparison unit is used to process the intermediate signal and the reference voltage and then output a detection voltage.
[0021] In some embodiments, the filtering unit includes a zener diode, a first filter resistor, a second filter resistor, and a filter capacitor;
[0022] The first end of the first filter resistor is connected to the output end of the encoder. The second end of the first filter resistor is connected to the first end of the second filter resistor. The first end of the filter capacitor is connected to the first input end of the comparison unit and the cathode of the voltage stabilizing diode. The second end of the second filter resistor is connected to the anode of the voltage stabilizing diode and the second end of the filter capacitor. The second end of the filter capacitor is grounded.
[0023] In some embodiments, the comparison unit includes a processor and a voltage dividing branch; the processor includes an operational amplifier or a comparator;
[0024] The first input end of the processor is the first input end of the comparison unit. The second input end of the processor is the second input end of the comparison unit. The output end of the voltage dividing branch is connected to the second output end of the processor. The voltage dividing branch provides the reference voltage for the processor.
[0025] In some embodiments, the voltage dividing branch includes a first voltage dividing resistor, a second voltage dividing resistor and a feedback resistor;
[0026] The first end of the first voltage dividing resistor is connected to the first voltage. The second end of the first voltage dividing resistor is connected to the first end of the second voltage dividing resistor and the first end of the feedback resistor. The second end of the feedback resistor is connected to the output end of the processor. The connection point of the second end of the first voltage dividing resistor, the first end of the second voltage dividing resistor and the first end of the feedback resistor is connected to the second input end of the processor.
[0027] In a first aspect, an embodiment of the present application further provides a detection device. The detection device includes the above-mentioned encoder detection circuit for detecting the digital signal output by the encoder.
[0028] The embodiments of the present application have the following beneficial effects:
[0029] In the encoder detection circuit of the present application, the voltage switching module can enable the detection circuit to provide different signal voltages to be the same as the voltages of the digital signals output by different encoders, so as to ensure that the detection circuit can be compatible with different encoders. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application and should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can also be obtained based on these drawings without creative efforts.
[0031] Figure 1It shows a schematic structural diagram of an encoding detection circuit in an embodiment of the present application;
[0032] Figure 2 It shows a schematic application diagram of an encoding detection circuit in an embodiment of the present application.
[0033] Main element symbol description:
[0034] 10 - Voltage switching module; 20 - Processing module. Detailed implementation manners
[0035] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments.
[0036] Generally, the components of the embodiments of the present application described and shown in the accompanying drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application to be protected, but only represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present application.
[0037] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are only intended to represent specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be construed as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items. In addition, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.
[0038] Unless otherwise limited, all terms (including technical terms and scientific terms) used here have the same meaning as those generally understood by those of ordinary skill in the art to which the various embodiments of the present application belong. The terms (such as those defined in a generally used dictionary) will be interpreted as having the same meaning as the contextual meaning in the relevant technical field and will not be interpreted as having an idealized meaning or being overly formal, unless clearly defined in the various embodiments of the present application.
[0039] Next, some implementation manners of the present application will be described in detail in conjunction with the accompanying drawings. Without conflict, the following embodiments and the features in the embodiments can be combined with each other.
[0040] In order to solve the problem that the power supply voltage of the encoder is different from the voltage value of the output signal, resulting in incompatibility between the encoder and the detection circuit, the present application proposes an encoder detection circuit. By switching and controlling the detection circuit, different power supply voltages can be provided so that they are the same as the signal voltage of the encoder, thereby ensuring the reliability and applicability of the detection circuit.
[0041] The encoder detection circuit is described below in conjunction with some specific embodiments.
[0042] Figure 1 A schematic diagram of the structure of an encoder detection circuit of an embodiment of the present application is shown. Exemplarily, the encoder detection circuit includes a voltage switching module and a processing module.
[0043] In some embodiments, Figure 2 As shown, the first input end of the voltage switching module 10 is connected to the first voltage VCC1, the second input end of the voltage switching module 10 is connected to the second voltage VCC2, and the control end of the voltage switching module 10 is used to receive the control signal SWITCH; the output end of the voltage switching module 10 is used to connect to the output end of the encoder; the voltage switching module 10 is used to provide different signal voltages to the encoder through the first voltage VCC1 or the second voltage VCC2 under the action of the control signal SWITCH.
[0044] In some embodiments, the voltage switching module 10 includes a first control branch, a second control branch and an auxiliary branch; the input end of the first control branch is connected to the first voltage VCC1, the input end of the second control branch is connected to the second voltage VCC2, the control end of the auxiliary branch serves as the control end of the voltage switching module 10, and the input end of the auxiliary branch is respectively connected to the output end of the first control branch and the output end of the second control branch; the output end of the auxiliary branch is connected to the output end of the encoder; the auxiliary branch turns on the first control branch or the second control branch according to the control signal to connect the first voltage or the second voltage to the voltage switching module 10, thereby providing different signal voltages for the encoder.
[0045] Specifically, the first control branch includes a diode D1, the anode of the diode D1 is connected to the first voltage VCC1, and the cathode output of the diode D1 is connected to the input end of the auxiliary branch; when the diode D1 is turned on, the first control branch provides the auxiliary branch with a power supply voltage VCC; the second control branch includes a first transistor Q2, the emitter of the first transistor Q2 is connected to the second voltage VCC2, and the collector of the first transistor Q2 is connected to the input end of the auxiliary branch; when the first transistor Q2 is on, the second control branch provides the auxiliary branch with a power supply signal VCC. The power supply voltage VCC in the present application can power the encoder, and can also provide working voltage for other circuit modules.
[0046] Specifically, the auxiliary branch includes a first resistor R1, a second triode Q1, a second resistor R2, and a first filter capacitor C1; the first end of the first resistor R1 is the control end of the auxiliary branch, the second end of the first resistor R1 is connected to the base of the second triode Q2, the emitter of the second triode Q2 is grounded, the collector of the second triode Q2 is connected to the first end of the second resistor R2, and the second end of the second resistor R2 is connected to the base of the first triode Q1; the first end of the first filter capacitor C1 is grounded, the second end of the first filter capacitor C1 is connected to the second end of the third resistor R3, and the first end of the third resistor R3 is used as the input end of the auxiliary branch, that is, the third resistor R3 is connected to the output end of the first control branch (the cathode of the diode D1) and the output end of the second control branch (the collector of the first triode Q2); the connection point between the second end of the third resistor R3 and the first filter capacitor C1 is used as the output end of the auxiliary branch.
[0047] In this application, when the control signal SWITCH is at a low level, the second triode Q2 is not turned on, and the diode D1 is turned on. At this time, the first voltage VCC1 works to supply the power supply voltage to the auxiliary branch, and then the signal voltage of the encoder is output through the auxiliary branch.
[0048] When the control signal SWITCH is at a high level, the second triode Q2 is turned on, and the diode D1 is not turned on. At this time, the second voltage VCC2 works to supply the power supply voltage to the auxiliary branch, and then the signal voltage of the encoder is output through the auxiliary branch. In other words, the voltage switching module of this application is controlled by the control signal, and different power supply voltages are output by the first control branch or the second control branch, so that the auxiliary branch outputs different signal voltages for the encoder.
[0049] In some embodiments, the input end of the processing module 20 is connected to the output end of the voltage switching module and the output end of the encoder. After processing the digital signal IN output by the encoder, the processing module outputs a detection signal.
[0050] Specifically, as Figure 2 shown, the processing module 20 includes a filtering unit and a comparison unit; the input end of the filtering unit is connected to the output end of the encoder, and the filtering unit is used to filter the digital signal IN to obtain an intermediate signal; the first input end of the comparison unit is connected to the output end of the filtering unit, and the second input end of the comparison unit is connected to a reference voltage; the comparison unit processes the intermediate signal and the reference voltage and then outputs a detection voltage OUT.
[0051] Among them, the filtering unit includes a first filtering resistor R4, a second filtering resistor R8, and a filtering capacitor C2; the first end of the first filtering resistor R4 is connected to the output end of the encoder, and the second end of the first filtering resistor R4 is connected to the first end of the second filtering resistor R8, the first end of the filtering capacitor C2, and the first input end of the comparison unit. The second end of the second filtering resistor R8 and the second end of the filtering capacitor C2 are grounded. The filtering unit of the present application filters the digital signal IN output by the encoder and then outputs it to the input end of the comparison unit.
[0052] As a preferred implementation manner, the filtering unit further includes a voltage stabilizing diode ZD1. The anode of the voltage stabilizing diode ZD1 is grounded, and the cathode of the voltage stabilizing diode ZD1 is connected to the second end of the first filtering resistor R4. The present application stably clamps the intermediate signal output by the filtering unit to a certain value through the voltage stabilizing diode ZD1.
[0053] Among them, the comparison unit includes a processor and a voltage dividing branch; the first input end of the processor is the input end of the comparison unit, the second input end of the processor is the second input end of the comparison unit, the second input end of the processor is connected to the output end of the voltage dividing branch, and the voltage dividing branch provides a reference voltage for the processor. The intermediate signal filtered by the filtering unit of the present application is input to the first input end of the processor, and the operational amplifier compares the intermediate signal with the reference voltage output by the voltage dividing branch and then outputs a detection voltage.
[0054] The processor of the present application can be an operational amplifier or a comparator. Exemplarily, when the processor is an operational amplifier, the inverting input end of the operational amplifier is the first input end of the processor, and the non-inverting input end of the operational amplifier is the second input end of the processor.
[0055] Specifically, as Figure 2 shown, the voltage dividing branch includes a first voltage dividing resistor R5, a second voltage dividing resistor R6, and a feedback resistor R7; the first end of the first voltage dividing resistor R5 is connected to the first voltage VCC1, the second end of the first voltage dividing resistor R5 is connected to the first end of the second voltage dividing resistor R6 and the first end of the feedback resistor R7, the second end of the feedback resistor R7 is connected to the output end of the operational amplifier, and the connection point of the second end of the first voltage dividing resistor R5, the first end of the second voltage dividing resistor R6, and the first end of the feedback resistor R7 is connected to the non-inverting input end of the operational amplifier.
[0056] When the digital signal IN output by the encoder is at a high level, the reference voltage output by the voltage dividing branch is lower than the intermediate signal, that is, the voltage at the non-inverting input end of the operational amplifier is lower than the voltage at the inverting input end. Then, the operational amplifier outputs a low level. At this time, the feedback resistor R7 plays a role in pulling down, making the voltage at the non-inverting input end at a lower level. Then, the digital signal IN will require a lower level to make the output flip to a high level. Therefore, the circuit has an anti-interference effect.
[0057] Similarly, when the digital signal IN output by the encoder is at a low level, the reference voltage output by the voltage dividing branch is higher than the intermediate signal, that is, the voltage at the non-inverting input terminal of the operational amplifier is higher than the voltage at the inverting input terminal. Then, the operational amplifier outputs a high level. At this time, the feedback resistor R7 plays a role in pulling up, making the voltage at the non-inverting input terminal at a higher level. Then, the digital signal IN will require a higher level to make the output flip to a low level. Therefore, the circuit has an anti-interference effect.
[0058] In the present application, the voltage switching module in the detection circuit can enable the detection circuit to provide different signal voltages to be the same as the voltages of digital signals output by different encoders, so as to ensure that the detection circuit can be compatible with different encoders. In addition, due to the suppression effect of the feedback resistor R7, the encoder detection circuit has a good anti-interference effect.
[0059] An embodiment of the present application also provides a detection device. Exemplarily, the detection device includes an encoder detection circuit for detecting the digital signal output by the encoder. For example, detecting the output signal of a motor.
[0060] It can be understood that the optional items in the above embodiments are equally applicable to this embodiment, so they will not be described again here.
[0061] In several embodiments provided by the present application, it should be understood that the disclosed circuit can also be implemented in other ways. The circuit embodiments described above are only illustrative. For example, the connection schematic diagrams and structural diagrams in the drawings show the applications according to multiple embodiments of the present application.
[0062] The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present application, and all should be covered by the protection scope of the present application.
Claims
1. An encoder detection circuit, characterized in that: including a voltage switching module and a processing module; The first input end of the voltage switching module is connected to a first voltage, the second input end of the voltage switching module is connected to a second voltage, and the control end of the voltage switching module is used to receive a control signal; the output end of the voltage switching module is used to connect to the output end of the encoder; wherein the first voltage is less than the second voltage; The voltage switching module is used for providing different signal voltages to the encoder through the first voltage or the second voltage under the action of the control signal; The input end of the processing module is connected to the output end of the voltage switching module and the output end of the encoder, and the processing module is used to process the digital signal output by the encoder and then output a detection signal.
2. The encoder detection circuit according to claim 1, characterized in that: The voltage switching module includes a first control branch, a second control branch and an auxiliary branch; An input end of the first control branch is connected to the first voltage; An input end of the second control branch is connected to the second voltage; The control end of the auxiliary branch serves as the control end of the voltage switching module, the input end of the auxiliary branch is respectively connected to the output end of the first control branch and the output end of the second control branch; the output end of the auxiliary branch is connected to the output end of the encoder; The auxiliary branch enables the first voltage or the second voltage to be connected to the voltage switching module according to the control signal.
3. The encoder detection circuit according to claim 2, characterized in that: The first control branch includes a diode, an anode of the diode is connected to the first voltage, and a cathode of the diode is connected to an input end of the auxiliary branch; when the diode is turned on, the first control branch provides a power supply voltage for the auxiliary branch.
4. The encoder detection circuit according to claim 2, characterized in that: The second control branch includes a first transistor, the emitter of the first transistor is connected to the second voltage, and the collector of the first transistor is connected to the input end of the auxiliary branch; when the first transistor is turned on, the second control branch provides a power supply voltage for the auxiliary branch.
5. The encoder detection circuit according to claim 4, characterized in that: The auxiliary branch includes a first resistor, a second triode, a second resistor, a first filter capacitor and a third resistor; The first end of the first resistor is the control end of the auxiliary branch, the second end of the first resistor is connected to the base of the second transistor, the emitter of the second transistor is grounded, the collector of the second transistor is connected to the first end of the second resistor, and the second end of the second resistor is connected to the base of the first transistor; The first end of the first filter capacitor is grounded, the second end of the first filter capacitor is connected to the second end of the third resistor, the first end of the third resistor serves as the input end of the auxiliary branch; the connection point between the second end of the third resistor and the first filter capacitor serves as the output end of the auxiliary branch.
6. The encoder detection circuit according to claim 1, characterized in that: The processing module includes a filtering unit and a comparing unit; The input end of the filtering unit is connected to the output end of the encoder, and the filtering unit is used to filter the digital signal to obtain an intermediate signal; The first input terminal of the comparison unit is connected to the output terminal of the filter unit, and the second input terminal of the comparison unit is connected to a reference voltage; The comparison unit is used to process the intermediate signal and the reference voltage and then output a detection voltage.
7. The encoder detection circuit according to claim 6, characterized in that: The filter unit includes a voltage regulator tube, a first filter resistor, a second filter resistor and a filter capacitor; The first end of the first filter resistor is connected to the output end of the encoder, the second end of the first filter resistor is connected to the first end of the second filter resistor, the first end of the filter capacitor is connected to the first input end of the comparison unit and the cathode of the voltage regulator tube, the second end of the second filter resistor is connected to the anode of the voltage regulator tube and the second end of the filter capacitor, and the second end of the filter capacitor is grounded.
8. The encoder detection circuit according to claim 6, characterized in that: The comparison unit includes a processor and a voltage dividing branch; the processor includes an operational amplifier or a comparator; The first input end of the processor is the first input end of the comparison unit, the second input end of the processor is the second input end of the comparison unit, the second input end of the processor is connected to the output end of the voltage divider branch, and the voltage divider branch provides the reference voltage for the processor.
9. The encoder detection circuit according to claim 8, characterized in that: The voltage dividing branch includes a first voltage dividing resistor, a second voltage dividing resistor and a feedback resistor; The first end of the first voltage-dividing resistor is connected to the first voltage, the second end of the first voltage-dividing resistor is connected to the first end of the second voltage-dividing resistor and the first end of the feedback resistor, the second end of the feedback resistor is connected to the output end of the processor, and the connection point between the second end of the first voltage-dividing resistor, the first end of the second voltage-dividing resistor and the first end of the feedback resistor is connected to the second input end of the processor.
10. A detection device, characterized in that: The detection device comprises the encoder detection circuit according to any one of claims 1 to 9, and is used to detect the digital signal output by the encoder.