How to Use a Slide Switch with an Arduino (Lesson #24)
ฝัง
- เผยแพร่เมื่อ 19 มิ.ย. 2024
- Science Buddies Electronics Kit for Arduino: www.homesciencetools.com/prod...
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: • How to Use an Arduino
Visit the Science Buddies website for cool science projects you can do with an Arduino: www.sciencebuddies.org/search...
Tinkercad circuit with code: www.tinkercad.com/things/k2YP...
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 www.sciencebuddies.org to learn more.
#STEM #sciencebuddies #arduino #electronics #programming
*******************************
Connect with Science Buddies:
TWITTER: / sciencebuddies
FACEBOOK: / sciencebuddies
INSTAGRAM: / scibuddy
PINTEREST: / sciencebuddies
keep making your videoes, you are a big help!
Thank you. First info I found on using a SPDT switch. I did it wrong. Seems debouncing is not necessary. It would be good to mention that explicitly.
looking for a way vice versa - i want to flip a slide switch with an arduino