spi openIMU330

OpenImu330 SPI

OpenIMU330 operates as a slave device.  The master device must be configured to communicate with the OpenIMU330 using the following settings:

  • Data transferred in 16-bit word-length and MSB-first
  • fCLK ≤ 2.0 MHz
  • CPOL = 1 (clock polarity) and CPHA = 1 (clock phase)

 OpenIMU330 has 128 8-bit registers accessible via SPI interface for read and write. The usage of these registers is completely user-defined in time of FW development. 

OpenIMU330 SPI Register Read Methodology

SPI-master initiates a register read (for example register 0x04) by clocking in the address followed by 0x00, i.e. 0x0400, via MOSI; this combination is referred to as a read-command. This is followed by 16 zero-bits to complete the SPI data-transfer cycle.

As the master transmits the read command over MOSI, the OpenIMU330 transmits information back over MISO.  In this transmission, the first data-word sent by the OpenIMU330 (as the read-command is sent) consists of 16-bits of non-applicable data.  The subsequent 16-bit message contains information stored in two consecutive registers (in this case registers 4 (MSB) and 5(LSB))

 

OpenIMU330 SPI Port Block Mode Read

 User can implement reading blocks of data with arbitrary length and information. Specific dedicated register address will indicate request specific block of data. For example, register address 0x3e (62) indicates request for reading data block containing current data from unit sensors.  Table 2 lists corresponding parameters.

 Number of SPI clock pulses should be exactly equal to the length of predefined data packet (in this case – 144 (16 for address 128 for data)) otherwise interface may go out of sync

 

 OpenIMU330 DRDY signal rate selection

Register 55 (0x37) dedicated for controlling the rate (frequency) of DRDY output signal.

This signal indicates that the new sensors data set is ready 

 Next values can be written into this register:

 

Value

DRDY signal Frequency (Hz)

Notes

0

0

 

1

200

Default

2

100

 

3

50

 

4

25

 

5

20

 

6

10

 

7

5

 

8

4

 

9

2

 

 

OpenIMU330 SPI Register Write Methodology

 

The SPI master device can perform write into any register. The unit reaction on write operation is completely defined by the user. By default, corresponding data written without any reaction from unit. Written data can be read back.

Unlike reads, writes are performed one byte at a time

 

The following example highlights how write-commands are formed:

  • Select the write address of the desired register, for example 0x35
  • Change the most-significant bit of the register address to 1 (the write-bit), e.g. 0x35 becomes 0xB5

Create the write command by appending the write-bit/address combination with the value to be written to the register (for example 0x04) - 0xB504 

 

 

x-IMU被设计成可用的最通用的惯性测量单元(IMU)和姿态航向参考系统(AHRS)平台。其主机板上的传感器,算法,可配置的辅助端口以及通过USB,蓝牙或UART的实时通信使其成为一个强大的传感器和控制器。机载SD卡,电池充电器(通过USB),实时时钟/日历和动作触发唤醒,使x-IMU成为理想的独立数据记录器。该x-IMU模块包括多个轴向传感器,能够为飞行器提供航向,横滚和侧翻信息,这类系统用来为飞行器提供准确可靠的姿态与航行信息。 x-IMU GUI可用于配置设置,查看实时传感器数据,执行校准并将数据导出到用户软件; 如Microsoft Excel。x-IMU MATLAB库提供了在MATLAB中导入,组织和绘制数据所需的所有工具。用户软件可以使用x-IMU API开发,见附件内容下载。 x-IMU模块与Arduino实物连接图: x-IMU模块包括的传感器如下: 三轴16位陀螺仪 - 可选范围高达±2000°/ s 三轴12位加速计 - 可选范围高达±8 g 三轴12位磁力计 - 可选范围高达±8.1 G 12位电池电压等级 工厂校准 温度补偿(仅陀螺仪) 可选数据速率高达512 Hz 外部拓展接口部分: 外部电源从3.6 V到6.3 V 3.3 V电源输出高达100 mA 数字I / O模式 - 8个通道,通过USB或蓝牙控制 模拟输入模式 - 8通道,12位分辨率,0至3.3 V PWM输出模式 - 4通道,1至65,535赫兹,通过USB或蓝牙控制 UART模式 - 3.3 V,2400至230.4k波特替代蓝牙 其他特性: 运动触发唤醒和睡眠定时器 实时时钟和日历 可配置的命令按钮 可配置的8通道辅助端口
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值