“Draw an Arduino Uno breadboard with a push button connected to D2 using a 10k pull-down resistor, and a red LED on D13 through a 220 ohm resistor.”
Comprenez les décisions qui le sous-tendent.
The button signal goes to D2.
A 10k resistor holds the input low when open.
A 220 ohm resistor limits LED current from D13.
Use for a simple Arduino input and output exercise.
Questions fréquentes
Why is a pull-down resistor used?
It keeps the input at a known low level when the button is open.
Why does the LED need a resistor?
It limits current through the LED.
Which pin reads the button?
The button signal is wired to Arduino D2.