<< return to Pixycam.com

Communication between two or more Pixys

Hello guys,

We are starters for Pixys and are now doing a project about it.

Right now one of our goals is to have at least 2 Pixys in an area, making Pixy-1 detect a certain CC signature (e.g. Red+Blue) and the other (Pixy-2) detect another CC signature (e.g. Green+Blue). Then we want to aggregate the data from these Pixys.

So how to realize communication between two or more Pixys, or with the help of micro-controller (like Arduino)? Could you tell us the specific steps to realize it. Our initial thought was to wire 2 Pixys to 1 micro-controller (such as an Arduino UNO). Is that viable?

Thanks in advance.

Hello Bo,
You might consider using and Uno and I2C communication, which can handle several devices on the same 2 wires. You’ll need to make some kind of cable yourself, but the cable is pretty simple for I2C. You just need to connect ground, clock and data. The you can find Pixy’s pins for I2C here:

http://cmucam.org/projects/cmucam5/wiki/Port_Pinouts

There is also an I2C example in the Pixy Arduino library.

Hope this helps!

Edward