What are GPIO pins on Raspberry Pi?

If you click our links and make a purchase, we may earn an affiliate commission. Learn more

GPIO stands for General Purpose Input/Output. On a Raspberry Pi, it refers to the pins on the board. They allow the Raspberry Pi to interact with external electronics in various projects (LEDs, sensors, buttons, etc.).

gpio pins raspberry pi

GPIO is a key feature of a Raspberry Pi, and explains (in part) its success as a device for learning to code, for DIY and robotics projects. Believe me, having done tons of useless projects at school to learn programming, learning with something concrete, visual, where you can see your result with your own eyes and not in log files is much more appealing.

Lost in the terminal? Grab My Pi Cheat-Sheet!
Download the free PDF, keep it open, and stop wasting time on Google.
Download now

These pins are input/output because they can be programmed to either receive data (input) or send a signal (output). This is usually done using Python code, which is the default on Raspberry Pi, but other languages are supported (such as C/C++).

Lost in the terminal? Grab My Pi Cheat-Sheet!
Download the free PDF, keep it open, and stop wasting time on Google.
Download now
Lost in the terminal? Grab My Pi Cheat-Sheet!
Download the free PDF, keep it open, and stop wasting time on Google.
Download now

I don’t want to get into technical details here, but just as an introduction, each pin has a different number and role that you will use in your code to read or send a signal. You can check the picture below to get an idea, and I have a full article with the GPIO pinout here.

Lost in the terminal? Grab My Pi Cheat-Sheet!
Download the free PDF, keep it open, and stop wasting time on Google.
Download now

Then check out these articles for an introduction to using Python and GPIO pins:

And the best way to learn is to find a project that interests you and try to build it on your end: