Video thumbnail for Arduino Explained: Random Brightness Using 1 LED

Arduino Explained: Random Brightness Using 1 LED

Dec 1, 2022
Arduino Intro Logo

Arduino Intro

Verified Open.Video Creator Badge
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() Link to the code: https://arduinointro.com/projects/randomizing-led-brightness-using-random-and-randomseed-in-arduino Link to the fade effect (PWM): https://arduinointro.com/projects/become-a-master-of-the-fade-in-fade-out-effect-arduino-style

View Video Transcript
#Computers & Electronics #Programming