Absolute Position Coding Method for Angular Sensor—Single-Track Gray Codes
Abstract
:1. Introduction
2. STGCs with k-Spaced Heads
- (1)
- Single-track property: Each column is the cyclic shift of the first one , i.e., , where and denotes times cyclic shifting, where .
- (2)
- Mono-difference: Any two adjacent codewords, denoted as and , differ in only one bit which holds for the first and the last codewords as well.
- (3)
- Distinctness: Every codeword is distinct from others.
2.1. Necklace Ordering STGCs
2.2. Self-Dual Necklace Ordering STGCs
3. STGCs with Non-k-Spaced Head
3.1. Complete Solution of Length-6 STGCs
3.1.1. Constraints for the Generating Sequence of STGCs
3.1.2. Result of Length-6 STGCs
3.2. Twin-Necklace Ordering STGCs
3.3. Triplet-Necklace Ordering STGCs
3.4. D-Plet-Necklace Ordering STGCs
4. Reclassification of STGCs
5. Absolute Encoder Prototype Using STGCs
5.1. Coding and Slit Discs
5.2. Decoding
5.3. Error Analysis
6. Discussion and Conclusions
Author Contributions
Funding
Conflicts of Interest
Appendix A
Appendix B. Complete Result of Length-6 STGCs
Period | Generating Sequence | Head Interval |
---|---|---|
12 | [9, 3] [7, 5] | [2, 2, 2, 2, 2, 2] |
24 | [14, 3, 2, 5] [13, 2, 3, 6] [11, 2, 5, 6] [11, 3, 3, 7] [10, 3, 2, 9] [10, 5, 2, 7] [9, 6, 3, 6] | [4, 4, 4, 4, 4, 4] |
36 | [16, 3, 2, 2, 3, 10] [16, 3, 2, 5, 3, 7] [16, 4, 3, 2, 2, 9] [15, 2, 3, 5, 3, 8] [15, 2, 3, 8, 3, 5] [15, 2, 2, 3, 4, 10] [15, 2, 2, 9, 4, 4] [14, 2, 5, 8, 2, 5] [14, 2, 3, 4, 4, 9] [14, 3, 5, 9, 2, 3] [14, 3, 4, 7, 3, 5] [14, 3, 2, 3, 5, 9] [11, 2, 8, 5, 2, 8] [11, 2, 3, 10, 7, 3] [11, 3, 8, 9, 2, 3] [10, 3, 2, 8, 9, 4] [9, 2, 8, 3, 4, 10] [13, 2, 2, 5, 4, 10] [13, 3, 4, 7, 2, 7] [8, 2, 7, 4, 4, 11] | [6, 6, 6, 6, 6, 6] |
48 | [15, 2, 3, 2, 5, 7, 3, 11] [15, 2, 2, 7, 3, 9, 6, 4] [15, 3, 2, 5, 4, 9, 5, 5] [15, 3, 2, 5, 4, 9, 5, 5] [15, 4, 6, 3, 2, 4, 3, 11] [15, 7, 5, 7, 3, 4, 3, 4] [14, 3, 3, 11, 4, 2, 5, 6] [14, 11, 2, 4, 3, 3, 7, 4] [13, 5, 7, 2, 4, 5, 2, 10] [11, 2, 9, 3, 3, 3, 3, 14] [11, 2, 5, 13, 7, 3, 3, 4] [11, 3, 6, 5, 4, 5, 5, 9] [10, 2, 9, 2, 2, 13, 5, 5] [10, 3, 9, 11, 2, 4, 5, 4] [10, 3, 6, 4, 5, 5, 5, 10] [9, 2, 4, 3, 4, 14, 9, 3] [9, 3, 6, 4, 5, 4, 6, 11] [14, 3, 4, 2, 4, 7, 2, 12] [14, 3, 4, 5, 2, 7, 4, 9] [14, 3, 4, 14, 4, 3, 2, 4] [14, 3, 3, 3, 4, 7, 3, 11] [14, 3, 3, 14, 5, 4, 2, 3] [14, 3, 2, 7, 3, 10, 5, 4] [14, 4, 5, 2, 3, 7, 2, 11] [14, 4, 5, 4, 2, 4, 3, 12] [14, 4, 3, 2, 5, 13, 2, 5] [14, 4, 3, 4, 3, 7, 4, 9] [14, 4, 2, 5, 4, 10, 4, 5] [14, 4, 2, 13, 4, 2, 4, 5] [13, 2, 5, 5, 2, 7, 4, 10] [13, 2, 5, 13, 2, 3, 4, 6] [13, 2, 4, 3, 4, 7, 3, 12] [13, 2, 3, 7, 3, 10, 5, 5] [13, 2, 3, 7, 2, 11, 6, 4] [13, 4, 6, 4, 3, 4, 2, 12] [13, 4, 3, 11, 4, 3, 4, 6] [13, 4, 2, 12, 5, 2, 4, 6] [12, 2, 7, 10, 3, 7, 2, 5] [12, 2, 7, 12, 2, 4, 3, 6] [12, 2, 5, 4, 3, 7, 4, 11] [12, 2, 5, 4, 3, 11, 4, 7] [12, 2, 5, 4, 2, 12, 5, 6] [12, 2, 4, 5, 4, 10, 4, 7] [12, 3, 7, 11, 2, 7, 3, 3] [12, 5, 6, 3, 4, 6, 2, 11] [12, 5, 4, 5, 4, 5, 4, 9] [11, 4, 5, 5, 4, 5, 4, 10] [11, 2, 5, 5, 2, 5, 6, 12] | [8, 8, 8, 8, 8, 8] |
Period | Generating Sequence | Head Interval |
---|---|---|
12 | [6, 6] | [1, 1, 1, 1, 1, 7] and its equivalent head intervals a |
36 | [11, 2, 5, 11, 2, 5] [10, 4, 4, 10, 4, 4] [8, 2, 8, 8, 2, 8] | [3, 3, 3, 3, 3, 21] and its equivalent head intervals b |
60 | [13, 3, 6, 2, 6, 13, 3, 6, 2, 6] [13, 4, 7, 2, 4, 13, 4, 7, 2, 4] [12, 2, 4, 8, 4, 12, 2, 4, 8, 4] [11, 2, 6, 3, 8, 11, 2, 6, 3, 8] [11, 3, 9, 4, 3, 11, 3, 9, 4, 3] | [5, 5, 5, 5, 5, 35] and its equivalent head intervals c |
Period | Generating Sequence | Head Interval |
---|---|---|
12 | [6, 6] | [1, 3, 1, 3, 1, 3] |
24 | [14, 4, 2, 4] [12, 2, 4, 6] | [3, 5, 3, 5, 3, 5] |
36 | [14, 4, 2, 5, 6, 5] [11, 6, 5, 6, 2, 6] [10, 4, 6, 8, 2, 6] [10, 6, 4, 6, 4, 6] [10, 6, 2, 5, 6, 7] [8, 6, 4, 4, 6, 8] [8, 6, 8, 6, 2, 6] [11, 2, 5, 11, 2, 5] [10, 4, 4, 10, 4, 4] [8, 2, 8, 8, 2, 8] | [3, 9, 3, 9, 3, 9] |
48 | [8, 3, 7, 11, 6, 2, 5, 6] [15, 6, 3, 2, 3, 5, 5, 9] [15, 6, 2, 3, 3, 5, 6, 8] | [4, 12, 4, 12, 4, 12] |
[12, 6, 2, 4, 6, 8, 4, 6] [14, 8, 6, 6, 2, 4, 2, 6] [14, 4, 6, 12, 2, 4, 2, 4] | [3, 13, 3, 13, 3, 13] | |
60 | [12, 2, 4, 6, 4, 8, 6, 4, 4, 10] | [9, 11, 9, 11, 9, 11] |
[13, 3, 6, 2, 6, 13, 3, 6, 2, 6] [13, 4, 7, 2, 4, 13, 4, 7, 2, 4] [12, 2, 4, 8, 4, 12, 2, 4, 8, 4] [11, 2, 6, 3, 8, 11, 2, 6, 3, 8] [11, 3, 9, 4, 3, 11, 3, 9, 4, 3] | [5, 15, 5, 15, 5, 15] |
Period | Generating Sequence | Head Interval |
---|---|---|
24 | [9, 6, 3, 6] | [2, 2, 8, 2, 2, 8] |
48 | [12, 6, 5, 2, 5, 5, 2, 11] | [4, 4, 16, 4, 4, 16] |
References
- Lee, K.; Choi, J.; Bang, Y. Shaft position measurement using dual absolute encoders. Sens. Actuators A Phys. 2016, 238, 276–281. [Google Scholar] [CrossRef]
- Sasaki, M.; Nakai, F.; Hane, K.; Yokomizo, K.; Hori, K. Absolute Micro-encoder using Imaging Obtained by Ball Lens Assembled inside Wafer. J. Opt. 2006, 8, S391–S397. [Google Scholar] [CrossRef]
- Ye, G.; Liu, H.; Fan, S.; Li, X.; Yu, H.; Lei, B.; Shi, Y.; Yin, L.; Lu, B. Precise and robust position estimation for optical incremental encoders using a linearization technique. Sens. Actuators A Phys. 2015, 232, 30–38. [Google Scholar] [CrossRef]
- Liu, W.; Ma, X.; Li, X.; Chen, L.; Zhang, Y.; Li, X.; Shang, Z.; Jia, Z. High-precision pose measurement method in wind tunnels based on laser-aided vision technology. Chin. J. Aeronaut. 2015, 28, 1121–1130. [Google Scholar] [CrossRef]
- Deng, M.; Zhang, G.; Zhao, R.; Li, S.; Li, J. Improvement of Gaofen-3 absolute positioning accuracy based on cross-calibration. Sensors 2017, 17, 2903. [Google Scholar] [CrossRef] [PubMed]
- Kim, H.S.; Seo, W.; Beak, K.R. Indoor positioning system using magnetic field map navigation and an encoder system. Sensors 2017, 17, 651. [Google Scholar] [CrossRef] [PubMed]
- Meng, B.; Wang, Y.; Sun, W.; Yuan, X. A novel diagnosis method for a hall plates-based rotary encoder with a magnetic concentrator. Sensors 2014, 14, 13980–13998. [Google Scholar] [CrossRef] [PubMed]
- Gray, F.; Orange, E. Pulse Code Communication. U.S. Patent 2,632,058, 17 May 1953. [Google Scholar]
- Gilbert, E. Gray codes and paths on the n-cube. Bell Syst. Tech. J. 1958, 37, 815–826. [Google Scholar] [CrossRef]
- Savage, C.D. A survey of combinatorial gray codes. SIAM Rev. 1997, 39, 605–629. [Google Scholar] [CrossRef]
- Doran, R.W. The gray code. J. Univ. Comput. Sci. 2007, 13, 1573–1597. [Google Scholar] [CrossRef]
- Etzion, T.; Lempel, A. Algorithms for the generation of full-length shift-register sequences. IEEE Trans. Inf. Theory. 1984, 30, 480–484. [Google Scholar] [CrossRef]
- Petriu, E.M.; Basran, J.S. On the position measurement of automated guided vehicles using pseudorandom encoding. IEEE Trans. Instrum. Meas. 1989, 38, 799–803. [Google Scholar] [CrossRef]
- Fuertes, J.M.; Balle, B.; Ventura, E. Absolute-type shaft encoding using LFSR sequences with a prescribed length. IEEE Trans. Instrum. Meas. 2008, 57, 915–922. [Google Scholar] [CrossRef] [Green Version]
- Ye, G.; Fan, S.; Liu, H.; Li, X.; Yu, H.; She, Y.; Yin, L.; Lu, B. Design of a precise and robust linearized converter for optical encoders using a ratiometric technique. Meas. Sci. Technol. 2014, 25, 125003. [Google Scholar] [CrossRef]
- Gu, Z. The Coding Method of “HUI WEN” Code Used in Absolute Optical Encoders. China Patent 1069120A, 17 February 1993. [Google Scholar]
- Spedding, N.B. A Position Encoder. New Zealand Patent 264738, 28 October 1994. [Google Scholar]
- Hiltgen, A.P.; Paterson, K.G.; Brandestini, M. Single-track gray codes. IEEE Trans. Inf. Theory 1996, 42, 1555–1561. [Google Scholar] [CrossRef]
- Wan, Q.; Wang, Y.; Sun, Y.; Yang, S. A novel miniature absolute metal rotary encoder based on single-track periodic gray code. In Proceedings of the 2nd International Conference on Instrumentation, Measurement, Computer, Communication and Control (IMCCC 2012), Harbin, China, 8–10 December 2012. [Google Scholar] [CrossRef]
- Nii, H.; Raskar, R.; Fujii, T.; Tokiwa, T.; Inami, M. A proposal for space-encoder using single-track-gray-code. IEICE Trans. Inf. Syst. 2009, 92, 1784–1792. (In Japanese) [Google Scholar]
- Schwartz, M.; Etzion, T. The structure of single-track gray codes. IEEE Trans. Inf. Theory 1999, 45, 2383–2396. [Google Scholar] [CrossRef]
- Etzion, T.; Paterson, K.G. Near optimal single-track gray codes. IEEE Trans. Inf. Theory 1996, 42, 779–789. [Google Scholar] [CrossRef]
- Etzion, T. Single-track gray codes and sequences. In Proceedings of the International Workshop of Sequences, Subsequences and Consequences (SSC 2007), Los Angeles, CA, USA, 31 May–2 June 2007; pp. 129–133. [Google Scholar]
- Zinovik, I.; Kroening, D.; Chebiryak, Y. Computing binary combinatorial gray codes via exhaustive search with sat solvers. IEEE Trans. Inf. Theory 2008, 54, 1819–1823. [Google Scholar] [CrossRef]
- Fredricksen, H.; Maiorana, J. Necklaces of beads in k colors and k-ary de Bruijn sequences. Discrete Math. 1978, 23, 207–210. [Google Scholar] [CrossRef]
- Sawada, J.; Ruskey, F. An efficient algorithm for generating necklaces with fixed density. SIAM J. Comput. 1999, 29, 671–684. [Google Scholar] [CrossRef]
- Ruskey, F.; Savage, C.D.; Wang, T.M.Y. Generating necklaces. J. Algorithms 1992, 13, 414–430. [Google Scholar] [CrossRef]
- Qiu, C.; Wang, Y.; Zhu, H. Absolute encoder based on Karnaugh map. Chin. J. Sci. Instrum. 2007, 28, 1080–1086. [Google Scholar]
- Etzion, T. Self-dual Sequences. J. Combin. Theory Ser. A 1987, 44, 288–298. [Google Scholar] [CrossRef]
- Palmer, E.M.; Robinson, R.W. Enumeration of self-dual configurations. Pac. J. Math. 1984, 110, 203–221. [Google Scholar] [CrossRef] [Green Version]
- Lempel, A. On a homomorphism of the De Bruijn graph and its applications to design of feedback shift register. IEEE Trans. Comput. 1970, 19, 1204–1209. [Google Scholar] [CrossRef]
- Yan, X.; Wang, Q. Coding of shared track gray encoder. J. Dyn. Syst. Meas. Control Trans. 2000, 122, 573–576. [Google Scholar] [CrossRef]
Period | Generating Sequence | Head Interval | Sub-Cycle of Head Interval |
---|---|---|---|
12 | [6, 6] | [1, 3, 1, 3, 1, 3] | 2 |
24 | [14, 4, 2, 4] | [3, 5, 3, 5, 3, 5] | 2 |
[9, 6, 3, 6] | [2, 2, 8, 2, 2, 8] | 3 | |
36 | [14, 5, 6, 5, 2, 4] | [3, 9, 3, 9, 3, 9] | 2 |
[11, 2, 5, 11, 2, 5] | [3, 9, 3, 9, 3, 9] | 2 | |
48 | [15, 8, 6, 5, 3, 3, 2, 6] | [4, 12, 4, 12, 4, 12] | 2 |
[14, 6, 2, 4, 2, 6, 6, 8] | [3, 13, 3, 13, 3,13] | 2 | |
[12, 6, 5, 2, 5, 5, 2, 11] | [4, 4, 16, 4, 4, 16] | 3 | |
60 | [12, 2, 4, 6, 4, 8, 6, 4, 4, 10] | [9, 11, 9, 11, 9, 11] | 2 |
n | |||
---|---|---|---|
6 | 48 | 60 | 60 |
8 | 224 | 240 | 240 |
10 | 960 | 1020 | 1020 |
12 | 3960 | 4056 | 3960 |
14 | 16128 | 16380 | 16380 |
16 | 65024 | 65504 | 65280 |
d | n | Period | Generating Sequence | Head Interval |
---|---|---|---|---|
4 | 8 | 80 | [20, 7, 6, 6, 2, 6, 6, 6, 2, 19] | [5, 5, 5, 25, 5, 5, 5, 25] |
4 | 8 | 96 | [15, 8, 3, 13, 8, 3, 5, 15, 2, 7, 15, 2] | [6, 6, 6, 30, 6, 6, 6, 30] |
4 | 8 | 112 | [16, 16, 3, 8, 5, 11, 5, 3, 8, 5, 3, 13, 11, 5] | [6, 6, 6, 38, 6, 6, 6, 38] |
4 | 8 | 128 | [22, 4, 18, 10, 4, 18, 9, 2, 2, 2, 5, 21, 2, 2, 2, 5] | [8, 8, 8, 40, 8, 8, 8, 40] |
5 | 10 | 120 | [35, 22, 13, 5, 2, 3, 10, 7, 3, 10, 5, 5] | [4, 4, 4, 4, 44, 4, 4, 4, 4, 44] |
5 | 10 | 140 | [25, 25, 10, 15, 5, 5, 5, 10, 5, 5, 5, 10, 10, 5] | [4, 4, 4, 4, 54, 4, 4, 4, 4, 54] |
5 | 10 | 160 | [35, 20, 7, 20, 7, 6, 5, 2, 7, 11, 2, 7, 11, 9, 6, 5] | [4, 4, 4, 4, 64, 4, 4, 4, 4, 64] |
5 | 10 | 180 | [30, 8, 21, 2, 21, 7, 2, 2, 5, 14, 7, 2, 2, 19, 8, 3, 5, 22] | [6, 6, 6, 6, 66, 6, 6, 6, 6, 66] |
© 2018 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Zhang, F.; Zhu, H.; Bian, K.; Liu, P.; Zhang, J. Absolute Position Coding Method for Angular Sensor—Single-Track Gray Codes. Sensors 2018, 18, 2728. https://doi.org/10.3390/s18082728
Zhang F, Zhu H, Bian K, Liu P, Zhang J. Absolute Position Coding Method for Angular Sensor—Single-Track Gray Codes. Sensors. 2018; 18(8):2728. https://doi.org/10.3390/s18082728
Chicago/Turabian StyleZhang, Fan, Hengjun Zhu, Kan Bian, Pengcheng Liu, and Jianhui Zhang. 2018. "Absolute Position Coding Method for Angular Sensor—Single-Track Gray Codes" Sensors 18, no. 8: 2728. https://doi.org/10.3390/s18082728
APA StyleZhang, F., Zhu, H., Bian, K., Liu, P., & Zhang, J. (2018). Absolute Position Coding Method for Angular Sensor—Single-Track Gray Codes. Sensors, 18(8), 2728. https://doi.org/10.3390/s18082728