hello I Connected a servo motor to my Raspberry pi Zero W

and used the example from raspberrypi.org: granpa scarer:

[Grandpa Scarer][1]

and the servo worked however after changing the value for:
**p.ChangeDutyCycle(3)** to an other value the servo stopped working
it makes a sound like it trying to move but can't.

I changed it back to it's original value but the problem remains
I switched to an other servo that I had and that one worked,
so I switched back to the first one (a smaller one) and now it worked.

But after playing around with it for a couple of times, the issue came back


Has anybody else experience this?


  [1]: https://projects.raspberrypi.org/en/projects/grandpa-scarer/4