参数资料
型号: ATAVRSBIN1
厂商: Atmel
文件页数: 16/37页
文件大小: 0K
描述: INERTIAL ONE SENSOR BOARD
产品培训模块: Sensors Xplained
标准包装: 1
系列: Sensors Xplained
传感器类型: 加速计,陀螺仪,电子罗盘,温度
接口: I²C
电源电压: 3.3V
嵌入式:
已供物品:
已用 IC / 零件: AK8975,BMA150,ITG-3200
相关产品: 828-1003-6-ND - 3-AXIS ACCELEROMETER DIGITAL I/F
828-1003-1-ND - 3-AXIS ACCELEROMETER DIGITAL I/F
828-1003-2-ND - 3-AXIS ACCELEROMETER DIGITAL I/F
where device is the device descriptor of the sensor and id_data is a sensor_data_t
structure to receive the ID and version data.
When the sensor_device_id() function returns, the device ID value can be read
from the sensor_data_t structure's device.id field. The device version can be
read from the device.version field. If either value is not provided by the sensor
device, the corresponding field will be set to 0.
7.3 Acceleration
Accelerometer sensors measure linear acceleration force, typically along three axes
(X, Y, and Z). The sensor_get_acceleration() function reads the sensor and
returns the measured acceleration. The function takes the following form:
sensor_get_acceleration (&device, &accel_data);
where device is the device descriptor of the accelerometer and accel_data is a
sensor_data_t structure to receive the acceleration data.
Scaled acceleration measurements are expressed in milli-g. When the function
returns, the values can be read from the accel_data structure using the “axis” fields
( axis.x, axis.y, axis.z ).
7.3.1 Example code sequence
7.3.1.1 Definitions and declarations
#include "sensor.h"
sensor_t
sensor_data_t
accel_dev;
accel_data;
// device descriptor
// acceleration data from device
7.3.1.2 Sensor initialization
sensor_attach (&accel_dev, SENSOR_TYPE_ACCELEROMETER, 0, 0);
7.3.1.3 Sensor read
accel_data.scaled = true;
// read values in milli-g
sensor_get_acceleration (&accel_dev, &accel_data);
7.3.1.4 Use data in application
int32_t
int32_t
int32_t
app_x_value
app_y_value
app_z_value
= accel_data.axis.x;
= accel_data.axis.y;
= accel_data.axis.z;
uint32_t app_read_time = accel_data.timestamp;
7.4 Rotation
Gyroscope sensors measure rotation rates, typically along three axes (X, Y, and Z).
The sensor_get_rotation() function reads the sensor and returns the measured
rotation rate. The function takes the following form:
sensor_get_rotation (&device, &gyro_data);
where device is the device descriptor of the gyroscope and gyro_data is a
sensor_data_t structure to receive the rotation data.
16
Atmel AVR4016
8367B-AVR-06/11
相关PDF资料
PDF描述
ATAVRSBIN2 INERTIAL TWO SENSOR BOARD
ATAVRSBLP1 LIGHT AND PROXIMITY SENSOR BOARD
ATAVRSBPR1 BAROMETRIC PRESSURE ONE SNSR BRD
ATQT600 KIT EVAL TOUCH FOR QT600
ATU6-P305T-R CABLE CAT6 FULL-BOX 305M GRAY
相关代理商/技术参数
参数描述
ATAVRSBIN2 功能描述:多功能传感器开发工具 9DOF Inertial Sensor Board 2 RoHS:否 制造商:Texas Instruments 工具用于评估:LMP91200 接口类型:SPI 工作电压:1.8 V to 5.5 V 最大工作温度:
ATAVRSBLP1 功能描述:光学传感器开发工具 Ambient Light and Proximity Snsr Brd RoHS:否 制造商:ams 工具用于评估: 接口类型: 最大工作温度:
ATAVRSBPR1 功能描述:压力传感器开发工具 Barometric Pressure Sensor Board 1 RoHS:否 制造商:Freescale Semiconductor 工具用于评估:MPL3115A2 接口类型:USB 最大工作温度:
ATAVRSECURITYX 功能描述:安全/ 验证开发工具 Security Module Kit for Xplain Series RoHS:否 制造商:Digi International 产品:Development Kits 工具用于评估:XEB-AW140 接口类型:SPI, USB 工作电源电压:3.1 V to 3.6 V
ATAVRSMD 功能描述:ADAPTER KIT SMD ICE200 RoHS:否 类别:编程器,开发系统 >> 过时/停产零件编号 系列:- 标准包装:1 系列:- 类型:MCU 适用于相关产品:Freescale MC68HC908LJ/LK(80-QFP ZIF 插口) 所含物品:面板、缆线、软件、数据表和用户手册 其它名称:520-1035