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.
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.