<< return to Pixycam.com

Pixy Protocol

Hi, I am working with a pixy5 and looking for decode the serial protocol.
The problem I have is with the coded color coding.
I have registered 4 colors, and recieve the following data:
55 aa 56 aa 51 03 e3 00 11 01 aa 00 19 00 08 00 92 00

or

55 aa 56 aa fc 01 1c 00 10 01 a9 00 1b 00 09 00 03 00

The bytes e3 00 in the first case, and 1c 00 in the second, are the objet code detected as I undertsand.

Could somebody explain to me the meaning or how to decode the E3 00 and 1C 00 bytes?
Thanks a lot in advance.

Hi Luis,

I think this document has the info you need (see the part called “Object block format”): http://cmucam.org/projects/cmucam5/wiki/Porting_Guide#The-serial-protocol

Let me know if you still need more help!

Best,
Jesse

Hi Jesse:

Thanks a lot for your answer. If couldn’te finde the info I need. Specificly I am looking for the way the coded color is sent in the packet. Or mayor be an example could help me to understand it.
Thanks a lot for any help.
Best regards.

Hello Luis,
This page describes how the color codes are encoded in the signature info.

http://cmucam.org/projects/cmucam5/wiki/Using_Color_Codes

(they are encoded as octal (base-8) numbers.)

Edward