Youtube video

Things you need

Arduino UNO



Breadboard Wires

Build on Breadboard



so at first we need to make some pins for output (remember for this project you need to use PWM pins, those who have a ‘~’ icon)

in void loop

we give a PWM signal from 0 to 255 to pins (9,10,11) in an order to make the LEDs look like fading

after that we also go from 255 to 0 to turn off the LED with a fading

then we basically do these again, but we give PWM to pins (11,10,9) in an order

I hope you understood that, I get it is a bit hard


What’s PWM?

Simply it just turns the pin on and off very fast, and we can change the duration of it being on or off

More info:
Pulse Width Modulation, or PWM, is a technique for getting analog results with digital means. Digital control is used to create a square wave, a signal switched between on and off. This on-off pattern can simulate voltages in between the full Vcc of the board (e.g., 5 V on Uno, 3.3 V on a MKR board) and off (0 Volts) by changing the portion of the time the signal spends on versus the time that the signal spends off. The duration of “on time” is called the pulse width. To get varying analog values, you change, or modulate, that pulse width. If you repeat this on-off pattern fast enough with an LED for example, the result is as if the signal is a steady voltage between 0 and Vcc controlling the brightness of the LED.

Thank you for reading/watching, please like and comment down below

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments