Control the rpm of a dc motor

I am trying to build a liquid mirror telescope.
I need to control the rpm of a geared motor to a specific rpm ( 19.7 ) within close limits. I have a geared motor with a rotary encoder attached .
I can use the arduino ide to do this .and there are good examples to use on the web , but i wanted to do it within the xod ide to integrate other capabilities into the program.
I am struggling at this moment, any guidence would be appreciated.
Regards Terry

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.