|
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!
|