CN206946542U - A kind of incremental encoder counting device - Google Patents

A kind of incremental encoder counting device Download PDF

Info

Publication number
CN206946542U
CN206946542U CN201720461814.4U CN201720461814U CN206946542U CN 206946542 U CN206946542 U CN 206946542U CN 201720461814 U CN201720461814 U CN 201720461814U CN 206946542 U CN206946542 U CN 206946542U
Authority
CN
China
Prior art keywords
state
phase signals
signal
circuit
counting device
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
CN201720461814.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.)
Foshan guanwan Intelligent Technology Co.,Ltd.
Original Assignee
Foshan Sandian Intelligent 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 Foshan Sandian Intelligent Technology Co Ltd filed Critical Foshan Sandian Intelligent Technology Co Ltd
Priority to CN201720461814.4U priority Critical patent/CN206946542U/en
Application granted granted Critical
Publication of CN206946542U publication Critical patent/CN206946542U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Optical Transform (AREA)
  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

The utility model discloses a kind of incremental encoder counting device, including:Signal conditioning circuit and counter circuit;The signal conditioning circuit is used for the steering state of output motor, and the steering state is relevant with an existing state for A, B phase signals from previous state to the hopping edge of an existing state with A, B phase signals;The counter circuit, for receiving the steering state and being counted.By the hopping edge of A, B phase signals, the situation that a state is showed in conjunction with A, B phase obtains the steering state signal of motor, and completes to count by counter circuit.The technical scheme can avoid causing the not high situation of count accuracy because encoder shakes by detecting the hopping edges of A, B phase signals simultaneously.The technique device can be widely applied to the occasion higher to counting accuracy requirement.

Description

A kind of incremental encoder counting device
Technical field
The technical field of motor is the utility model is related to, more particularly to a kind of incremental encoder counting device.
Background technology
The phase signals of A, B two that existing incremental encoder counting device exports to encoder count, and turn to obtain Speed and positional information.To A, B phase signals count generally use mode be a phase signals wherein hopping edge (rising edge or under Drop edge) judge the level states of another phase signals.As shown in figure 1, in B rising edge, a-signal is high level, then motor is just Direction rotates, and now carries out plus 1 counts;As shown in Fig. 2 in B rising edge, a-signal is low level, then motor revolves for opposite direction Turn, encoder carries out subtracting 1 counting.
When low speed commutates, encoder is often accompanied by jitter phenomenon, not high enough using this method of counting accuracy, mistake be present The situation of counting.For example commutated near N points, now B signal is shaken due to the left and right in commutation process can produce multiple risings Edge, as shown in figure 3, now a-signal is still high level, it will result in repeatedly plus 1 count.
Utility model content
The purpose of this utility model is:A kind of counting device of incremental encoder is provided, improves the accuracy of counting.
The solution that the utility model solves its technical problem is:A kind of incremental encoder counting device, including:Letter Number modulate circuit and counter circuit;The signal conditioning circuit be used for output motor steering state, the steering state with A, B phase signals are relevant with an existing state for A, B phase signals to the hopping edge of an existing state from previous state;The counter electricity Road, for receiving the steering state and being counted.
Further, hopping edge is converted into by pulse signal using two-stage d type flip flop circuit, the pulse signal passes through conversion Circuit is converted into the signal for describing the steering state.
Further, the conversion circuit is data selector, and the data selection control terminal of the data selector is used to connect Receive A, B phase signals of an existing state.
Further, the data selector selects 1 data selector 74LS153 for double 4.
Further, the counter circuit is cascaded using 4 tetrad counter 74LS193.
The beneficial effects of the utility model are:By the hopping edge of A, B phase signals, the feelings of a state are showed in conjunction with A, B phase Condition obtains the steering state signal of motor, and completes to count by counter circuit.The technical scheme by detecting A, B phase simultaneously The hopping edge of signal, it can avoid causing the not high situation of count accuracy because encoder shakes.The technique device can answer extensively For requiring higher occasion to counting accuracy.
Brief description of the drawings
, below will be to needed for embodiment description in order to illustrate more clearly of the technical scheme in the embodiment of the utility model The accompanying drawing to be used is briefly described.Obviously, described accompanying drawing is part of the embodiment of the present utility model, rather than entirely Portion's embodiment, those skilled in the art on the premise of not paying creative work, can also obtain it according to these accompanying drawings His design and accompanying drawing.
Fig. 1 is the judgement schematic diagram that counting device rotates to positive direction before not improving;
Fig. 2 is the judgement schematic diagram that counting device rotates to opposite direction before not improving;
Fig. 3 is the jitter conditions schematic diagram that counting device easily occurs before not improving;
Fig. 4 is the connection diagram of signal conditioning circuit;
Fig. 5 is the timing diagram of pulse signal;
Fig. 6 is the connection diagram of counter circuit.
Embodiment
Design, concrete structure and caused technique effect of the present utility model are carried out below with reference to embodiment and accompanying drawing Clear, complete description, to be completely understood by the purpose of this utility model, feature and effect.Obviously, described embodiment It is part of the embodiment of the present utility model, rather than whole embodiments, based on embodiment of the present utility model, the skill of this area The other embodiment that art personnel are obtained on the premise of not paying creative work, belong to the model of the utility model protection Enclose.In addition, all connection/annexations being previously mentioned in text, not singly refer to component and directly connect, and refer to can be according to specific reality Situation is applied, by adding or reducing couple auxiliary, to form more excellent draw bail.Every technology in the utility model is special Sign, can be with combination of interactions on the premise of not conflicting conflict.
Embodiment 1, with reference to figure 4, incremental encoder counting device can carry out adding 1 according to the steering state of motor and subtract 1 Calculate, according to counting principle commonly used in the art, when the steering state of motor rotates for positive direction, counting device adds 1, works as motor Steering state for opposite direction rotate when, counting device subtracts 1, the present embodiment according to this commonly use counting means design.Certainly, count Turn to also to have corresponding to device plus-minus 1 and do not meet the principle, such case should also belong in the scope of protection of the utility model.
Principle of the present utility model:With the various combination situation of the present level state of A, B phase signals and last level state Carry out plus-minus counting.The level state of B phase signals and A phase signals is designated as BA.It is described as follows:BA level states share 4 kinds of feelings Condition:00、01、10、11.
According to the code-disc optical grating construction of encoder, when BA is now arranged in 00 state, its previous state be only possible to be 01 or Person 10.When previous state is 01, show to be transferred to 00 state by 01 state, A phase signals produce trailing edge, judge turning for motor It is opposite direction rotation to state, carries out subtracting 1 counting;When previous state is 10, show to be transferred to 00 state, B phases by 10 states Signal produces trailing edge, judges that the steering state of motor rotates for positive direction, carries out plus 1 counts.
When BA is now arranged in 01 state, its previous state is 00 or 11.When previous state is 00, show by 00 state 01 state is transferred to, A phase signals produce rising edge, judge that the steering state of motor rotates for positive direction, carry out plus 1 counts. When previous state is 11, show to be transferred to 01 state by 11 states, B phase signals produce trailing edge, judge the steering shape of motor State is opposite direction rotation, carries out subtracting 1 counting.
When BA is now arranged in 10 states, its previous state is 11 or 00.When previous state is 11, show by 11 states 10 states are transferred to, A phase signals produce trailing edge, judge that the steering state of motor rotates for positive direction, carry out plus 1 counts. When previous state is 00, show to be transferred to 10 states by 00 state, B phase signals produce rising edge, judge the steering shape of motor State is opposite direction rotation, carries out subtracting 1 counting.
When BA is now arranged in 11 states, its previous state is 10 or 01.When previous state is 10, show by 10 states 11 states have been transferred to it, A phase signals produce rising edge, and the steering state for judging motor is opposite direction rotation, carry out subtracting 1 counting. When previous state is 01, show to be transferred to 11 states by 01 state, B phase signals produce rising edge, judge the steering shape of motor State rotates for positive direction, carries out plus 1 counts.
The steering state of motor is with A, B phase signals from previous state to the existing hopping edge of a state and showing for A, B phase signals One state meets the logical relation of following form 1:
The existing states of BA A, B phase signals hopping edge situation Steering state
00 A↓ Reversely
00 B↓ It is positive
01 A↑ It is positive
01 B↓ Reversely
10 A↓ It is positive
10 B↑ Reversely
11 A↑ Reversely
11 B↑ It is positive
Table 1
Wherein, A ↓ expression:A phase signals produce trailing edge;A ↑ expression:A phase signals produce rising edge;B ↓ expression:B phase signals Produce trailing edge;B ↑ expression:B phase signals produce rising edge.
Counting device of the present utility model:As shown in figure 4, input signal CLK is high frequency sampling clock, input signal A, B phase signals.
Using two-stage d type flip flop U1A and U1B, two-stage d type flip flop U1C and U1D with being carried with door U2A, U2B, U2C, U2D Take A, B hopping edge and be converted into pulse signal.Output with door U2A is signal A rising edge, otherwise not as being high level It is rising edge;Output with door U2B is signal A trailing edge, is not otherwise trailing edge as being high level;With door U2C output It is such as high level, is signal B rising edge, is not otherwise rising edge;Output with door U2D is under signal B as being high level Edge is dropped, is not otherwise trailing edge.It is as shown in Figure 5 with the pulse signal sequential of door U2A ~ U2D outputs.Thus it is clear that U2A, U2B, U2C, U2D exports the rising edge time of the high level difference corresponding A of clock, A trailing edge moment, B rising edge time, B The trailing edge moment.Because having used two-stage d type flip flop to be cached, the high level of U2A ~ U2D outputs and corresponding A, B signal jump Become along the delay for there are two clocks.
Pin is output to after being selected with the double 4 four road signals for selecting 1 data selector 74LS153 to export U2A ~ U2D 1Y、2Y.Signal 1y on pin 1Y is designed as expression and rotated forward, and the signal 2y on 2Y is designed as representing to reversely rotate.
74LS153 input pin A, B is data selection control terminal.When data select control terminal BA for 00 when, according to 74LS153 truth table, input pin 1C0 and 1Y are connected, and 2C0 and 2Y is connected., should be by under the A for representing reverse rotation according to table 1 Drop along state (output with door U2B) is output to 2Y, represents that the B trailing edges state output that rotates forward is (defeated with door U2D to 1Y Go out).Therefore U2B outputs are attached to 74LS153 2C0, U2D exports the 1C0 for being connected to 74LS153.
When BA is 01,1C1 connects with 1Y, and 2C1 connects with 2Y.The rising edge shape for the A that expression should be now rotated forward State is output to 1Y (output with door U2A), and the trailing edge state (output with door U2D) for the B for representing to reversely rotate is output to 2Y. Therefore U2A is exported and is connected with 1C1, U2D outputs are connected with 2C1.
When BA is 10,1C2 and 1Y is connected, and 2C2 and 2Y is connected.The trailing edge shape for the A that expression should be now rotated forward State (output with door U2B) is output to 1Y, and the rising edge state (output with door U2C) for the B for representing to reversely rotate is output to 2Y. Therefore be connected U2B output with 1C2, U2C output is connected with 2C2.
When BA is 11,1C3 and 1Y is connected, and 2C3 and 2Y is connected.It should will now represent the A of reverse rotation rising edge shape State (output with door U2A) is output to 2Y, and the rising edge state (output with door U2C) for the B for representing to rotate forward is output to 1Y. Therefore be connected U2A output with 2C3, U2C output is connected with 1C3.
As shown in fig. 6, signal conditioning circuit exports:Represent the signal 1y of motor forward condition, represent motor reverse state Signal 2y;1y and 2y are connected to the input of counter circuit.Cascaded with 4 tetrad counter 74LS193, on The carry pulse of level chip adds count pulse input to be connected with subordinate chip, borrows pulse with subtracting count pulse input phase Even, reversible incremental countdown is realized.
According to 74LS193 counting sequence, two-way count pulse input UP, DN are wherein all the way in input count pulse When, another way is necessary for high level, therefore signal 1y, 2y are negated with phase inverter U4A, U4B so that DN during UP input count pulses For high level, UP is high level when DN inputs count pulse, can correctly be counted so as to ensure that.
The count value CNT of final output is 16bit.When input signal 1y rising edge, CNT adds 1;As input signal 2y Rising edge when, CNT subtracts 1, realize carried out between 0 ~ 65535 be incremented by countdown.
Better embodiment of the present utility model is illustrated above, but the utility model be not limited to it is described Embodiment, those skilled in the art can also make a variety of equivalent changes on the premise of without prejudice to the utility model spirit Type or replacement, these equivalent modifications or replacement are all contained in the application claim limited range.

Claims (3)

  1. A kind of 1. incremental encoder counting device, it is characterised in that including:Signal conditioning circuit and counter circuit;
    Signal conditioning circuit, for the steering state of output motor, the steering state is with A, B phase signals from previous state to now The hopping edge of one state is relevant with an existing state for A, B phase signals;Hopping edge is converted into by pulse using two-stage d type flip flop circuit Signal, the pulse signal are converted into the signal for describing the steering state by conversion circuit;The conversion circuit is data Selector, the data selection control terminal of the data selector are used for A, B phase signals for receiving an existing state;
    Counter circuit, for receiving the steering state and being counted.
  2. A kind of 2. incremental encoder counting device according to claim 1, it is characterised in that:The data selector is Double 4 select 1 data selector 74LS153.
  3. A kind of 3. incremental encoder counting device according to claim 1, it is characterised in that:The counter circuit is adopted Cascaded with 4 tetrad counter 74LS193.
CN201720461814.4U 2017-04-27 2017-04-27 A kind of incremental encoder counting device Active CN206946542U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201720461814.4U CN206946542U (en) 2017-04-27 2017-04-27 A kind of incremental encoder counting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201720461814.4U CN206946542U (en) 2017-04-27 2017-04-27 A kind of incremental encoder counting device

Publications (1)

Publication Number Publication Date
CN206946542U true CN206946542U (en) 2018-01-30

Family

ID=61359175

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201720461814.4U Active CN206946542U (en) 2017-04-27 2017-04-27 A kind of incremental encoder counting device

Country Status (1)

Country Link
CN (1) CN206946542U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107092956A (en) * 2017-04-27 2017-08-25 佛山三电智能科技有限公司 A kind of incremental encoder counting device
CN111953353A (en) * 2020-08-21 2020-11-17 烟台艾睿光电科技有限公司 Decoding method and related device of incremental encoder

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107092956A (en) * 2017-04-27 2017-08-25 佛山三电智能科技有限公司 A kind of incremental encoder counting device
CN111953353A (en) * 2020-08-21 2020-11-17 烟台艾睿光电科技有限公司 Decoding method and related device of incremental encoder

Similar Documents

Publication Publication Date Title
CN107092956A (en) A kind of incremental encoder counting device
CN2922277Y (en) Clock burr testing circuit
CN206946542U (en) A kind of incremental encoder counting device
CN101063894B (en) Method and system for dynamically synchronizing a processor clock with the leading edge of a bus clock
CN102931994B (en) Be applied to high speed signal sampling and synchronous framework and the method for signal processing chip
CN101534109B (en) Orthogonal signal frequency-multiplication phase-demodulation logic circuit with filter function
CN102353891B (en) Digital integrated circuit fundamental tester
CN104317253A (en) System method for servo motor position control
CN1776373A (en) Phase demodulating circuit for incremeutal rotary encoder
CN206075260U (en) A kind of computer data acquiring control system based on FPGA
CN105116318A (en) Method for realizing burr detection in logic analyzer
CN205725536U (en) A kind of adjacent cross-couplings synchronous control system based on sliding moding structure
CN102023625A (en) SSI (Small Scale Integration) data transmitter for rotary encoder based on CPLD (Complex Programmable Logic Device)/FPGA (Field Programmable Gate Array)
CN102799412A (en) CORDIC (coordinate rotation digital computer) accelerator based on parallel pipeline design
CN102843118A (en) Quadrupling and sensing method and device for quadrature encoder
CN102736888A (en) Data retrieval circuit being synchronous with data stream
CN204313787U (en) A kind of testing circuit of angular encoder
CN204597934U (en) A kind of arbitrary integer frequency dividing circuit of orthogonal optical photoelectric coder
CN108448993A (en) Multi-motor fixed time self-adaptive sliding mode control method based on adjacent cross coupling
CN107452309A (en) A kind of decoding circuit of self-adapting data frequency
CN103645887B (en) Two instruction many floating-points operand plus/minus, multiplication and division operation control device
CN103135494A (en) Input circuit in high speed counter module in PLC
CN205942681U (en) Serial communication interface that can dispose
CN204650285U (en) The turntable stop means of a kind of angle range more than 360 degree
CN104133407A (en) Counting device and method for incremental encoder

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210426

Address after: 528000 Room 204, 2nd floor, Foshan Aowei Technology Industry Co., Ltd. (workshop b), Songxia Industrial Park, Shishan town, Nanhai District, Foshan City, Guangdong Province

Patentee after: Foshan guanwan Intelligent Technology Co.,Ltd.

Address before: 528200, Foshan, Guangdong Province, Nanhai District, lion Town, Songgang Pine Industrial Park, Taoyuan Road, No. 19, B workshop, on the third floor, room 304

Patentee before: FOSHAN SANDIAN INTELLIGENT TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of utility model: An incremental encoder counting device

Effective date of registration: 20221226

Granted publication date: 20180130

Pledgee: Foshan Branch of Dah Sing Bank (China) Co.,Ltd.

Pledgor: Foshan guanwan Intelligent Technology Co.,Ltd.

Registration number: Y2022980029017

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Granted publication date: 20180130

Pledgee: Foshan Branch of Dah Sing Bank (China) Co.,Ltd.

Pledgor: Foshan guanwan Intelligent Technology Co.,Ltd.

Registration number: Y2022980029017

PC01 Cancellation of the registration of the contract for pledge of patent right