Coder Social home page Coder Social logo

xsens_mti_i2c's Introduction

Arduino I2C 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 I2C 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
  • Due

Xsens MTi:

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

Setup

At least the following hardware connections are required:

  • MTi_SCL - Arduino_SCL
  • MTi_SDA - Arduino_SDA
  • MTi_GND - Arduino_GND
  • MTi_3.3V - Arduino_3.3V
  • MTi_DRDY - Arduino_D3

Additionally, make sure to:

  • Enable I2C by switching PSEL0,1 to "1"
  • Supply the MTi-#-DK with 3.3V (since 5V will force USB mode)
  • Add 2.7 kOhm pullup resistors to the SCL/SDA lines (only for MTi-#-DK board Rev 2.3 or older - newer revisions come with onboard pullup resistors)

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.

xsens_mti_i2c's People

Contributors

steven-gh avatar

Stargazers

Sakib Ahmed Sumdany avatar Alex Xu avatar Chinmay Pendharkar avatar  avatar

Watchers

 avatar Caleb Osmond avatar

Forkers

asme-bur phatcvo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.