Skip to content

This library demonstrates the basics of communicating with Xsens MTi 1-series devices through SPI.

License

Notifications You must be signed in to change notification settings

Steven-GH/Xsens_MTi_SPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino SPI library for Xsens MTi 1-series

Introduction

This Arduino library demonstrates basic Xbus communication between an Arduino and an Xsens MTi 1-series shield board (MTi-#-DK) using the SPI interface. The example code is merely a starting point for code development. Its functionality can be extended by making use of the Xbus protocol. Xbus is the proprietary binary communication protocol that is supported by all Xsens MTi products, and it is fully documented in the MT Low-Level Communication Protocol Document.

For further guidance on using this example code, please refer to Xsens BASE.

Tested hardware

Arduino:

  • Uno

Xsens MTi:

  • MTi-3-DK
  • MTi-7-DK
  • MTi-8-DK

Setup

At least the following hardware connections are required:

Additionally, make sure to:

  • Enable SPI by switching PSEL0,1 to "0,1"
  • Supply the MTi-#-DK with 3.3V (since 5V will force USB mode)

Functionality

After connecting with an MTi 1-series device, the example code will request device information (product code and firmware version). It will then continue to configure the outputs of the MTi (1 Hz default, 10 Hz selectable):

  • MTi-1: RateOfTurn and Acceleration
  • MTi-2/3: EulerAngles
  • MTi-7/8: EulerAngles and Latitude/Longitude

After configuring, the MTi will be forced into Measurement mode and the received data will be printed to the serial monitor.

About

This library demonstrates the basics of communicating with Xsens MTi 1-series devices through SPI.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages