CN204855553U - Rotary encoder's signal detection circuit - Google Patents

Rotary encoder's signal detection circuit Download PDF

Info

Publication number
CN204855553U
CN204855553U CN201520295288.XU CN201520295288U CN204855553U CN 204855553 U CN204855553 U CN 204855553U CN 201520295288 U CN201520295288 U CN 201520295288U CN 204855553 U CN204855553 U CN 204855553U
Authority
CN
China
Prior art keywords
rotary encoder
bleeder mechanism
port
processor
analog
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.)
Expired - Fee Related
Application number
CN201520295288.XU
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.)
Hua Zhihang Science And Technology Ltd Of Huizhou City
Original Assignee
Hua Zhihang Science And Technology Ltd Of Huizhou City
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 Hua Zhihang Science And Technology Ltd Of Huizhou City filed Critical Hua Zhihang Science And Technology Ltd Of Huizhou City
Priority to CN201520295288.XU priority Critical patent/CN204855553U/en
Application granted granted Critical
Publication of CN204855553U publication Critical patent/CN204855553U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Analogue/Digital Conversion (AREA)

Abstract

The utility model relates to a signal detection technical field especially indicates a rotary encoder's signal detection circuit. A rotary encoder's signal detection circuit, includes the treater, the AD adc of setting on the treater, the third bleeder mechanism of connection between A output and AD adc's port, the second bleeder mechanism of connection between B output and AD adc's port, a DC power supply for providing the electric energy, the setting is in first bleeder mechanism between the common connecting end of second bleeder mechanism, third bleeder mechanism and DC power supply's the input, an indicating device for indicateing rotary encoder's direction of rotation, indicating device connects the processo. Only occupy the treater from the port of a AD module converter in area, utilize AD adc only need gather the magnitude of voltage of third bleeder mechanism and second bleeder mechanism common port, can judge rotary encoder's direction of rotation through indicating device, practice thrift the IO mouth of treater, simple structure.

Description

A kind of signal deteching circuit of rotary encoder
Technical field
The utility model relates to signal detection technique field, refers to a kind of signal deteching circuit of rotary encoder especially.
Background technology
Rotary encoder is electromechanical equipment position of rotation or rotation amount being changed into analog or digital signal.Generally be installed in the one side of vertical rotating shaft in rotating object.Rotary encoder is used in many occasions needing exact rotational position and speed, as Industry Control, Robotics, special lens, computer entry device (as mouse and trace ball) etc.The rotary encoder of doubleway output exports the pulse of two groups of A/B phase differential 90 degree, not only can measure rotating speed by this two group pulse, can also judge the direction rotated.Rotary encoder has in real life to be applied very widely.
In existing technology, two groups of A, B signal demands that rotary encoder exports utilize single-chip microcomputer or other processors to gather, then are realized by the method for routine processes.The connecting circuit of traditional rotary encoder is see accompanying drawing 1, and processor connects A, B port of scrambler, by detecting the low and high level of A, B port, and phase information, judge the sense of rotation of rotary encoder.Accompanying drawing 2 is low and high level oscillograms of rotary encoder, often rotate lattice, then the ground wire of scrambler can contact with A, B respectively, cause the oscillogram that low and high level is alternate, and the phase differential of A, B wire spacing 90 degree, can by judging that advanced 90 degree of the detection signal of which root line judges sense of rotation.In traditional testing circuit, need to detect two lines, the I/O mouth resource of waste processor simultaneously; Meanwhile, when software programming, needing the phase place of sampling two ports to change could judge sense of rotation, makes the control program write more complicated.
Summary of the invention
The utility model provides a kind of signal deteching circuit of rotary encoder, only take the port of the AD module converter that processor carries, the magnitude of voltage on the 3rd divider resistance and the second divider resistance only need be gathered by the analog to digital converter of processor inside, the sense of rotation of rotary encoder can be judged by indicating device, save the I/O mouth of processor, and structure is simple, realize without the need to writing complicated control program.
For solving the problems of the technologies described above, the utility model provides following technical scheme:
A signal deteching circuit for rotary encoder, described rotary encoder includes A output terminal and B output terminal, and described signal deteching circuit comprises
For the processor of detectable voltage signals;
AD analog to digital converter is on the processor set, and the port of AD analog to digital converter is connected to A output terminal and the B output terminal of rotary encoder;
The 3rd bleeder mechanism between the port being connected to A output terminal and AD analog to digital converter;
The second bleeder mechanism between the port being connected to B output terminal and AD analog to digital converter;
For providing the direct supply of electric energy;
Be arranged on the first bleeder mechanism between described second bleeder mechanism, the public connecting end of the 3rd bleeder mechanism and the input end of direct supply;
Be used to indicate the indicating device of the sense of rotation of rotary encoder, described indicating device connects described processor.
Further, the comparer between the port being connected to processor and AD analog to digital converter is also included.
Preferably but be not limited to, described indicating device is display screen or pilot lamp.
Further, the storer be connected with described processor is also included, for storage voltage value information.
Preferably, described first bleeder mechanism, the second bleeder mechanism and the 3rd bleeder mechanism are resistance.
Relative to prior art, the advantage of the present embodiment is: the port only taking the AD analog to digital converter carried with processor, the magnitude of voltage on the 3rd bleeder mechanism and the second bleeder mechanism only need be gathered by A/D analog to digital converter, magnitude of voltage size described in being analyzed by processor and situation of change, the sense of rotation of rotary encoder can be judged, and shown by indicating device.The connected mode of the signal deteching circuit of a kind of rotary encoder in this present embodiment saves the I/O mouth of processor, and structure is simple, realizes without the need to writing complicated control program.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the utility model embodiment, below the accompanying drawing used required in describing embodiment is briefly introduced, apparently, accompanying drawing in the following describes is only embodiments more of the present utility model, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.In these accompanying drawings, for the sake of clarity, may be exaggerated size and the relative size in structure and region.
Fig. 1 is the circuit connection diagram of prior art;
Fig. 2 is the low and high level oscillogram of A, B port in prior art;
Fig. 3 is the circuit connection diagram of embodiment 1 in the utility model;
Fig. 4 is the low and high level oscillogram of A, B port of embodiment 1 in the utility model.
Embodiment
Below in conjunction with the accompanying drawing in the utility model embodiment, the technical solution of the utility model is clearly and completely described.Based on the embodiment in the utility model, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all belong to the scope of the utility model protection.
Embodiment 1:
See accompanying drawing 3, a kind of signal deteching circuit of rotary encoder, described rotary encoder includes A output terminal and B output terminal, and described signal deteching circuit includes processor, comparer, storer and the indicating device of being with A/D analog to digital converter.Wherein processor is used for size and the change of detectable voltage signals; And the port of AD analog to digital converter is connected to A output terminal and the B output terminal of rotary encoder; Also include be connected to A output terminal and AD analog to digital converter port between the 3rd bleeder mechanism; The second bleeder mechanism between the port being connected to B output terminal and AD analog to digital converter.
Further, also include the direct supply for providing electric energy, the direct supply of preferred+5V in the present embodiment, the maximum voltage born due to the I/O port of the processors such as single-chip microcomputer is 5V, certainly, the present embodiment does not limit concrete magnitude of voltage, determines according to the maximum voltage that the I/O port of adopted bleeder mechanism and processor can bear.Further, the comparer be connected between processor and AD analog to digital converter is also included; The storer be connected with described processor, for storage voltage value information.
The present embodiment also includes the first bleeder mechanism R1 be arranged between described second bleeder mechanism R2, the public connecting end of the 3rd bleeder mechanism R3 and the input end of direct supply; And being used to indicate the indicating device of sense of rotation of rotary encoder, described indicating device connects described processor.Preferably but be not limited to, this indicating device can be display screen or pilot lamp, when indicating device adopts display screen, directly can demonstrate the magnitude of voltage size of comparer input, according to the change order of magnitude of voltage, testing staff can judge that the sense of rotation of rotary encoder is forward or reverse.Certainly, also can by writing simple program in processor, and Associative Storage, the change order of the magnitude of voltage inputted by detection comparator, judged the sense of rotation of rotary encoder by processor, and show sense of rotation on described display screen, as other distinguishing word and symbols such as " rotating forward " " reversions ", certainly, the light on and off state of pilot lamp also can be adopted to reflect the sense of rotation of rotary encoder.
See accompanying drawing 4, it is the low and high level oscillogram of A, B port of embodiment in the utility model 1.The implementation process of the present embodiment is further described below in conjunction with this oscillogram.Known see accompanying drawing 3, the voltage that the port of described AD analog to digital converter collects there will be 4 different values.Assuming that when A output port, B output port are all unsettled, detected magnitude of voltage is V1; When A output port is unsettled, B output port ground connection time, detected magnitude of voltage is V2; When A output port ground connection, B output port are unsettled, detected magnitude of voltage is V3; When the equal ground connection of A output port, B output port, detected magnitude of voltage is V4.Rotary encoder rotates lattice and there will be four change in voltage, namely when the change order of the magnitude of voltage size that processor detects is for V4 → V3 → V1 → V2 → V4, represents that the sense of rotation of rotary encoder is for rotating forward; When the change order of the magnitude of voltage size that processor detects is for V4 → V2 → V1 → V3 → V4, represent that the sense of rotation of rotary encoder is for reversion.
Further, preferably, described first bleeder mechanism, the second bleeder mechanism and the 3rd bleeder mechanism are resistance, certainly, can also be that other play the device of dividing potential drop effect.
The port of the AD analog to digital converter carried with processor is only taken in the present embodiment, the magnitude of voltage on the 3rd bleeder mechanism and the second bleeder mechanism only need be gathered by A/D analog to digital converter, magnitude of voltage size described in being analyzed by processor and situation of change, the sense of rotation of rotary encoder can be judged, and shown by indicating device.The connected mode of the signal deteching circuit of a kind of rotary encoder in this present embodiment saves the I/O mouth of processor, and structure is simple, realizes without the need to writing complicated control program.
Above-described embodiment, does not form the restriction to this technical scheme protection domain.The amendment done within any spirit at above-mentioned embodiment and principle, equivalently to replace and improvement etc., within the protection domain that all should be included in this technical scheme.

Claims (5)

1. a signal deteching circuit for rotary encoder, described rotary encoder includes A output terminal and B output terminal, it is characterized in that: comprise
For the processor of detectable voltage signals;
AD analog to digital converter is on a processor set, and the port of AD analog to digital converter is connected to A output terminal and the B output terminal of rotary encoder;
The 3rd bleeder mechanism between the port being connected to A output terminal and AD analog to digital converter;
The second bleeder mechanism between the port being connected to B output terminal and AD analog to digital converter;
For providing the direct supply of electric energy;
Be arranged on the first bleeder mechanism between described second bleeder mechanism, the public connecting end of the 3rd bleeder mechanism and the input end of direct supply;
Be used to indicate the indicating device of the sense of rotation of rotary encoder, described indicating device connects described processor.
2. the signal deteching circuit of a kind of rotary encoder as claimed in claim 1, is characterized in that: also include the comparer be connected between processor and AD analog to digital converter.
3. the signal deteching circuit of a kind of rotary encoder as claimed in claim 1, is characterized in that: described indicating device is display screen or pilot lamp.
4. the signal deteching circuit of a kind of rotary encoder as claimed in claim 1, is characterized in that: also include the storer be connected with described processor, for storage voltage value information.
5. the signal deteching circuit of a kind of rotary encoder as claimed in claim 1, is characterized in that: described first bleeder mechanism, the second bleeder mechanism and the 3rd bleeder mechanism are resistance.
CN201520295288.XU 2015-05-08 2015-05-08 Rotary encoder's signal detection circuit Expired - Fee Related CN204855553U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201520295288.XU CN204855553U (en) 2015-05-08 2015-05-08 Rotary encoder's signal detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201520295288.XU CN204855553U (en) 2015-05-08 2015-05-08 Rotary encoder's signal detection circuit

Publications (1)

Publication Number Publication Date
CN204855553U true CN204855553U (en) 2015-12-09

Family

ID=54746091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201520295288.XU Expired - Fee Related CN204855553U (en) 2015-05-08 2015-05-08 Rotary encoder's signal detection circuit

Country Status (1)

Country Link
CN (1) CN204855553U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111142428A (en) * 2019-12-13 2020-05-12 芜湖宏景电子股份有限公司 Detection circuit of encoder adopting AD port line

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111142428A (en) * 2019-12-13 2020-05-12 芜湖宏景电子股份有限公司 Detection circuit of encoder adopting AD port line

Similar Documents

Publication Publication Date Title
CN105242752B (en) The hardware address of a kind of backboard and backboard takes location method
CN106841988A (en) One kind rotation becomes decoding chip fault locator and detection method
CN204855553U (en) Rotary encoder's signal detection circuit
CN207215933U (en) A kind of break detection circuit of incremental encoder
CN103776364A (en) Angle measurement and fault diagnose system with spinning warning function
CN103176418B (en) The address coding method of Power System Intelligent feeder switch module
CN204392210U (en) A kind of code signal change-over circuit
CN203405472U (en) Wheel speed measurement device based on AVR single-chip microcomputer
CN105973274A (en) Signal detection circuit and apparatus thereof
CN204384642U (en) Elevator operation control system and elevator Internet of things system
CN103412241A (en) Cable fault positioning system based on single-chip microcomputer technology
CN107237724A (en) Rotation angle acquisition system, fan yaw angle monitoring system and method
CN204008688U (en) A kind of DC motor speed measurement mechanism based on Magnetic Flux Leakage Inspecting technology
CN102779380A (en) Ticket selling machine and Hopper driver
CN205487036U (en) Digital circuit experiment equipment
CN203364854U (en) A decoder circuit of an incremental photoelectric encoder
CN114485756A (en) Detection apparatus and method of rotary encoder, and computer-readable storage medium
CN207365987U (en) Absolute type encoder
CN204631199U (en) A kind of power cable local discharge detection device
CN102121834A (en) Detection method for throttle valve position sensor detection device
CN105974176A (en) USB Type-C volt ammeter and detection method thereof
CN105487011A (en) Variable-pitch motor multifunctional tester
CN208254639U (en) A kind of rotating machinery water dispenser vibration detecting system
CN204286490U (en) Embedded integrated temperature-humidity monitoring circuit
CN206211959U (en) A kind of voltage comparator circuit, application circuit are with electronic installation

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20151209

CF01 Termination of patent right due to non-payment of annual fee