Well, That’s frustrating, writing a lengthy post asking for help, with code included and specific questions, only to have it deleted by goog because they think its spam…
I’ll try again, hoping I don’t forget anything.
In the attached code, I am using the smoothed output of an HC-SR04 ultrasonic rangefinder to drive the angle of a servomotor, and the brightness of a white LED and a UV LED. The LEDs brighten or darken depending on the range read by the rangefinder, in an inverse relationship. The closer the object, the darker the white light and the brighter the UV light. - This was the proof of concept.
On to the real world, where I am trying to run a string of 16 RGB Neopixels and a seperate string of 16 UV Neopixels. I want them to run a noise pattern, but I would like to dim or brighten each string’s noise pattern off of the rangefinder variable as a whole, individually. I also want the RGB LED string to be warm, a nd keeping a constant H value if you think HSV.
I’m just beginning with FastLED on my RGB string, and I am experimenting with the noise example code, and I’m not getting any sparkle at all, Just solid white. I have set the scale variable all the way to 4011 with no effect.
Lets see if I can remember the specific questions…
1a: Is it possible to brighten or darken the overall brightness of a string, while retaining a noise pattern (basically have the pattern brighten/darken)
1b: Is it possible to constrain a noise based sparkle effect so it doesn’t effect the color, just the luminance of a specific color vector?
2: Is there a simple way to carry the effect, with independent luminance for each of the two strings attached? I needn’t have a second noise generator, I’m happy to use the same noise pattern on each string, however with independent, per-string control of the luminance, based on my rangefinder values as described above.
Can anyone think of similar examples?