Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Technical Discussion (http://www.chiefdelphi.com/forums/forumdisplay.php?f=22)
-   -   RoboRio to rasberrypi (http://www.chiefdelphi.com/forums/showthread.php?t=142545)

E, Palmer 25-01-2016 20:37

RoboRio to rasberrypi
 
My team would like to use a raspberrypi this year as a co-processor for vision tracking. We understand how to do it form a software standpoint but cant for the life us figure out how to connect it to the roborio. We were thinking maybe something like a usb-ethernet adapter, we've also heard of using the roborio's i2c. Have any teams used a rasberry pi and have a reliable way to connect the two?

adciv 26-01-2016 07:14

Re: RoboRio to rasberrypi
 
I haven't used the Pi specifically for this but I have used a few other devices as coprocessors. I'd recommend using Ethernet to connect the two. You can setup your own TCP or UDP connection from one to the other.

GreyingJay 26-01-2016 11:12

Re: RoboRio to rasberrypi
 
Connect them both to the Ethernet. (If you run out of ports on the robot radio, install a small Ethernet switch.) Set the Pi to use a static IP such as 10.te.am.200 (something well out of the way of the FRC DHCP assigned IPs).

You could in theory use I2C, DIOs, PWMs, USB etc. but Ethernet is by far the simplest.

pnitin 26-01-2016 18:52

Re: RoboRio to rasberrypi
 
Quote:

Originally Posted by E, Palmer (Post 1530033)
My team would like to use a raspberrypi this year as a co-processor for vision tracking. We understand how to do it form a software standpoint but cant for the life us figure out how to connect it to the roborio. We were thinking maybe something like a usb-ethernet adapter, we've also heard of using the roborio's i2c. Have any teams used a rasberry pi and have a reliable way to connect the two?



see this
Look here for tracking shronghold goalpost
http://www.mindsensors.com/blog/how-...our-frc-robot-
you can connect the Pi to RoboRio on serial line that will be simplest,
other solutions may be I2C or Ethernet but I think best and easiest will be serial (not usb serial)

snekiam 27-01-2016 22:11

Re: RoboRio to rasberrypi
 
3322 will be using UART to communicate between the two. I will post our code here in a week or two when we get around to writing it.

techplex 27-01-2016 23:17

Re: RoboRio to rasberrypi
 
Why not use network tables?

http://first.wpi.edu/FRC/roborio/rel...workTable.html

Here is an example in python.
https://github.com/robotpy/pynetwork...iverstation.py

NetworkTable sd = NetworkTable.getTable("SmartDashboard");

sd.getNumber('dsTime');

sd.putNumber('robotTime', 10);

iSpotix 28-01-2016 08:02

Re: RoboRio to rasberrypi
 
I would second Network Tables. It's what we are using to use vision processing on our Driver Station.


All times are GMT -5. The time now is 15:53.

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