<?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[IMU Get ACC reports gyro]]></title><description><![CDATA[<p dir="auto">There appears to be an issue with the IMU module in M5Flow. The function "Get X Acc" appears to report the orientation of the device, instead of the accelleration. Here is the python code to reproduce it:</p>
<p dir="auto">from m5stack import *<br />
from m5ui import *<br />
from uiflow import *<br />
import imu</p>
<p dir="auto">setScreenColor(0x222222)</p>
<p dir="auto">imu0 = imu.IMU()</p>
<p dir="auto">while True:<br />
lcd.clear()<br />
lcd.print((imu0.acceleration[0]), 0, 0, 0xffffff)<br />
lcd.print((imu0.acceleration[1]), 0, 20, 0xffffff)<br />
wait_ms(400)<br />
wait_ms(2)</p>
<p dir="auto">If you run the program, the displayed numbers are between -1 and 1 depending on how you turn the device.</p>
<p dir="auto">I also tried the C/C++ example for the M5Stack located here: <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><br />
This example seems to run fine.</p>
]]></description><link>https://community.m5stack.com/topic/1672/imu-get-acc-reports-gyro</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 17:29:27 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1672.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 02 Feb 2020 20:41:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to IMU Get ACC reports gyro on Wed, 13 May 2020 10:41:34 GMT]]></title><description><![CDATA[<p dir="auto">it could be that the gyro is in Gravities which would explain the low reading.<br />
I was watching a vid and normally the readings shoud be in miligravities.</p>
]]></description><link>https://community.m5stack.com/post/8657</link><guid isPermaLink="true">https://community.m5stack.com/post/8657</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Wed, 13 May 2020 10:41:34 GMT</pubDate></item><item><title><![CDATA[Reply to IMU Get ACC reports gyro on Wed, 13 May 2020 07:15:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fracman" aria-label="Profile: fracman">@<bdi>fracman</bdi></a> I am observing possibly a similar situation. Get X Gyr seems to return an unpredictable and small (-2 to 2) range no matter how I turn my M5StickC.</p>
<p dir="auto">Are the values read from current IMU meters, or are data buffered? Feels like the latter.</p>
]]></description><link>https://community.m5stack.com/post/8646</link><guid isPermaLink="true">https://community.m5stack.com/post/8646</guid><dc:creator><![CDATA[jhfoo]]></dc:creator><pubDate>Wed, 13 May 2020 07:15:43 GMT</pubDate></item></channel></rss>