<< return to Pixycam.com

SPI Cable

Hi all

So just got my pixy but I need to have my pixy ± 100cm away from my arduino and I dont see any documentation about cable length.

Will there be any issues with extending my cable, Will motor noise effect the cable a lot etc etc?

Thanks in advance
Mathys

Hello Mathys,
It’s difficult to guarantee flawless operation with longer cables and motor noise, but you should make a cable of the length you need and give it a try. If it doesn’t work (because of EMI, etc), try reducing the datarate. You can do this by increasing the clock divider in Pixy.h. Look for this line:

SPI.setClockDivider(SPI_CLOCK_DIV16);

Bear in mind that the serial protocol has checksums, etc, so even if you do get errors, they shouldn’t cause problems.

Hope this helps!

Edward