# MPU9250 is not detecting magnetometer

**URL:** <https://forum.core-electronics.com.au/t/mpu9250-is-not-detecting-magnetometer/24253>\
**Category:** Uncategorized\
**Created:** [1 June 2026 04:55 UTC](https://forum.core-electronics.com.au/t/mpu9250-is-not-detecting-magnetometer/24253 "2026-06-01T04:55:53Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![eeksha321170](https://avatars.discourse-cdn.com/v4/letter/e/3ec8ea/32.png) [@eeksha321170](https://forum.core-electronics.com.au/u/eeksha321170)\
**Post date:** [1 June 2026 04:55 UTC](https://forum.core-electronics.com.au/t/mpu9250-is-not-detecting-magnetometer/24253/1 "2026-06-01T04:55:53Z")

</div>

I recently bought an MPU9250 sensor, but I’m facing an issue where the magnetometer is not working. The accelerometer and gyroscope are working fine, but I’m unable to get any data from the magnetometer. Has anyone faced this issue or can suggest possible reasons? Currently im using Raspberry pi 4. using at 400khz ,tried through by pass mode as well, the i2c bus just doesnt detect the magnetometer.

---

<div class="post-metadata">

**Author:** ![Jane](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/jane/32/12622_2.png) [@Jane](https://forum.core-electronics.com.au/u/Jane)\
**Post date:** [1 June 2026 05:37 UTC](https://forum.core-electronics.com.au/t/mpu9250-is-not-detecting-magnetometer/24253/2 "2026-06-01T05:37:49Z")

</div>

Hey there, @eeksha321170, and welcome to the forum. Glad to have you here.

Would you be able to share a photo or link to the exact MPU9250 board you’re using, plus how it’s wired to the Pi 4? In addition, would you be able to tell us:

- what shows in `i2cdetect -y 1`
- which library/script you’re using to enable bypass mode

The magnetometer should normally appear separately at `0x0C` once bypass/pass-through is enabled, so if it never appears the exact breakout board and wiring will matter a lot.

---

<div class="post-metadata">

**Author:** ![eeksha321170](https://avatars.discourse-cdn.com/v4/letter/e/3ec8ea/32.png) [@eeksha321170](https://forum.core-electronics.com.au/u/eeksha321170)\
**Post date:** [1 June 2026 06:38 UTC](https://forum.core-electronics.com.au/t/mpu9250-is-not-detecting-magnetometer/24253/3 "2026-06-01T06:38:28Z")

</div>

hello, i did try with the i2cdetect -y 1 and i2cset,i2cget . im writing the code in C . it detects only 0x68,never detects 0x0C

---

<div class="post-metadata">

**Author:** ![Jane](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/jane/32/12622_2.png) [@Jane](https://forum.core-electronics.com.au/u/Jane)\
**Post date:** [1 June 2026 06:46 UTC](https://forum.core-electronics.com.au/t/mpu9250-is-not-detecting-magnetometer/24253/4 "2026-06-01T06:46:00Z")

</div>

Well, that can change with the board. It is good to know it is detecting something, however. Could you share a link to the exact MPU9250 sensor that you’re using?

---

<div class="post-metadata">

**Author:** ![eeksha321170](https://avatars.discourse-cdn.com/v4/letter/e/3ec8ea/32.png) [@eeksha321170](https://forum.core-electronics.com.au/u/eeksha321170)\
**Post date:** [1 June 2026 06:49 UTC](https://forum.core-electronics.com.au/t/mpu9250-is-not-detecting-magnetometer/24253/5 "2026-06-01T06:49:50Z")

</div>

i ordered it from amazon, but i really need the magnetometer to work

---

<div class="post-metadata">

**Author:** ![eeksha321170](https://avatars.discourse-cdn.com/v4/letter/e/3ec8ea/32.png) [@eeksha321170](https://forum.core-electronics.com.au/u/eeksha321170)\
**Post date:** [1 June 2026 07:14 UTC](https://forum.core-electronics.com.au/t/mpu9250-is-not-detecting-magnetometer/24253/6 "2026-06-01T07:14:58Z")

</div>

> [@eeksha321170](#):
>
> i did try with the i2cdetect -y 1 and i2cset,i2cget . im writing the code in C . it detects only 0x68,never detects 0x0C

ive connected using vcc,gnd,sda and sclk pins only

---

<div class="post-metadata">

**Author:** ![Jane](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/jane/32/12622_2.png) [@Jane](https://forum.core-electronics.com.au/u/Jane)\
**Post date:** [2 June 2026 01:30 UTC](https://forum.core-electronics.com.au/t/mpu9250-is-not-detecting-magnetometer/24253/7 "2026-06-02T01:30:56Z")

</div>

Hey there, @eeksha321770,

That’s fine. It doesn’t need to be a Core Electronics board for you to use our forums. The link would just give me access to a little more information so I can check if there’s anything strange that could be occuring.

In addition, could you please let me know what code your using?

---

<div class="post-metadata">

**Author:** ![love312190](https://avatars.discourse-cdn.com/v4/letter/l/c57346/32.png) [@love312190](https://forum.core-electronics.com.au/u/love312190)\
**Post date:** [8 June 2026 07:29 UTC](https://forum.core-electronics.com.au/t/mpu9250-is-not-detecting-magnetometer/24253/8 "2026-06-08T07:29:52Z")

</div>

Here are some tips. [No data from the magnetometer [MPU9250][AK8963] - Sensors - Arduino Forum](https://forum.arduino.cc/t/no-data-from-the-magnetometer-mpu9250-ak8963/939228) If the problem persists even after you enable I2C bypass mode and troubleshoot your connections, I think you got a faulty sensor.

---

<div class="post-metadata">

**Author:** ![Robert93820](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@Robert93820](https://forum.core-electronics.com.au/u/Robert93820)\
**Post date:** [8 June 2026 09:58 UTC](https://forum.core-electronics.com.au/t/mpu9250-is-not-detecting-magnetometer/24253/9 "2026-06-08T09:58:26Z")

</div>

Hi All  
Looking at the original post above. On 28th May this was posted

> [@MPU9250 Magnetometer Not Working](https://forum.core-electronics.com.au/t/mpu9250-magnetometer-not-working/24243/1):
>
> I bought an MPU9250 sensor from Amazon, but the magnetometer is not working. The accelerometer and gyroscope are detected correctly, but I am unable to read any magnetometer data. Has anyone faced a similar issue or know how to fix it?

Remarkably similar. Jane responded to this but got no reply. None that appeared on the fourm anyway.

Same person ???  
Cheers Bob

---

<div class="post-metadata">

**Author:** ![Jane](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/jane/32/12622_2.png) [@Jane](https://forum.core-electronics.com.au/u/Jane)\
**Post date:** [9 June 2026 01:29 UTC](https://forum.core-electronics.com.au/t/mpu9250-is-not-detecting-magnetometer/24253/10 "2026-06-09T01:29:03Z")

</div>

Hey Bob, yeah I wondered that myself, although I suspect that a lot of people are just playing with magnetometers at the moment (I have had a few customers ask about them off forum as well). Maybe some content creator recently made a video about them?

---

<div class="post-metadata">

**Author:** ![Robert93820](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@Robert93820](https://forum.core-electronics.com.au/u/Robert93820)\
**Post date:** [9 June 2026 04:30 UTC](https://forum.core-electronics.com.au/t/mpu9250-is-not-detecting-magnetometer/24253/11 "2026-06-09T04:30:51Z")

</div>

Hi Jane  
Actually the give away is the actual text. Almost word for word with the 28/05 post. and if you put the whole lot together it is closer still. Although purchased from Amazon is not so unique. They seem to have access to a vast inventory and sometimes their delivery is nothing short of miraculous. On several occasions I have ordered well after 6PM and delivery next morning.  
Cheers Bob
