Go to Post These are words on a computer screen, please stop giving the text on this screen such incredible power over how you feel. - Stephen Kowski [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 01-02-2017, 02:28
GavinL GavinL is offline
intensely stares at program
FRC #5726 (RhumBotz)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: San Antonio, Texas
Posts: 43
GavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to behold
Question Raspberry Pi 3 Wiring and Programming for Vision

To wire the raspberry pi 3, we use a micro usb that is plugged into the VRM 5v/2a right? And an ethernet cord into the left radio port (the one closest to the power plug)?

After all of that is wired, then what? What do I need to install? Also I'm using C++, or at least I want to.
Reply With Quote
  #2   Spotlight this post!  
Unread 01-02-2017, 03:51
scca229 scca229 is online now
FTA acquiring knowledge
AKA: Nate
FRC #0060
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2011
Location: South of Phoenix, Arizona
Posts: 223
scca229 has a spectacular aura aboutscca229 has a spectacular aura about
Re: Raspberry Pi 3 Wiring and Programming for Vision

Quote:
Originally Posted by GavinL View Post
And an ethernet cord into the left radio port (the one closest to the power plug)?
The port on the radio that is nearest to power, is for directly connecting to the roboRIO. The far port is for connecting *something else* (Pi, Kangaroo, switch, radio kiosk when programming the competition key).
__________________
Nate
Reply With Quote
  #3   Spotlight this post!  
Unread 01-02-2017, 06:58
vScourge's Avatar
vScourge vScourge is offline
Videogame Developer
AKA: Adam Pletcher
FRC #4096 (Ctrl-Z)
Team Role: Coach
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Champaign, IL
Posts: 42
vScourge will become famous soon enough
Re: Raspberry Pi 3 Wiring and Programming for Vision

You can also power the Pi via regular USB-to-micro-USB cable, plugging the USB end into the roboRIO.
Reply With Quote
  #4   Spotlight this post!  
Unread 01-02-2017, 07:40
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,275
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Raspberry Pi 3 Wiring and Programming for Vision

Get an OS on an SD Card for the PI (Noobs or Raspbian)
https://www.raspberrypi.org/downloads/noobs/
https://www.raspberrypi.org/downloads/raspbian/

Load GRIP onto the Pi
https://github.com/WPIRoboticsProjec...Raspberry-Pi-2

Figure out how to program the pi.

Plug the USB camera into the pi
__________________

Reply With Quote
  #5   Spotlight this post!  
Unread 01-02-2017, 08:43
JamesBrown JamesBrown is offline
Back after 4 years off
FRC #5279
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Lynchburg VA
Posts: 1,284
JamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond repute
Re: Raspberry Pi 3 Wiring and Programming for Vision

Quote:
Originally Posted by rich2202 View Post
I don't think that is the recommended method. From the link:

Quote:
At this time (13 Dec 2016), these instructions do not result in functional code. Multiple issues are open on the topic. According to @bradmiller running GRIP on the Pi or the RoboRio is not recommended. Instead, teams are encouraged to generate a Pipeline class from GRIP and incorporate that into their robot code.
__________________
I'm Back


5279 (2015-Present)
3594 (2011)
3280 (2010)
1665 (2009)
1350 (2008-2009)
1493 (2007-2008)
1568 (2005-2007)
Reply With Quote
  #6   Spotlight this post!  
Unread 01-02-2017, 09:15
GavinL GavinL is offline
intensely stares at program
FRC #5726 (RhumBotz)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: San Antonio, Texas
Posts: 43
GavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to behold
Re: Raspberry Pi 3 Wiring and Programming for Vision

Quote:
Originally Posted by JamesBrown View Post
I don't think that is the recommended method. From the link:
So I generate a pipeline class? How would I use the pi then?
Reply With Quote
  #7   Spotlight this post!  
Unread 01-02-2017, 09:46
GavinL GavinL is offline
intensely stares at program
FRC #5726 (RhumBotz)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: San Antonio, Texas
Posts: 43
GavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to behold
Re: Raspberry Pi 3 Wiring and Programming for Vision

Quote:
Originally Posted by vScourge View Post
You can also power the Pi via regular USB-to-micro-USB cable, plugging the USB end into the roboRIO.
Wish I knew that before, we cut and stripped our friends charger lol.
(We said we are going to get him another one).
But yeah some researching told me to cut and strip a micro usb
Reply With Quote
  #8   Spotlight this post!  
Unread 01-02-2017, 10:16
marshall's Avatar
marshall marshall is offline
My pants are louder than yours.
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 1,337
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: Raspberry Pi 3 Wiring and Programming for Vision

Quote:
Originally Posted by GavinL View Post
Wish I knew that before, we cut and stripped our friends charger lol.
(We said we are going to get him another one).
But yeah some researching told me to cut and strip a micro usb
I'd hate to see what you do to the chargers of people who aren't your friends.
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
Reply With Quote
  #9   Spotlight this post!  
Unread 01-02-2017, 12:02
vScourge's Avatar
vScourge vScourge is offline
Videogame Developer
AKA: Adam Pletcher
FRC #4096 (Ctrl-Z)
Team Role: Coach
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Champaign, IL
Posts: 42
vScourge will become famous soon enough
Re: Raspberry Pi 3 Wiring and Programming for Vision

Quote:
Originally Posted by GavinL View Post
So I generate a pipeline class? How would I use the pi then?
Install Python and pynetworktables on the Pi. Then write a little helper script that starts on boot, imports your pipeline class from GRIP, calls "process" on it, then feeds the desired values into NetworkTables, making them available to the robot code on the roboRIO.
Reply With Quote
  #10   Spotlight this post!  
Unread 01-02-2017, 16:13
GavinL GavinL is offline
intensely stares at program
FRC #5726 (RhumBotz)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2016
Location: San Antonio, Texas
Posts: 43
GavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to beholdGavinL is a splendid one to behold
Re: Raspberry Pi 3 Wiring and Programming for Vision

Quote:
Originally Posted by vScourge View Post
Install Python and pynetworktables on the Pi. Then write a little helper script that starts on boot, imports your pipeline class from GRIP, calls "process" on it, then feeds the desired values into NetworkTables, making them available to the robot code on the roboRIO.
okay and GRIP is on the DS Laptop or Pi?

p.s. sorry for so many questions
Reply With Quote
  #11   Spotlight this post!  
Unread 01-02-2017, 16:34
SamCarlberg's Avatar
SamCarlberg SamCarlberg is offline
GRIP, WPILib. 2084 alum
FRC #2084
Team Role: Mentor
 
Join Date: Nov 2015
Rookie Year: 2009
Location: MA
Posts: 151
SamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to behold
Re: Raspberry Pi 3 Wiring and Programming for Vision

You run GRIP to create a pipeline to find what you're looking for, then generate code to put in the program you run on the pi.
__________________
WPILib
GRIP, RobotBuilder
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 01:14.

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