View Single Post
  #3   Spotlight this post!  
Unread 04-03-2015, 15:50
MikeF1617 MikeF1617 is offline
Registered User
AKA: Michael Fischler
FRC #1124 (UberBots)
Team Role: Programmer
 
Join Date: Sep 2013
Rookie Year: 2013
Location: United States
Posts: 15
MikeF1617 is an unknown quantity at this point
Re: Help using I2C Gyro

I'm not sure if this is much help, but here is what I found and put together.

This is someone trying to do it in Java, and I took some information from there:

http://forums.usfirst.org/showthread...3340#post93340

It seems that there needs to be an initial command of 0x00 (same as 0) to set it to continuous measurement mode, then just read the data 6 bytes at a time (what the java code does, might need changing). But maybe this is not needed and just managed by the LabVIEW I2C code by itself, so it probably does not need to be included.

I put together a VI with the different parts of code needed, hope this is of some help.

Another option is to go with the gyro that your team probably has that looks like this:

Product:
http://www.andymark.com/product-p/am-2067.htm
Datasheet:
http://www.usfirst.org/sites/default...meter-Gyro.pdf

which should have come in previous year's kit of parts, I believe. My team is using this gyro this year, it is much easier since you can open it on an analog port with the gyro VIs in the WPI library.
Attached Files
File Type: vi gyro-i2c.vi (13.9 KB, 5 views)
Reply With Quote