Bird
0
0
Raspberry Piprogramming~5 mins

Enabling I2C on Raspberry Pi - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is I2C and why is it used on the Raspberry Pi?
I2C (Inter-Integrated Circuit) is a simple communication protocol that allows multiple devices to talk to each other using just two wires. On the Raspberry Pi, it is used to connect sensors, displays, and other modules easily.
Click to reveal answer
beginner
How do you enable I2C on a Raspberry Pi using raspi-config?
Run the command sudo raspi-config, then navigate to Interface Options > I2C, and select Yes to enable it. Finally, reboot the Pi to apply changes.
Click to reveal answer
intermediate
Which files must be checked or edited to enable I2C manually on Raspberry Pi?
You need to check or edit /boot/config.txt to add dtparam=i2c_arm=on and ensure the i2c-dev module is loaded in /etc/modules.
Click to reveal answer
beginner
What command can you use to check if I2C devices are detected on Raspberry Pi?
Use sudo i2cdetect -y 1 to scan the I2C bus and see connected devices by their addresses.
Click to reveal answer
beginner
Why is it important to reboot the Raspberry Pi after enabling I2C?
Rebooting restarts the system and applies the changes made to configuration files and modules, ensuring the I2C interface is properly activated.
Click to reveal answer
Which two wires are used in the I2C protocol on Raspberry Pi?
ASDA and SCL
BTX and RX
CMOSI and MISO
DCLK and DATA
What command starts the Raspberry Pi configuration tool to enable I2C?
Asudo config-i2c
Bsudo i2cdetect
Csudo enable-i2c
Dsudo raspi-config
Which file should contain the line dtparam=i2c_arm=on to enable I2C?
A/etc/i2c.conf
B/boot/config.txt
C/etc/modules
D/boot/i2c.conf
What does the command sudo i2cdetect -y 1 do?
AEnables I2C on bus 1
BDisables I2C on bus 1
CScans the I2C bus 1 for connected devices
DLists all I2C drivers
Why must you reboot the Raspberry Pi after enabling I2C?
ATo apply configuration changes and load I2C modules
BTo clear the I2C bus
CTo update the operating system
DTo reset the GPIO pins
Explain the steps to enable I2C on a Raspberry Pi using the raspi-config tool.
Think about the menu options and final step to apply changes.
You got /5 concepts.
    Describe how to verify that I2C devices are connected and detected on the Raspberry Pi.
    Focus on the command and what its output shows.
    You got /3 concepts.