Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

How to Fade an LED with Arduino analogWrite (Lesson #6)

115.5K views on YouTube

Learn how to fade an LED connected to an Arduino pulse width modulation (PWM) pin using the analogWrite command. See our complete playlist of Arduino tutorials here: https://youtube.com/playlist?list=PLlBVuTSjOrclb0iCMSRpS_H1lSrlSVeEm and the Science Buddies website for cool science projects you can do with an Arduino: https://www.sciencebuddies.org/search?prop=arduino&ytid=QCZISwDi_Qo&ytsrc=description

0:00 intro
0:17 circuit overview
0:40 pulse width modulation (PWM) pins
2:16 open an example program
3:12 for loops
6:36 run the example program
7:06 change the fade speed
7:55 how does PWM work?
10:55 up next

Science Buddies also hosts a library of instructions for over 1,500 other hands-on science projects, lesson plans, and fun activities for K-12 parents, students, and teachers! Visit us at https://www.sciencebuddies.org/?ytid=QCZISwDi_Qo&ytsrc=description to learn more.

#STEM #sciencebuddies #arduino #electronics #programming
*******************************
Connect with Science Buddies:

TWITTER: https://twitter.com/ScienceBuddies

FACEBOOK: https://www.facebook.com/ScienceBuddies

INSTAGRAM: https://www.instagram.com/scibuddy

PINTEREST: https://www.pinterest.com/sciencebuddies