# Pan-tilt hat alignment issue

**URL:** <https://forums.pimoroni.com/t/pan-tilt-hat-alignment-issue/13494>\
**Category:** Support\
**Created:** [April 4, 2020, 5:12pm UTC](https://forums.pimoroni.com/t/pan-tilt-hat-alignment-issue/13494 "2020-04-04T17:12:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BrassMonkey](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@BrassMonkey](https://forums.pimoroni.com/u/BrassMonkey)\
**Post date:** [April 4, 2020, 5:12pm UTC](https://forums.pimoroni.com/t/pan-tilt-hat-alignment-issue/13494/1 "2020-04-04T17:12:29Z")

</div>

Hello,

I hope you can help me. I bought a pan-tilt hat recently. When I ask it to point at (0,0) it points off at an angle that’s not along an axis of the motherboard. Is it supposed to? Should it be calibrated somehow? Can I realign it myself? Any advice would be gratefully received.

This is the model:

> **[Pan-Tilt HAT](https://thepihut.com/products/pan-tilt-hat)**
>
> Ideal for a mini CCTV system, this set of horizontal and vertical motion servos will give you Pi camera movement with a minimum of fuss. Pan-Tilt HAT lets you mount and control one of our pan-tilt modules right on top of your Raspberry Pi. The HAT...

Example code:  
pantilthat.pan(0)  
pantilthat.tilt(0)

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Crowbot](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/crowbot/32/5888_2.png) [@Crowbot](https://forums.pimoroni.com/u/Crowbot)\
**Post date:** [April 4, 2020, 5:32pm UTC](https://forums.pimoroni.com/t/pan-tilt-hat-alignment-issue/13494/2 "2020-04-04T17:32:08Z")

</div>

Welcome!

I noticed that too but I think the easiest thing would simply for you to establish your own numbers and use the offset in your code.

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [April 4, 2020, 6:08pm UTC](https://forums.pimoroni.com/t/pan-tilt-hat-alignment-issue/13494/3 "2020-04-04T18:08:27Z")

</div>

I have two full pan tilt kits. Both had the servo’s not centered. I suspect who ever does the assembly at Adafruit, isn’t making sure the servos are centered before building the Pan Tilt.  
What I did with both of mine was to set both servo’s to 0 0. Then carefully disasemble the Pan Tilt, being careful not to move the servo’s. Then reassemble it with things lined up correctly. It may not line up perfect but you can get it pretty close. If you do that you should get the full range of movement. Other wise one of the servos could hit the end of travel and buzz or skip, maybe even damage something. I’m pretty sure its not Pimoroni’s fault, they only make the Hat part. The rest they get from Adafruit.

What Crowbot posted will work. If they aren’t way off it may be the easier option. Kind of depends on what rang of motion you want or need.
