How to Enable I2C, SPI and Serial on Raspberry Pi

Overview

The goal with this post is to help you turn on I2C, SPI and Serial Connection on your Raspberry Pi. Some of our HATs might require these features to be enabled in order to function properly. This operation will take around 2 minutes.

The screenshots are referencing to the Raspbian Buster Lite version that was released on July 10 2019.

Enabling I2C, SPI and Serial

You can use the following command in terminal to turn your SPI, I2C and Serial Connection interfaces.
sudo raspi-config

Once you get to this screen, you will get inside "Interfacing Options" menu and there will be a few interfaces that you can turn on. In this case we are only interested in the ones highlighted in blue. Depending on your needs, you should be able to turn a few of them on/off.

Once you enable your SPI, I2C and Serial Connection Interfacing options, it's going to show you a confirmation window in order to enable those interfaces.

This action will take a second to be applied then if everything is successful, you'll be shown the final confirmation.

Let me know in the comments if you need any further help or having issues. 

Before I end this post, I suggest you to go ahead and check our Raspberry Pi HATs Using our HATs, you can create a variety of projects within hours using your Raspberry Pi.

  • You can create your own smart home
  • You can build your own smart IoT hub where you measure air quality, temperature and humidity level.
  • Setup long distance (5 to 15 kilometers), no subscription requiring communication network using our LoRa HAT.
  • Even create your own security hub that can detect motion and notify you!

Scenarios are endless, the sky is the limit!