LED with a Button#
Building on the last tutorial, we are now doing to introduce input components into our circuit. You will need the components listed below.
Component list
Microprocessor (for these examples either Arduino Uno or Raspberry Pi Pico)
Breadboard
Pushbutton
LED light
2 x 220 Ω Resistors
5 x M/M wires
A button acts as a simple digital input, by only allowing current to flow through it when pressed.
What’s new?
Handling digital inputs
if/else statements