First off, the Pixy is amazing!
One thing I am trying to work out now is that when using SPI between the Pixy and a PICF2550 the Pixy is only sending (or I am only receiving) object blocks of data for whatever the lowest number signature that’s currently in the frame. All data I am receiving (checksum, x, y, etc.) is correct however. For example, when I have 3 signatures (1=blue, 2=red, 3=yellow) in frame I only get blocks for blue. When blue goes out of frame I start getting blocks just for red. If just yellow is in frame I get blocks for yellow.
My Pixy is connected to my Mac across USB and Pixymon is running Default Program 0. My Pic circuit is connected to the Pixy using 4 pins (SCK->SCL, SDI->SPI MISO, SDO->SPI MOSI, Vss->GND) and my Pic circuit is connected to my Mac across USB in order to work with the data in Max/MSP.
I’ve tried multiple approaches like:
a) streaming the bytes the Pic receives to the Mac where I look for the proper 4 sync bytes and then parse and start to look for the 4 sync bytes again…
b) waiting for the proper 4 sync bytes in a row in my Pic and then writing the next 12 bytes into an array there and then sending those 12 to the Mac and continuing from there…
Only data for the lowest signature currently in frame comes across no matter what I try however. The stream looks correct and I don’t appear to be missing any bytes or operating out of sync so this is confusing.
Anybody experiencing anything similar or have any suggestions? Thanks!