Prepare a Raspberry Pi for GPIO access

Prepare a Raspberry Pi for GPIO access

Assuming you install the Raspberry Pi version of Debian on your Raspberry Pi, it installs a configuration tool called raspi-config. You run it by issuing the following command: –

sudo raspi-config

The following screen is then displayed: –

image-65-1024x513 Prepare a Raspberry Pi for GPIO access

To enable access to the GPIO pins, option number 3 is selected, and then the following screen is displayed: –

image-66-1024x512 Prepare a Raspberry Pi for GPIO access

You can then select the options you need for your specific use case. Typically, I enable the following: –

  • 1-Wire – this is used for many devices but is typically used for temperature sensors of various types
  • I2C – used for more complex devices, including TFT screens
  • SPI – used to communicate with sensors, SD cards, and other serial communications devices

After making changes to these settings, reboot the Raspberry Pi.

Stephen

Hi, my name is Stephen Finchett. I have been a software engineer for over 30 years and worked on complex, business critical, multi-user systems for all of my career. For the last 15 years, I have been concentrating on web based solutions using the Microsoft Stack including ASP.Net, C#, TypeScript, SQL Server and running everything at scale within Kubernetes.

Finchett.com
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.