<< return to Pixycam.com

Detect color from Pixy using Arduino

Hi guys,

I was wondering if I could get some help. I’m trying to use my Pixy to identify when it sees certain colors so that I can run conditionals on my Arduino when they have been detected. I tried using the Pixy library but the block objects that it creates doesn’t seem to include any color variables. Is there any way to do this with the Pixy library that I don’t know? Are there any other libraries that can do this instead?

Thanks in advance

Hello Syed,
The color information for the object block is contained in the signature number. That is if you taught Pixy a red object for signature 1, a signature number of 1 would imply a red object.

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

Hope this helps!

Edward