Tutorial 02 for Arduino: Buttons, PWM, and Functions

New Episodes each Monday!

You can download the parts list and the code from this episode on my website:

Tutorial 2 for Arduino: Now with more Blinky Things!

This tutorial series is sponsored by element14. Check out their arduino group!
http://www.element-14.com/community/groups/arduino

Follow me on twitter: http://www.twitter.com/sciguy14

Duration : 0:20:9



Posted

in

by

Comments

23 responses to “Tutorial 02 for Arduino: Buttons, PWM, and Functions”

  1. Rebuilder11 Avatar
    Rebuilder11

    You rock thank you …
    You rock thank you very? much!

  2. Hay1tsme Avatar
    Hay1tsme

    the? LED just stays …
    the? LED just stays on, weather i press the button or not. HELP!

  3. jls6318 Avatar
    jls6318

    Jeremy,
    Were you …

    Jeremy,
    Were you super NERVOUS the first time you swallowed your? BOYFRIEND’S LOAD OF JIZZ?

  4. runizgozilla Avatar
    runizgozilla

    is there a guy with …
    is there a guy with a gun behind your camera? or why do you keep nervously glancing behind it????? I MUST KNOW

  5. UncleSam493 Avatar
    UncleSam493

    you sir, are? …
    you sir, are? excellent

  6. cputampa Avatar
    cputampa

    I have mine hooked …
    I have mine hooked up exactly like yours in the first part but my light always stays on and when I press the button the light goes off. I’ve rechecked the sketch and wiring and it’s exactly like it should be, what can it be? If I follow this demo all the way to the end it works correctly but if I go back and load the first part of the sketch (just like in the beginning)? it’s still backwards.? I’m stumped.

  7. AnnoyingXboxer Avatar
    AnnoyingXboxer

    @jgrecoarroyo So …
    @jgrecoarroyo So when i push that button what is? exactly happening? Because i thought perhaps the button blocks the flow and when you press it, it allows the flow.. Is that correct?

  8. jgrecoarroyo Avatar
    jgrecoarroyo

    @AnnoyingXboxer Yes …
    @AnnoyingXboxer Yes, since it is a pull-down resistor (connected to ground). If it was a pull-up resistor (normally on; we push to obtain? a low value, the current will be flowing through the resistor all the time except when pressed). I hope I haven’t messed you up :S

  9. AnnoyingXboxer Avatar
    AnnoyingXboxer

    @jgrecoarroyo? So …
    @jgrecoarroyo? So the only time electricity flows through the resistor is when the button is pushed right?

  10. jgrecoarroyo Avatar
    jgrecoarroyo

    @jgrecoarroyo? …
    @jgrecoarroyo? check: acroname.com/howto/button/pushbutton.jpg

  11. jgrecoarroyo Avatar
    jgrecoarroyo

    @AnnoyingXboxer The …
    @AnnoyingXboxer The resistor is a “pull-down” resistor, meaning it will? be connected to ground. This is because when our push button is not pressed, the arduino board will read a low value, and when we press it will read the high value. If we didn’t place a resistor we will short-circuit the power signal with ground! Too much current will be driven and we could damage the circuit.

  12. Squirrle4620 Avatar
    Squirrle4620

    For wiring …
    For wiring something like this what Gage? wire do u suggest?

  13. MinecraftTechnic Avatar
    MinecraftTechnic

    @AnnoyingXboxer? …
    @AnnoyingXboxer? you need a resistor to limit the current, otherwise it will be bad for the arduino AND the LED

  14. AnnoyingXboxer Avatar
    AnnoyingXboxer

    Like for the …
    Like for the Resistor, How is it not going to pin8 but somehow going to ground through? the resistor? Arnt they both on the same line on the breadboard?

  15. AnnoyingXboxer Avatar
    AnnoyingXboxer

    Can some one …
    Can some one explain what exactly that Resitor is doing? I know he is sending it to ground… But why do you have to do? that?

  16. philnicholl13 Avatar
    philnicholl13

    Thanks a million? …
    Thanks a million? for these vids dude, soo helpful for a nooby like me

  17. bleachzeldakid Avatar
    bleachzeldakid

    Question: Can …
    Question: Can someone explain the circuitry to me? i don’t quite? understand what was going on there.

  18. 123456789robbie Avatar
    123456789robbie

    @otamanlvhs? i find …
    @otamanlvhs? i find his voice soothing too

  19. 123456789robbie Avatar
    123456789robbie

    @MrAnimeking9000 …
    @MrAnimeking9000 watch the first video, or read up at? arduino.cc

  20. 123456789robbie Avatar
    123456789robbie

    Y U? NO …
    Y U? NO digitalWrite(ledpin, digitalRead(switchpin))

  21. steelmesh Avatar
    steelmesh

    Mr.? Blum, you rock …
    Mr.? Blum, you rock and thank you.

  22. otamanlvhs Avatar
    otamanlvhs

    sound of? keyboard …
    sound of? keyboard typing is so soothing

  23. MrAnimeking9000 Avatar
    MrAnimeking9000

    what is Auduino, …
    what is Auduino, and what is? it used for , can u please tell me thank you

Leave a Reply