I am planning to use a microcontroller to do the brain works of receiving pulses from the encoder and compute it to output linear distance and at the same time indicating the measured distance as short, medium or long (of course that means I'll write a simple program for classifications/ranges of distances).
The encoder I chose is of reflective type.
My idea is similar to the case of a digital vernier caliper where the distance measured are constantly displayed on the lcd screen.
I suppose the way to do it will be something like to count the number of pulses over the entire length of signal? How to make the microcontroller to do that? will the microcontroller reads a binary number of 10101010... as the signal? if so, all I have to do is to translate these binary number to decimal then subsequently extract the angular displacement?
please tell me whether am i right lol