Go to Post Let it be noted in the annals of FIRST history that on this day the game design committee did NOT choose to change, clarify, explain, or interpret ANY PART of the 2010 Manual. - Richard Wallace [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 10-28-2016, 08:08 PM
kingca kingca is offline
Registered User
FRC #0108 (SigmaC@ts)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2015
Location: Florida
Posts: 16
kingca is an unknown quantity at this point
Teams that have used a Raspberry Pi

Hello, we would like to know if any other teams have used the Raspberry Pi and connected it to the RoboRio? We were trying to use the Raspberry Pi Camera to handle vision processing.
Reply With Quote
  #2   Spotlight this post!  
Unread 10-28-2016, 08:24 PM
JohnFogarty's Avatar
JohnFogarty JohnFogarty is offline
FTC, I have returned.
AKA: @doctorfogarty @GarnetSq
FTC #11444 (Garnet Squadron) & FRC#1102 (M'Aiken Magic)
Team Role: Mentor
 
Join Date: Aug 2009
Rookie Year: 2006
Location: SC
Posts: 1,555
JohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond repute
Re: Teams that have used a Raspberry Pi

I wasn't the lead on our RPi Vision project, I'll have him come in and help you when he gets back from his vacation, but I recommend you look at our GitHub as a place to start. We implemented a vision system on our RPi 2 with a PiCam using Network Tables for variable communication to the RoboRIO.

https://github.com/GarnetSquadron4901

https://github.com/GarnetSquadron490...ion-processing
__________________
John Fogarty
2010 FTC World Championship Winner & 2013-2014 FRC Orlando Regional Winner
Mentor FRC Team 1102 M'Aiken Magic
"Head Bot Coach" FTC Team 11444 Garnet Squadron
Former Student & Mentor FLL 1102, FTC 1102 & FTC 3864, FRC 1772, FRC 5632
2013 FTC World Championship Guest Speaker
Reply With Quote
  #3   Spotlight this post!  
Unread 10-28-2016, 08:38 PM
Billfred's Avatar
Billfred Billfred is offline
...and you can't! teach! that!
FRC #5402 (Iron Kings); no team (AndyMark)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: The Land of the Kokomese, IN
Posts: 8,476
Billfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond repute
Re: Teams that have used a Raspberry Pi

Quote:
Originally Posted by JohnFogarty View Post
I wasn't the lead on our RPi Vision project, I'll have him come in and help you when he gets back from his vacation, but I recommend you look at our GitHub as a place to start. We implemented a vision system on our RPi 2 with a PiCam using Network Tables for variable communication to the RoboRIO.

https://github.com/GarnetSquadron4901

https://github.com/GarnetSquadron490...ion-processing
Adding onto this: the stock Pi was not designed to be absolutely beat to hell, as robots did to it in FIRST Stronghold. 4901's Pi's microSD slot wouldn't retain the card by the end of its first event, at which point we abandoned it because of other priorities. Plan for some mechanical protection and shock relief when you mount it; at the minimum, make it hard for the power and microSD connections to fail.
__________________
William "Billfred" Leverette - Gamecock/Jessica Boucher victim/Marketing & Sales Specialist at AndyMark

2004-2006: FRC 1293 (D5 Robotics) - Student, Mentor, Coach
2007-2009: FRC 1618 (Capital Robotics) - Mentor, Coach
2009-2013: FRC 2815 (Los Pollos Locos) - Mentor, Coach - Palmetto '09, Peachtree '11, Palmetto '11, Palmetto '12
2010: FRC 1398 (Keenan Robo-Raiders) - Mentor - Palmetto '10
2014-2016: FRC 4901 (Garnet Squadron) - Co-Founder and Head Bot Coach - Orlando '14, SCRIW '16
2017-: FRC 5402 (Iron Kings) - Mentor

93 events (more than will fit in a ChiefDelphi signature), 13 seasons, over 60,000 miles, and still on a mission from Bob.

Rule #1: Do not die. Rule #2: Be respectful. Rule #3: Be safe. Rule #4: Follow the handbook.
Reply With Quote
  #4   Spotlight this post!  
Unread 10-28-2016, 08:49 PM
billbo911's Avatar
billbo911 billbo911 is online now
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,345
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: Teams that have used a Raspberry Pi

We are currently using a Pi on both our bots. We run OpenCV with a Microsoft web cam. We send target data to the Rio via UDP. Works great!
__________________
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
  #5   Spotlight this post!  
Unread 10-28-2016, 09:25 PM
kingca kingca is offline
Registered User
FRC #0108 (SigmaC@ts)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2015
Location: Florida
Posts: 16
kingca is an unknown quantity at this point
Re: Teams that have used a Raspberry Pi

ok thank you also have you guys had problems with communication lag between the systems
Reply With Quote
  #6   Spotlight this post!  
Unread 10-29-2016, 12:23 AM
beijing_strbow beijing_strbow is offline
Registered User
FRC #5968 (Cyborg Indians)
Team Role: Programmer
 
Join Date: Aug 2016
Rookie Year: 2016
Location: Kansas
Posts: 25
beijing_strbow is an unknown quantity at this point
Re: Teams that have used a Raspberry Pi

5968 spent quite a while developing an image processing algorithm to run on a Raspberry Pi (only to abandon it). I did most of the serial communication between the pi and roboRIO, and somebody else did the actual image processing algorithm.

Based on my experience, I wouldn't recommend it. First, the Raspberry Pi's built-in camera interface library doesn't support sending the image over serial as far as I could tell (which would have been slow anyway - we could have used USB, but still, going from PiCamera to serial is not very nice). This becomes an issue if you decide you want to stream the video to your driver station.

Also, it took upwards of 15 seconds to run the processing algorithm on the Pi. This could have been inefficiencies in the algorithm, but it ran in 3 or so seconds on a laptop.

The serial communication itself worked well though, once we got it working.

Perhaps our issues were a result of us trying it in our rookie year, which was probably a bit ambitious. I also haven't tried using a USB camera directly with the roboRIO, though we are going to experiment with that in the next few weeks.
Reply With Quote
  #7   Spotlight this post!  
Unread 10-29-2016, 12:53 AM
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: Teams that have used a Raspberry Pi

Quote:
Originally Posted by beijing_strbow View Post
Also, it took upwards of 15 seconds to run the processing algorithm on the Pi. This could have been inefficiencies in the algorithm, but it ran in 3 or so seconds on a laptop.
15 seconds to process a single frame! If so, there was definitely a problem with your algorithm. I have run a fairly complicated (non-FRC) vision algorithm on a RPi 2 at ~15 fps.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
Reply With Quote
  #8   Spotlight this post!  
Unread 10-29-2016, 11:01 AM
billbo911's Avatar
billbo911 billbo911 is online now
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,345
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: Teams that have used a Raspberry Pi

Quote:
Originally Posted by Ben Wolsieffer View Post
15 seconds to process a single frame! If so, there was definitely a problem with your algorithm. I have run a fairly complicated (non-FRC) vision algorithm on a RPi 2 at ~15 fps.
Agreed!
When we run our processing loop as a single thread, we average better than 40 FPS when using a (320 X 240) matrix. If we run it in a multi-thread, we can get better than 60 processed frames a second. The RPi has plenty of power for this approach.
__________________
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
  #9   Spotlight this post!  
Unread 10-29-2016, 01:08 PM
DonShaw DonShaw is offline
Registered User
FRC #1261
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Atlanta
Posts: 38
DonShaw is a glorious beacon of lightDonShaw is a glorious beacon of lightDonShaw is a glorious beacon of lightDonShaw is a glorious beacon of lightDonShaw is a glorious beacon of lightDonShaw is a glorious beacon of light
Re: Teams that have used a Raspberry Pi

This may help and I would suggest contacting the team for further help via the website. www.prhsrobotics.com

https://www.youtube.com/watch?v=ZNIlhVzC-4g

This was a TE Session at Georgia Tech that the programmers held.
Reply With Quote
  #10   Spotlight this post!  
Unread 11-01-2016, 06:05 AM
Clem1640's Avatar
Clem1640 Clem1640 is offline
Head Mentor
AKA: Clem McKown
FRC #1640 (Sab-BOT-age)
Team Role: Leadership
 
Join Date: Mar 2009
Rookie Year: 2006
Location: Downingtown PA
Posts: 249
Clem1640 has a reputation beyond reputeClem1640 has a reputation beyond reputeClem1640 has a reputation beyond reputeClem1640 has a reputation beyond reputeClem1640 has a reputation beyond reputeClem1640 has a reputation beyond reputeClem1640 has a reputation beyond reputeClem1640 has a reputation beyond reputeClem1640 has a reputation beyond reputeClem1640 has a reputation beyond reputeClem1640 has a reputation beyond repute
Re: Teams that have used a Raspberry Pi

We use a Raspberry Pi for vision processing. This was very successful this year. I will ask the project lead to join this dialogue.
__________________


Clem McKown
Head Mentor - FRC 1640 & FTC 7314
Chairman - Downingtown Area Robotics
Reply With Quote
  #11   Spotlight this post!  
Unread 11-01-2016, 07:29 AM
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,539
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Teams that have used a Raspberry Pi

One of our students wrote a good generic goal finder back in 2013 and we've used it with only minor tweaks since (except 2015 when the only vision targets were in the wrong place): https://github.com/frc3946/PyGoalFinder.

We've found it useful to use separate cameras for targeting (higher resolution, lower brightness) and vision (lower resolution/higher frame rate over the network).

Our entire control board for Stronghold was "shock mounted". Holding the board in place with bungee cord was originally a prototype hack, but after a few dozen times over the rock wall, we enhanced rather than replaced it.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
  #12   Spotlight this post!  
Unread 11-01-2016, 08:10 AM
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Teams that have used a Raspberry Pi

I'm lead on the 4901 vision project this year.

Take a look at the repository that John linked above. Instructions are in the repository on how to install it. I'll have to do some updates to the Network Table portion due to updates to the pynetworktables from this past week.

We used this 'hat' for the Raspberry Pi: https://www.amazon.com/Pi-Screw-Term...ry+pi+breakout
Unfortunately, it looks like it's no longer made, but any breakout hat would work. We used the proto area for a logic level converter.

One unique aspect to our vision system is our LED ring was programmable via the Raspberry Pi. The LED ring's logic works at 5V, whereas the RPi operates at 3.3V. This is where a simple logic level converter comes in handy.

I recommend taking a look at Sparkfun's logic level converter. https://www.sparkfun.com/products/12009

I had some spare BSS138 N-Channel MOSFETs from a different project that I made work with the through-hole mounting, however, you can find many available. You want to find one with a low enough gate-source voltage (Vgs) to turn on at 3.3V. The BSS138 turns on at 1.5V, meaning that it will work for 1.8V and 2.5V devices as well, as Sparkfun says.

I'm driving the WS2812 LEDs. I recommend getting genuine Adafruit ones. I tried some cheaper ones from eBay and had overheating issues running them at 5V at their highest brightness. To put this into terms, I had 3 cheap ones fail (usually one LED goes out, which causes the rest of the chain to stop working). I haven't had an Adafruit Neopixel ring fail yet.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
Reply With Quote
  #13   Spotlight this post!  
Unread 11-07-2016, 12:00 AM
Alsch Alsch is offline
Registered User
no team
 
Join Date: Oct 2014
Location: Underneath Canada
Posts: 5
Alsch is an unknown quantity at this point
Re: Teams that have used a Raspberry Pi

Quote:
Originally Posted by Billfred View Post
Adding onto this: the stock Pi was not designed to be absolutely beat to hell, as robots did to it in FIRST Stronghold. 4901's Pi's microSD slot wouldn't retain the card by the end of its first event, at which point we abandoned it because of other priorities. Plan for some mechanical protection and shock relief when you mount it; at the minimum, make it hard for the power and microSD connections to fail.
I bet if you were willing to permanently affix the sd card in it's slot somehow (whether with a bracket of some kind or like just epoxying it in place) you could just use SSH or command over the gpio to update the software when needed.
Reply With Quote
  #14   Spotlight this post!  
Unread 11-07-2016, 12:28 AM
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,539
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Teams that have used a Raspberry Pi

Quote:
Originally Posted by Alsch View Post
I bet if you were willing to permanently affix the sd card in it's slot somehow (whether with a bracket of some kind or like just epoxying it in place) you could just use SSH or command over the gpio to update the software when needed.
Sounds like a job for hot glue to me.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
  #15   Spotlight this post!  
Unread 11-07-2016, 11:38 AM
Conor Ryan Conor Ryan is offline
I'm parking robot yacht club.
FRC #4571 (Robot Yacht Club)
Team Role: Mentor
 
Join Date: Nov 2004
Rookie Year: 2004
Location: Midtown, NYC
Posts: 1,888
Conor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond repute
Re: Teams that have used a Raspberry Pi

Running GRIP (Graphically Represented Image Processing engine) on Raspberri Pi 2: https://github.com/WPIRoboticsProjec...Raspberry-Pi-2
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 07:39 PM.

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