Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4615

Raspberry Pi Connect • Raspberry pi5 -Arm64 does not detect compass sensor

$
0
0
Hi All,

I have pi5, on which using MPU9250 sensor to detect Gyroscope, Accelerometer & Magnetometer. For some reason, PI5 is not detecting the I2C bus for Magnetometer.

Wire Connection used:
Interfacing Options > I2C > Yes
VCC —> 3V
GND —> GND
SCL —> SCL (GPIO3)
SDA —> SDA (GPIO2)
VCC —> 5V
GND —> GND
SCL , ECL —> SCL (GPIO3)
SDA, EDA —> SDA (GPIO2)

Snippet

Code:

i2cdetect -y 1
on running above command I see the following connectivity in which 0x0c is not detecting

Code:

        0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f00:                         -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- 
Approached Tried:
1. Initially, though because of connectivity issue double checked & connection are fine.
2. Replaced New MPU 9250 Sensor, thinking the other one had fault in it. Turned out, even new sensor was not detecting 0x0C.

Not sure, how to make magnetometer to work.

Thank for reading.

Statistics: Posted by anandyn02 — Sun Feb 16, 2025 1:28 am — Replies 0 — Views 44



Viewing all articles
Browse latest Browse all 4615

Trending Articles