Go to Post You can never go wrong by gaining height by way of a Segway. - Elgin Clock [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-01-2014, 00:52
geek_millennium geek_millennium is offline
Registered User
FRC #3567
 
Join Date: Jan 2014
Location: PA
Posts: 1
geek_millennium is an unknown quantity at this point
Exclamation HELP! Raspberry Pi

Does anyone know how to hook up a pi to the cRIO??? And if so, how can we attach a camera with no lag and do vision tracking (through the pi)?
  #2   Spotlight this post!  
Unread 24-01-2014, 00:55
geomapguy's Avatar
geomapguy geomapguy is offline
Centenary '18
AKA: Graham Maxwell
FRC #1818
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Alexandria, LA
Posts: 535
geomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud of
Re: HELP! Raspberry Pi

Quote:
Originally Posted by geek_millennium View Post
Does anyone know how to hook up a pi to the cRIO??? And if so, how can we attach a camera with no lag and do vision tracking (through the pi)?
Welcome to Chief Delphi!!!

The search function is your best friend
__________________
The Cowboys - FIRST Robotics Team #1818 2015-
The Bolton Bear Bots - FIRST Robotics Team #3666 2011-204 (30-26-0)
2014 Oklahoma Regional - 20/62 (6-4-0), 5/62 in OPR
2014 Arkansas Regional - 14/39 (8-7-0, Quarterfinalists with 1706 and 1939), 24/39 in OPR
2013 Lone Star Regional Dean's List Finalist!
2013 Lone Star Regional - 22/57 (6-5-0), 17/57 in OPR
2012 Bayou Regional - 16/49 (6-5-0)
2011 Dallas Regional - 10/52 (4-2-5, #6 Alliance Captain, Quarterfinalists with 2948 and 3350)
  #3   Spotlight this post!  
Unread 24-01-2014, 01:32
dtengineering's Avatar
dtengineering dtengineering is offline
Teaching Teachers to Teach Tech
AKA: Jason Brett
no team (British Columbia FRC teams)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Vancouver, BC
Posts: 1,830
dtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond repute
Re: HELP! Raspberry Pi

Quote:
Originally Posted by geomapguy View Post
Welcome to Chief Delphi!!!

The search function is your best friend
Because it returns results like this one: http://www.chiefdelphi.com/forums/sh...erry+pi+cri o

"Raspberry Pi cRio" is a good search term that will bring up all these threads... http://www.chiefdelphi.com/forums/se...archid=5301259

Jason
  #4   Spotlight this post!  
Unread 24-01-2014, 12:13
jman4747's Avatar
jman4747 jman4747 is offline
Just building robots
AKA: Josh
FRC #4080 (Team Reboot)
Team Role: CAD
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Atlanta GA
Posts: 419
jman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond repute
Re: HELP! Raspberry Pi

In case you are wondering there is no direct support in FRC LabVIEW/C++/Java for connecting your robot to a Raspberry Pi. The simplest way (depending on what language and your knowledge of them) is to communicate via GPIO. Basically when the robot gets the Auto mode packet from the DS is sets a line to TRUE or HIGH. Pi starts taking pics of the nearest reflective tape or goal lights, and when it sees white (tape) or yellow (goal lights) it sets a GPIO line to the C-Rio High telling it to shoot.

You can also use serial/I2C/SPI. Just remember the voltage level on the Pi's I/O pins is 3.3V the digital sidecar I/O runs at 5v. Also very very important! You need to let your Pi shut down as opposed to just powering of the robot and the pi at the same time One way is once the Pi gets the first signal from the C-Rio that it is in Auto have the Pi start a timer to shut down in 10-12sec if you only use it in auto or 2min 30sec if you use it in Teleop as well. And have extra SD cards with the OS and your code ready to switch out.
__________________
---------------------
Alumni, CAD Designer, machinist, and Mentor: FRC Team #4080

Mentor: Rookie FTC Team "EVE" #10458, FRC Team "Drewbotics" #5812

#banthebag
#RIBMEATS
#1620

Last edited by jman4747 : 24-01-2014 at 12:22. Reason: Dont forget this!
  #5   Spotlight this post!  
Unread 24-01-2014, 18:50
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: HELP! Raspberry Pi

If you are using a co-processor, you are already thinking out of the box. You will also need to think out of the box to devise a method of communicating, Pi<=>cRIO. I think you might find i2C quite easy and since it is hardwired to the cRIO, it will be high-speed, minimal lag. Also, the lag that will be present can actually by thought about before and can be compensated for in the code!
  #6   Spotlight this post!  
Unread 24-01-2014, 18:58
reuven reuven is offline
Registered User
FRC #3211 (The Y team)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 2009
Location: yeruham Israel
Posts: 38
reuven will become famous soon enough
Re: HELP! Raspberry Pi

we connect the Pi to the router on the robot, and talk with it using UDP (legal under R57)
__________________
בנגב יבחן העם בישראל" דוד בן גוריון"
"In the Negev the people of israel would be tested"-David Ben Gurion
Closed Thread


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:50.

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