These are chat archives for Makuna/NeoPixelBus

7th
Dec 2017
Gabriel Wolf
@wolfzeitlos_twitter
Dec 07 2017 17:02
Hi there, Thank you so much for the NeoPixelBus library, it's the best! I am experimenting with 1m and 144 SK6812 LEDs on an Arduino Uno for some time now. I want to upgrade my lightning project to 5m. Maybe even 144x5m + 60x5m = 1020px. Now my question: is Arduino (Mega) still the right horse to bet on? I do a lot of math calculation to generate my colors and it seems like even 1m is close to the maximum capacity for a decent frame rate in my case. I must admit, that I'm new to making and my code is bad for sure. Spliting up stripes I haven't done yet. Could anyone point me into a direction? Optimizing code and Arduino is the way to go, or fresh start with Esp8266? Maybe Raspberry Pi? I appreciate any help :-)
Gabriel Wolf
@gabrielwolf
Dec 07 2017 17:49
<-- same guy, just second login via github
Michael Miller
@Makuna
Dec 07 2017 19:50
What frame rate are you wanting as a minimum? The bus protocol for NeoPixels will be one limiting factor, it takes 30us - 40us to send a single pixel update (RGB - RGBW). So your 1020 RGB pixels would take 30ms to just send the update out the bus.
The esp8266 is a pretty powerful chip, it also uses hardware to send the data out the bus so while its sending data, you can continue to calculate the next frame (AVR Arduinos must stop everything to send the data).
Also, what type of math? Floating point or integer? Floating point on AVR chips is software and often if you use a fixed point math library or switch entirely to integer you can see speed increases.
Gabriel Wolf
@gabrielwolf
Dec 07 2017 19:54
Internally I use double. Maybe I can change everything to integer, once I finished developing all features I have in mind.
Is it difficult to adapt Arduino C++ code to esp8266?
Regarding frame rate I have no concrete number in mind. The project will be an adaptive lamp, and it should fade in and out very very gently.
Michael Miller
@Makuna
Dec 07 2017 19:58
See Github Esp8266/Arduino for board support; it is near feature compatible, with WiFi support.
Gabriel Wolf
@gabrielwolf
Dec 07 2017 20:00
The project sounds amazing.
Michael Miller
@Makuna
Dec 07 2017 20:02
The Esp32 is even more powerful; but alas, the Arduino support has some rough edges and hardware that I would use for NeoPixels has "code" limitations that stop me from using it; but they are working on the code side to expose the hardware so that I can use it.
with the Esp8266, you probably won't have to worry about using floats at all.
Gabriel Wolf
@gabrielwolf
Dec 07 2017 20:03
Cool.
My code is very generic. I use arduino-makefile. How is your workflow?
Michael Miller
@Makuna
Dec 07 2017 20:05
I use the Arduino IDE (VS for an editor though). There have been so many compatibility issues with different "other" build systems that I decided I didn't want to specifically support them, and I need to test for Arduino IDE anyhow, so I use it only.
The platform IO support that my library has was actually provided by another ;-)
Gabriel Wolf
@gabrielwolf
Dec 07 2017 20:07
This means? (Sorry my English isn't that good)
Michael Miller
@Makuna
Dec 07 2017 20:10
"Platform IO" is a alternative IDE (Integrated Development Platform) for Arduino and others (also PI I believe). It is more advanced but also more complex.
Gabriel Wolf
@gabrielwolf
Dec 07 2017 20:11
Ah, ok. It's new to me. :-)
Michael Miller
@Makuna
Dec 07 2017 20:14
VS is short for Visual Studio, a free IDE from Microsoft that is real powerful as a code editor (but I don't use it to build the code).
Gabriel Wolf
@gabrielwolf
Dec 07 2017 20:18
A friend of mine, developer, told me some weeks ago, that VS was a good shot from Microsoft. (when I spoke bad about Microsoft ;-) )This year I took a Java class and worked on Eclipse and Netbeans for the first time. My origin is web development and design, so my favourite editor is Sublime Text.
Gabriel Wolf
@gabrielwolf
Dec 07 2017 20:41
Thank you for your kindness and help. Your hard work led to a beautiful and clean library, and you share it free. Please let me show you my respect and gratefulness. I paypaled you a cup of coffee ;-)
Michael Miller
@Makuna
Dec 07 2017 20:45
thank you