|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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?
|
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
Re: RoboRio to rasberrypi
Quote:
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) |
|
#5
|
|||
|
|||
|
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.
|
|
#6
|
||||
|
||||
|
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); |
|
#7
|
|||
|
|||
|
Re: RoboRio to rasberrypi
I would second Network Tables. It's what we are using to use vision processing on our Driver Station.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|