11.07.2015 Views

Arduino Inventor's Guide - Oomlout

Arduino Inventor's Guide - Oomlout

Arduino Inventor's Guide - Oomlout

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CIRC-07.:Button Pressing:..:Pushbuttons:.WHAT WE’RE DOING:Up to this point we have focused entirely on outputs, time toget our <strong>Arduino</strong> to listen, watch and feel. We'll start with asimple pushbutton. Wiring up the pushbutton is simple. There isone component, the pull up resistor, that might seem out of place.This is included because an <strong>Arduino</strong> doesn't sense the same way we do (ie button pressed,button unpressed). Instead it looks at the voltage on the pin and decides whether it is HIGHor LOW. The button is set up to pull the <strong>Arduino</strong>'s pin LOW when it is pressed, however, whenthe button is unpressed the voltage of the pin will float (causing occasional errors). To get the<strong>Arduino</strong> to reliably read the pin as HIGH when the button is unpressed, we add the pull upresistor.(note: the first example program uses only one of the two buttons)THE CIRCUIT:Parts:CIRC-07Breadboard Sheetx110k Ohm ResistorBrown-Black-Orangex22 Pin Headerx4330 Ohm ResistorOrange-Orange-Brownx1Pushbuttonx2Red LEDx1Wire<strong>Arduino</strong>pin 13Schematic<strong>Arduino</strong>pin 2 pin 3+5 voltsLEDresistor(10k ohm)resistor(330ohm)pushbuttongnd(ground) (-)The Internet.:download:.breadboard layout sheethttp://ardx.org/BBLS07S.:view:.assembly videohttp://ardx.org/VIDE0720

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!