HowTo: Raspberry Pi - Show GPIO overview of the Raspberry Pi in the console

The Raspberry Pi is famous for many of its features. On the one hand there is the size, performance and (at times when there is no shortage of components) the price, which is really impressive for such a small practical device.

It has become famous as a "tinkering computer" mainly because external hardware can be connected directly via its GPIO connection pins.

In order to be able to connect the hardware correctly, you must of course know which functions are behind the various connection pins. There are many overview pictures on the internet.

However, there is also an easy way to display the functions of the GPIO pins in the console.

How you can display this GPIO overview in the dashboard is described in the following article.

Safety instructions

I know the following notes are always kind of annoying and seem unnecessary. Unfortunately, many people who knew "better" have lost eyes, fingers or other things due to carelessness or injured themselves. Data loss is almost negligible in comparison, but even these can be really annoying. Therefore, please take five minutes to read the safety instructions. Because even the coolest project is not worth injury or other trouble.

Affiliate links/advertising links

The links to online shops listed here are so-called affiliate links. If you click on such an affiliate link and make a purchase via this link, will receive a commission from the relevant online shop or provider. The price does not change for you. If you make your purchases via these links, you support in being able to offer other useful projects in the future. 🙂 


Helpful articles:
Before you start with this article, you should have prepared a RaspberryPi so that it can be reached via the network and controlled via SSH.

The following articles describe what needs to be done to prepare the RaspberryPi.

In the following lists you will find all the parts you need to implement this article.

Required tool:

1xScrewdriver set  Buy at Amazon
1xSD card reader  Buy at Amazon

Required material:

1x Raspberry Pi  Buy at Amazon
1x Raspberry Pi power supply  Buy at Amazon
1x Raspberry Pi case  Buy at Amazon
1x Micro SD card 64GB  Buy at Amazon

Log in to the RaspberryPi via SSH

To start, you must first log in to the Rasp Pi with Putty via SSH. How to do this is in the article RaspberryPi - Control the RaspberryPi via SSH described.

After entering your username and password you can enter the first commands.

Update package management

The package management in Linux is a "central place" through which various software packages can be installed. In order for this to work reliably, the lists and sources of the package management should be updated before each installation of new packages.

To start the update of the package management you have to enter the following command.
sudo apt-get update && sudo apt-get upgrade
Depending on how long ago your last update of the package management was, this process can now take a while. The lists that refer to the individual package sources are updated first.
After that, the packages themselves are updated. Since additional memory is occupied, you will be asked again for your consent. You have to confirm this with a "J" and "Enter".
Once the update is complete, you will see a small summary of the duration and scope of the update.

Install PIP (if necessary)

So that you can install the GPIOzero python library in the next step, the python package manager (pip) must first be installed. This is usually already installed. If not, see this step to install it.

Run the following command to install PIP.

sudo apt install python3-pip -y

Install GPIOzero python library (if required)

The program to display the GPIO pinout is part of the GPIOzero python library. If you don't have it, you have to install it first.

Run the following command to install the python library.

pip3 install gpiozero

Show GPIO pinout of Raspberry Pi

Now you are finally ready to display the GPIO pinout.

To do this, simply run the following command.


Your RaspberryPi

You can also find more information about this command in the Raspberry Pi documentation.

More articles about Raspberry Pi

You can find more information about Raspberry Pi in the following categories.

Have fun with the project

I hope everything worked as described for you. If not or you have questions or suggestions please let me know in the comments. I will then add this to the article if necessary.
Ideas for new projects are always welcome. 🙂

PS Many of these projects - especially the hardware projects - cost a lot of time and money. Of course I do this because I enjoy it, but if you think it's cool that I share the information with you, I would be happy about a small donation to the coffee fund. 🙂

Buy Me a Coffee at       

Kommentar hinterlassen

Your email address will not be published. Erforderliche Felder sind mit * markiert

This site uses Akismet to reduce spam. Learn how your comment data is processed.