![]() |
Pixy I2C
I am trying to figure out how to interface a Pixy Camera with our Roborio using the i2C port. Does anyone have experience with the Pixy or i2C communications?
Also, can we instead use an Arduino as a mediator, we already wrote the code for the Arduino and It would be easier to do it via the Arduino to Roborio if possible. |
Re: Pixy I2C
My team got the Arduino communicating with the roborio over I2C using the following code on the roborio
Code:
//this is outside a methodCode:
#include <Wire.h> |
Re: Pixy I2C
We are using pixy to lock onto yellow totes in AUTO. My team found it easier to decode packets via the serial port (connected to roboRIOC) than the I2C. We can share code if you need it.
|
Re: Pixy I2C
I'd be interested in the code.
|
Re: Pixy I2C
That would be great, if serial is possible it would be a lot easier.
|
Re: Pixy I2C
I would also like to see said code.
|
Re: Pixy I2C
Hi there. Here is what out team is using to pry information out of the pixy. I hope this helps! I'm not sure why the code block is anti-tabbing...
(the code gpetilli mentioned) Code:
import edu.wpi.first.wpilibj.SerialPort;Code:
public class PixyException extends Exception {Code:
public class PixyPacket { |
Re: Pixy I2C
2B || !2B ,
I am the lead programmer on Mike's team, thank you so much for your code, We are cutting it a little close to the deadline and this definitely helps. Also, awesome name. Thanks, gsampel |
Re: Pixy I2C
How exactly do we wire the Pixy, the stock cable does not seem like the correct one to connect directly to the RoboRio
|
Re: Pixy I2C
Quote:
Look at the Pixy Docs - i dont remember if they call it rs232 or serial port. roboRIO also has a serial port. I will ask our electrical team to post more details as to what they did. |
Re: Pixy I2C
Is this the sort of thing were we can put together our own cable, or will we need to use the actual serial cable? I don't think we have one, so we would have to make one, probably out of a few scrapped PWM cables. I would find it really helpful to see a picture of your connection or what cable you used.
thanks, gsampel |
Re: Pixy I2C
Quote:
|
Re: Pixy I2C
Does anyone have a picture or instructions on how to connect the pixy to the Roborio using the ribbon cables?
|
| All times are GMT -5. The time now is 10:26. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi