Go to Post We may not have any Paris Hiltons around here (though I've heard Paul Copioli is a great kisser) - AndyB [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-08-2016, 17:32
Technologyman00's Avatar
Technologyman00 Technologyman00 is offline
Registered User
AKA: Collin
FRC #1792 (Round Table Robotics)
Team Role: Mechanical
 
Join Date: Nov 2015
Rookie Year: 2015
Location: Oak Creek WI
Posts: 23
Technologyman00 is an unknown quantity at this point
Roborio Master to Raspberry Pi Slave I2C

Is it possible for a raspberry pi to be controlled as a slave device from I2C from a Roborio?

I understand this video exists but he has no references.

Please Help.
Reply With Quote
  #2   Spotlight this post!  
Unread 04-08-2016, 18:48
nickbrickmaster's Avatar
nickbrickmaster nickbrickmaster is offline
Not Allowed Near Power Tools
AKA: Nick Schatz
FRC #3184 (Blaze Robotics)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Eagan MN
Posts: 157
nickbrickmaster is an unknown quantity at this point
Re: Roborio Master to Raspberry Pi Slave I2C

Question: Why?

I would just use Ethernet and communicate over sockets. Make a simple Socket program in Python and use that to control the Pi.

That's way easier than reprogramming the Pi to be something it isn't naturally - an I2C slave.
__________________
I have approximate knowledge of many things.

FRC 3184: 2014-, FTC 10648: 2015-
Reply With Quote
  #3   Spotlight this post!  
Unread 05-08-2016, 09:46
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,355
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Roborio Master to Raspberry Pi Slave I2C

Quote:
Originally Posted by nickbrickmaster View Post
Question: Why?

I would just use Ethernet and communicate over sockets. Make a simple Socket program in Python and use that to control the Pi.

That's way easier than reprogramming the Pi to be something it isn't naturally - an I2C slave.
UDP sockets are extremely easy to set up and use between the two. It will prevent overloading the RoboRio with data packets and potentially causing it to start missing control packets. Bad things happen when control packets are missed! (Watch 2073 at 53 sec.)
Another simple alternative is to set up the Pi as a USB attached device.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote
  #4   Spotlight this post!  
Unread 05-08-2016, 17:33
Aeglos Aeglos is offline
Software Overlord
AKA: Nate- Dawg
FRC #2358 (Bearbotics)
Team Role: Programmer
 
Join Date: Jun 2016
Rookie Year: 2014
Location: Lake Zurich
Posts: 10
Aeglos is an unknown quantity at this point
Re: Roborio Master to Raspberry Pi Slave I2C

Another relatively simple thing to do is use a USB port as a serial connection, which is what we did for some of our microcontrollers this year, and worked great. Though, I would understand if you don't want to use a serial connection, as the commands you can send over it are simple/ slow compared to using network sockets/ tables.
Reply With Quote
Reply


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 08:46.

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