Skip to content

nizarbadriali/Push-Button-LED

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Arduino-Button-LED

LED turns on when a push button is pressed — digital input and output.

Description

An Arduino project where a push button controls an LED. Demonstrates understanding of digital input reading, conditional logic, and how to wire an input component on a breadboard.

Components

  • Arduino Uno
  • 1x LED
  • 1x Push button
  • 1x 220Ω resistor (LED)
  • 1x 10kΩ resistor (button pull-down)
  • Breadboard + jumper wires

Wiring

Component Arduino Pin
Button Pin 8
LED (+) Pin 13
LED (-) GND via 220Ω resistor
Button 5V + 10kΩ pull-down to GND

Skills Demonstrated

  • Digital input with digitalRead()
  • Conditional logic (if/else)
  • Combining input and output on the same circuit

About

Push button controls an LED using digital input

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages