Bird
0
0
Raspberry Piprogramming~10 mins

Enabling SPI on Raspberry Pi - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to open the Raspberry Pi configuration tool.

Raspberry Pi
sudo [1]
Drag options to blanks, or click blank then click option'
Aapt-get
Braspi-config
Cnano
Dsystemctl
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'apt-get' instead of 'raspi-config'.
Trying to edit files with 'nano' instead of opening the config tool.
2fill in blank
medium

Complete the menu option to enable SPI in the Raspberry Pi configuration tool.

Raspberry Pi
Navigate to 'Interface Options' and select '[1]' to enable SPI.
Drag options to blanks, or click blank then click option'
ASPI
BSSH
CVNC
DI2C
Attempts:
3 left
💡 Hint
Common Mistakes
Selecting 'SSH' or 'VNC' which are for remote access.
Choosing 'I2C' which is a different communication protocol.
3fill in blank
hard

Fix the command to reboot the Raspberry Pi after enabling SPI.

Raspberry Pi
sudo [1] reboot
Drag options to blanks, or click blank then click option'
Astart
Benable
Csystemctl
Dshutdown
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' which is for starting services.
Using 'shutdown' without the correct options.
4fill in blank
hard

Fill both blanks to check if SPI modules are loaded.

Raspberry Pi
lsmod | grep [1] && lsmod | grep [2]
Drag options to blanks, or click blank then click option'
Aspi_bcm2835
Bi2c_bcm2835
Cspi_dev
Dusbcore
Attempts:
3 left
💡 Hint
Common Mistakes
Checking for I2C modules instead of SPI.
Checking for unrelated modules like 'usbcore'.
5fill in blank
hard

Fill all three blanks to add SPI to the boot configuration file.

Raspberry Pi
echo '[1]=on' | sudo tee -a /boot/config.txt && sudo [2] && sudo [3]
Drag options to blanks, or click blank then click option'
Adtparam=spi
Breboot
Csync
Dsystemctl
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'systemctl' instead of 'sync' or 'reboot'.
Forgetting to reboot after changing config.txt.