

GPIOs will allow you to read some basic sensors (ex: infrared), control some actuators (those which are working with a ON/OFF mode), and communicate with other hardware boards, such as Raspberry Pi, Arduino, Beaglebone, Jetson Nano, etc. If you embed your Raspberry Pi board with some hardware components, the GPIO header will become quite useful. Basically that’s one pin you can use to write data to external components (output), or read data from external components (input).

Now let’s see how the other 26 GPIOs are used for communication. Well, that’s 14 slots already taken for GND, power supply and reserved pins. There are many other available pins for you to use. If you just begin with Raspberry Pi 4 pins, just don’t connect anything to those pins. They are usually used for I2C communication with an EEPROM. (Well there is a way to power the Raspberry Pi from the GPIO header, but you have a high probability of burning it, so just use the micro-USB port)Īnd just another word of caution: as previously said in the Ground pins section, don’t ever connect one of the power pin directly to one of the GND of the Raspberry Pi 4! Reserved pins The power pins are used as a source to power external components, not to power the Raspberry Pi itself from an external source. For that you’ll need an external power source. Note that they are certainly not powerful enough to actuate motors such as servo or stepper motors. Those pins can be used to power components such as sensors or small actuators. You can find 2 pins bringing 3.3V and 2 pins bringing 5V.

One additional warning: don’t ever connect the ground directly to a power supply pin (3.3V or 5V)! This creates a short circuit and can definitively burn your Raspberry Pi 4 board. You can find them with the 3 letters GND. Without that, you may burn some parts of the circuit, you may have components that do not function correctly, give wrong values, etc.Ĩ out of the 40 GPIOs are connected to the ground. If you add a new sensor/actuator to an existing circuit, connect the ground of the component to the ground of the circuit. If you connect 2 circuits together, add a wire between both grounds to make it common. Always remember to connect all components to the ground. The ground is very useful for making a common reference between all components in your circuit. If you have any doubt, double, triple check, and ask someone for help before you burn your board.īut if you follow some basic rules and common sense, you’ll have nothing to worry about!. So, be really careful when you plug something or when you create a test circuit. If you connect a ground (GND) pin to a 3.3V pin directly, well… You might destroy your Raspberry Pi board the second those pins are connected together. There are no real hardware safety when it comes to the Raspberry Pi hardware pins. A word of cautionīefore you plug anything to a Raspberry Pi 4 pin, you have to know that you can easily damage the board if you do something wrong. Now, let’s break down each pin or group of pins, and see what they can do. Here’s a complete overview with all the GPIOs and their primary function.
#Raspberry pi using wrong gutenprint how to
You are learning how to use Raspberry Pi to build your own projects?Ĭheck out Raspberry Pi For Beginners and learn step by step.Īfter watching the video, subscribe to the Robotics Back-End Youtube channel so you don’t miss the next tutorials! > Watch this video as an additional resource to this article:

If you’re interested about Arduino pins, check out this tutorial: Arduino Uno Pinout Guide. At the end I’ll give you more details about the differences between Arduino and Raspberry Pi pins. You’ll find out that the pins can be quite similar for some functionalities. In this complete Raspberry Pi 4 pins guide I’ll break down all the pins of the GPIO header, and you’ll learn what you can/can’t do with them.Īlong the way I’ll make some comparisons with the pins of the Arduino boards. It brings the Raspberry Pi 4 much closer to hardware applications, making it perfect for being embedded in a hardware application or product: a robot, a retro-gaming application, etc. GPIOs allow you to easily use hardware features and communication, directly from a computer – the Raspberry Pi microprocessor. This GPIO header is also the same for Raspberry Pi 3 boards, so this guide applies to both versions. The Raspberry Pi 4 board has a GPIO header with 40 pins.
