# 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:** 10

<div class="post-metadata">

**Author:** ![chrisknightley](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/chrisknightley/32/637257_2.png) [@chrisknightley](https://forum.arduino.cc/u/chrisknightley)\
**Post date:** [August 27, 2021, 12:15am UTC](https://forum.arduino.cc/t/how-to-add-simple-servo-code-from-a-tutorial/899585/10 "2021-08-27T00:15:16Z")

</div>

> [@holdred](#):
>
> Maybe there's a way to get a different Servo library?

There is a topic that introduced ServoTimer2 as a countermeasure to use Timer1 with two libraries a while ago, so I will link it.

> [@Problem using servo and pcm sound](https://forum.arduino.cc/t/problem-using-servo-and-pcm-sound/897000):
>
> Hi, I'm building a 'robot bird' project. The robot moves, using an Sg-90 servo, using the Servo.h library, on D5, and makes an audible birdcall. To do the latter I am reading a wav file from an SD reader and then playing it via D9 which connects to a powered speaker using the TMRpcm library. Both the routines work fine alone, but when I try to use both the servo routine fails (it just does nothing). I'm probably doing something stupid and would be grateful for any help. Best wishes Chris. T…

---

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