I have the following servo I would like to make a small self balancing robot with it. I am having trouble with figuring out how to control it with PWM using pulses to decide what position to move it and how much.
I am using the WiringPi library and am able to get the servo to rotate continuously I have followed this tutorial and am using the example code provided but when I enter the value of the desired position of the servo it will move the same amount every time regardless of entry and have narrowed down the problem to being the
delay() in the code it is set by default to
delay(1000) if I change the value to
delay(500) it will rotate the servo less.
So basically it is ignoring all of the code above it. Can someone tell me if there is an error in the code? Also explain to me how to control this specific servo it seems in the tutorial he sets specific values for the specific servo he is using.