I'm puzzled. I have a small continuous servo (MG995). Using the Servo library, I can rotate the servo in two directions by changing the writeMicroseconds value. No problem. However, the servo will run slower and slower and come to a halt after a few minutes. How is this possible?
Hi,
I presume that the code you posted is supposed to make the servo continuously rotate in one direction?
But you are finding that it slows to a stop after a few minutes.
How are you powering the servo?
If you are using the Arduino 5V it will not be able to supply the current necessary to drive the servo, especially continuously, you will need a separate supply for the servo with its gnd connected to the Arduino's gnd.