<< return to Pixycam.com

Problem with reading data using 2 Pixy cameras and I2C

Hi. I am a student whose group project involves using the Pixy.

We intended to use two cameras, one for tracking a person, the other to track obstacles. Both cameras are assumed to have been taught the appropriate colour code for their respective targets.

Because of using both cameras, we used the I2C communication method and connected both cameras in parallel.

The problem was that we could not read any object detection data (e.g. no of blocks detected, block dimension) with the Serial Monitor when both were connected.

We also attempted changing the I2C address of both cameras to ensure it is different, but the change in address for any connected camera will also result in failure to obtain data.

Would appreciate advice regarding this issue. Thanks.

Hi Alvin,

Just as a sanity check, have you verified I2C works on both Pixy’s individually? Also, did you set the I2C address in both the configuration parameters (on Pixymon) and on the Arduino?

Thanks.

Scott