Adjusting Brightness LED - Fade LED with Arduino

4,580 views · Published 9 November 2017 · 1:29 · Indexed 29 September 2026

Channel: Maker Tutor · 2017 · Science & Technology

Watch on YouTube

Adjusting Brightness LED - Fade LED with Arduino

Writes an analog value (PWM wave) to a pin. Can be used to light a LED at varying brightnesses or drive a motor at various speeds. 

On most Arduino boards (those with the ATmega168 or ATmega328), this function works on pins 3, 5, 6, 9, 10, and 11. On the Arduino Mega, it works on pins 2 - 13 and 44 - 46. Older Arduino boards with an ATmega8 only support analogWrite() on pins 9, 10, and 11.

https://www.arduino.cc/en/Tutorial/Fade ::::::::::: SUPPORT CHANNEL ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Please Donate To Help Me Afford New Equipment And Software To Make My Videos More : https://goo.gl/1m8Dg2

Don't forget to subscribe!

More from this channel