I am trying to program a robot to follow objects with color codes. The micro is a Parallax Propeller so I’m not using the Arduino libraries.
Currently, I have it following color signatures using the UART interface, but for CC I need a faster interface. I have programmed an SPI (not -SS), and it works, but the program spends a lot of time looking for sync bytes and word boundaries and frame starts. Note I am using a previous version of the firmware & pixymon.
If I am reading the wiki correctly, the new firmware with SPI-SS, should help a lot. Here’s my thinking –
If I select CC Mode 2 (CC only) whenever pixy sends $aa55, that will be a Frame Start (there should be no other aa55 sent since pixy is not sending color signature blocks.) (Correct?)
And when using SPI-SS, when the SS is made low, Pixy sends words (HIBYTE, LOWBYTE), so I will not have to program to find the start of a word. (Correct?)
If both are correct, then I have to try to understand when I have to send bytes back to pixy.
Tom