https://carakerjapro.blogspot.com/2017/02/teori-umum-dan-cara-kerja-rotary-encoder.html