<< return to Pixycam.com

How to use Pixy2 on a Arduino while also using a SD card module

Hi everyone,

I’ve started making a mask recognition device that uses Pixy to identify a mask and the TMRpcm library, which uses the SD card module, to play sound. Just recently I found that while using pixy you can’t use pins 13, 12, 11, and 10. These are the pins I need to make the SPI device work. Is it possible to make it so where the SD card module and Pixy and both work ar once? Thanks in advance.

Also the earlier the reply the better.

Hello,
You might consider using I2C: https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:porting_guide#i2c

or SPI with SS: https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:porting_guide#spi

I think you’ll find that i2c is probably the easier of the two options.

Edward