CN217643308U - Encoder hardware filter circuit based on voltage comparator - Google Patents

Encoder hardware filter circuit based on voltage comparator Download PDF

Info

Publication number
CN217643308U
CN217643308U CN202221615472.4U CN202221615472U CN217643308U CN 217643308 U CN217643308 U CN 217643308U CN 202221615472 U CN202221615472 U CN 202221615472U CN 217643308 U CN217643308 U CN 217643308U
Authority
CN
China
Prior art keywords
encoder
filter circuit
voltage comparator
resistor
voltage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202221615472.4U
Other languages
Chinese (zh)
Inventor
谢磊
田羽
张亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei Tuwa Technology Co ltd
Original Assignee
Hefei Tuwa Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Tuwa Technology Co ltd filed Critical Hefei Tuwa Technology Co ltd
Priority to CN202221615472.4U priority Critical patent/CN217643308U/en
Application granted granted Critical
Publication of CN217643308U publication Critical patent/CN217643308U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

The utility model provides an encoder hardware filter circuit based on voltage comparator for carry out the filtering to encoder output pulse signal, the encoder has an at least looks output pulse signal, include: the input end of the RC filter circuit is used as the signal input end of the encoder; and the non-inverting input end of the voltage comparator is connected with the output end of the RC filter circuit, the inverting input end of the voltage comparator is connected with the voltage division regulating circuit, the output end of the voltage comparator is connected with the first end of the pull-up resistor and serves as the signal output end of the encoder, and the power supply end of the voltage comparator is connected with the second end of the pull-up resistor. The utility model discloses a multistage filter circuit's that RC filter circuit and voltage comparator circuit constitute mode carries out stage treatment with interference signal, can the mixed and disorderly and continuous strong interference signal of filtering, effectual discernment encoder signal for system job stabilization.

Description

Encoder hardware filter circuit based on voltage comparator
Technical Field
The utility model relates to a filter circuit technical field, concretely relates to encoder hardware filter circuit based on voltage comparator.
Background
The rotary encoder generally adopts a mode of pulse signals and pull-up resistors to connect the signals to the MCU processor, and when contacts in the encoder are contacted in the working process of the rotary encoder, the pulse signals are short-circuited to 0V low level; when the internal contact is disconnected, the internal contact is equivalent to open circuit, and the pulse signal is pulled up to high level by the pull-up resistor.
In the actual use process, interference signals of different degrees often appear due to environmental factors, quality problems of the encoder and the like, the interference signals of the encoder in the prior art mainly appear under the condition of poor contact in the interior, the poor contact can cause the original 0V low level to appear interference signals of different frequencies and different voltages, and the actual measurement waveforms shown in fig. 1 are serious interference signals caused by poor contact in the interior of a product, and the interference signals are disordered and disordered waveforms with different voltages.
In the prior art, a common RC filter circuit or software filtering is used for signal filtering processing, but only a single or discontinuous small amount of high-frequency interference signals can be filtered, and a messy and continuous strong interference signal cannot be filtered, so that an encoder signal cannot be identified, the system is unstable in operation, and the normal use of a product is seriously influenced.
SUMMERY OF THE UTILITY MODEL
In order to solve the technical problem, the utility model discloses use the encoder hardware filter circuit that voltage comparator constitutes, can effectively filter various interference signal, concrete technical scheme is as follows:
a voltage comparator based encoder hardware filtering circuit for filtering an encoder output pulse signal, the encoder having at least one phase output pulse signal, comprising:
the input end of the RC filter circuit is used as the signal input end of the encoder; and
and the non-inverting input end of the voltage comparator is connected with the output end of the RC filter circuit, the inverting input end of the voltage comparator is connected with the voltage division regulating circuit, the output end of the voltage comparator is connected with the first end of the pull-up resistor and serves as the signal output end of the encoder, and the power supply end of the voltage comparator is connected with the second end of the pull-up resistor.
Furthermore, the first end of the pull-up resistor is also connected with a bypass filter circuit.
Furthermore, the voltage division adjusting circuit comprises a first voltage division resistor R3, a second voltage division resistor R4 and a feedback resistor R1, wherein the first end of the first voltage division resistor R3 is connected with the power supply VCC, the second end of the first voltage division resistor R3 is connected with the first end of the second voltage division resistor R4, the inverting input end of the voltage comparator and the first end of the feedback resistor R1, the second end of the second voltage division resistor R4 is grounded, and the second end of the feedback resistor R1 is connected with the signal output end of the encoder.
According to the above technical scheme, the utility model discloses a multistage filter circuit's that RC filter circuit and voltage comparator circuit constitute mode carries out stage treatment with interference signal, can the mixed and disorderly and continuous strong interference signal of filtering, effectual discernment encoder signal for system job stabilization.
Drawings
FIG. 1 is a diagram of a prior art encoder pulse signal processed only by an RC filter circuit;
FIG. 2 is a schematic diagram of the circuit structure of the present invention;
fig. 3 is a filtering effect diagram of the present invention.
Detailed Description
The present invention will be described in detail with reference to the drawings and specific embodiments, wherein prior to describing the technical aspects of the embodiments of the present invention in detail, the terms and the like are explained, and in the present specification, the components with the same names or the same reference numbers represent the similar or the same structures and are only used for illustrative purposes.
The encoder converts angular displacement or linear displacement into electric signals, the encoder comprises rotary encoders of different types, the phase number of output pulses of the rotary encoders can be different, some rotary encoders output three-phase pulses of A, B and Z, some rotary encoders only output two phases of A and B, and the simplest rotary encoders only output the A phase. The utility model provides an encoder adopts A, B double-phase, and encoder hardware filter circuit carries out hierarchical filtering to encoder input signal INA and encoder input signal INB respectively and handles.
The utility model discloses a multistage filtering handles the two-stage filter circuit mode that can adopt RC filter circuit and voltage comparator circuit, also can adopt the tertiary filter circuit's that RC filter circuit, voltage comparator circuit, bypass filter circuit constitute mode to carry out stage treatment with interference signal. When the interference signal of the encoder enters the first-stage RC filter circuit, because the capacitor has the characteristic of charging and discharging, the interference signal can be partially absorbed by the capacitor, thereby the voltage amplitude of the interference signal is reduced, then the interference signal is sent into the voltage comparator circuit to be compared, when the voltage of the homodromous input end of the voltage comparator is lower than the reference voltage, the low level of 0V output by the voltage comparator is reduced, the interference signal is filtered, when the voltage of the homodromous input end of the voltage comparator is higher than the reference voltage, the voltage comparator outputs the high level, the high level signal is an effective encoder high level signal at the moment, and the signals such as burrs can be filtered and removed again through the third-stage bypass filter circuit.
As shown in fig. 2, the present embodiment employs a three-stage filter circuit composed of two RC filter circuits, two voltage comparator circuits, and two bypass filter circuits, and performs hierarchical filtering processing on the encoder input signal INA and the encoder input signal INB, respectively. The non-inverting input end of the voltage comparator U1A is connected with the output end of the RC filter circuit, the inverting input end of the voltage comparator U1A is connected with the voltage division adjusting circuit, the output end of the voltage comparator U1A is connected with the first end of the pull-up resistor R2 and serves as the signal output end of the encoder, and the power supply end of the voltage comparator U1A is connected with the second end of the pull-up resistor R2.
The first RC filter circuit comprises a resistor R6 and a capacitor C2 and is used for carrying out first-stage filtering on an encoder input signal INA; the first voltage comparator circuit comprises a voltage division regulating circuit and a voltage comparator U1A and is used for carrying out secondary filtering on the encoder signal; the first bypass filter circuit is formed by a filter capacitor C1 and performs third filtering on the encoder signal.
The encoder input signal INA is connected to the first end of the resistor R6, the second end of the resistor R6 is connected to the first end of the capacitor C2, the second end of the capacitor C2 is connected to the ground wire to form first-stage RC filtering of the encoder input signal, the first-stage RC filtering is connected to the first end of the resistor R7, and the second end of the resistor R7 is connected to the homodromous input end of the voltage comparator U1A.
The voltage division adjusting circuit in the first voltage comparator circuit comprises a first voltage division resistor R3, a second voltage division resistor R4 and a feedback resistor R1, wherein the first end of the first voltage division resistor R3 is connected with a power supply VCC, the second end of the first voltage division resistor R3 is connected with the first end of the second voltage division resistor R4, the inverting input end of the voltage comparator U1A and the first end of the feedback resistor R1 are connected, the second end of the second voltage division resistor R4 is grounded, and the second end of the feedback resistor R1 is connected with the signal output end of the encoder. The reference voltage of the inverting input end of the voltage comparator U1A is set to be 2V by setting the resistance values of the divider resistor and the feedback resistor, and interference signals lower than the reference voltage by 2V can be filtered.
The first bypass filter circuit comprises a filter capacitor C1, the first end of the filter capacitor C1 is connected with the output end of the voltage comparator U1A and the first end of the pull-up resistor R2, and the second end of the filter capacitor C1 is grounded.
The second RC filter circuit, the second voltage comparator circuit and the second bypass filter circuit are used for carrying out graded filtering processing on the encoder input signal INB.
The second RC filter circuit comprises a resistor R10 and a capacitor C3 and is used for carrying out first-stage filtering on an encoder input signal INB; the second voltage comparator circuit comprises a voltage division regulating circuit and a voltage comparator U1B and is used for carrying out second-stage filtering on the encoder signal; the first bypass filter circuit is formed by a filter capacitor C4 and is used for carrying out third filtering on the encoder signal.
The encoder input signal INB is connected to a first end of the resistor R10, a second end of the resistor R10 is connected to a first end of the capacitor C3, a second end of the capacitor C3 is connected to the ground wire to form a first-stage RC filter of the encoder input signal, the first-stage RC filter is connected to a first end of the resistor R12, and a second end of the resistor R12 is connected to a same-direction input end of the voltage comparator U1B.
The voltage division regulating circuit in the second voltage comparator circuit comprises a third voltage division resistor R9, a fourth voltage division resistor R11 and a feedback resistor R5, wherein the first end of the third voltage division resistor R9 is connected with a power supply VCC, the second end of the third voltage division resistor R9 is connected with the first end of the fourth voltage division resistor R11, the inverting input end of the voltage comparator U1B and the first end of the feedback resistor R5 are connected, the second end of the fourth voltage division resistor R11 is grounded, and the second end of the feedback resistor R5 is connected with the signal output end of the encoder. The reference voltage of the inverting input end of the voltage comparator U1B is set to be 2V by setting the resistance values of the divider resistor and the feedback resistor, and interference signals lower than the reference voltage by 2V can be filtered.
The second bypass filter circuit comprises a filter capacitor C4, a first end of the filter capacitor C4 is connected with an output end of the voltage comparator U1B and a first end of the pull-up resistor R8, and a second end of the filter capacitor C4 is grounded.
The utility model discloses a mode of tertiary filtering, actual filtering effect is shown in fig. 3, it is the effect after the first order filtering to go up the figure, adopt the RC circuit to absorb most interference signal when the first order filtering, but still there is little interference signal to exist, the normal discernment of signal still can be influenced this moment, and because the effect of electric capacity leads to the ascending edge of high level to become the waveform that has the slope after being absorbed, certain degree of distortion has appeared in the signal, consequently, add second level voltage comparator filter circuit and carry out the filtering shaping once more, reference voltage through the adjustment voltage comparator, can be less than the interference signal filtering of reference voltage, through third level bypass filter circuit filtering removal signal such as burr once more, the actual waveform after the filtering sees the figure 3's lower figure, the waveform is very clean this moment, there is not any interference signal, and the waveform ascending edge after the second third level filtering resumes to be precipitous border.
The utility model discloses the serious interference signal of filtering that can be fine improves the reliability of system to prolonged the life of encoder, used in batches in the product, had very high practical value.
The above-mentioned embodiments are only to describe the preferred embodiments of the present invention, but not to limit the scope of the present invention, and various modifications and improvements made by those skilled in the art without departing from the design spirit of the present invention should fall into the protection scope defined by the claims of the present invention.

Claims (7)

1. Encoder hardware filter circuit based on voltage comparator for filter to encoder output pulse signal, the encoder has at least one looks output pulse signal, its characterized in that includes:
the input end of the RC filter circuit is used as the signal input end of the encoder; and
and the non-inverting input end of the voltage comparator is connected with the output end of the RC filter circuit, the inverting input end of the voltage comparator is connected with the voltage division regulating circuit, the output end of the voltage comparator is connected with the first end of the pull-up resistor and serves as the signal output end of the encoder, and the power supply end of the voltage comparator is connected with the second end of the pull-up resistor.
2. The encoder hardware filter circuit of claim 1, wherein a bypass filter circuit is further connected to the first end of the pull-up resistor.
3. The hardware filter circuit of claim 2, wherein the bypass filter circuit comprises a filter capacitor C1, a first terminal of the filter capacitor C1 is connected to the output terminal of the voltage comparator and a first terminal of the pull-up resistor, and a second terminal of the filter capacitor C1 is grounded.
4. The hardware filter circuit of claim 1, wherein the voltage divider regulator circuit comprises a first voltage divider resistor R3, a second voltage divider resistor R4, and a feedback resistor R1, wherein a first end of the first voltage divider resistor R3 is connected to a power source VCC, a second end of the first voltage divider resistor R3 is connected to a first end of the second voltage divider resistor R4, an inverting input terminal of the voltage comparator, and a first end of the feedback resistor R1, a second end of the second voltage divider resistor R4 is connected to ground, and a second end of the feedback resistor R1 is connected to a signal output terminal of the encoder.
5. The encoder hardware filter circuit of claim 4, wherein the reference voltage at the inverting input of the voltage comparator is set to 2V.
6. The hardware filter circuit of claim 1, wherein a resistor R7 is connected between the non-inverting input terminal of the voltage comparator and the output terminal of the RC filter circuit.
7. The encoder hardware filter circuit of any of claims 1-6, wherein the encoder has a single term, two terms, or three term output pulse signal.
CN202221615472.4U 2022-06-24 2022-06-24 Encoder hardware filter circuit based on voltage comparator Active CN217643308U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202221615472.4U CN217643308U (en) 2022-06-24 2022-06-24 Encoder hardware filter circuit based on voltage comparator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202221615472.4U CN217643308U (en) 2022-06-24 2022-06-24 Encoder hardware filter circuit based on voltage comparator

Publications (1)

Publication Number Publication Date
CN217643308U true CN217643308U (en) 2022-10-21

Family

ID=83628508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202221615472.4U Active CN217643308U (en) 2022-06-24 2022-06-24 Encoder hardware filter circuit based on voltage comparator

Country Status (1)

Country Link
CN (1) CN217643308U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117200730A (en) * 2023-09-07 2023-12-08 展鹏科技股份有限公司 Signal processing circuit and incremental encoder

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117200730A (en) * 2023-09-07 2023-12-08 展鹏科技股份有限公司 Signal processing circuit and incremental encoder

Similar Documents

Publication Publication Date Title
CN217643308U (en) Encoder hardware filter circuit based on voltage comparator
CN208971380U (en) Soft starting circuit, control chip, buck converter and boost converter
CN109193570A (en) A kind of threshold variable hardware protection circuit of protection
CN106787684A (en) A kind of automobile instrument power source circuit
CN213744096U (en) Temperature control circuit for DC fan
CN108418406B (en) A kind of gradient amplifier and magnetic resonance imaging device
CN211652975U (en) Voltage sampling circuit and electronic device
CN102636684A (en) Alternating voltage peak moment detection circuit
CN210093107U (en) Feedback circuit applied to power supply chip, power supply circuit and vehicle-mounted electronic equipment
CN210155220U (en) Phase-loss detection circuit
JPS5979862A (en) Circuit device for monitoring electric measurement detector
CN115389811A (en) Zero crossing point detection circuit
CN206533306U (en) PWM circuit and DC brushless motor controller
CN213934849U (en) Infrared signal processing circuit and infrared touch screen
CN220962404U (en) Clock signal monitoring circuit and clock signal monitoring system
CN216414281U (en) Solid-state soft start device with high-performance current signal output circuit
CN109117682A (en) A kind of integrating circuit
CN206948277U (en) A kind of filter circuit
CN220022785U (en) Conversion circuit for PWM signal and AD signal and new energy automobile socket
CN206041472U (en) Protection circuit of bidirectional transform ware and electric system of using of taking accumulate function
CN201219252Y (en) Three kinds of PWM pulse signal generators
CN217563633U (en) Level conversion circuit
CN216851920U (en) Filtering denoising circuit and clock circuit
CN216451352U (en) Analog circuit for realizing clock frequency comparison
CN203659204U (en) Carrier signal demodulation circuit and remote control system

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant