BlinkWithoutDelay looks good to me for your project.
You also need a power supply and switching device (MOSFET) that matches your total LED currents. LEDs with built-in current control can be used only if they allow for switching.
Ah thank you, that is very helpful!
Can you please explain what that means and include a link to the spec of the leds?
Here are the LED's, 5w cool white: 1W 3W 5W White Red Blue UV RGB Green High Power LED COB Chip Light With PCB USA | eBay
From what you've told us you can probably use delay(). The main reason to avoid delay() is that processing pauses during the delay time. So for example, if you're controlling the speed with a pot and reading the pot every time through the loop, you'll have to wait up-to 1 second before the program reads the pot and responds to any changes.
Another (usually minor) issue with delay is that it doesn't account for the execution-time of any other program steps. i.e. Reading a pot adds a few microseconds to the loop/delay and the the errors accumulate. With a millis() timer, the timer is running independently of the program and errors don't accumulate.
You might want to start with delay() and the regular Blink Example and you can always "upgrade" later.
PWM is for dimming. Pulse Width Modulation pulses on & off ("blinks") faster than the eye can see (about 500Hz for the Arduino) so the LED appears to dim. It can also be used to control the speed of a motor (because the motor can't change speed that fast either and the power is averaged-out.) analogWrite() is PWM and it only simulates analog in certain applications.
...At 30Hz you'll probably perceive dimming more than flashing.
High power LEDs (1W or more) are normally driven from a special constant-current power supply (or constant-current driver). You can put several LEDs in series and the same current flows through all of them. The current rating has to match the LED requirements, and the maximum voltage just needs to slightly-exceed the sum of the LED voltages.
If you get a dimmable LED power supply you can use the dimming-input to blink the LEDs. The only "catch" is that the industry standard is 0-10VDC or 10V PWM, so you might need a "small" 10V power supply/source and a "small" transistor driver. Some have a built-in 10V pull-up so you just need the transistor driver. if the specs cay it can be dimmed with just a pot, thats "clue" that it doesn't need an external 10V power supply. And, there are some that can be controlled from 5V.
High power LED also need a heatsink. (They don't run as hot as an equivalent incandescent bulb but they can't handle as much heat.)
It's easy to modify the Blink Example. The delay() time just needs to be a variable. If you need to manually adjust the speed a pot is the easiest solution but you won't know the exact frequency. You'll have to decide what kind of user interface you want (if any).
Of course it's also possible to "blink" with unequal on & off times, if that's of any interest.
And of course, you can develop your software with a regular little LED (or the built-in LED).
Whoa, this is legit everything I need to make this happen, thank you!!!
Do you have any recommendations on a powersupply for theses LED's where I'll be able to have them blink?
My first thought was that this original device is foisted upon an unsuspecting or gullible audience with more money than brains. A bit of googling confirms, at least for me, that this is the case.
IDK, really, you can do what you want and maybe even reap the benefits be they medical or financial.
My second thought was that this is an instant problem for a certain percentage of the population, somewhere along my brief researches I came across this:
I'll stick with floating. I don't get seizures, but I do get headaches from this kind of thing. As usual, YMMV.
Ha, I totally hear you! Thankfully I've already experienced it myself... Incredible stuff, full on visual geometric patterns, very incredible experience with nothing but light!
This is for my personal use. As you mentioned, the seizure risk makes it something I wouldn't want to market to other people. The original Lucia no. 3 is over $18,000, and it is really just 8 flashing led's, so I feel we can collectively make our own version with the same results.