Learn how to use a button as a digital input to an Arduino I/O pin with the digitalRead command. See our complete playlist of Arduino tutorials here: and the Science Buddies website for cool science projects you can do with an Arduino:
0:00 intro
0:23 materials
0:37 algorithm: pseudocode
1:31 algorithm: flowchart
2:22 build the circuit
8:29 connect a pull-down resistor
9:54 write the code
13:59 test your code
14:19 reverse button behavior
16:18 variables
20:40 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 ?from=YouTube to learn more.
#STEM #sciencebuddies #arduino #electronics #programming
*******************************
Connect with Science Buddies:
TWITTER:
FACEBOOK:
INSTAGRAM:
PINTEREST:
6 views
254
65
5 days ago 00:03:47 1
SCOOTER - HOW MUCH IS THE FISH (Metal cover)
1 week ago 00:20:57 1
Incredible Discovery In The Grand Canyon? - YouTube
1 week ago 00:29:11 1
Interview with Valentin Kozlov, Valmix Company | Potato Tour Across Russia (Part 2) π₯π
1 week ago 00:57:54 1
Lost In Time : The Isolated House Where She Lost Her Mind | How I Find Abandoned Placess
1 week ago 01:01:39 1
TIME SLIP STORIES (SN 18 EP 38) TRUE UNEXPLAINABLE EXPERIENCES WITH MISSING TIME & TIME SLIPS
1 week ago 00:00:31 2
How To Train Your Dragon | Big Game Spot
2 weeks ago 00:05:05 59
How to Clown - Misha Usov - Professional Clown School
2 weeks ago 00:38:45 2
Try Not To Laugh Challenge#7 | Instant Regret Fails Compilation 2024 | Amazing People