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 Use a Slide Switch with an Arduino (Lesson #24)

50.7K views on YouTube

This video shows how to use single-pole double-throw (SPDT) slide switch as a digital input to an Arduino, and also how to use one as a standalone power switch.

See our complete playlist of Arduino tutorials here: https://youtube.com/playlist?list=PLlBVuTSjOrclb0iCMSRpS_H1lSrlSVeEm

Visit the Science Buddies website for cool science projects you can do with an Arduino: https://www.sciencebuddies.org/search?prop=arduino&ytid=0ZXYRU9KPG8&ytsrc=description

Tinkercad circuit with code: https://www.tinkercad.com/things/k2YPC9oofuy

0:00 overview
1:37 circuit
4:21 code
5:29 standalone on/off switch

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=0ZXYRU9KPG8&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