<< return to Pixycam.com

Color Code Detection Via Arduino

I am unable to detect any blocks of Color Code when running the hello_world Arduino program.
In PixyMon 2.06, I have set color codes. In the example picture set below, I have set Signature 1 (red) and Signature 7 (purple) to match he color samples I printed out. I then set CC Signature 4 to match my green, and CC Signature 5 to match my blue. As shown in the PixyMon screenshot attached below, Pixymon is correctly identifying both the two individual color samples (1 and 7) as individual samples. It is also correctly identifying the Color Code value of “45” for the green and blue colors.

However, when I load hello_world onto my SainSmart Arduino Mega (running Arduino IDE 1.6.1), and run that - the only reported output is for Signature 1 and 7, and the Color Code value of 45 is not reported. The same result happens if I just put the card with red and purple, those get reported. If I just put the green/blue card under the Pixy camera, there is no report.

I thought from reading other forum posts that the values for any Color Code blocks detected would show up after any detected individual color samples.

My Pixy is currently running in Color code mode 1, and the Pixy is running firmware 2.0.8
I’m using the arduino_pixy-0.1.3 library downloaded today.

Previously, I had all CC Signatures set to match my color samples, and PixyMon was correctly identifying them as Color Codes. However, when I first ran hello_world, I then got nothing reported. I then went back to PixyMon, reset all signatures, and adding things as described above to help troubleshoot.

Is there something different I should be doing to get the Color Code results displayed within hello_world?

Thanks,
-Eric

Hi Eric,
Make sure you are using the latest Arduino release (right now it’s 0.1.7):

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

You may need to delete the Pixy library in your documents/library directory before you install.

Edward

Hi Eric,
Make sure you are using the latest Arduino release (right now it’s 0.1.7):

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

You may need to delete the Pixy library in your documents/library directory before you install.

Edward

Thanks - indeed, that new version did the trick - both the individual color signatures and the color code blocks are now being detected within Arduino’s Hello World. Now on to the rest of the build.

-Eric