Go to Post FIRST is more than FRC. - gblake [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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-04-2017, 04:17 PM
karken karken is offline
Registered User
AKA: Karsten
FRC #5727 (Omegabytes)
Team Role: Electrical
 
Join Date: Oct 2017
Rookie Year: 2014
Location: North Carolina
Posts: 1
karken is an unknown quantity at this point
Pixy(CMUcam5) to RIOduino

So right now our team is trying to figure out if its possible to wire a Pixy camera to a RoboRio by going through a RIOduino instead of a arduino that way it could be simply plugged into the RoboRio. However we are having trouble in finding a way, if its possible/worth it. I just wanted to ask if anybody has any advice in doing this.
Reply With Quote
  #2   Spotlight this post!  
Unread 10-04-2017, 07:12 PM
nickbrickmaster's Avatar
nickbrickmaster nickbrickmaster is offline
The guy in the flame hat and zubaz
AKA: Nick Schatz
FRC #3184 (Blaze Robotics)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Eagan MN
Posts: 392
nickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond reputenickbrickmaster has a reputation beyond repute
Re: Pixy(CMUcam5) to RIOduino

The RIOduino is pretty much an arduino with an MXP header if I recall correctly. Its default behavior is probably to be an i2c slave, which might cause trouble trying to read another device.

You could also hook it directly to the RIO's i2c, SPI, or USB ports. The downside to this is having to write your own driver code, but you can probably find some code another team has written for this.
__________________
FRC Part Exchange admin
Proceed as if success is inevitable.
Reply With Quote
  #3   Spotlight this post!  
Unread 10-04-2017, 09:17 PM
asid61's Avatar
asid61 asid61 is online now
Design Simple
AKA: Anand Rajamani
FRC #1072 (Harker Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Cupertino, CA
Posts: 2,836
asid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond repute
Re: Pixy(CMUcam5) to RIOduino

I haven't used the RIOduino before but it does appear to be an Arduino with an MXP header, they even advertise it as such.
Communicating with the Pixy via the SPI interface should work using pretty much just Pixy SPI Arduino example code. It should not interfere with I2C/UART comms with the RoboRIO.
__________________
Team 1072 2017-present
Team 299 2017
Team 115 2013-2016

2018 Davis Finalists (w/ 6474 and 3880)
2018 Roebling Winners (w/ 3476, 1323, and 1778)


Reply With Quote
  #4   Spotlight this post!  
Unread 10-05-2017, 11:17 AM
MuskieProgramme MuskieProgramme is offline
Registered User
FRC #6420 (Fire Island Robotics)
Team Role: Alumni
 
Join Date: Dec 2016
Rookie Year: 2014
Location: Muscatine, IA
Posts: 305
MuskieProgramme is a glorious beacon of lightMuskieProgramme is a glorious beacon of lightMuskieProgramme is a glorious beacon of lightMuskieProgramme is a glorious beacon of lightMuskieProgramme is a glorious beacon of lightMuskieProgramme is a glorious beacon of light
Re: Pixy(CMUcam5) to RIOduino

I've used the RIODuino before, for controlling LEDs. UART/Serial should work just fine. Not sure about anything else, as I haven't used those.
__________________
Reply With Quote
  #5   Spotlight this post!  
Unread 10-05-2017, 11:23 AM
pkrishna3082's Avatar
pkrishna3082 pkrishna3082 is offline
love/hate relationship with swerve
AKA: Parthiv Krishna
FRC #3082 (Chicken Bot Pie) and FTC #13471 Mentor (Minnetonka)
Team Role: Programmer
 
Join Date: Mar 2017
Rookie Year: 2016
Location: Minnetonka, MN, USA
Posts: 622
pkrishna3082 has a reputation beyond reputepkrishna3082 has a reputation beyond reputepkrishna3082 has a reputation beyond reputepkrishna3082 has a reputation beyond reputepkrishna3082 has a reputation beyond reputepkrishna3082 has a reputation beyond reputepkrishna3082 has a reputation beyond reputepkrishna3082 has a reputation beyond reputepkrishna3082 has a reputation beyond reputepkrishna3082 has a reputation beyond reputepkrishna3082 has a reputation beyond repute
Re: Pixy(CMUcam5) to RIOduino

For vision this past year we used a regular arduino and a pixy. Pixy into arduino over SPI (ICSP) and then UART to the roboRIO. We actually started out using digital IO, a pin for left, one for right, and one for straight for peg alignment. While it was very primitive, even that worked well enough. UART was more flexible. We just sent over error values (in + pixels for right or - pixels for left) and the Rio pretty much did all of the logic from there with PID.

As far as rioduino, I suspect you can do a similar thing if you are able.to configure the connection to the roboRIO to he over serial. If it's set up as an I2C slave and can't be changed, maybe try using UART for the pixy. Check the documentation, as off the top of my head it is possible to connect the pixy to the arduino over UART.
__________________

My posts constitute my opinions, and mine alone, and are not representative of the views held by my team.
2010-2011: FLL 11083, 13873 (Minnetonka Silver) - Programmer
2016-: FRC 3082 (Chicken Bot Pie) - Captain (2+ yrs), Programming Lead (3+ yrs), Driver (2+ yrs), Operator (1 yr), 2017&2018 Dean's List Finalist
2017-: FTC 13471 (Minnetonka/Tater Bot Hot Dish) - Founding Mentor
2017-: FIRST Volunteer - 2017 North Champs Student Ambassador
Reply With Quote
  #6   Spotlight this post!  
Unread 10-06-2017, 08:49 AM
electroken's Avatar
electroken electroken is offline
Electron Tamer
AKA: Ken Pontbriant
FRC #0230 (Gaelhawks)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Shelton, CT
Posts: 240
electroken is a jewel in the roughelectroken is a jewel in the roughelectroken is a jewel in the roughelectroken is a jewel in the rough
Re: Pixy(CMUcam5) to RIOduino

We've used the Pixy for 2 seasons now and connected it directly to the RoboRIO both times. In Stronghold we used 1 Pixy and the analog/digital X interface. Last season we used 2 of the Pixy sensors (one gear, one boiler) with both on a single I2C interface to the RoboRIO.

I'm not sure what an intermediate microcontroller does for you.
Reply With Quote
  #7   Spotlight this post!  
Unread 10-06-2017, 10:24 AM
Kellen Hill's Avatar
Kellen Hill Kellen Hill is offline
Strategist
AKA: The user formerly known as 'hill'
FRC #1746 (OTTO)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Cumming, GA
Posts: 517
Kellen Hill has a reputation beyond reputeKellen Hill has a reputation beyond reputeKellen Hill has a reputation beyond reputeKellen Hill has a reputation beyond reputeKellen Hill has a reputation beyond reputeKellen Hill has a reputation beyond reputeKellen Hill has a reputation beyond reputeKellen Hill has a reputation beyond reputeKellen Hill has a reputation beyond reputeKellen Hill has a reputation beyond reputeKellen Hill has a reputation beyond repute
Re: Pixy(CMUcam5) to RIOduino

We also used two Pixys through I2C this past season. The diagrams below show how we wired it.

Here is a link to our GitHub account if you want to see the code used: https://github.com/FRC-Team1746/Steamworks-v1.0

I can point our programming team in this direction if you have any other questions.



__________________
1625 Winnovation Member: 2005-07
1625 College Mentor: 2007-11
525 Swartdogs Mentor: 2011-12
1746 OTTO Lead Mentor: 2013-Present

Last edited by Kellen Hill : 10-06-2017 at 12:53 PM.
Reply With Quote
  #8   Spotlight this post!  
Unread 10-09-2017, 09:36 AM
MamaSpoldi's Avatar
MamaSpoldi MamaSpoldi is offline
Programming Mentor
AKA: Laura Spoldi
FRC #0230 (Gaelhawks)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Shelton, CT
Posts: 365
MamaSpoldi has a reputation beyond reputeMamaSpoldi has a reputation beyond reputeMamaSpoldi has a reputation beyond reputeMamaSpoldi has a reputation beyond reputeMamaSpoldi has a reputation beyond reputeMamaSpoldi has a reputation beyond reputeMamaSpoldi has a reputation beyond reputeMamaSpoldi has a reputation beyond reputeMamaSpoldi has a reputation beyond reputeMamaSpoldi has a reputation beyond reputeMamaSpoldi has a reputation beyond repute
Re: Pixy(CMUcam5) to RIOduino

Quote:
Originally Posted by electroken View Post
We've used the Pixy for 2 seasons now and connected it directly to the RoboRIO both times. In Stronghold we used 1 Pixy and the analog/digital X interface. Last season we used 2 of the Pixy sensors (one gear, one boiler) with both on a single I2C interface to the RoboRIO.

I'm not sure what an intermediate microcontroller does for you.
As Ken indicated Team 230 used the Pixy the last 2 years without any intervening arduino or other controller. Our C++ code* that facilitated the I2C interface we used last year (2017) can be found here: https://sourceforge.net/p/frc-team23...svn/HEAD/tree/

(*Note that this code was based on code posted on CD last year by Team 599).

Our C++ code we used to interface to the analog\digital interface in 2016 is here: https://sourceforge.net/p/frc-team23...ode/HEAD/tree/

Feel free to contact me if you have any questions.
__________________
Reply With Quote
  #9   Spotlight this post!  
Unread 10-09-2017, 07:23 PM
fllthenfrc fllthenfrc is offline
Registered User
FRC #4783 (Robo Ravens)
Team Role: Mentor
 
Join Date: Sep 2017
Rookie Year: 2009
Location: Ottawa
Posts: 3
fllthenfrc is an unknown quantity at this point
Re: Pixy(CMUcam5) to RIOduino

I am curious here. I bought a Pixy cam to put on a Lego Mindstorm a while back for “coolness” effect for recruiting purpose. I did not realize that it would work well in a FRC context. I could change the firmware load to use it with standards micro-controllers. Is there a color of lighting that provides a better Hue than others? I way get the team to experiment this fall. This would save us the raspberry pi additional hardware.
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:47 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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