i convert my servo to continuous servo witj two 2.2k ohm resistors. i tried to stop servo and i found that my servo stops at 102 degrees yesterday. today i tried it and servo stops at 106 degrees. i cant stop my servo couse values always changing.
i also tried writemicroseconds to stop servo but it has also changed from 1580 to 1640.
Possibly temperature effects on your resistor voltage divider. You may have to resort to using attach and detach for controlling the servo start/start.
As I mentioned in the other thread, I generally use trimpots to zero out my CR servos. I also often just leave the original pot attached and use it to zero the servo.
halilhilmi67:
i also tried writemicroseconds to stop servo but it has also changed from 1580 to 1640.
That's a large variation.
If you didn't want to replace the resistors with a pot, you could add a pot as an input device for the Arduino and use the pot to adjust the zero pulse sent from the Arduino.