A solicitação
“Draw a 5 V Arduino GPIO interface with a pull-up resistor and pushbutton on one input, plus a 220 Ω resistor and LED on GPIO13.”
Depois, tenteAdd a second LED output.Change the pull-up resistor to 4.7 kΩ.
O que há neste desenho
Entenda as decisões por trás dele.
01
10 kΩ pull-up keeps GPIO HIGH by default; button press = logic LOW (active-low).
02
220 Ω current-limiting resistor protects LED at ~14 mA for a 5V supply and 2.1V forward voltage.
03
SPICE netlist format serves as both schematic and simulation input.
Reuse for any microcontroller GPIO circuit reading a digital input or driving an indicator LED.