GithubHelp home page GithubHelp logo

3zuli / adis16448-arduino-teensy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from juchong/adis16448-arduino-teensy

0.0 2.0 0.0 443 KB

Example C++ library and Arduino project for the ADIS16448 IMU and Teensy development platform.

License: MIT License

C++ 58.57% Arduino 41.43%

adis16448-arduino-teensy's Introduction

ADIS16448 Teensyduino (Arduino for Teensy) Demo

An example C++ library and Teensyduino project for the ADIS16448 iSensor Ten Degrees of Freedom Inertial Sensor

This example library was written to give engineers, students, and makers a starting point for using a high-performance, compact, precision inertial sensor. The code in this repository will provide the user with:

  • A header file listing all of the unit's available registers
  • Functions for reading output registers and writing control registers using 8-bit frames
    • Note that the ADIS16448 requires 16 bit SPI transactions. spi.transfer() is called twice for each transfer and CS is manually toggled to overcome the Arduino language's limitation
  • Functions for performing common routines such as resetting the sensor
  • Burst-mode data acquisition and checksum verification
  • Example Arduino sketches which synchronously read data from the sensor and write it to the serial port

What do I need to get started?

  • In order to compile and execute the Teensyduino sketch, you'll need to download the Arduino package (v1.6.11 as of this writing). You can download the IDE here.
  • You'll also need to install the Teensyduino library provided by PJRC.
  • Finally, you'll need a Teensy sold by PJRC here. Version 3.x or LC is supported.
  • The main Teensyduino sketch issues a command to clear the terminal window after displaying data. For best results, connect to your Teensy using PuTTY, an open source terminal program.

How do I install the library?

Once you've installed the Arduino IDE and Teensyduino libraries, copy the ADIS16448 folder into My Documents > Arduino > libraries

Be sure to restart the Arduino IDE to refresh the library directory!

How do I connect the IMU to my Arduino?

If using a Teensy, the onboard regulator should provide enough current for the ADIS16448 to properly operate.

You'll need to build a cable to interface the sensor with the ADIS16448/PCBZ. The image below shows a custom Teensy interface board for iSensors products.

ADIS16448-Teensy Interface Board

Pin assignments for the Teensy can be found in the example sketch comments.

How do I know it's working?

Once you have the sensor connected and have opened the ADIS16448_Teensy_BurstRead_Example.ino example sketch, use PuTTY to connect to the arduino using the following settings. Note that your COM port may be different:

ADIS16460 Example PuTTY Config

If everything is working, you should see a screen like this:

ADIS16448 Example PuTTY Output

The demo software will only update the screen ~2 times/second, but every sample is being captured by the interrupt service routine.

A single burst frame should look like this when viewed with a logic analyzer: ADIS16448 Burst Frame

adis16448-arduino-teensy's People

Watchers

 avatar  avatar

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.