<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
		<id>http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=%E8%8E%B7%E5%8F%96%E5%A7%BF%E6%80%81%E4%BC%A0%E6%84%9F%E5%99%A8%E4%B8%89%E8%BD%B4%E8%A7%92%E5%BA%A6</id>
		<title>获取姿态传感器三轴角度 - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=%E8%8E%B7%E5%8F%96%E5%A7%BF%E6%80%81%E4%BC%A0%E6%84%9F%E5%99%A8%E4%B8%89%E8%BD%B4%E8%A7%92%E5%BA%A6"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E8%8E%B7%E5%8F%96%E5%A7%BF%E6%80%81%E4%BC%A0%E6%84%9F%E5%99%A8%E4%B8%89%E8%BD%B4%E8%A7%92%E5%BA%A6&amp;action=history"/>
		<updated>2026-04-21T16:14:56Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E8%8E%B7%E5%8F%96%E5%A7%BF%E6%80%81%E4%BC%A0%E6%84%9F%E5%99%A8%E4%B8%89%E8%BD%B4%E8%A7%92%E5%BA%A6&amp;diff=26686&amp;oldid=prev</id>
		<title>2018年11月16日 (五) 05:30 1196357542@qq.com</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E8%8E%B7%E5%8F%96%E5%A7%BF%E6%80%81%E4%BC%A0%E6%84%9F%E5%99%A8%E4%B8%89%E8%BD%B4%E8%A7%92%E5%BA%A6&amp;diff=26686&amp;oldid=prev"/>
				<updated>2018-11-16T05:30:59Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2018年11月16日 (五) 05:30的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l78&quot; &gt;第78行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第78行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Sensor-Motion|返回Sensor-Motion界面]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Sensor-Motion|返回Sensor-Motion界面]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Sensor_Motion_I2C_Reference&lt;/del&gt;|返回Sensor-Motion_Reference界面]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Sensor-Motion_Reference&lt;/ins&gt;|返回Sensor-Motion_Reference界面]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>1196357542@qq.com</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E8%8E%B7%E5%8F%96%E5%A7%BF%E6%80%81%E4%BC%A0%E6%84%9F%E5%99%A8%E4%B8%89%E8%BD%B4%E8%A7%92%E5%BA%A6&amp;diff=25577&amp;oldid=prev</id>
		<title>2018年5月14日 (一) 10:06 1196357542@qq.com</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E8%8E%B7%E5%8F%96%E5%A7%BF%E6%80%81%E4%BC%A0%E6%84%9F%E5%99%A8%E4%B8%89%E8%BD%B4%E8%A7%92%E5%BA%A6&amp;diff=25577&amp;oldid=prev"/>
				<updated>2018-05-14T10:06:06Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2018年5月14日 (一) 10:06的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l76&quot; &gt;第76行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第76行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Sensor-Motion&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;/zh&lt;/del&gt;|返回Sensor-Motion界面]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Sensor-Motion|返回Sensor-Motion界面]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Sensor-&lt;/del&gt;|返回Sensor-Motion_Reference界面]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Sensor_Motion_I2C_Reference&lt;/ins&gt;|返回Sensor-Motion_Reference界面]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>1196357542@qq.com</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E8%8E%B7%E5%8F%96%E5%A7%BF%E6%80%81%E4%BC%A0%E6%84%9F%E5%99%A8%E4%B8%89%E8%BD%B4%E8%A7%92%E5%BA%A6&amp;diff=25572&amp;oldid=prev</id>
		<title>1196357542@qq.com：创建页面，内容为“{| style=&quot;width: 800px;&quot; |- | &lt;p style=&quot;color: #E87E05;font-size:135%&quot;&gt;描述&lt;/p&gt; 在下面的示例中，使用mCenter+检测姿态传感器的三轴角度，通过…”</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E8%8E%B7%E5%8F%96%E5%A7%BF%E6%80%81%E4%BC%A0%E6%84%9F%E5%99%A8%E4%B8%89%E8%BD%B4%E8%A7%92%E5%BA%A6&amp;diff=25572&amp;oldid=prev"/>
				<updated>2018-05-14T09:59:37Z</updated>
		
		<summary type="html">&lt;p&gt;创建页面，内容为“{| style=&amp;quot;width: 800px;&amp;quot; |- | &amp;lt;p style=&amp;quot;color: #E87E05;font-size:135%&amp;quot;&amp;gt;描述&amp;lt;/p&amp;gt; 在下面的示例中，使用mCenter+检测姿态传感器的三轴角度，通过…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;p style=&amp;quot;color: #E87E05;font-size:135%&amp;quot;&amp;gt;描述&amp;lt;/p&amp;gt;&lt;br /&gt;
在下面的示例中，使用mCenter+检测姿态传感器的三轴角度，通过串口将数值打印出来&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p style=&amp;quot;color: #E87E05;font-size:135%&amp;quot;&amp;gt;所需硬件&amp;lt;/p&amp;gt;&lt;br /&gt;
*[[mCenter%2B|mCookie-mCenter+]]&lt;br /&gt;
*[[Sensor-Motion/zh]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p style=&amp;quot;color: #E87E05;font-size:135%&amp;quot;&amp;gt;电路搭建&amp;lt;/p&amp;gt;&lt;br /&gt;
将姿态传感器接到mCenter+的I2C引脚。&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
将mCenter+通过MicroUSB数据线接入电脑，板卡选择&amp;quot;Core+ 5V&amp;quot;。初次使用请参考：[[AVR核心：Getting_started/zh|Getting Started]]。&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p style=&amp;quot;color: #E87E05;font-size:135%&amp;quot;&amp;gt;代码&amp;lt;/p&amp;gt;&lt;br /&gt;
单独读取各轴角度&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c++&amp;quot;&amp;gt;&lt;br /&gt;
#include &amp;lt;Microduino_sensorMotion.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
sensorMotion mpu6050;&lt;br /&gt;
&lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
  //串口初始化&lt;br /&gt;
  Serial.begin(115200);&lt;br /&gt;
  mpu6050.begin();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  Serial.print(mpu6050.getYaw());&lt;br /&gt;
  Serial.print(&amp;quot; \t&amp;quot;);&lt;br /&gt;
  Serial.print(mpu6050.getPitch());&lt;br /&gt;
  Serial.print(&amp;quot; \t&amp;quot;);&lt;br /&gt;
  Serial.print(mpu6050.getRoll());&lt;br /&gt;
  Serial.println(&amp;quot; &amp;quot;);&lt;br /&gt;
&lt;br /&gt;
  delay(10);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
快速读取三轴角度&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c++&amp;quot;&amp;gt;&lt;br /&gt;
#include &amp;lt;Microduino_sensorMotion.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
sensorMotion mpu6050;&lt;br /&gt;
&lt;br /&gt;
float ypr[3];&lt;br /&gt;
&lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
  //串口初始化&lt;br /&gt;
  Serial.begin(115200);&lt;br /&gt;
  mpu6050.begin();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  mpu6050.getYawPitchRoll(ypr);&lt;br /&gt;
  Serial.print(&amp;quot;ypr\t&amp;quot;);&lt;br /&gt;
  Serial.print(ypr[0]);&lt;br /&gt;
  Serial.print(&amp;quot;\t&amp;quot;);&lt;br /&gt;
  Serial.print(ypr[1]);&lt;br /&gt;
  Serial.print(&amp;quot;\t&amp;quot;);&lt;br /&gt;
  Serial.println(ypr[2]);&lt;br /&gt;
&lt;br /&gt;
  delay(10);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
[[Sensor-Motion/zh|返回Sensor-Motion界面]]&lt;br /&gt;
&lt;br /&gt;
[[Sensor-|返回Sensor-Motion_Reference界面]]&lt;/div&gt;</summary>
		<author><name>1196357542@qq.com</name></author>	</entry>

	</feed>