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) directly to ground. image de ...

Read more

Huge List of tutorials & Components based resources & info

 glossary A B C D E F G H I J K L M N O P Q R S T U V W X Y Z A ACCELEROMETER: tutorial on using the Memsic 2125 accelerometer with Arduino/Freeduino ACCELEROMETER: another post on using the Memsic 2125 Rad*o Sha*k variant accelerometer with Arduino/Freeduino ACCELEROMETER: article on using the LIS3LV02DQ 3-axis accelerometer with Arduino/Freeduino ACCELEROMETER: an excellent article on using the ADXL330 wi ...

Read more

Fading using an Arduino

Demonstrates the use of analog output (Pulse Width Modulation (PWM)) to fade an LED. PWM is a technique for getting an analog-like behavior from a digital output by switching it off and on very fast. Circuit An LED connected to digital output pin 9 through a 220-ohm resistor. Schematic image developed using Fritzing. For more circuit examples, see the Fritzing project page Code /* Fading This example shows ...

Read more
Scroll to top