Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Raspberry Pi 3 Wiring and Programming for Vision (http://www.chiefdelphi.com/forums/showthread.php?t=154566)

GavinL 01-02-2017 02:28

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.

scca229 01-02-2017 03:51

Re: Raspberry Pi 3 Wiring and Programming for Vision
 
Quote:

Originally Posted by GavinL (Post 1638919)
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).

vScourge 01-02-2017 06:58

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.

rich2202 01-02-2017 07:40

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

JamesBrown 01-02-2017 08:43

Re: Raspberry Pi 3 Wiring and Programming for Vision
 
Quote:

Originally Posted by rich2202 (Post 1638933)

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.

GavinL 01-02-2017 09:15

Re: Raspberry Pi 3 Wiring and Programming for Vision
 
Quote:

Originally Posted by JamesBrown (Post 1638948)
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?

GavinL 01-02-2017 09:46

Re: Raspberry Pi 3 Wiring and Programming for Vision
 
Quote:

Originally Posted by vScourge (Post 1638931)
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

marshall 01-02-2017 10:16

Re: Raspberry Pi 3 Wiring and Programming for Vision
 
Quote:

Originally Posted by GavinL (Post 1638978)
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.

vScourge 01-02-2017 12:02

Re: Raspberry Pi 3 Wiring and Programming for Vision
 
Quote:

Originally Posted by GavinL (Post 1638963)
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.

GavinL 01-02-2017 16:13

Re: Raspberry Pi 3 Wiring and Programming for Vision
 
Quote:

Originally Posted by vScourge (Post 1639038)
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

SamCarlberg 01-02-2017 16:34

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.


All times are GMT -5. The time now is 01:40.

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