<< return to Pixycam.com

Multiple Pixy over ic2

so I got the ic2 working properly but only when there is 1 pixy, and the pixy is using 0x54 as the address. When I connect a second pixy with 0x55 as that address it does not work, but the first one still works.

I’m using arduino uno and the i2c example and can’t get it to work for multiple pixys.

any help would be great. thanks

hmm, you should also make sure that “data out port” parameters on both Pixys is 1 (I2C).

Try this— 1 pixy configured for address 0x55. Can you communicate with it?

thanks!

Tried it, and a number of other address, only 0x54 works with 1 pixy, is there something in ht .h file I need to alter?

Just in case---- you need to set the address in the declaration—

PixyI2C pixy; // this is the default declaration, uses address 0x54

PixyI2C pixy(0x55); // this declaration sets the address to 0x55

thanks!