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.

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++).

Recommended next step
Master Raspberry Pi in 30 Days

If you want a clearer path than jumping from tutorial to tutorial, my book gives you a step-by-step roadmap to really understand your Raspberry Pi.

Check the book here

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.

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: