Bird
0
0
Raspberry Piprogramming~5 mins

i2cdetect for device scanning in Raspberry Pi - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of the i2cdetect command on a Raspberry Pi?
The i2cdetect command scans the I2C bus on a Raspberry Pi to find connected I2C devices by showing their addresses.
Click to reveal answer
beginner
How do you specify which I2C bus to scan using i2cdetect?
You add the bus number as an argument, for example, i2cdetect -y 1 scans bus number 1.
Click to reveal answer
intermediate
What does the -y option do in the i2cdetect command?
The -y option disables interactive confirmation, so the scan runs without asking for permission.
Click to reveal answer
beginner
What does it mean if i2cdetect shows a number at a certain address?
It means an I2C device is detected at that address on the bus.
Click to reveal answer
intermediate
Why might i2cdetect show UU at some addresses?
UU means the address is in use by a driver and is busy, so i2cdetect cannot scan it.
Click to reveal answer
What command scans I2C bus 1 for devices without asking for confirmation?
Ai2cdetect -y 1
Bi2cdetect 1
Ci2cdetect -n 1
Di2cdetect -q 1
If i2cdetect shows a number at address 0x3C, what does it mean?
ANo device found at 0x3C
BAddress 0x3C is reserved
CBus error at 0x3C
DDevice detected at 0x3C
What does the UU symbol mean in i2cdetect output?
ANo device detected
BUnknown device
CDevice busy, address in use by driver
DScan error
Which bus number is commonly used for I2C on Raspberry Pi models after revision 2?
A1
B0
C2
D3
Why should you run i2cdetect with sudo?
ATo scan faster
BTo access hardware bus permissions
CTo save output to a file
DTo update I2C drivers
Explain how to use i2cdetect to find devices connected to your Raspberry Pi's I2C bus.
Think about the command format and what the output numbers mean.
You got /4 concepts.
    Describe what the symbols and numbers in the i2cdetect output represent.
    Focus on how to read the scan results.
    You got /3 concepts.