Rotary coding disc and method for designing the same
11204265 · 2021-12-21
Assignee
Inventors
- Mang Ou-Yang (Hsinchu, TW)
- Ting-Feng Wang (Tainan, TW)
- Yung-Jhe Yan (Taipei, TW)
- Chun-Chieh Liao (New Taipei, TW)
Cpc classification
G01D5/34792
PHYSICS
International classification
Abstract
A rotary coding disc and a method for designing the same is applied to an optical encoder. N-bit De Bruijn sequences include 1 and 0. The N-bit De Bruijn sequence has the maximum binary code and the minimum binary code. When a binary code having M bits is located between the maximum binary code and the minimum binary code, the corresponding N-bit De Bruijn sequences are selected as diagonal De Bruijn sequences, wherein
The De Bruijn sequence may be converted into a De Bruijn energy level. The total number of 1 consecutively neighboring 0 and (N−1) consecutively neighboring N of the De Bruijn energy level is calculated. The transparent areas and the opaque areas are located based on the De Bruijn sequence or the De Bruijn energy level that corresponds to the total number less than or equal to N.
Claims
1. A rotary coding disc, applied to an optical encoder, comprising: a plurality of transparent areas; and a plurality of opaque areas; wherein the plurality of transparent areas and the plurality of opaque areas are circularly distributed; wherein the number of N-bit De Bruijn sequences is 2.sup.[2.sup.
2. The rotary coding disc according to claim 1, wherein a first number of each bit of the diagonal De Bruijn sequence is added to second numbers of (N−1) bits consecutively neighboring the first number to obtain a value of an energy level, the value of the energy level replaces a corresponding the first number to convert the De Bruijn sequence into a De Bruijn energy level, the De Bruijn energy level includes the value of the energy level, the value of the energy level is a non-negative integer less than or equal to N, the total number of 1 consecutively neighboring 0 and (N−1) consecutively neighboring N of the De Bruijn energy level is calculated, and the positions of the plurality of transparent areas and the plurality of opaque areas are arranged based on the De Bruijn energy level that corresponds to the total number less than or equal to N.
3. The rotary coding disc according to claim 1, wherein positions of 1 and 0 of the diagonal De Bruijn sequence respectively correspond to the positions of each of the plurality of transparent areas and each of the plurality of opaque areas.
4. The rotary coding disc according to claim 1, wherein positions of 0 and 1 of the diagonal De Bruijn sequence respectively correspond to the positions of each of the plurality of transparent areas and each of the plurality of opaque areas.
5. The rotary coding disc according to claim 1, wherein a number of each bit of the maximum binary code is 1 and a number of each bit of the minimum binary code is 0.
6. A method for designing a rotary coding disc, applied to an optical encoder with transparent areas and opaque areas, comprising: forming N-bit De Bruijn sequences with 1 and 0, wherein the number of the N-bit De Bruijn sequences is 2.sup.[2.sup.
7. The method for designing a rotary coding disc according to claim 6, wherein after the step of selecting the diagonal De Bruijn sequences, the method further comprising: adding a first number of each bit of the diagonal De Bruijn sequence to second numbers of (N−1) bits consecutively neighboring the first number to obtain a value of an energy level, and replacing a corresponding the first number with the value of the energy level to convert the diagonal De Bruijn sequence into a De Bruijn energy level, wherein the De Bruijn energy level includes the value of the energy level, and the value of the energy level is a non-negative integer less than or equal to N; and calculating a total number of 1 consecutively neighboring 0 and (N−1) consecutively neighboring N of the De Bruijn energy level, and arranging the positions of the transparent areas and the opaque areas based on the De Bruijn energy level that corresponds to the total number less than or equal to N.
8. The method for designing a rotary coding disc according to claim 6, wherein positions of 1 and 0 of the diagonal De Bruijn sequence respectively correspond to the positions of the transparent area and the opaque area.
9. The method for designing a rotary coding disc according to claim 6, wherein positions of 0 and 1 of the diagonal De Bruijn sequence respectively correspond to the positions of the transparent area and the opaque area.
10. The method for designing a rotary coding disc according to claim 6, wherein a number of each bit of the maximum binary code is 1 and a number of each bit of the minimum binary code is 0.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
DETAILED DESCRIPTION OF THE INVENTION
(12)
(13) If N=9, the positions of transparent areas and opaque areas of the rotary coding disc 20 are arranged based on nine-bit De Bruijn sequences formed of 1 and 0, wherein 1 and 0 respectively represent the positions of transparent areas and opaque areas. The rotary coding disc 20 is divided into 512 positions. The nine-bit De Bruijn sequences include 2.sup.247 De Bruijn sequences. Take Table 2 as an example. Table 2 shows one of the nine-bit De Bruijn sequences. From Table 2 of
(14) If N=5, the positions of transparent areas and opaque areas of the rotary coding disc 20 are arranged based on five-bit De Bruijn sequences formed of 1 and 0, wherein 1 and 0 respectively represent the positions of transparent areas and opaque areas. The rotary coding disc 20 is divided into 32 positions, wherein position 1, position 2, . . . , position 31, and position 32 respectively represent the first bit, the second bit, . . . , the 31st bit, and the 32nd bit. The five-bit De Bruijn sequences include 2.sup.[2.sup.
(15) According to Table 2 and Table 3, when a binary code with a length of M bits is located between the maximum binary code and the minimum binary code, the corresponding N-bit De Bruijn sequences are selected as diagonal De Bruijn sequences. M is a positive integer, and
(16)
Table 2 shows the diagonal De Bruijn sequence. Finally, the positions of the plurality of transparent areas and the plurality of opaque areas of the rotary coding disc 20 are arranged based on the diagonal De Bruijn sequences. For example, the positions of 1 and 0 of the diagonal De Bruijn sequence respectively correspond to the positions of the transparent area and the opaque area. The transparent areas and the opaque areas may be circularly distributed.
(17) In order to further reduce the variation of the voltage level of the periodic signal, the following steps may be performed after selecting the diagonal De Bruijn sequences.
(18) The first number of each bit of the diagonal De Bruijn sequence is added to the second numbers of (N−1) bits consecutively neighboring the first number to obtain the value of the energy level. The value of the energy level replaces the corresponding first number to convert the diagonal De Bruijn sequence into a De Bruijn energy level. The De Bruijn energy level includes the value of the energy level. The value of the energy level is a non-negative integer less than or equal to N. Take N=5 as an example.
(19) In Table 4, the rightmost column represents the total number of 1 consecutively neighboring 0 and (N−1) consecutively neighboring N of the De Bruijn energy level. The fourth De Bruijn energy level corresponds to the highest total number. The 25.sup.th De Bruijn energy level corresponds to the lowest total number.
(20) According to the embodiments provided above, the maximum binary code and the minimum binary code of the De Bruijn sequence are located in the diagonal positions of the rotary coding disc in order to effectively reduce the variation of the voltage level of a periodic signal and the burden of the processing circuit in the back end.
(21) The embodiments described above are only to exemplify the present invention but not to limit the scope of the present invention. Therefore, any equivalent modification or variation according to the shapes, structures, features, or spirit disclosed by the present invention is to be also included within the scope of the present invention.