Bird
0
0
Raspberry Piprogramming~5 mins

Enabling SPI on Raspberry Pi - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is SPI and why do we enable it on Raspberry Pi?
SPI (Serial Peripheral Interface) is a way for the Raspberry Pi to talk to other devices like sensors or displays quickly. We enable it to allow this communication.
Click to reveal answer
beginner
Which command opens the Raspberry Pi configuration tool to enable SPI?
The command is sudo raspi-config. It opens a menu where you can enable SPI easily.
Click to reveal answer
beginner
After enabling SPI via raspi-config, what is the next step to make sure SPI works?
You should reboot the Raspberry Pi using sudo reboot so the changes take effect.
Click to reveal answer
intermediate
How can you check if SPI is enabled on your Raspberry Pi?
Run ls /dev/spidev*. If you see devices like /dev/spidev0.0, SPI is enabled.
Click to reveal answer
intermediate
What file can you edit manually to enable SPI if you don't want to use raspi-config?
You can edit /boot/config.txt and add the line dtparam=spi=on to enable SPI.
Click to reveal answer
Which command do you use to start the Raspberry Pi configuration tool to enable SPI?
Asudo config-spi
Bsudo spi-enable
Csudo raspi-config
Denable-spi
What should you do after enabling SPI in raspi-config to apply changes?
ANothing, changes apply immediately
BRun <code>spi-start</code>
CRun <code>sudo spi-enable</code>
DRun <code>sudo reboot</code>
Which device file indicates SPI is enabled on Raspberry Pi?
A/dev/spidev0.0
B/dev/ttyUSB0
C/dev/i2c-1
D/dev/spi0
Where do you add dtparam=spi=on to enable SPI manually?
A/etc/spi.conf
B/boot/config.txt
C/home/pi/spi.txt
D/etc/modules
What does SPI stand for?
ASerial Peripheral Interface
BSimple Peripheral Input
CSerial Port Interface
DSystem Peripheral Integration
Explain the steps to enable SPI on a Raspberry Pi using the command line.
Think about the configuration tool and rebooting.
You got /4 concepts.
    How can you verify that SPI is enabled and working on your Raspberry Pi?
    Look for device files in /dev.
    You got /3 concepts.