# Magnetometer compass heading how?

**URL:** <https://community.thunkable.com/t/magnetometer-compass-heading-how/1365284>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [June 26, 2021, 12:00pm UTC](https://community.thunkable.com/t/magnetometer-compass-heading-how/1365284 "2021-06-26T12:00:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anshumanmujlslj](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@anshumanmujlslj](https://community.thunkable.com/u/anshumanmujlslj)\
**Post date:** [June 26, 2021, 12:00pm UTC](https://community.thunkable.com/t/magnetometer-compass-heading-how/1365284/1 "2021-06-26T12:00:41Z")

</div>

I am trying to build a compass app using sprite and canvas, but I cannot find the get heading to function in the magnetometer. Please help.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [June 26, 2021, 3:53pm UTC](https://community.thunkable.com/t/magnetometer-compass-heading-how/1365284/2 "2021-06-26T15:53:51Z")

</div>

Good question. I don’t see a way to get the Function blocks shown in the documentation. Hopefully someone else will have an idea.

> **[Magnetometer](https://docs.thunkable.com/v/drag-and-drop/magnetometer)**

---

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [June 27, 2021, 6:45am UTC](https://community.thunkable.com/t/magnetometer-compass-heading-how/1365284/3 "2021-06-27T06:45:42Z")

</div>

i tried it with these blocks and i even added the compass needle (compass image set as a sprite spinning at center) but it’s erratic - it SEEMS to point to magnetic north but it’s off by about 5 degrees. there must be something else i’m missing.

here’s the project:  
[https://x.thunkable.com/copy/16b755f12292e95a1b883492aea8f20d](https://x.thunkable.com/copy/16b755f12292e95a1b883492aea8f20d)

and here are the only blocks  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/c/4c41cb8cf5f91d4c4620c22458830cd28c17ad67.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [June 27, 2021, 5:56pm UTC](https://community.thunkable.com/t/magnetometer-compass-heading-how/1365284/4 "2021-06-27T17:56:07Z")

</div>

Where did you find the `call Magnetometer's Heading` block? That’s what I couldn’t seem to find.

Oh… I’m guessing those are part of the Canvas?

---

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [June 27, 2021, 6:07pm UTC](https://community.thunkable.com/t/magnetometer-compass-heading-how/1365284/5 "2021-06-27T18:07:59Z")

</div>

actually i found it in Components! it currently shows Call Screen (or something else) but the dropdown reveals all the other options!)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [June 27, 2021, 6:12pm UTC](https://community.thunkable.com/t/magnetometer-compass-heading-how/1365284/6 "2021-06-27T18:12:45Z")

</div>

Ah, I see now… a bit hidden:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/1/61a7f61a605938961d35e193bef5101aeb6387ce.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/e/8e7764379e842eae833de9eb3141c7f830a38684.png)

---

<div class="post-metadata">

**Author:** ![anshumanmujlslj](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@anshumanmujlslj](https://community.thunkable.com/u/anshumanmujlslj)\
**Post date:** [June 28, 2021, 7:00am UTC](https://community.thunkable.com/t/magnetometer-compass-heading-how/1365284/7 "2021-06-28T07:00:36Z")

</div>

thank you, found it 🙂

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:20pm UTC](https://community.thunkable.com/t/magnetometer-compass-heading-how/1365284/8 "2024-11-08T13:20:06Z")

</div>


