Go to Post FIRST is privlidge that I am glad to be a part of and any award we recieve is a blessing to be cherish not an expectation to be agonized over. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-23-2015, 09:46 PM
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 271
Bpk9p4 is on a distinguished road
Gyro 10 DOF IMU

Has anyone had any luck getting the adafruit 10 dof imu (http://www.adafruit.com/product/1604) working with this 2015 labview. I found a great program on how to do it on the old system (http://www.chiefdelphi.com/forums/sh....php?p=1431829) but i can not get it to work in 2015. Has anyone got it to work?
Reply With Quote
  #2   Spotlight this post!  
Unread 01-23-2015, 10:52 PM
Dexterium's Avatar
Dexterium Dexterium is offline
Registered User
AKA: Adam Poindexter
FRC #1208 (Metool Brigade)
Team Role: Programmer
 
Join Date: Sep 2012
Rookie Year: 2011
Location: United States
Posts: 24
Dexterium is an unknown quantity at this point
Re: Gyro 10 DOF IMU

I would just use the I2C port on the rio and mess around with the settings until you get it right. Labview has built in I2C reads so with a little experimentation you shouldn't have any (many?) problems. The adafruit page states that all values can be read through I2C so it shouldn't be too difficult to get the array to populate correctly.

Last edited by Dexterium : 01-23-2015 at 10:55 PM.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-27-2015, 07:16 PM
Levansic's Avatar
Levansic Levansic is offline
Registered User
AKA: Len Evansic
FRC #0585 (Cyber Penguins)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Tehachapi, CA
Posts: 185
Levansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud of
Re: Gyro 10 DOF IMU

We used a Pololu IMU last year that had the predecessor L3GD20 gyro to what is on that Adafruit IMU. It worked great! We posted our digital gyro library here last spring, here.

Unfortunately, we have not been able to get anything working with the roboRIO, and either of its two i2c ports with LabView. We aren't sure if our gyro is damaged, or if the new WPI implementation with the new roboRIO is the culprit.

We have seen that the i2c library vi's have a lot of coercion dots inside, where U8 inputs are coerced to I32 for some other things, only to be re-coerced back to U8. Also, we see that the library functions are not set to be re-entrant, so we have no idea where errors are being generated (they show up on all instances within our program for reading i2c). Because of this, my eyes are squinting at the new WPI libraries for i2c, and wondering how much testing went on before release.

Last edited by Levansic : 01-28-2015 at 01:33 AM. Reason: found my link.
Reply With Quote
  #4   Spotlight this post!  
Unread 01-28-2015, 12:20 PM
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 271
Bpk9p4 is on a distinguished road
Re: Gyro 10 DOF IMU

This post might be able to help you guys with your i2c problem. http://www.chiefdelphi.com/forums/sh....php?p=1431829
i was able to get it running with my adafruit 10dof imu and it worked great
Reply With Quote
  #5   Spotlight this post!  
Unread 01-28-2015, 03:04 PM
Levansic's Avatar
Levansic Levansic is offline
Registered User
AKA: Len Evansic
FRC #0585 (Cyber Penguins)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Tehachapi, CA
Posts: 185
Levansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud of
Re: Gyro 10 DOF IMU

Ah ha! Thank you so much!

I forgot that we had to do a bit shift on the addressing to get it to work last year. Can't wait to get to the lab to see if that's all we need to do.

This is a good change for new code, in that you can just use the address printed in the data sheet without having to morph it to what the vi expects. Unfortunately, it highlights one of the more frustrating things about the WPI library, in that it is not easy to find documentation of these changes, and the thrown errors indicate little of what is actually wrong.

Last edited by Levansic : 01-28-2015 at 03:10 PM.
Reply With Quote
  #6   Spotlight this post!  
Unread 01-28-2015, 03:54 PM
Richard100 Richard100 is offline
Registered User
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Southern Maryland
Posts: 79
Richard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to behold
Re: Gyro 10 DOF IMU

I scanned the Pololu specs sheets for their breakout boards for both the L3GD20 and L3GD20H, and I believe the RoboBees code referenced by Bkp9p4 should interface correctly (with either) over the I2C bus. You would just want to disable the Accelerometer and Magnetometer devices using the settings available in the IMU OPEN vi. I have not tested this so let us know how it works if you try it. Be advised the code works on the On-Board I2C
bus only, until I resolve the MXP issue.

Yes, the WPI I2C library changed this year, moving to the 7-bit address spec convention (among other things). This likely removes a barrier to success for teams attempting this interface.
Reply With Quote
  #7   Spotlight this post!  
Unread 01-28-2015, 04:00 PM
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 986
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Gyro 10 DOF IMU

Quote:
Originally Posted by Levansic View Post
Unfortunately, it highlights one of the more frustrating things about the WPI library, in that it is not easy to find documentation of these changes
http://wpilib.screenstepslive.com/s/...e-2014-to-2015
Reply With Quote
  #8   Spotlight this post!  
Unread 01-28-2015, 05:03 PM
Richard100 Richard100 is offline
Registered User
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Southern Maryland
Posts: 79
Richard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to beholdRichard100 is a splendid one to behold
Re: Gyro 10 DOF IMU

Yes, but that information (I2C address change) on the WPI site is less than 10 days old ... 《grin》
Reply With Quote
  #9   Spotlight this post!  
Unread 01-29-2015, 01:55 AM
Levansic's Avatar
Levansic Levansic is offline
Registered User
AKA: Len Evansic
FRC #0585 (Cyber Penguins)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Tehachapi, CA
Posts: 185
Levansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud ofLevansic has much to be proud of
Re: Gyro 10 DOF IMU

I had looked over that site in the first week, and hadn't seen that. Now I know why.

Anyway, the 7-bit address was the key for us. We got it working through the MXP port this evening, and everything looks good.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 06:03 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi