07/13/2020 at 10:14 •
Reading the data from the SP107E has proven extremely difficult. The coding side is a little outside my current capabilities.
I have continued with the project but back to how I was originally building it. I have updated it slightly by using a 16x2 LCD display and creating a menu system to change pattern, brightness, speed and fade, and added an encoder for selection.
I have used many patterns from the examples for FastLED. I have used Fire2012 by Mark Kriegsman but with code modifications to make it sound reactive (the brightness and the height the flames go based on volume, its a great effect with the right song). I have used many of Marks patterns, including Pride2015, which I prefer over the Rainbow patterns.
I tried to include some matrix patterns as these provide a nice split effect to the upright LED tape, but struggled to make it work. Again, my limited coding experience didn't help here. I also tried to use FFT and FHT but these are not very compatible with ESP8266 D1 Mini boards.
I will post some more pictures of the finished product.
05/25/2020 at 21:36 •
OK, I think I have figured out how to read the data now. Timing is key.
The WS2812b LED strips I am using have very specific timing requirements for the data being sent up the data line.
So reading the SP107E output is just a matter of determining what is happening in the period of time to send, as per these timings.
If the reading at 2us is LOW then the data being sent is the RESET code. No need to read the next position at 6us as RESET is all it can be. If the reading is HIGH, then take a reading at the 6us position. If the reading is HIGH then the bit can be set to 1 else it will be 0. We can build the 24bit segment for each LED and then send it to the Slave D1 Minis and use FastLED to show the pattern. Not sure how much latency there will be.
Just need to code this now.
05/24/2020 at 19:08 •
Base of master.
Four slave units. One with external battery connected. (Proof of concept, 8 hours running on full charge, but only on 60 LEDs)