LED Button Brightness Control

Requires ,

This project creates an interactive brightness control for an LED using a button.

The circuit uses a push-button to incrementally increase an LED’s brightness until it reaches maximum, then resets to off. Each button press increases the brightness by a fixed step value (51), cycling through brightness levels from 0 to 255. The system uses PWM (Pulse Width Modulation) to control the LED’s brightness through an Arduino pin.

Parts List

  • Arduino board
  • LED
  • 220Ω resistor
  • Push-button
  • Breadboard
  • Jumper wires

Assembly Instructions

  1. Connect the push-button to digital pin 2 and ground
  2. Connect one end of the 220Ω resistor to digital pin 3
  3. Connect the other end of the resistor to the anode (longer leg) of the LED
  4. Connect the cathode (shorter leg) of the LED to ground
  5. Connect the Arduino board to power