top of page

Arduino Push button

We use a button, 2 resistors, and an Led to test out our Arduino.

1.

We power up the bread board to start.

Button_bb2.png

2.

We set up the button next.
Be sure to use a resistor like shown. a 10k ohm resistor is recommended

Button_bb1.png
ButtonConnections

3.

We now connect the LED with its resistor. You can use a resistor from 220 ohm's, up to 500 ohm's. You should not use the led without a resistor. Doing so may cause the led to blow out, or damage other things on your project.

Button_bb.png
LedConnections

4.

Software:

We read the button on pin 2. If the button is LOW [0v/gnd] then it is not pressed. If the button is HIGH [5v/vcc] then it IS pressed.

Github_edited.png

Note:

clipart1869059.png

You can open the serial monitor and see if the button is being pressed or not also.

Code

More Info coming soon!

bottom of page