<< return to Pixycam.com

Initializing SPI communication, pixy is mute (SOLVED)

I am having a hard time trying to get data out of the pixy for a MSP430. From what I understand, after setting the color it should either immediately pump out coordinate and blob data using pin 1 (SPI MISO == SDO) when a clock signal is present or wait for the sync code 0xAA55 twice, then do so. With my oscilloscope I can only see a ghost of the clock signal on pin 1 and nothing significant on any other pin.
Using my MSP430 I tried continually checking for data after sending the code twice. I only get 0xFF, swapping the data lines gives me only 0x00. I’ve spent two solid days probing this thing, double checking every signal with an O-scope…
I could use some help.

color code mode = 1
Default program = 0
Data out port = 0
Firmware = 1.0.2beta

Ground => Pin 6
SCLK(1.5) => PIN 3
SDI(1.7) => PIN 4
SDO(1.6) => PIN 1

(Code attached)

My code & Pixy works just fine, apparently watching the feed in cooked mode takes up all the Pixy’s processing just to send the raw pixels over USB.
Source:

" In cooked mode, raw pixels are grabbed by Pixy and sent to the PC, and all the processing takes place on the PC side. It’s a simulation. It uses the same code that runs on Pixy’s firmware, so it’s a very accurate simulation — but it’s “cooked”. It’s great for debugging… and we use it for algorithm development (much easier to test ideas on the PC side!)"

http://www.cmucam.org/boards/9/topics/2758

Note to those who use the code months from now: it’s not 100%, just this evening I discovered reloading the bit counter on each receive is necessary.