Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

How-to Tuesday: Arduino 101 the button

Loading...

Sign in or sign up now!
114,523
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 9, 2009

Read more at makezine.com

This is the second installment of a series about programming our favorite little micro-controller, the Arduino. Last week I covered connecting and blinking an LED. This week I will discuss connecting a push button that controls the LED. This is the simplest way to use a button. However, it isn't always the best way since it doesn't account for 'debouncing'. In the next installment of this series I will talk more about 'debouncing' the button input and why it is important. Also, I will have a fun and easy project that incorporates what we have learned so far in this series.

  • likes, 27 dislikes

Link to this comment:

Share to:

Top Comments

  • electricity is lazy -_-

  • @mcguiganjohn86 why don't you make one yourself then...

see all

All Comments (217)

Sign In or Sign Up now to post a comment!
  • At 11:00 i was like "Will you press that FUCKING button?" And all it does it switches the LED off... And you need an Arduino for it?? Dude...

  • @lolypopboy777 that's exactly how they explained it to me in physics class at school :D

  • @TakronRust Well if the circuit isn't closed, won't you be reading a floating pin ? O and the resistor is connected to pin 2, so that pin is tied to ground when the button isn't pushed and you will get a digital 0 if you read the sate of that pin from the arduino.

  • The thing is. That resistor isn't connected to anything until the button is pressed. Unless it's moved to the same row as the 5v pin, it does nothing. Plus, you don't need to keep a circuit closed when reading a high/low signal.

  • I've always wondered why resisters where connected to buttons, now I know.

  • @oscomputertricks 10K Ohm

  • what resistor do you use for the button

  • I'm very high now!

  • Your intro with the maker shed thing is annoying, shitty, and the volume is way to high. Remove that shit.

View all Comments »
Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more