Tutorial 02 for Arduino: Buttons, PWM, and Functions
Sign in to YouTube
Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to like sciguy14's video.
Sign in to YouTube
Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to dislike sciguy14's video.
Sign in to YouTube
Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to add sciguy14's video to your playlist.
Uploaded on Jan 10, 2011
New Episodes each Monday!
You can download the parts list and the code from this episode on my website:
http://jeremyblum.com/2011/01/10/ardu...
This tutorial series is sponsored by element14. Check out their arduino group!
http://www.element-14.com/community/g...
Follow me on twitter: http://www.twitter.com/sciguy14
-
Category
-
License
Standard YouTube License
Loading...
Loading...
Loading...
The interactive transcript could not be loaded.
Loading...
Loading...
Ratings have been disabled for this video.
Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Loading...
Advertisement
Next in Tutorial Series for Arduino
Suggestions
-
18:18
Tutorial 04 for Arduino: Analog Inputsby sciguy14
153,250 views
-
46:56
Tutorial 15 for Arduino: GPS Trackingby sciguy14
48,906 views
-
17:05
Tutorial 05 for Arduino: Motors and Transistorsby sciguy14
188,460 views
-
31:54
Tutorial 14 for Arduino: Holiday Lights and Sounds Spectacular!by sciguy14
47,729 views
-
19:54
Tutorial 10 for Arduino: Interrupts and Hardware Debouncingby sciguy14
92,112 views
-
62
videos
Play all
Arduinoby mentche
-
37:26
Arduino Tutorial #1 - Getting Started and Connected!by mjlorton
35,400 views
-
13:46
Arduino Video Tutorial 01: Get to know your Tools with Arduino CEO Massimo Banziby rswwwchannel
81,441 views
-
10:05
Everything You Need To Know About Arduinoby The Ben Heck Show
126,321 views
-
19:05
EEVblog #45 - Arduino, PICAXE, and idiot assembler programmersby EEVblog
84,314 views
-
11:29
Arduino Tutorial #5: PWM and Servosby humanHardDrive
7,241 views
-
7:10
Arduino Contest Results!by sciguy14
10,437 views
-
4:50
RC Car Controlled by Arduino and Xbox360 Controllerby howery2
207,651 views
-
8:08
Introduction to Breadboard (Protoboards), Part 1 of 2by electroninstructor
269,092 views
-
6:08
Hack an optical mouse into a camera with Arduino and Processingby ljandersson
290,119 views
-
14:32
Tutorial 01 for Arduino: Getting Acquainted with Arduinoby sciguy14
464,985 views
-
5:01
Collin's Lab: USB Hacking with Arduinoby MAKE
282,131 views
-
9:34
How to make an LED Cube (PT1)by fruitkid101
468,597 views
-
DealExtreme Product Videos
1,296 videos5K
-
1:14
LED Cube 3x3x3 with Arduinoby brionwolf
487,239 views
-
8:51
Arduino Breadboard Tutorial -Arduino Workshop Project Video #1by Justin L
149,058 views
Top Comments
André MarÃn GarcÃa 2 months ago
The only thing i don't understand is the use for the first resistor, the one u use on minute 4:15 :(
can someone explain it again?
Sign in to YouTube
Sign in to YouTube
Cameron Belt 4 weeks ago
You want the signal from the button to be low when it is not pushed but you also want to create a high signal that goes from the power into the arduino input pin to do this you connect a resistor of large resistance. it "drains" any voltage to ground keeping it low when the button is inactive and when it is pushed most of the current(thats why a large one is needed) flows into the input pin and not back into ground that the resistor is connected to. hopefully that makes some sense
Sign in to YouTube
Sign in to YouTube
Video Responses
All Comments (493)
jaredanwyl 1 day ago
Figured it out.
Sign in to YouTube
Sign in to YouTube
jaredanwyl 3 days ago
I'm having a weird issue. My switches (in all examples) seem to be always on. I can use a wire and inserting it acting like a switch works correctly. When i use a switch pressing the button does nothing. (basically current is already flowing) Therefore its acting like a wire and not allowing me to use it like a switch, any ideas?
Sign in to YouTube
Sign in to YouTube
RebalanceGaming 5 days ago
You don't "really" need it. But basically it makes sure that there is NO current flowing through the button until it is pressed. i'm not too sure why it is there either, because there shouldn't be any "leakage" of power through the switch....
Sign in to YouTube
Sign in to YouTube
Wade Hawkins 1 week ago
I'm really confused by how the ledOn variable was set with a default value of "false" instead of "low"? Can we use the terms "false" and "low" interchangeably? That wasn't stated in the tutorial.
Sign in to YouTube
Sign in to YouTube
Leinad581 1 week ago
i was so confused as the led was already turned on, and when i pressed the switch the led turned off, i went onto the arduino.cc website and i got the code and the code from there worked perfectly, i found out that it didnt work at first is because ive got the unr r3 the newest version and you have got the uno r2 at least thats what i think happened)
Sign in to YouTube
Sign in to YouTube
sebomstian 1 week ago
He explains that very nicely in the next part of this series.
Sign in to YouTube
Sign in to YouTube
Chris Schmitz 2 weeks ago
Every class, like setup and loop are in this case, has to specify whether it is void, or whether it returns a variable, like, say, an int- classes can be called upon/run by other classes, and the return type of the class that's called upon has to match the context in which it is called. Hope that makes sense.
Sign in to YouTube
Sign in to YouTube
rdang16 2 weeks ago
dude. you are awesome. thanks for the vids
Sign in to YouTube
Sign in to YouTube
dsrjth 2 weeks ago
is it possible to use this code for multiple buttons? if yes how?
Sign in to YouTube
Sign in to YouTube