Botboarduino Pixy SPI pins

From what I understood when I connect a Pixy cam SPI to a botboarduino it uses at least pin 13 on the botboarduino?
Are there other pins used as well and if so which other pins does it use?

Hi,

You can get much information on how to connect the RB-Cha-01 from the documentation available on the product page under “Useful Links”. The default examples seem to use I2C, not SPI, so you may have to reconfigure teh Pixy using the software provided by the manufacturer.

The hardware SPI for the BotBoarduino (using an ATMega328) is on pins 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK). When using SPI, you usually need at least three of those four pins (SS may be optional). If you are new to using SPI, we recommend that you read more about it here and about the Arduino SPI library here.

Sincerely,

Hi,
I’m glad I found this post and read up on this. I was hoping to connect the Pixy cam to a BotBoarduino that controls a BRAT. From reading the Arduino SPI library, it says it uses pin 11 or ICSP 4, 12 or ICSP 1, 13 or ICSP 3 and pin 10 as the slave. So does that mean by hooking the camera up to the ICSP it will make those pins unavailable for servo use? If so, I’d hope I could move the servos to other pins not being used? Thanks for any reply.

Scott

Hi Scott,

Yes, if the pins are used for SPI communication, they cannot be used simultaneously for servo control.

But, with the current versions of the Arduino Servo library, you should have no problem using any of the other pins.

In most of the Lynxmotion projects using the BotBoarduino, we use pins 2,3,4,5 for servos also. You can also use pins 6,7,8,9 and some of the analog pins, too.

Sincerely,

Thank you for the quick reply.