Controlling the speed of a 28BYJ-48 stepper motor

If you're not too busy could you post your solution for others who my find themselves in your situation ?

(it is customary to do that on the forum by the way)