Hello, I have only one LED, and I want to make various periods of time (10, 20 and 30 secons) of a flickering at 8 Hz in a row. I'm an amateur in ARDUINO. I have this, but I can´t give the duration.Can somebody help me?
That is currently roughly 4Hz because every on/off cycle takes 250ms.
What do you mean about various periods of time? What should happen after 10 seconds runs out? Do you want to control those time periods? Random? What is it you want?
What I need is a plickering of a LED at 8 Hz for 10 seconds, then turn off for 20 seconds, then start flickering at 8Hz for 20 seconds, then off for 20 seconds , and finally a flickering of 30 seconds.
Sorry but it's the easiest way I found to explain it.
This version uses a pushbutton switch to activate the blinking schedule.
If you don’t have a pushbutton then just use a piece of wire connected to “Pin2” (D2) and tick that to “Gnd” to get it going.