# EnviroPhat-Magnetometer

**URL:** <https://forums.pimoroni.com/t/envirophat-magnetometer/4008>\
**Category:** Support\
**Created:** [February 15, 2017, 9:30pm UTC](https://forums.pimoroni.com/t/envirophat-magnetometer/4008 "2017-02-15T21:30:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amandeep](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@amandeep](https://forums.pimoroni.com/u/amandeep)\
**Post date:** [February 15, 2017, 9:30pm UTC](https://forums.pimoroni.com/t/envirophat-magnetometer/4008/1 "2017-02-15T21:30:12Z")

</div>

Hi!

I’d like to know how obtain data from the Magnetometer alone, and log this alongside the rest of the data as specified in the guide.

Thanks!

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [February 23, 2017, 8:51am UTC](https://forums.pimoroni.com/t/envirophat-magnetometer/4008/2 "2017-02-23T08:51:43Z")

</div>

Depending on what data you want to log, you can grab XYZ magnitudes from the magnetometer, or a compass heading. See the docs here: [http://docs.pimoroni.com/envirophat/#motion](http://docs.pimoroni.com/envirophat/#motion)
