Go to Post Do not treat Vex and FLL as inferior because they may not get as much exposure as FRC on these boards. Just remember, FLL has seven times more teams than FRC from twenty additional countries. - artdutra04 [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 8 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 25-06-2013, 23:55
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,563
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Using MPU6050 through I2C bus

I'm confused. The board you linked seems to be an a flight control board that contains an MPU6050 and an Arduino microcontroller. I've been looking at the MultiWii website and have not been able to find a description of the I2C interface. You'll need to find out what the I2c device address is, as well as the map of registers it supports. You may need to modify the Arduino firmware to get access to the data you want. I assume that there is some processing the Arduino is doing which is why you picked it, rather then using the MPU6050 directly?

Then you talk about pi4j, which implies you want to run java on a Raspberry PI. Does this mean that you want to connect the Arduino to a Raspberry PI and then the Raspberry PI to the I2C bus on the Digital Sidecar?

On the robot side, you'd use the I2C class in WPILibJ. The FPGA only supports being an I2C master, which isn't a problem if you are interfacing to the MPU6050 directly, but may be a problem if you are connecting to another controller that also is designed to be the master. There are several other gotchas to using I2C on the cRIO, so you should spend some time reading related threads on chiefdelphi.
 


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 12:39.

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