Bird
0
0

You want to connect a temperature sensor and an LCD display to your Raspberry Pi using I2C. How should you wire them?

hard🚀 Application Q8 of 15
Raspberry Pi - I2C Communication
You want to connect a temperature sensor and an LCD display to your Raspberry Pi using I2C. How should you wire them?
AConnect both devices to the same SDA and SCL pins with unique addresses
BConnect each device to separate SDA and SCL pins
CUse SPI instead of I2C for multiple devices
DConnect devices in series on the SDA line only
Step-by-Step Solution
Solution:
  1. Step 1: Understand I2C bus wiring

    I2C devices share the same two wires: SDA (data) and SCL (clock).
  2. Step 2: Confirm device addressing

    Each device must have a unique address to communicate properly on the shared bus.
  3. Final Answer:

    Connect both devices to the same SDA and SCL pins with unique addresses -> Option A
  4. Quick Check:

    Multiple devices share SDA/SCL with unique addresses [OK]
Quick Trick: Share SDA and SCL wires for multiple I2C devices [OK]
Common Mistakes:
MISTAKES
  • Wiring devices to separate pins
  • Using SPI instead of I2C unnecessarily
  • Connecting devices in series incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes