CN104767530B - It is a kind of to count with Gray's code-disc - Google Patents

It is a kind of to count with Gray's code-disc Download PDF

Info

Publication number
CN104767530B
CN104767530B CN201510110501.XA CN201510110501A CN104767530B CN 104767530 B CN104767530 B CN 104767530B CN 201510110501 A CN201510110501 A CN 201510110501A CN 104767530 B CN104767530 B CN 104767530B
Authority
CN
China
Prior art keywords
gray
code
code channel
current potential
counting
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
CN201510110501.XA
Other languages
Chinese (zh)
Other versions
CN104767530A (en
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.)
Kang Kai
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201510110501.XA priority Critical patent/CN104767530B/en
Publication of CN104767530A publication Critical patent/CN104767530A/en
Application granted granted Critical
Publication of CN104767530B publication Critical patent/CN104767530B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

The invention discloses a kind of count to use Gray's code-disc, and including pcb board, the pcb board is equipped with first Gray's code channel, second Gray's code channel, third Gray code channel, the 4th Gray's code channel and the 5th Gray's code channel being connect respectively with the current potential brush of trigger;Several counting Gray codes of counting are respectively provided on wherein first Gray's code channel, second Gray's code channel, third Gray code channel and the 4th Gray's code channel, are additionally provided with to place the anti-frame hopping that the current potential brush jumps brush between two adjacent counting Gray codes;On the inside of the 4th Gray's code channel, for the 5th Gray's code channel as zero signal output label.It can prevent current potential brush leakage brush Gray code from making gray count more accurate using the present invention.

Description

It is a kind of to count with Gray's code-disc
Technical field
The present invention relates to Gray's code-disc fields more particularly to a kind of count to use Gray's code-disc.
Background technology
Gray code belongs to Reliability codes, is a kind of coding mode of error minimization.Because although natural binary code Analog signal directly can be converted by D/A converter, but in certain situations, for example, from metric 3 be converted to 4 when two into Each of code processed will become, and digital circuit can be made to generate very big peak current pulse.And Gray code is then without this shortcoming, , when adjacent interdigit is converted, only one generates variation for it.It is patrolled when greatly reducing by a state to next state That collects obscures.Since two adjacent interblocks of this coding only have a difference, thus in the corner displacement for direction In the conversion of amount-digital quantity, when minor change occurs for the corner displacement amount in direction(And when may cause the digital quantity to change, Gray code only changes one, more reliable compared with other codings change two or the situation of multidigit simultaneously in this way, you can to reduce The possibility of error.
The prior art mainly adopts Gray's code-discs for detecting or counting, and Gray's code-disc is read in encoder or brushgear Often the phenomenon that will appear jump brush or leakage brush, i.e., since brushgear rotating speed is too fast, there is brushgear and bounced some Gray Code, is unfavorable for the use of Gray code at the phenomenon that leading to miscount.
Therefore, the prior art has yet to be improved and developed.
Invention content
In view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of count to use Gray's code-disc, overcomes existing There is Gray's code-disc in technology easily to jump the technological deficiency that brush counts inaccuracy.
Technical scheme is as follows:
A kind of count uses Gray's code-disc, and including pcb board, the pcb board is equipped with and is connect respectively with the current potential brush of trigger First Gray's code channel, second Gray's code channel, third Gray code channel, the 4th Gray's code channel and the 5th Gray's code channel;
Use is respectively equipped on wherein first Gray's code channel, second Gray's code channel, third Gray code channel and the 4th Gray's code channel Several in counting count Gray code, are additionally provided between two adjacent counting Gray codes and are jumped for placing the current potential brush The anti-frame hopping of brush;
On the inside of the 4th Gray's code channel, for the 5th Gray's code channel as zero signal output label.
Above-mentioned counting Gray's code-disc, wherein, the first Gray code channel, second Gray's code channel, third Gray code channel, Four Gray's code channels and the 5th Gray's code channel are copper foil Gray's code channel.
Above-mentioned counting Gray's code-disc, wherein, the first Gray code channel, second Gray's code channel, third Gray code channel, The operating potential of four Gray's code channels and the 5th Gray's code channel is 3.3V.
Above-mentioned counting Gray's code-disc, wherein, the trigger is JK flip-flop.
Above-mentioned counting Gray's code-disc, wherein, the current potential for counting Gray code connection is more than the anti-frame hopping connection Current potential or the current potential for counting Gray code connection are less than the current potential of the anti-frame hopping connection.
Above-mentioned counting Gray's code-disc, wherein, the current potential of the anti-frame hopping connection is zero.
It is provided by the present invention to count with Gray's code-disc, due to using in first Gray's code channel, second Gray's code channel and the Several counting Gray codes of counting are respectively provided on three Gray's code channels, are also set between two adjacent counting Gray codes It is useful for placing the anti-frame hopping that the current potential brush jumps brush;Due to anti-frame hopping and to count Gray code contour, when current potential brush rotates not It can beat, so as to prevent current potential brush leakage brush Gray code from making gray count more accurate.
Description of the drawings
Fig. 1 is the schematic diagram counted in the present invention with Gray's code-disc preferred embodiment.
Fig. 2 is the partial schematic diagram counted in the present invention with Gray's code-disc preferred embodiment.
In figure:1st, first Gray's code channel;2nd, second Gray's code channel;3rd, third Gray code channel;4th, the 4th Gray's code channel;5th, Five Gray's code channels;6th, Gray code is counted;7th, anti-frame hopping;8th, pcb board.
Specific embodiment
The present invention provide it is a kind of count with Gray's code-disc, for make the purpose of the present invention, technical solution and effect it is clearer, Clearly, referring to the drawings and give an actual example that the present invention is described in more detail.It should be appreciated that specific implementation described herein Example is only used to explain the present invention, is not intended to limit the present invention.
Refering to Figure 1, provided by the invention count uses Gray's code-disc, including pcb board 8, the pcb board 8 is equipped with 5 Enclose Gray's code channel.Outmost turns setting is first Gray's code channel 1, successively, the inside of first Gray's code channel 1 the second Gray is set Code channel 2 and third Gray code channel 3.The first Gray code channel 1, second Gray's code channel 2 and third Gray code channel 3 are used to count, And connect respectively with trigger, output to microcontroller carries out calculation process after then trigger is encoded.It is of the prior art Gray's code-disc is provided only with first, second, and third Gray's code channel for counting, and two adjacent Grays in Gray's code channel It is empty between code, that is, is not provided with metal Gray code, usually 8 clear area of pcb board.When in use, the current potential brush slave phase of trigger After being passed through on one of Gray code in adjacent two Gray codes, a pcb board clear area and then again another lattice of swipe need to be passed through Thunder code, but in current potential brush another Gray code is turned to from 8 clear area of pcb board(That is second Gray code)When upper, easily occurred Frame hopping phenomenon.The generation of frame hopping phenomenon can cause counting error, and current potential brush has brushed one or more Gray codes less will be to measuring Structure causes irremediable error.
To overcome above-mentioned technical problem, as shown in Fig. 2, provided by the invention count is used in Gray's code-disc, the pcb board 8 It is equipped with first Gray's code channel 1 being connect respectively with the current potential brush of trigger, second Gray's code channel 2, third Gray code channel 3, the Four Gray's code channels 4 and the 5th Gray's code channel 5.Wherein first Gray's code channel 1, second Gray's code channel 2, third Gray code channel 3 and Be respectively provided on four Gray's code channels 4 counting several count Gray codes 6, two it is adjacent it is described counting Gray codes 6 between It is additionally provided with to place the anti-frame hopping 7 that the current potential brush jumps brush.The formation for counting 7 complementation of Gray code 6 and the anti-frame hopping One complete Gray's code channel, and the counting high settings such as Gray code 6 and the anti-frame hopping 7;The counting Gray code 6 and institute It states mutually isolated by etching technique between anti-frame hopping 7.Pass through the first, second, and third Gray code channel when there is current potential brush When, it is complementary and contour due to counting Gray code 6 and anti-frame hopping 7, frame hopping phenomenon will not occur when current potential brush passes through or leakage brush is existing As solving the problems, such as that gray count is inaccurate in the prior art.
Specifically, the first Gray code channel 1, second Gray's code channel 2, third Gray code channel 3,4 and of the 4th Gray's code channel The operating potential of 5th Gray's code channel 5 is 3.3V.Using the counting Gray code in the present invention, when the trigger is triggered for JK During device, the current potential brush of JK flip-flop is arranged on the counting and is rotated with Gray code centered around the counting with Gray code, described Current potential brush corresponds to different Gray's code channels equipped with different current potential brushes.When current potential brush passes through three adjacent Gray codes, that is, pass through Adjacent three crossed in first Gray's code channel 1, second Gray's code channel 2 and third Gray code channel 3 count Gray code 6 or anti-frame hopping When 7.
Such as current potential brush is moved to the anti-jump of the first Gray code, the second Gray code, third Gray code and the 4th Gray's code channel 4 On code 7, the current potential on anti-frame hopping 7 at this time can be denoted as zero, then JK flip-flop records Gray's code value and is transmitted in microcontroller and deposits For 0000 binary coding, current potential brush is continued to move to when current potential brush detects a current potential, i.e., current potential brush is mobile and is triggered to Counting Gray code 6, such as the counting Gray code 6 are the counting Gray code 6 on third Gray code channel 3, then JK flip-flop records Gray's code value and being transmitted to saves as 0001 binary coding in microcontroller, then current potential brush continue to move to, and so on obtain Different Gray's code values, this is repeated no more again for the prior art.The difference is that in first, second, and third Gray's code channel Counting Gray code 6 can trigger current potential brush with current potential, and design the Gray code that the current potential that anti-frame hopping 7 connects is zero potential, Sky is recorded as when current potential brush touches the anti-frame hopping 7.Due to anti-frame hopping and to count Gray code contour, when current potential brush rotates not It can beat, can prevent current potential brush from making Gray's coded disc counting because of the too fast frame hopping or leakage brush phenomenon to generate of rotating speed by anti-frame hopping 7 It is more accurate.
As the another specific embodiment of the present invention, when setting counts the current potential of Gray code 6 and anti-frame hopping 7, can also incite somebody to action It is described to count current potential of the current potential more than the anti-connection of frame hopping 7 or the current potential for counting Gray code 6 and connecting that Gray code 6 connects The current potential connected less than the anti-frame hopping 7.If the current potential for counting Gray code 6 is more than the current potential of anti-frame hopping 7, the triggering of current potential brush is anti- Sky or zero are then recorded as during the low potential of frame hopping 7;When the current potential for counting Gray code 6 is less than the current potential of anti-frame hopping 7, current potential brush touches It is then recorded as during the high potential for sending out frame hopping 7 anti-empty or zero.
Further, rotation and the counting that the beginning second of formula is enclosed, this hair will be added up after one circle of current potential brush rotation It is bright positioned at 4 inside of the 4th Gray's code channel, independently of except first to fourth Gray's code channel a, independently arranged circle 5th Gray's code channel 5 of Gray's code channel, for as zero signal output label.That is the 5th Gray's code channel 5 has zero reference Effect, every turn of current potential brush it is complete one circle can then trigger output pulsatile once signal, using the Gray code of the 5th Gray's code channel 5 as machine Tool zero-bit records, to realize the unlimited cumulative of multi-turn and measure.
Further, above-mentioned counting is in Gray's code-disc, the first Gray code channel 1, second Gray's code channel 2, Three Gray's code channels 3, the 4th Gray's code channel 4 and the 5th Gray's code channel 5 are copper foil Gray's code channel, can effectively transmit current potential, reach To the accurate effect of measurement.
In conclusion provided by the present invention count uses Gray's code-disc, due to using in first Gray's code channel 1, the second lattice Several counting Gray codes 6 of counting, two adjacent countings are respectively provided on thunder code channel 2 and third Gray code channel 3 It is additionally provided with to place the anti-frame hopping 7 that the current potential brush jumps brush between Gray code 6;Since anti-frame hopping is contour with counting Gray code, It will not beat when current potential brush rotates, so as to prevent current potential brush leakage brush Gray code from making gray count more accurate.
It should be understood that the application of the present invention is not limited to the above, it for those of ordinary skills, can To be improved or converted according to the above description, wanted for example, all these modifications and variations should all belong to right appended by the present invention The protection domain asked.

Claims (5)

1. a kind of count with Gray's code-disc, which is characterized in that including pcb board, the pcb board be equipped with respectively with the electricity of trigger First Gray's code channel, second Gray's code channel, third Gray code channel, the 4th Gray's code channel and the 5th Gray's code channel of position brush connection;
Meter is respectively provided on wherein first Gray's code channel, second Gray's code channel, third Gray code channel and the 4th Gray's code channel Several several count Gray codes, are additionally provided with to prevent between two adjacent counting Gray codes in same Gray's code channel The current potential brush jumps the anti-frame hopping of brush;
The current potential of the anti-frame hopping connection is zero;
The counting Gray code and the anti-frame hopping are complementarily shaped to complete Gray's code channel, the counting in same Gray's code channel Gray code is intertwined with anti-frame hopping, and the counting Gray code and the contour setting of anti-frame hopping;
On the inside of the 4th Gray's code channel, for the 5th Gray's code channel as zero signal output label.
2. according to claim 1 count with Gray's code-disc, which is characterized in that the first Gray code channel, the second Gray Code channel, third Gray code channel, the 4th Gray's code channel and the 5th Gray's code channel are copper foil Gray's code channel.
3. according to claim 1 count with Gray's code-disc, which is characterized in that the first Gray code channel, the second Gray Code channel, third Gray code channel, the 4th Gray's code channel and the 5th Gray's code channel operating potential be 3.3V.
4. according to claim 1 count with Gray's code-disc, which is characterized in that the trigger is JK flip-flop.
5. according to claim 1 count with Gray's code-disc, which is characterized in that the current potential for counting Gray code connection is big It is less than the current potential of the anti-frame hopping connection in the current potential of the anti-frame hopping connection or the current potential for counting Gray code connection.
CN201510110501.XA 2015-03-13 2015-03-13 It is a kind of to count with Gray's code-disc Active CN104767530B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510110501.XA CN104767530B (en) 2015-03-13 2015-03-13 It is a kind of to count with Gray's code-disc

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510110501.XA CN104767530B (en) 2015-03-13 2015-03-13 It is a kind of to count with Gray's code-disc

Publications (2)

Publication Number Publication Date
CN104767530A CN104767530A (en) 2015-07-08
CN104767530B true CN104767530B (en) 2018-06-26

Family

ID=53649183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510110501.XA Active CN104767530B (en) 2015-03-13 2015-03-13 It is a kind of to count with Gray's code-disc

Country Status (1)

Country Link
CN (1) CN104767530B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110620584A (en) * 2019-05-10 2019-12-27 红云红河烟草(集团)有限责任公司 Method for collecting and processing encoder signals

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0519333A1 (en) * 1991-06-21 1992-12-23 University Of Utah Research Foundation Rotary displacement measuring apparatus
CN2382074Y (en) * 1999-06-29 2000-06-07 冯畅 Flow meter counter
CN1509411A (en) * 2001-05-16 2004-06-30 Position encoder
CN2679638Y (en) * 2003-08-25 2005-02-16 李亚兰 Digital display flexible rule having double sensors
CN204442349U (en) * 2015-03-13 2015-07-01 东莞捷荣技术股份有限公司 A kind of counting uses Gray's code-disc

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0519333A1 (en) * 1991-06-21 1992-12-23 University Of Utah Research Foundation Rotary displacement measuring apparatus
US5311666A (en) * 1991-06-21 1994-05-17 University Of Utah Research Foundation Rotary displacement measuring apparatus
CN2382074Y (en) * 1999-06-29 2000-06-07 冯畅 Flow meter counter
CN1509411A (en) * 2001-05-16 2004-06-30 Position encoder
CN2679638Y (en) * 2003-08-25 2005-02-16 李亚兰 Digital display flexible rule having double sensors
CN204442349U (en) * 2015-03-13 2015-07-01 东莞捷荣技术股份有限公司 A kind of counting uses Gray's code-disc

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110620584A (en) * 2019-05-10 2019-12-27 红云红河烟草(集团)有限责任公司 Method for collecting and processing encoder signals

Also Published As

Publication number Publication date
CN104767530A (en) 2015-07-08

Similar Documents

Publication Publication Date Title
CN104764391B (en) A kind of electronics steel tape
CN104764392B (en) A kind of electronics tape
EP1600741A2 (en) Pulse width modulation based digital incremental encoder
CN105379120A (en) Capacitive proximity detection using delta-sigma conversion
CN207636039U (en) A kind of real-time steering wheel angle acquisition system
CN103245371A (en) Position detection and valve position and stroke detection integral coder for motor rotator
CN104767530B (en) It is a kind of to count with Gray's code-disc
CN204479009U (en) A kind of electronics steel tape
CN204392210U (en) A kind of code signal change-over circuit
CN104767532B (en) A kind of Gray's code-disc that band just positions
CN104767531B (en) A kind of Gray's code-disc
CN204388870U (en) absolute encoder
CN204202625U (en) Electronics multi-turn absolute value encoder
CN201672904U (en) Magnetostriction linear displacement sensor
CN104766121B (en) A kind of counter code disc
CN102322881A (en) Non-contact passive hold-down photomagnetic multi-rotary absolute position sensor
CN204442349U (en) A kind of counting uses Gray's code-disc
CN203274770U (en) Integrated encoder for rotor location detection of motor and valve location stroke detection of valve
CN204442350U (en) A kind of Gray's code-disc
CN204515832U (en) A kind of counter code disc
CN202126270U (en) Non-contact passive holddown photomagnetic multi-rotation absolute position sensor
CN104767467B (en) A kind of calibration method of electromechanics zero point
CN201463994U (en) Float type digital liquid level sensor
CN201281619Y (en) Passive direct reading water-gas meter sensor
CN204442351U (en) A kind of Gray's code-disc with just locating

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
CB03 Change of inventor or designer information

Inventor after: Li Xiangliang

Inventor before: Li Xiangji

Inventor before: Xie Guangbao

Inventor before: Li Peng

Inventor before: Xia Wei

COR Change of bibliographic data
TA01 Transfer of patent application right

Effective date of registration: 20150915

Address after: Luohu District Songyuan road Shenzhen City, Guangdong province 518001 75 2 14B

Applicant after: Kang Kai

Address before: 523879 Xin'an Industrial Park, Changan Town, Dongguan, Guangdong

Applicant before: DONGGUAN JIERONG TECHNOLOGY CO., LTD.

GR01 Patent grant
GR01 Patent grant