I am trying to make a wave effect on a long LED light strip. (10 meters). I have somewhat of an idea how to do it but am having trouble getting it going. Any basic help is appreciated.
I'd have to say that the length of the strip is probably immaterial.
Please feel free to furnish any details.
yea I wasn't sure if the length mattered or not. I am trying to make a wave of different shades of blue. So just varying the brightness down the line. I want the speed of the wave to be adjustable by a hardware switch
Those are WIBNIs, not details.
What I understand for a wave effect is that every LED changing it's brightness in a certain pattern, with different starting values.
Let's say you've got 5 LEDs in the strip, and there're 3 levels of brightness.
You can make a sheet like this.
LED.a LED.b LED.c LED.d LED.e
500ms 1 2 3 2 1
1000ms 2 3 2 1 2
1500ms 3 2 1 2 3
2000ms 2 1 2 3 2
2500ms 1 2 3 2 1
I think the length matters. The longer stripe is means the more LEDs you need which also means you need more outputs.
Hardware switch is possible in many ways.
More detailed information is required to decide.
I think the length matters
I don't; I think the number of LEDs matters.
AWOL:
I don't; I think the number of LEDs matters.
Yeah, number of LEDs of course matters a lot.
But what about the power supply? if you power it with 5V or 3.3V, it's almost impossible to go for 10 meters. Thus you have to add some power in in the middle of stripe.
Why don't you tell us what your actual problem is?
You say you've got trouble getting it going, so i assume you've made some setup, written some code to do the wave effect, and it's not behaving as expected?
Then show us your setup, your code, your ledstrip, and explain the problem you ran in to, and then we might be able to help you.
Trying to read your mind from possibly the other side of the world is such an ineffective way of delivering support you know....
Everything related to waves can be well described by sine functions.
FastLED gives you very fast integer implementations.
Check out the sin8 and beatsin8 documentation in lib8tion.h