So, I'm building a new DeadMau5 head, finally.

So, I’m building a new DeadMau5 head, finally. I did some modelling, and came up with a couple of LED carriers to fit under the eyes on the head. I’m using APA102 LEDs, and so far, I’ve got one of the eyes soldered up.

So I was wondering if there was some way to define a subset of the leds[] array, and run fill_rainbow on that. The thing is, it won’t be contiguous. For example, an X across the eyes would use LEDs 2, 6, 10, 14, 18, 21, 24, 27, 30, 32, 34, 36, 37. is it possible to set up different subsets for ease of color changes/effects? Or am I going to have to do a for…each on an array containing LED numbers?

Yes, if they’re not contiguous you’ll need to loop over them.

#define ARRAY_SIZE(A) ( sizeof(A) / sizeof((A)[0]) )

uint8_t Xeyes[] = {2,6,10,14,18,21,24,27,30,32,34,36,37};

uint8_t subsetLength = ARRAY_SIZE(Xeyes));

for (uint8_t i=0; i<subsetLength ; i++) {
leds[ Xeyes[i] ] = CRGB::Red;
}

Good luck with the rest of the soldering! Looking forward to seeing this lit up.

Interesting idea. Put it on my notes for later projects
But why don’t you use silver wire to connect the leds? Way easier to wire them all. Just route one continuous wire from led to led for each pad. Afterward just isolate it with some car paint or plastic spray.

Nice side effect is that you can carry more current with less wire diameter. In your case even a 0,1mm2 wire should be sufficient. And there is no isolation material that adds to the diameter.

well, for starters I don’t have any of that wire, just ribbon cable. :slight_smile:

And it’s a shame I can’t do that, I wanted to be able to use some of the built-in functions. Ah well, I’ll just fake it. :wink:

Maybe run something like fill_rainbow on a temp CRGB array and then copy pixels in a sly way to your Xeyes pattern.

Or maybe xy map (or perhaps polar map) the eyes.

Faking it will still look great I’m sure!

I’ve built a DeadMau5 head, my video should be posted somewhere on here from like 2 years ago?

So, it seems there is something very wrong with these APA102 LEDs. Nothing I do can get them functioning. They light up blue when power is supplied, but nothing seems to work - I’ve tried an esp8266, an esp32, and an arduino. Even the demo code does nothing, no matter which pins I use.

At this point, I’ve popped all the LEDs out -they were just superglued in place - and will be putting some WS2812s in. At least I only had one set soldered, and could save the carriers.

Alright! got some WS2812bs in place, and working, but I get constant resets whenever I use FastLED.show() - I saw that it’s related to the watchdog timer, but I’m unsure how to solve this. Suggestions?