Control LED with Push Button

Aim

To learn how to turn ON or OFF an LED with a Push Button using Arduino Uno Board.

Components required for the experiment

Arduino UNO Board, Breadboard, LED (any colour), Resistor (220 Ohms) and Push Button.

What is Push Button and where it is used?

A push button switch is a type of mechanical switch that is activated by pressing a button. It is typically used to provide a momentary contact closure that can be used to control electronic circuits. When the button is pressed, it completes an electrical circuit, allowing current to flow through the circuit. When the button is released, the circuit is broken, stopping the flow of current. Push button switches are commonly used in a variety of electronic applications, such as control panels, keyboards, and as input devices for microcontrollers like the Arduino. They are often used in combination with other electronic components to create more complex circuits and systems.