[Frank Herrmann] had an interesting idea to turn a geared DC motor into a servo motor assembly ... up to the motion controller upstream. The Arduino source for this can be found on the project ...
Usually, when you want a servo motor, you simply buy one already made. But if you need something unusual, you can turn any DC motor into a custom servo you can control just like [Dejan] did.