11.07.2015 Views

ARDX-experimenters-g.. - Oomlout

ARDX-experimenters-g.. - Oomlout

ARDX-experimenters-g.. - 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 Arduino 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 Arduino 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 HIGH orLOW. The button is set up to pull the Arduino's pin LOW when it is pressed, however, when thebutton is unpressed the voltage of the pin will float (causing occasional errors). To get theArduino 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-Redx22 Pin Headerx4560 Ohm ResistorGreen-Blue-Brownx1Pushbuttonx2Red LEDx1WireSchematic:Arduinopin 13LEDArduinopin 2 pin 3+5 voltsresistor(10k ohm)resistor(560ohm)pushbuttongnd(ground) (-)The Internet.:download:.breadboard layout sheethttp://tinyurl.com/dzmh8w.:view:.assembling videohttp://tinyurl.com/dnln6g20

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

Saved successfully!

Ooh no, something went wrong!