<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[Solved] IMU - MPU9250]]></title><description><![CDATA[<p dir="auto">Hi<br />
I've tried to use the accelerometer in arduino IDE with a Fire stack<br />
I did try the examples at <a href="https://docs.makerfactory.io/m5stack/api/mpu9250/" target="_blank" rel="noopener noreferrer nofollow ugc">MakerFactory</a> and it works for the AK8963 chip (IMU.initAK8963(IMU.magCalibration);<br />
Unfortunately IMU.calibrateMPU9250(IMU.gyroBias, IMU.accelBias); does not work, nor does readGyroData or readAccelData. It does not print anything, screen flashes and Fire keeps rebooting for ever, so I can't use accelerometer/gyro<br />
The hardware is ok as I could use it with UIFlow<br />
I tried the <a href="http://gitlab.m5stack.com/sakabin/m5stack-arduino/blob/61c127a74bcce88efb40eb16d25d5958ac1643f8/examples/Modules/MPU9250/MPU9250BasicAHRS/MPU9250BasicAHRS.ino" target="_blank" rel="noopener noreferrer nofollow ugc">WHO_I_AM thing</a> and it says MPU9250: I am 19 / I should be 71<br />
Could it be the problem ?<br />
When I comment out IMU.calibrateMPU9250(IMU.gyroBias, IMU.accelBias), no more reboot - but of course it only shows 0s, so it's not very useful</p>
]]></description><link>https://community.m5stack.com/topic/2312/solved-imu-mpu9250</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 17:42:55 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2312.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 18 Sep 2020 08:30:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Solved] IMU - MPU9250 on Tue, 22 Sep 2020 11:38:32 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/f3l1x" aria-label="Profile: F3l1x">@<bdi>F3l1x</bdi></a></p>
<p dir="auto">you are very welcome.</p>
<p dir="auto">Happy Stacking!<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/10173</link><guid isPermaLink="true">https://community.m5stack.com/post/10173</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 22 Sep 2020 11:38:32 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] IMU - MPU9250 on Fri, 18 Sep 2020 10:23:59 GMT]]></title><description><![CDATA[<p dir="auto">Thanks so much, Felix !</p>
]]></description><link>https://community.m5stack.com/post/10128</link><guid isPermaLink="true">https://community.m5stack.com/post/10128</guid><dc:creator><![CDATA[F3l1x]]></dc:creator><pubDate>Fri, 18 Sep 2020 10:23:59 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] IMU - MPU9250 on Fri, 18 Sep 2020 09:02:07 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/f3l1x" aria-label="Profile: F3l1x">@<bdi>F3l1x</bdi></a></p>
<p dir="auto">AFAIK MPU6886 reports <code>0x19</code> as WHO_AM_I. I think you already might have a newer M5Stack Fire which uses an MPU6886 - please see version history here:</p>
<p dir="auto"><a href="https://docs.m5stack.com/#/en/core/fire?id=version-change" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.m5stack.com/#/en/core/fire?id=version-change</a></p>
<p dir="auto">Have you tried below code? Looks like it can deal with all IMUs ever used in stacks.</p>
<p dir="auto"><a href="https://github.com/m5stack/M5Stack/blob/master/examples/Basics/IMU/IMU.ino" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Stack/blob/master/examples/Basics/IMU/IMU.ino</a></p>
<p dir="auto">Good luck!</p>
<p dir="auto">Felix</p>
]]></description><link>https://community.m5stack.com/post/10127</link><guid isPermaLink="true">https://community.m5stack.com/post/10127</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 18 Sep 2020 09:02:07 GMT</pubDate></item></channel></rss>