I made a rotary encoder. Due to its 60 steps (6 degree) resolution it suits to make clocks.
There is a very good and detailed description of the single track Gray code here: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6111776/.
My instructable is only about physical realization now.