# PAN / TILT Shield code example

**URL:** <https://forums.openmv.io/t/pan-tilt-shield-code-example/2027>\
**Category:** OpenMV Boards\
**Created:** [November 22, 2020, 12:58pm UTC](https://forums.openmv.io/t/pan-tilt-shield-code-example/2027 "2020-11-22T12:58:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay1st](https://avatars.discourse-cdn.com/v4/letter/j/13edae/32.png) [@jay1st](https://forums.openmv.io/u/jay1st)\
**Post date:** [November 22, 2020, 12:58pm UTC](https://forums.openmv.io/t/pan-tilt-shield-code-example/2027/1 "2020-11-22T12:58:33Z")

</div>

I’m new to this and i’m looking for a code example specifically for the pan & tilt shield.  
i found the code for the servo shield, it uses I2C with the PCA9685 but from what i understood the pan & tilt shield is driven directly from PWM out puts ?

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [November 22, 2020, 5:27pm UTC](https://forums.openmv.io/t/pan-tilt-shield-code-example/2027/2 "2020-11-22T17:27:00Z")

</div>

You just run the board control → servo example. The camera can generate two channels of PWM by itself.
