View Single Post
  #5   Spotlight this post!  
Unread 15-02-2016, 07:51
Ian R. Ian R. is offline
Registered User
FRC #2283 (Panteras)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Mexico
Posts: 13
Ian R. will become famous soon enough
Re: MPU-9150 (I2C) with Labview

Quote:
Originally Posted by uutzinger View Post
It might be easier to use use the example Arduino code and hook the sensor up to an Arduino and communicate over serial port with Arduino which would read the sensor values and send them to your LabView program.

The 9150 has more than 100 registers and the compass on it is a separate I2C device which the 9150 accesses over its own internal I2C bus.

I recommend code from Kris Winer on github.
Also the 9150 is no longer available and got replaced with 9250 which is mostly compatible except for some of the calibration.

You can also use my code on github (uutzinger). Teensy works well as Arduino replacement.

Making USB serial communication work with RoboRIO is not trivial either.
Thanks.
At the moment we're sticking with the normal gyro, but we already had the Arduino in mind. One thing that will make that process complicated is opening a communication with the sensor AND the rio at the same time.
Reply With Quote