Open Patrickyp opened 6 years ago
Capture mx, my,mz to serial monitor, import into spreadsheet, plot mx vs my, mx vs. mz, my vs. mz.
On Wed, May 9, 2018 at 5:07 PM, Patrickyp notifications@github.com wrote:
I am looking at this tutorial and I don't know how the dotted graphs were made. What exactly is the format of the magnetometer to print to serial monitor and get that graphed data? Any example code?
tutorial: https://github.com/kriswiner/MPU6050/wiki/Simple-and- Effective-Magnetometer-Calibration
Thanks.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/273, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qnuGzYsldoaR1RfYYzdbDN5Kuyesks5tw4TJgaJpZM4T5LB1 .
Thanks for your answer. So should I be copying your magcalMPU9250() function in to my code? I am running MPU9250BasicAHRS.ino which is lacking that test but has the function calibrateMPU9250() which I assume alone is insufficient?
Yes, you wil need some way to calibrate the mags. Why not start with a more modern sketch altogether like, maybe, this one:
https://github.com/kriswiner/ESP8285/blob/master/MPU9250/MPU9250_MS5637_BasicAHRS2_ESP8266.ino
On Thu, May 10, 2018 at 9:03 PM, Patrickyp notifications@github.com wrote:
Thanks for your answer. So should I be copying your magcalMPU9250() function in to my code? I am running MPU9250BasicAHRS.ino which is lacking that test but has the function calibrateMPU9250() which I assume alone is insufficient?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/273#issuecomment-388253567, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qqbGX8vgmOOS5obOy3Vjly_bzJLpks5txQ2ogaJpZM4T5LB1 .
Would MPU9250BasicAHRS.ino work just as well assuming I implement the magcalMPU9250 function correctly? I am having trouble getting the one you linked to compile as I am not using MS5637 just mpu9250 from sparkfun and a teensy 3.6.
Maybe, but not the latest...
On Mon, May 14, 2018 at 8:49 PM, Patrickyp notifications@github.com wrote:
Would MPU9250BasicAHRS.ino work just as well assuming I implement the magcalMPU9250 function correctly? I am having trouble getting the one you linked to compile as I am not using MS5637 just mpu9250 from sparkfun and a teensy 3.6.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/273#issuecomment-389034266, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qopiYPa5VT1mm6XAHGDZUoEAvtUnks5tylA_gaJpZM4T5LB1 .
DO you know how often I need to do the figure 8 calibration? It will be a hassle for the project I'm working on but it seems like I have to do it pretty frequently to get accurate data.
Just do it once, well, and store the values in the Arduino sketch so you don;t have to do it again, or only rarely.
On Mon, May 21, 2018 at 4:22 PM, Patrickyp notifications@github.com wrote:
DO you know how often I need to do the figure 8 calibration? It will be a hassle for the project I'm working on but it seems like I have to do it pretty frequently to get accurate data.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/273#issuecomment-390812081, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qoPw1CBW7P5BBqAQq2PxfEtoDTWlks5t00wjgaJpZM4T5LB1 .
A stupid question: how big figure 8 is?, i try to get stable pitch roll yaw but i cant...
Try using serial plotter instead if just want to check the calibration.
I will try, thanks ! 😃
If you get that to work, will you please post a link to the plotter you used and/or a short video of getting it working? I'm struggling with calibration too.
Stream comma delimited mag data to the serial monitor, grab it and import into any spreadsheet to plot Mx vs. My, My vs. Mz, Mx vs. Mz, etc.
Not sure why this is so hard...
On Sun, Jul 22, 2018 at 3:00 PM, Steve Nelson notifications@github.com wrote:
If you get that to work, will you please post a link to the plotter you used and/or a short video of getting it working? I'm struggling with calibration too.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/273#issuecomment-406900181, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qnnf145r-diN3jp-PSrBdcwIM426ks5uJPX4gaJpZM4T5LB1 .
may be i have good chart... Thanks Kriswiner so much !
And an additionally question, how can we calibrate accelerate and gyro sensor, put face up on flat and stand still, right?
Yes, or with a little more effort like this https://github.com/kriswiner/EM7180_SENtral_sensor_hub/wiki/F.--Magnetometer-and-Accelerometer-Calibration .
On Tue, Jul 24, 2018 at 7:00 AM, khoa21214475 notifications@github.com wrote:
And an additionally question, how can we calibrate accelerate and gyro sensor, put face up on flat and stand still, right?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/273#issuecomment-407416872, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qrEvz8q_j2zSwiE900ku0LoYFEv2ks5uJyh1gaJpZM4T5LB1 .
I can't buy em7180 + mpu9250 + bmp280 😂. 2 degree with this board, and how about the accuracy without em7180 and bmp280 ?
" I can't buy em7180 + mpu9250 + bmp280 " Why not?
Without EM7180 you could get 4 degree heading accuracy when well calibrated. See this https://github.com/kriswiner/EM7180_SENtral_sensor_hub/wiki/K.-Limits-of-Absolute-Heading-Accuracy-Using-Inexpensive-MEMS-Sensors .
On Tue, Jul 24, 2018 at 8:04 PM, khoa21214475 notifications@github.com wrote:
I can't buy em7180 + mpu9250 + bmp280 😂. 2 degree with this board, and how about the accuracy without em7180 and bmp280 ?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/273#issuecomment-407618647, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qm7DKVRGWSwCHnqEZl-DhdF4Dqbgks5uJ-A8gaJpZM4T5LB1 .
Thanks for quickly replies Kriswiner! I will try to get one module with ESP32 + GPS Neo 6M + mpu9250 + bmp280 + em7180 , i want to build this module for tracking celestial body. Im Ok to get Az, Alt from module GPS Neo 6M, and now i will use two information to control step motor by using mpu9250 + bmp280 + em7180. But its not easy to get minimum accuracy with mpu9250 😅
I am looking at this tutorial and I don't know how the dotted graphs were made. What exactly is the format of the magnetometer to print to serial monitor and get that graphed data? Any example code?
tutorial: https://github.com/kriswiner/MPU6050/wiki/Simple-and-Effective-Magnetometer-Calibration
Thanks.