Go to Post We’ve been chasing perfection since 2003 in the hopes of catching excellence. - Karthik [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 25-01-2016, 20:37
E, Palmer E, Palmer is offline
Registered User
FRC #6239 (The Irrational Engineers)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2009
Location: Maryland
Posts: 15
E, Palmer will become famous soon enoughE, Palmer will become famous soon enough
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   Spotlight this post!  
Unread 26-01-2016, 07:14
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
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.
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.
  #3   Spotlight this post!  
Unread 26-01-2016, 11:12
GreyingJay GreyingJay is offline
Robonut
AKA: Mr. Lam
FRC #2706 (Merge Robotics)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2015
Location: Ottawa, Canada
Posts: 783
GreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond repute
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   Spotlight this post!  
Unread 26-01-2016, 18:52
pnitin pnitin is offline
Registered User
no team
 
Join Date: Oct 2015
Location: USA
Posts: 14
pnitin is infamous around these partspnitin is infamous around these parts
Re: RoboRio to rasberrypi

Quote:
Originally Posted by E, Palmer View Post
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)
  #5   Spotlight this post!  
Unread 27-01-2016, 22:11
snekiam snekiam is offline
Registered User
FRC #3322 (Eagle Imperium)
Team Role: Programmer
 
Join Date: Dec 2015
Rookie Year: 2010
Location: SE Michigan
Posts: 91
snekiam has a spectacular aura aboutsnekiam has a spectacular aura aboutsnekiam has a spectacular aura about
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   Spotlight this post!  
Unread 27-01-2016, 23:17
techplex's Avatar
techplex techplex is offline
Blake B
AKA: Blake
FRC #4909 (The Bionics)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2007
Location: Massachusetts
Posts: 94
techplex is just really nicetechplex is just really nicetechplex is just really nicetechplex is just really nice
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);
__________________
Blake
Electrical, Programming and Design

Creator FRC Q&A 2017
Mass FRC Team 4909: The Bionics
Maine FRC Team 5122: The RobOTies (2014-2015)
Maine FRC Team 2648: Infinite Loop (2008-2011)
  #7   Spotlight this post!  
Unread 28-01-2016, 08:02
iSpotix iSpotix is offline
Registered User
FRC #4049
 
Join Date: Jan 2016
Location: Pittsburgh
Posts: 27
iSpotix is an unknown quantity at this point
Re: RoboRio to rasberrypi

I would second Network Tables. It's what we are using to use vision processing on our Driver Station.
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 02:36.

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