02
beginner+150 XP

Button-Controlled LED

Add human interaction — control your LED with a push button.

🎯 Objective

Build a circuit where pressing a button lights up an LED.

📖 Background Theory

A push button is a simple switch that connects two points when pressed. **How the circuit works:** When the button is pressed, it completes the circuit and current flows through the LED. When released, the circuit is open and the LED turns off. **Pull-down resistor:** Without a pull-down resistor on the Arduino input, the pin "floats" and gives random readings. Connect a 10kΩ resistor from the button output to GND to ensure a clean LOW signal when not pressed.

🔧 Components You'll Use

BatteryResistorLedPush ButtonGround

📋 Steps (7)

  1. 1Place a Battery, Resistor, LED, Push Button, and Ground
  2. 2Wire Battery + → Button pin 1
  3. 3Wire Button pin 2 → Resistor pin A
  4. 4Wire Resistor pin B → LED Anode
  5. 5Wire LED Cathode → Ground
  6. 6Wire Battery – → Ground
  7. 7Run simulation and press the button by clicking on it!