Arduino Explained: Random Brightness Using 1 LED

preview_player
Показать описание
Random numbers are very useful if you need your LEDs or any project to behave differently each time it is run, instead of a definite set of behavior.

For this Arduino project, we will set the brightness of an LED with a random value every 100 milliseconds. To achieve this effect, you will need two Arduino functions: random () and randomSeed()

Рекомендации по теме
Комментарии
Автор

Hello, what app did you used to place virtually the jumper wires, led, and resister?

jbadayonunez
Автор

Thank you so much. So I presume it could be possible to randomize the delay value at the end with another int variable, something like random_delay_val?
Should it work with the same seed?

NicleT
welcome to shbcf.ru