This example assumes you have a servo with the following characteristics, which happen to be typical:
movement between 0 and 180 degrees
pulse period of 20 ms
minimum pulse length of 0.5 ms
maximum pulse length of 2.5 ms
You need to check if those values match your hardware, since forcing i...