“Sensor-Motion Reference”的版本间的差异

来自Microduino Wikipedia
跳转至: 导航搜索
 
(未显示同一用户的1个中间版本)
第5行: 第5行:
 
|-
 
|-
 
|width="65%" valign="top" align="left"|
 
|width="65%" valign="top" align="left"|
<p style="color: #E87E05;font-size:135%">描述</p>
+
<p style="color: #E87E05;font-size:155%">描述</p>
<big>此界面为旧版-串口版姿态传感器编程手册界面,如果你手中的是I2C版姿态传感器(有飞机图标),请移步[[Sensor_Motion_I2C_Reference]]</big>
+
该库用于Microduino/mCookie核心读取姿态传感器三轴加速度,三轴角速度和三轴角度,并可查固件版本号,其采用I2C通信,地址为0x6A。
 
 
 
 
该库用于Microduino核心控制【[[Sensor-Motion/zh]]】,并从中读取数据,通常用来检测姿态角,也可检测三轴加速度和角速度。 同时具有4级的加速度、角速度可调量程。
 
 
<br>
 
<br>
<p style="color: #E87E05;font-size:135%">引脚</p>
 
可用硬串口或软串口控制Sensor-Motion。
 
*Core核心可支持接口
 
**Serial:(0,1)
 
**SoftwareSerial:(2,3)、(4,5)、(6,7)、(8,9)、(10,11),(12,13)、(A0,A1)、(A2、A3)、(SDA、SCL)
 
*Core+核心可支持接口
 
**Serial:(0,1)
 
**Serial1:(2,3)
 
**SoftwareSerial:(4,5)、(6,7)、(8,9)、(10,11),(12,13)、(A0,A1)、(A2、A3)、(A6、A7)、(SDA、SCL)
 
 
<br>
 
<br>
当Sensor-Motion接在0,1接口将会影响烧写程序。
+
<p style="color: #E87E05;font-size:155%">引脚</p>
 +
I2C接口
 
<br>
 
<br>
 
<br>
 
<br>
<p style="color: #E87E05;font-size:135%">示例</p>
+
<p style="color: #E87E05;font-size:155%">示例</p>
*[[显示姿态角]]:通过串口输出三轴姿态角。
+
*[[获取姿态传感器三轴角度]]
 
|width="35%" valign="top" align="left"|
 
|width="35%" valign="top" align="left"|
 
 
::<p style="color: #E87E05;font-size:155%">功能</p>
 
::<p style="color: #E87E05;font-size:155%">功能</p>
 
::*'''Constructor/结构体'''
 
::*'''Constructor/结构体'''
::**[[sensorMotion()]]
+
::**[[sensorMotion]]
 +
 
 +
 
 
::*'''Functions/函数'''
 
::*'''Functions/函数'''
::**[[sensorMotion.begin()|begin()]]
+
::**[[sensorMotion.begin()_I2C|begin()]]
::**[[sensorMotion.getData()|getData()]]
+
::**[[sensorMotion.getVersion()|getVersion()]]
::**[[sensorMotion.setFullScaleGyroRange()|setFullScaleGyroRange()]]
+
::**[[sensorMotion.getYaw()|getYaw()]]
::**[[sensorMotion.setFullScaleAccelRange()|setFullScaleAccelRange()]]
+
::**[[sensorMotion.getPitch()|getPitch()]]
 +
::**[[sensorMotion.getRoll()|getRoll()]]
 +
 
 +
::**[[sensorMotion.getMotionRaw6()|getMotionRaw6()]]
 +
::**[[sensorMotion.getAccelerationRaw()|getAccelerationRaw()]]
 +
::**[[sensorMotion.getAccelerationRawX()|getAccelerationRawX()]]
 +
::**[[sensorMotion.getAccelerationRawY()|getAccelerationRawY()]]
 +
::**[[sensorMotion.getAccelerationRawZ()|getAccelerationRawZ()]]
 +
::**[[sensorMotion.getRotationRaw()|getRotationRaw()]]
 +
::**[[sensorMotion.getRotationRawX()|getRotationRawX()]]
 +
::**[[sensorMotion.getRotationRawY()|getRotationRawY()]]
 +
::**[[sensorMotion.getRotationRawZ()|getRotationRawZ()]]
 +
::**[[sensorMotion.getYawPitchRoll()|getYawPitchRoll()]]
 +
 
 
|}
 
|}
 
|}
 
|}
 +
<br>
 +
<br>
  
  
【[[Sensor-Motion|返回Sensor-Motion]]】
+
【[[Sensor-Motion|返回Sensor-Motion界面]]】
 +
<br>
  
 
【[[mCookie传感器编程手册]]】
 
【[[mCookie传感器编程手册]]】

2018年5月17日 (四) 07:05的最新版本

描述

该库用于Microduino/mCookie核心读取姿态传感器三轴加速度,三轴角速度和三轴角度,并可查固件版本号,其采用I2C通信,地址为0x6A。

引脚

I2C接口

示例

功能





返回Sensor-Motion界面

mCookie传感器编程手册