<< return to Pixycam.com

Pixy as color sensor?

Is it possible to repurpose the Pixy as a color sensor? Arduino-based color sensors are generally based on reading reflected light, which limits their range, especially in ambient light situations. Would it be possible to use the Pixy in this capacity, namely generating RGB color information in real-time?

Hi Jessica,
You’re saying that most color sensors rely on a light source, and Pixy is attractive because it uses ambient light?

I think Pixy could be repurposed as a color sensor. A simple approach would be to average the image to get an average RGB value. Or maybe you could crop and only average the center of the image. :slight_smile:

Edward

  1. you will only detect the colors you have trained the Pixy to see.
  2. lighting and contrast need to be very good
  3. cannot detect the colors white, black and grey - Pixy cant be trained on those
  4. you will get range though, something most color sensors cant do

i’m working on something similar the problem i have ran into is having the pixy output the color or signature of the color. any idea where to get that data?

I think i had a similar issue. here is a link that might help

http://cmucam.org/projects/cmucam5/wiki/Hooking_up_Pixy_to_a_Microcontroller_(like_an_Arduino)