fading

Fading with Arduino circuit

Fading an LED off and on using Arduino

Demonstrates the use of the analogWrite() function in fading an LED off and on. AnalogWrite uses pulse width modulation (PWM), turning a digital pin on and off very quickly, to create a fading effect. Circuit Connect the anode (the longer, positive leg) of your LED to digital output pin 9 on your Arduino through a 220-ohm resistor. Connect the cathode (the shorter, negative leg)

Fading an LED off and on using Arduino Continue Reading

Scroll to Top