Arduino Tutorials Part 1

by dinky in Circuits > Arduino

2958 Views, 9 Favorites, 0 Comments

Arduino Tutorials Part 1

HPIM4999.JPG
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

The LED

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

The Wires, the Bread-board & the Button

HPIM5000.JPG
HPIM5001.JPG
HPIM5008.JPG
HPIM5011.JPG
 insert the 1st wire in:'' 3v3 ''
insert the 2nd wire in:''4'' 

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.