# How to add simple Servo code from a Tutorial?

**URL:** <https://forum.arduino.cc/t/how-to-add-simple-servo-code-from-a-tutorial/899585>\
**Category:** Programming\
**Created:** [August 26, 2021, 8:57pm UTC](https://forum.arduino.cc/t/how-to-add-simple-servo-code-from-a-tutorial/899585 "2021-08-26T20:57:51Z")\
**Posts on this page:** 1\
**Showing post:** 26

<div class="post-metadata">

**Author:** ![holdred](https://avatars.discourse-cdn.com/v4/letter/h/ecd19e/32.png) [@holdred](https://forum.arduino.cc/u/holdred)\
**Post date:** [August 27, 2021, 10:45pm UTC](https://forum.arduino.cc/t/how-to-add-simple-servo-code-from-a-tutorial/899585/26 "2021-08-27T22:45:30Z")

</div>

> [@anon57585045](#):
>
> See reply #20. I personally would not bother soliciting advice on how to use library functions, until I've read the library documentation. For sure, that aspect will be covered.

Man, this forum is a tough neighborhood. I'm doing everything I can to show that I'm putting in the effort - quoting from my search results and investigations, walking through my problem-solving, and most of all, trying the posted suggestions before responding again.

About post #20, I gave a polite response to what I believe is a misreading on John's part. If I'm wrong, please correct me, but it seems that he is giving instruction that does not apply to the ServoTimer2 library. In post #16, I quoted Chris' explanation

> [@Problem using servo and pcm sound](https://forum.arduino.cc/t/problem-using-servo-and-pcm-sound/897000/8):
>
> The ServoTimer2 library requires the write() function argument in microseconds of the pulse, not the angle.

Now I've narrowed the problem down to a portion of code, and I'm asking for help. Much of this isn't possible for a beginner to do alone - to know that the trouble I found in the OP isn't the fault of a bug in my coding but rather an inherent incompatibility, and that the 'vector\_11' error is a Timer problem, and that I can use a different library as a workaround, and that the new library uses different parameters than the one it replaces.

If you can help move me forward, please do. I'm putting in the time and effort, I really am.

---

_[View the full topic](https://forum.arduino.cc/t/how-to-add-simple-servo-code-from-a-tutorial/899585)._
