Go to Post I am really glad that FIRST gives teams the choice to use either students or adults in this role. - dtengineering [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 06-10-2013, 19:12
tuXguy15's Avatar
tuXguy15 tuXguy15 is offline
Team Mentor
AKA: Devin Kolarac
FRC #2559 (Normality Zero)
 
Join Date: Apr 2012
Rookie Year: 2012
Location: Harrisburg, PA
Posts: 127
tuXguy15 is an unknown quantity at this point
Rapsberry Pi cRIO Integration

Is it possible to integrate the raspberry pi on our robot so that it works with the cRIO. We use java to program our bot.
__________________
Reply With Quote
  #2   Spotlight this post!  
Unread 09-10-2013, 12:11
MrTimKlein's Avatar
MrTimKlein MrTimKlein is offline
Mentor - Programming, Electronics
AKA: Tim Klein
FRC #3966 (STEMpunks)
Team Role: Mentor
 
Join Date: Feb 2013
Rookie Year: 2011
Location: Knoxville, TN USA
Posts: 7
MrTimKlein is an unknown quantity at this point
Re: Rapsberry Pi cRIO Integration

Quote:
Originally Posted by tuXguy15 View Post
Is it possible to integrate the raspberry pi on our robot so that it works with the cRIO. We use java to program our bot.
Yes, but read the rules about additional electronics on the bot. Particularly rules about control of actuators.

You might find the Network Tables library useful for managing communication with the cRIO.

http://wpilib.screenstepslive.com/s/...client-pc-side

Mr Tim Klein
Code Guild Mentor
FRC Team 3966 STEMpunks
Reply With Quote
  #3   Spotlight this post!  
Unread 29-11-2013, 20:45
gixxy's Avatar
gixxy gixxy is offline
Programming and Arduino Mentor
AKA: Gustave Michel III
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Ruston, LA
Posts: 207
gixxy is on a distinguished road
Re: Rapsberry Pi cRIO Integration

Team 3946 used a RPi to do our visions processing/goal tracking last year. We created a Socket Server on the Pi in Python and a client in Java (that ran in its own thread as not to disrupt real-time functions if the connection was dropped).

All of our code is available here: UltimateAscent

The specific classes you would probably want to look at are ThreadedPi, ThreadedBerryPi under Subsystems, and PrintThreadPiData under Commands. If you want to look at the unthreaded version (also far less tested) the files are SocketPi, RaspberryPi and PrintPiData

Here is the code we were running on the RPI: PyGoalFinder

Good Luck!
__________________
Programmer - A creature known for converting Caffeine into Code.
Studying Computer Science @ Louisiana Tech University
Associate Consultant @ Fenway Group

2012-13: 3946 - Head of Programming, Electrical and Web
2014 - 3468 - Programming Mentor
2015 - Present - Lurker

Last edited by gixxy : 29-11-2013 at 20:47.
Reply With Quote
  #4   Spotlight this post!  
Unread 01-01-2014, 22:47
tp2357 tp2357 is offline
Registered User
AKA: Tyler Pawlaczyk
FRC #0340 (Greater Rochester Robotics)
Team Role: Programmer
 
Join Date: Mar 2012
Rookie Year: 2011
Location: North Chili, NY
Posts: 5
tp2357 is an unknown quantity at this point
Re: Rapsberry Pi cRIO Integration

We experimented with this a bit last year, I was a fan of using I2C to communicate with the Pi, but I had to write an I2C slave driver to be able to implement that.
If you're interested, let me know and I can try to dig that up for you.
__________________
Java, Embedded C and LISP.
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:13.

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