Bird
0
0

Which hardware ports will you use to connect the LED and button, and how will you see the output on a screen?

hard📝 Application Q15 of 15
Raspberry Pi - Platform
You want to build a project that lights up an LED when you press a button connected to your Raspberry Pi. Which hardware ports will you use to connect the LED and button, and how will you see the output on a screen?
AConnect LED and button to Ethernet port; use USB for screen output
BConnect LED and button to GPIO pins; use HDMI port for screen output
CConnect LED and button to HDMI port; use USB for screen output
DConnect LED and button to USB ports; use GPIO pins for screen output
Step-by-Step Solution
Solution:
  1. Step 1: Identify connection for LED and button

    LEDs and buttons are electronic components controlled via GPIO pins on the Raspberry Pi.
  2. Step 2: Identify how to display output

    The HDMI port connects the Raspberry Pi to a screen to show output visually.
  3. Final Answer:

    Connect LED and button to GPIO pins; use HDMI port for screen output -> Option B
  4. Quick Check:

    GPIO for electronics + HDMI for display [OK]
Quick Trick: Use GPIO for electronics, HDMI for screen display [OK]
Common Mistakes:
  • Connecting electronics to USB or HDMI ports
  • Using USB for screen output
  • Confusing Ethernet port with GPIO

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes