generating a PRBS

hey all,

i am a new user of the arduino board and cannot find the code to flash the LED on pin 13 on and off at random intervals of time, any help would be greatly appreciated. regards


After you install Arduino IDE, you will find the example in the folder C:[arduino-home]\examples\Digital\Blink.

And for your random numbers, have a look at this topic in the reference:

and the Blink example was already mentioned:

the random() function in combination with the delay() function can change the interval between on and off of the LED in the range of milliseconds.

If you need something that is more like a candle light, shorter intervals might be more interesting. Please let me know if you want to create a candle light or if the random() function in combination with the Blink example solved your problem.