Go to Post The real question is has anybody ever learned anything actionable from a game hint or red herring. - Joe Ross [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 18-11-2015, 19:19
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 247
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
Arduino to Roborio coms

I'm a new mentor to team 3244 and First Robotics. My goal this year is to help the team learn and create more reliable and functional robots using sensors and software. I personally am a jack of all software languages but master of none. With a sample or two can stitch together usable and readable code. The team is off for a few weeks and we put together our First choice list. One item I placed on it is the REV RIOduino. Seems like a great versatile expansion board to run "stuff" on the robot as well as maybe offloading a Gyro/Accelerometers module. I have and tested a Gyro/Acc board with DMP MotionFusion and like the results compared to simply using a gyro that came with the KOP years ago. I tested this using an arduino before seem the next step is to use this board to share the data to the RoboRio.

Here is my hurdle to get over before presenting to the team and teaching the students. I would like to now how to share this data over one of the offered protocols I2C or UART and that is where I fall short. I would love to simulate the RoboRio since I do not have one to work with the next few weeks. What I do have in my box of tricks are 2(Arduinos), 1 Raspberry Pi, Lego NXT, and a Lego EV3 that has LEJOS installed. I'm thinking the EV3 with LEJOS will be the closet thing to the RIO running Java. What do you think? I have poked some around the Web and found Labview examples but not Java. Maybe someone can point to a more relevant Java source using this board. (RIOduino).

PS as I wrote this and was gathering my data I found this navX MXP Robotics Navigation Sensor Maybe this is the solution for all Gyro issues?
Reply With Quote
  #2   Spotlight this post!  
Unread 21-11-2015, 10:44
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,567
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: Arduino to Roborio coms

Quote:
Originally Posted by cpapplefamily View Post
PS as I wrote this and was gathering my data I found this navX MXP Robotics Navigation Sensor Maybe this is the solution for all Gyro issues?
I can't help you with the RIOduino, but we were very happy with the navX MXP.
Reply With Quote
  #3   Spotlight this post!  
Unread 21-11-2015, 15:03
slibert slibert is offline
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 349
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
Re: Arduino to Roborio coms

navX-MXP includes a number of Java examples for RoboRIO that show how to use it for several uses including Field-Centric Drive, Rotate-to-Angle and Straight-line Driving as well as others. It mounts directly onto the RoboRIO's MXP slot so it's simple to install as well as use. And it comes w/some great tools including a UI that runs on the PC so students can quickly see how its various features work. There's also STL files available for an enclosure that protects it when mounted on the RoboRIO, so you can print that yourself or order that from Shapeways. So it's easy to get this up and running in short order.

If you do want to "roll your own" IMU using the RIODuino and an Invensense MPU-6050, you might want to look at the nav6 source code. The nav6 is the precursor to the navX-MXP, and features an Arudino w/a MPU-6050 6-aixs IMU on it. If you had a shield or a breakout board w/a MPU-6050 on it that could connect the MPU's interrupt pin on it to one of the RIODuino pins, you could adapt the firmware to work. The nav6 used a UART to connect to the CRio, so you could use the same technique to communicate w/your Java robot application on the RoboRIO. Taking this on would be a very educational project, probably best reserved for off-season or for teams w/sufficient resources.

Last edited by slibert : 21-11-2015 at 15:11.
Reply With Quote
  #4   Spotlight this post!  
Unread 05-12-2015, 14:59
D.gimon D.gimon is offline
Registered User
FRC #5324
 
Join Date: Dec 2014
Rookie Year: 2014
Location: Canada
Posts: 23
D.gimon is an unknown quantity at this point
Re: Arduino to Roborio coms

I can't see the RIOduino on my FIRST Choice page.

Are you looking at the complete AndyMark site instead?
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 22:36.

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