OCCRA
Go to Post FIRST is here to reach the affluent, already college-bound students with boundless resources; it is also here to reach the poverty-stricken urban and rural students who don't see a diploma as worthwhile, and everybody in between. - Taylor [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
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: 251
nickbrickmaster has much to be proud ofnickbrickmaster has much to be proud ofnickbrickmaster has much to be proud ofnickbrickmaster has much to be proud ofnickbrickmaster has much to be proud ofnickbrickmaster has much to be proud ofnickbrickmaster has much to be proud ofnickbrickmaster has much to be proud ofnickbrickmaster has much to be proud of
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.
__________________
I have approximate knowledge of many things.
Any man who must say "I am the king" is no true king.
FRC 3184: 2014-, FTC 10648: 2015-2016
Reply With Quote
  #3   Spotlight this post!  
Unread 10-04-2017, 09:17 PM
asid61's Avatar
asid61 asid61 is offline
Also 299 mentor
AKA: Anand Rajamani
FRC #1072 (Harker Robotics and Valkyrie Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Cupertino, CA
Posts: 2,543
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-present
Team 115 2013-2016



Reply With Quote
  #4   Spotlight this post!  
Unread 10-05-2017, 11:17 AM
MuskieProgramme MuskieProgramme is online now
Registered User
FRC #6420 (Fire Island Robotics)
Team Role: Alumni
 
Join Date: Dec 2016
Rookie Year: 2014
Location: Muscatine, IA
Posts: 151
MuskieProgramme will become famous soon enough
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 online now
Love/Hate Relationship with Swerve
AKA: Parthiv Krishna
FRC #3082 (Chicken Bot Pie)
Team Role: Programmer
 
Join Date: Mar 2017
Rookie Year: 2016
Location: Minnetonka, MN, USA
Posts: 182
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.
__________________

2010-2011: FLL 11083 (Minnetonka Silver) - Programmer
2016-: FRC 3082 (Chicken Bot Pie) - Captain, Programming Lead, Driver, 2017 Dean's List Finalist
2017-: FTC 13471 (Minnetonka) - 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: 212
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: 500
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: 338
MamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant future
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
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 10:24 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