Arduino Push Button

This example turns on the built-in LED on pin 13 when you press the button.

1.0 Background Knowledge

1.1 Push Buttons

Pushbuttons or switches connect two points in a circuit when you press them.

2.0 Hardware Required

  • Arduino Board
  • Breadboard
  • hook-up wires
  • Momentary button or switch
  • 10K ohm resistor

3.0 Circuit

Button Breadboard View

4.0 Schematic

Button Schematic

 

5.0 Code

 

 

6.0 References

[1] Arduino.cc. 2005. Arduino - Button. [online] Available at: https://www.arduino.cc/en/tutorial/button [Accessed 1 April 2020].

 

Related Posts

What Is An Electrical Charge?
What Is An Electrical Charge?
The charge of an electron and that of a proton are equal in magnitude. Electrical charge is an electrical property of ma
Read More
How to Blink an LED Using Arduino
How to Blink an LED Using Arduino
This project is the "Hello World!" of Arduino. In this project, we are going to learn about physical outputs and two ele
Read More
How to Fade an LED Using Arduino
How to Fade an LED Using Arduino
In this example, we use the analogWrite() function to fade an LED on and off. analogWrite() uses pulse with modulation (
Read More
100% Satisfaction
Learn More
Fast Local Shipping
Learn More
Best Deals
Learn More
Technical Support
Learn More