Push Buttons & Resistors with Arduino – Pre-Test | Lesson 9


Push button
Resistor
Capacitor

Acts as a pull-up or pull-down resistor
Limits current to the LED
Provides power to the circuit

220 ohms
10,000 ohms
0 ohms

Keeps the input HIGH when button is not pressed
Sends signal to ground
Turns on the LED

The input pin goes LOW
The LED flashes
The resistor changes value

LOW
HIGH
Floating

Turn on or off LEDs
Power the Arduino
Disconnect the ground

digitalRead()
analogWrite()
Serial.begin()

Input
Output
Sensor

Use a loop with digitalWrite() and delay()
Remove the button from the circuit
Disconnect the LED