Raspberry Pi Gpio Header Quick Reference
Connect the arduino to the raspberry pi.
Raspberry pi gpio header quick reference. Raspberry pi pinout diagram. Any of the gpio pins can be designated in software as an input or output pin and used for a wide range of purposes. The comprehensive gpio pinout guide for the raspberry pi. Support pinout xyz on patreon.
The raspberry pi 2 3 and 4 have a 40 pin header that supports uart i2c spi pcm and has numerous gpio pins. This gpio pinout is designed to be both a quick and interactive reference to the raspberry pi gpio pins plus a comprehensive guide to your raspberry pi s gpio interfaces. If you are going to have a ruler on your desk or in your laptop bag it might as well be one of these. By matt on july 14 2015 news.
First let s take a quick look at the hardware. The python package used for raspberry pi gpio programming is rpi gpio. The raspberry pi allows peripherals and expansion boards such as rpi gertboard to access the cpu by exposing the inputs and outputs. It is always good to have a descriptive pinout diagram printed out for quick reference as well as a multimeter on the work desk.
A 40 pin gpio header is found on all current raspberry pi boards unpopulated on pi zero and pi zero w. This part has been updated to add the pinouts for the b and a. Raspio gpio quick reference ruler for raspberry pi 0. Raspberry pi and rpi gpio 2.
It additionally has pins for 5v and 3 3v power along with numerous ground pins. The raspberry pi gpio pins including the tx and rx serial port pins are not 5v compatible therefore we must ensure the arduino does not deliver the full 5v to the pi. The raspberry header is the key to its ability to interface with the real world. Prior to the pi 1 model b 2014 boards comprised a shorter 26 pin header.
Page 3 gives a list of links to all 13 of my rpi gpio tutorial pages including yesterday s. 6 inch ruler with a rpi gpio programming reference and gpio header guide printed onto it. When connecting sensors and other components it s very important to connect to the right pins. The pi either uses a 40 pin or 26 pin depending on the model and it is important to understand how those pins are arranged and labelled.
Page 2 has a raspberry pi gpio pinout diagram for all versions except compute module. How to use interrupts with python on the raspberry pi and rpi gpio part 2 3. How to use interrupts with python on the raspberry pi and rpi gpio part 3 4. Detecting both rising and falling edges with rpi gpio software pwm 1.
Unless you are a 12 inch sort of person. Armed with some understanding about the pins let us move to programming. Only covers p1 header. It also includes dozens of pinouts for raspberry pi add on boards hats and phats.