Sweet. I wasn’t sure if level converters were necessary. And I guess any given (low drop out?) regulator will be good to run the power to the RFduino from the 5V supply.
One thing to keep an eye out for (mark and I were just talking about this, and I’ve hit this problem a couple of times).
If your 5v power supply is a bit dirty, and sometimes drifts above 5v, you can get weird glitching on the leds. My theory is that what is happening is that since the data pin signals are 3.3v output, as long as the WS2812 chips are getting 5v power, it can differentiate between high and low. However, if the WS2812 chips are getting, say, 5.25v power, it becomes a lot more difficult for it to catch those transitions (or reliably catch them).
The solution is probably either a level converter, which I haven’t tried yet, or play a variety of tricks that drop the input voltage to a bit below 5v. (My favorite at the moment is plugging the dirty 5v power supply into one of these - https://www.adafruit.com/products/1385 - which spits out about 4.75v when fed 5v).
You’re trying to include avr/io.h (whether deliberately or from another included file) and the compiler can’t find it. Check your paths or move it where the compiler can find it.
It’s included by FastLED/controller.h. I think the problem is that the RFduino isn’t an AVR, so the avr/ subdir isn’t included in the system path when I have the RFduino board family selected in the Arduino IDE.
(There are some references in previous posts to the same issue, basically @Daniel_Garcia and @Mark_Kriegsman haven’t had the time to take a proper look at it yet. So I sits tight until then…)
This works fine for short distanced (wearables etc). Voltage loss due to wire resistance will cause glitches however. I spent a couple of very stressed days learning this before a major project.
The exact distance depends on wire gauge, but I’d use a voltage shifter for anything over say 5 feet.