Content on this site may not be resold or reproduced. Copying is strictly prohibited. This post may contain affiliate links. See the Affiliate Disclosure for more information. Use of information on this site is at your own risk. View the Terms of Service.
The Raspberry Pi is a single board computer that also has a set of GPIO pins. GPIO stands for General Purpose Inputs and Outputs. Like Arduino, you can use the GPIO pins to attach sensors and electronic components. This tutorial is designed to give you a crash course in Raspberry Pi GPIO pins, and how to use them in code. The first step in using any GPIO pins is to gather the pinout from the data sheet. For this tutorial, we will refer to the Raspberry Pi 3 B+ model. You can use the steps in this tutorial for other flavors of Raspberry Pi so long as you use the pinout for that board. This tutorial also assumes you've already configured your Raspberry Pi and are ready to interface the GPIO pins with sensors.
Creator of LearnRobotics.org. Liz is a Robotics Engineer with experience ranging from Robotics Research at UPenn, Teaching at MIT, and Automated Manufacturing Engineering at United Technologies. Liz writes technical tutorials that anyone can follow and provides tips and tricks to help engineers grow their careers. Liz has authored over 100 pieces of unique content on this site. You can support her work here. Learn more about Learn Robotics on our About Us page.
You may also like
Welcome to Learn Robotics!
I’m Liz, a Robotics Engineer, and the creator of Learn Robotics.