Altera_Forum
Honored Contributor
13 years agodistance measuring by encoder
I bought an encoder which generate square pulses sig.
i have to stop the engine if arrived to a required distance. i know that the wheel diameter is 7cm. and the distance is pi*diameter and it equals to 8 pulses counting (1 wheel cycle = 8 pulses counting). so i thought i have to definfe a cm counter by this way : counter = required_distance/2.75how can i do that by synthesis way ???
thank you for help...