Bird
0
0

You want to connect a push button to a Raspberry Pi GPIO pin so that the pin reads LOW when pressed and HIGH when released without external resistors. Which setup should you use?

hard📝 Application Q8 of 15
Raspberry Pi - GPIO Basics with Python
You want to connect a push button to a Raspberry Pi GPIO pin so that the pin reads LOW when pressed and HIGH when released without external resistors. Which setup should you use?
AUse external 10k resistor only
BEnable internal pull-down resistor and connect button to 3.3V
CEnable internal pull-up resistor and connect button to ground
DUse no resistor and connect button to ground
Step-by-Step Solution
Solution:
  1. Step 1: Understand button wiring with internal resistors

    Enabling internal pull-up resistor makes pin HIGH by default; pressing button connects pin to ground making it LOW.
  2. Step 2: Apply to scenario

    Enable internal pull-up resistor and connect button to ground matches this setup, allowing button press to read LOW without external resistors.
  3. Final Answer:

    Enable internal pull-up resistor and connect button to ground -> Option C
  4. Quick Check:

    Pull-up + button to ground = LOW when pressed [OK]
Quick Trick: Use pull-up resistor and ground button for LOW press [OK]
Common Mistakes:
  • Using pull-down resistor expecting LOW on release
  • Not connecting button correctly
  • Assuming external resistor is always needed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes