Hi, I'm working on some experiments trying to replicate colors from an image using

Hi, I’m working on some experiments trying to replicate colors from an image using the FastLed library and the WS2801 leds and as usual I have some questions for the group.

  • Should I set the colors using HSV instead of RGB to achieve a closer representation?, I’ve looked at Phillips HUE and they achieve very dark and complex colors, they say also that its leds cannot do Greys and Browns well.
    “-You can set hue to any color in the spectrum. But it can’t do grey, black or brown that well. After all, it is a light, so it recreates colors that are made with light.
    If it can’t match the exact color, hue will look for the nearest color instead. Plus, don’t forget about all the shades of white light, from warm yellow white to cool blue white. And everything in between.”

  • Maybe I would write something that transforms the dinamically loaded image into a safe RGB LED Pallete (if that exists), and then set the led strands accordingly?

  • Where I can find an example on using the serial way to pass the CRGB colors and leds to the strand directly?, I’ve recently played with fadecandy and its API and I had no problem on sending chunks of bytes to represent frames, but I haven’t been succesfull with the same on fastled using serial like Serial.readBytes( (char*)(&leds[i]), 3);

  • Where I can find an example on doing fades?, for individual Pixels and for whole strands (like hue).

My idea is to take at least 1024 samples of color from an Image and pass them to 1024 leds, that way I would have an aproximation of what the user sent to my app using their Instagram photos and do a realtime installation with it.
take a look on my first try: https://vimeo.com/104935597

Reading data from serial or a file and passing to the string should be fairly easy. This is how I read from a file and pass it directly to the (full) array:
myFile.read((char*)leds, NUM_LEDS * 3);
Adjust to your scenario.

Luis — I’ve done everything you are trying to do — I just need to get my code in order and I’ll get something to you.

Thank’s James, just one doubt; My question for the safe RGB LED Pallete its’ too simple or newbie?. I’ve looked for info about that and I just cannot find anything related.

I will be very glad to find more info about that.

:slight_smile: