Arduino Tutorials Part 1

2,803

9

2

Introduction: Arduino Tutorials Part 1

this time i will show how to program a button in the Arduino progam,
most of the time, people just use it to block the voltage that comes trough the wire.
but now, it is regonized by the arduino.

have fun, dinky

Step 1: The LED

 insert the negative-pin to ``gnd`` and the positif/pin in ``13``

Step 2: The Wires, the Bread-board & the Button

 insert the 1st wire in:'' 3v3 ''
insert the 2nd wire in:''4'' 

Step 3: Programming

if you already have the arduino software, you have to go to:
file / sketchbook / examples / digital / button.

if you don't have the software you can download it ad:
http://arduino.cc/en/Main/Software

but you have to make some adjustments:
int inputpin = 2 ; the 2 is suposed to be 4.


Be the First to Share

    Recommendations

    • Colors of the Rainbow Contest

      Colors of the Rainbow Contest
    • Cardboard Speed Challenge

      Cardboard Speed Challenge
    • Go Big Challenge

      Go Big Challenge

    2 Comments

    0
    lemonie
    lemonie

    12 years ago on Introduction

    This isn't quite complete. You've said how to connect an LED and two wires, but you haven't mentioned the button, or how it works. And you're vague on the coding for this.

    L