The microcontroller code is the same from elm´s web page.

If you change encoder resolution you need to tune up your servo again.

I don´t remember right now, but i guess the only parameter that not change is P4.