title: Stopping continuous servo
body: <p>Do you know how to stop continuous servo in desired position? </p>
  
  <p>I tried to code like this (which I found on many forums):</p>
  
  <pre><code>myservo.write(10); //moves forward
  delay (1000); //waits 1s
  myservo.write(90); //stops
  </code></pre>
  
  <p>My servo indeed moves forward for 1s then stops in the position I wanted then immediately goes back to its one position (<strong>the same position every time</strong>). I would like it to stay in the desired position. For example, I counted that in 150ms it moves for angle of 60 degrees and there it should stop and wait for next info.</p>
  
  <p>I also tried to use trick to detach servo like this:</p>
  
  <pre><code>myservo.write(10);
  delay(120);
  myservo.detach();
  delay(2000);
  </code></pre>
  
  <p>It works, but it is not as precise as I want it to be and I can't reach smaller angles than 100 degrees. </p>
  
  <p>I'm using <a href="http://www.towerpro.com.tw/product/mg995-robot-servo-360-180-rotation/" rel="nofollow noreferrer">Servo TowerPro MG996R Robot 360</a> which is continuous servo. </p>
  
  <p>I'm sorry if there is already the answer for my question but I promise I went  through countless topics and forums!
  Thank you for any advices!!!</p>