Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Technical Discussion (http://www.chiefdelphi.com/forums/forumdisplay.php?f=22)
-   -   HELP! Raspberry Pi (http://www.chiefdelphi.com/forums/showthread.php?t=125151)

geek_millennium 24-01-2014 00:52

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)?

geomapguy 24-01-2014 00:55

Re: HELP! Raspberry Pi
 
Quote:

Originally Posted by geek_millennium (Post 1331583)
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 :)

dtengineering 24-01-2014 01:32

Re: HELP! Raspberry Pi
 
Quote:

Originally Posted by geomapguy (Post 1331584)
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

jman4747 24-01-2014 12:13

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.

yash101 24-01-2014 18:50

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!

reuven 24-01-2014 18:58

Re: HELP! Raspberry Pi
 
we connect the Pi to the router on the robot, and talk with it using UDP (legal under R57)


All times are GMT -5. The time now is 17:13.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi