Hello! I am trying to connect my Pixy original to Arduino Leonardo via I2C. I tried connecting it with the supplied Arduino cable and it worked, but I wanted to try to do it with I2C. I connected 5v to 5v and GND to GND, SCL to A5 and SDA to A4. However, when I tried running the example I2C code from the Pixy library, the camera returns nothing (there is nothing in Serial monitor). I am new to Arduino and Pixy, is there something I did wrong?
Hello,
Be sure to set the i2c connection in the Interface Tab:
https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:pixymon_index#interface-tab
Edward
Thank you! As it turned out, the SCL and SDA pins on Arduino Leonardo are different from Uno and are 3 and 2 instead of A5 and A4. After I connected the wires to these pins, it worked.
Congrats – nice work!
Edward