I would like to make a light chaser with the 74hc595 and let it run in a kind of wave. The first led is faded and getting brighter and brighter.
The whole thing should be realized with a shift register, because I want to drive many leds so.
I have found this program (including video) for Arduinocontroller like the Uno here -> ShiftRegister PWM Library – Timo Denk's Blog
It is about synchronizing the interrupts of the timer with the frequency of the ESP. However, I am not so deep in the programming that I could realize this alone for the ESP8266, so I hope here in the forum are a few people who can help me with this program.
yes i know normaly all leds could be only dimmed together ... but this guy used a 74hc595 for his example and it workes. Here the videolink:
"The ShiftRegister PWM Library enables usage of shift register pins as pulse-width modulated (PWM) pins. Instead of setting them to either high or low, the library lets the user set them to up to 256 PWM-levels."
in the article he describes it how he did it over a timer and interrupts to individualy address the leds.
This program example is written for an Arduino Uno ... it's not compatible for the ESP8266 unfortunately. The timers are totally different so I´d ned a different ISR.
For me it´s not easy to rewrite the code.. I am still in a learning prozess and hope to find someone who can help.
Yes i know the ws2812b Leds .. they are very flexible and individuel addressable ... but they need to much power and the leds are much to big for my project. The decorative lamp should also (if its´s possible) be supplied with batteries. Therefore the solution with a shiftregister would be the best way I tought.