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 "handicraft 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.
I know the following tips are always somehow annoying and seem unnecessary. But unfortunately, many people who knew "better" have already lost eyes, fingers or other things or injured themselves due to carelessness. In comparison, a data loss is almost not worth mentioning, 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 an injury or other trouble.
Affiliate links/advertising links
The links to online stores listed here are so-called affiliate links. If you click on such an affiliate link and make a purchase via this link, Nerdiy.com will receive a commission from the respective online store or provider. For you the price does not change. If you make your purchases through these links you support Nerdiy.com to be able to offer more useful projects in the future. 🙂
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.
- RaspberryPi - Setup for Nerdiys!
- RaspberryPi – The first configuration!
- RaspberryPi - Controlling the RaspberryPi via SSH
In the following lists you will find all the parts you need to implement this article.
|1x||Screwdriver set Buy at Amazon|
|1x||SD card reader Buy at Amazon|
|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.
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.
sudo apt-get update && sudo apt-get upgrade
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.
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 also always welcome 🙂 .
P.S. Many of these projects - especially the hardware projects - cost a lot of time and money. Of course I do it because I enjoy it, but if you think it's cool that I share the info about it with you, I'd appreciate a small donation to the coffee fund 🙂 .