-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MPU-9250 Magnetometer example #3
Comments
For now the example "mpu_real" computes roll, pitch, and yaw from accel/gyro data fusion. |
I would be interested in this, too. |
Hi. |
Hello, I am also trying to get the raw mag data but always end up getting all 3 values as 0. All other functionalities seem to be working as expected. Any pointers about how to debug? |
I use SEGGER JLINK for esp-idf debug. Chinese Aliexpress cheap units also work for this (I've used both). If you need a wiring map, let me know. Magnetometer seems to work from my Raspberry PI command line. Here the bash file I made for my test:
|
@rafa400 Thanks a lot for the reply. I am actually interfacing MPU9250 on SPI and I wonder if the issue is arising because of that. Would try to test it on I2C and share the results. |
Hi, I was able to get the magnetometer data through SPI. Turns out I wasn't initializing the devices properly. As soon as I started initializing the devices as shown in the |
hi |
I tried to get mag data from m5stack.
|
Calling For reference, I'm using a 9250 with i2c. |
@mahad-ahmed
Currently, the m5stack-gray Geomagnetic Sensor has been changed to BMM150. |
hello Sir, Error Log I (358) example: MPU2 connection successful! file: "/home/suraj/jarusWork/MPUdriver/examples/mpu_spi/main/mpu_spi.cpp" line 78 ELF file SHA256: a9360acc58f7c6bdf11c341e5bdbbe9cc88c6d9841bdaedf5b74a0f70e5a8cc7 Backtrace: 0x40086c35:0x3ffb5090 0x400871d7:0x3ffb50b0 0x400d2aa1:0x3ffb50d0 0x400d10ce:0x3ffb5150 0x40089171:0x3ffb5170 |
There is no example of using magnetometer sensor. Also it will be good to see example of getting some data, like roll, pitch, yaw angles
The text was updated successfully, but these errors were encountered: