Go to Post Engineering is a big, big type of fishing to teach. Inspiring kids to study it in college might be more practical. - connor.worley [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 11-02-2015, 16:57
Sparkyshires Sparkyshires is offline
Registered User
AKA: Michael Shires
FRC #0384 (Sparky)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2006
Location: Virginia
Posts: 226
Sparkyshires is an unknown quantity at this point
Gyro I2C help?

Hello all,

I'm attempting to work with a gyro from adafruit, specifically the adafru.it/1714 through I2C. My question is this: how exactly would you do this? I know it has something to do with addresses, and processing bytes, but I kinda suck at all that stuff :/ the only address I could find is 0x6B, and I don't know what I'm supposed to do with it. Every other resource I've found seems to say that you need 3 or 4 addresses.
__________________
"Measure with a micrometer, mark with chalk, cut with an axe."
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2015, 19:15
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: Gyro I2C help?

It is a fairly large amount of work to get a gyro like this working when there are only a few days left in the build season, especially if you don't have much experience with I2C, but that's not to say it can't be done.

This is an Arduino driver for the gyro, which will help with the register mappings and addresses.

This is a driver I wrote for another I2C gyro, which I hope will help you with understanding how to port the Arduino code to the roboRIO, even though it's in Java.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
Reply With Quote
  #3   Spotlight this post!  
Unread 12-02-2015, 08:04
Sparkyshires Sparkyshires is offline
Registered User
AKA: Michael Shires
FRC #0384 (Sparky)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2006
Location: Virginia
Posts: 226
Sparkyshires is an unknown quantity at this point
Re: Gyro I2C help?

Well the only regional we're going to is a week 4, and we're building two bots, and I honestly don't expect to be finished by bag, so I've got some time to figure it out. Thank you for the resources!

EDIT: For the sake of clarity, It's made of two devices, and the gyro documentation is here and I think what you're interested in is on page 27, and the accelerometer documentation is here, and the I2C information is on pages 12 and 18.

I believe this is information necessary, but I have no idea what to do with it D:
__________________
"Measure with a micrometer, mark with chalk, cut with an axe."

Last edited by Sparkyshires : 12-02-2015 at 12:25. Reason: Added information
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 03:01.

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