LED turns on when a push button is pressed — digital input and output.
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.
- Arduino Uno
- 1x LED
- 1x Push button
- 1x 220Ω resistor (LED)
- 1x 10kΩ resistor (button pull-down)
- Breadboard + jumper wires
| Component | Arduino Pin |
|---|---|
| Button | Pin 8 |
| LED (+) | Pin 13 |
| LED (-) | GND via 220Ω resistor |
| Button | 5V + 10kΩ pull-down to GND |
- Digital input with
digitalRead() - Conditional logic (if/else)
- Combining input and output on the same circuit