Here is an example I made to “pulse” a servo step in order to control speed of movement… the timer concepts and controls should give you something to look at toward you application. There are other examples in that topic that might help with code ideas as well.