Raspberry Pi 3 Gpio Pin Map
Any of the gpio pins can be designated in software as an input or output pin and used for a wide range of purposes.
Raspberry pi 3 gpio pin map. The raspberry pi has two i2c connections at gpio 2 and 3 sda and scl are for i2c0 master and physical pins 27 and 28 are i2c pins that enable the pi to talk to compatible hat hardware. But yours are the best clearest by far. As an example the following code opens gpio 5 as an output and writes a digital 1 out on the pin. The power and ground pins are used to power external circuitry.
Hardware interfaces for the raspberry pi 2 and raspberry pi 3 are exposed through the 40 pin header j8 on the board. Raspberry pi 2 3 pin mappings. 1x serial uarts rpi3 only includes mini uart 2x spi bus. Support pinout xyz on patreon.
It also includes dozens of pinouts for raspberry pi add on boards hats and phats. Especially pins 3 and 5 which are different between revision 1 and 2. Solo raspberry pi 2. The comprehensive gpio pinout guide for the raspberry pi.
I also have a book raspberry pi projects for the evil genius which has some diagrams and tables. 5 minutes to read. Power and ground pins are what let your raspberry pi power components like leds and motors in your project. A 40 pin gpio header is found on all current raspberry pi boards unpopulated on pi zero and pi zero w.
Raspberry pi 2 only. 2x 5v power 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. Gpio 35 47 are not available on raspberry pi 3.
It s the 40 pins you can see on the raspberry pi near the edge. Gpio 35 47 non sono disponibili in raspberry pi 3. Prior to the pi 1 model b 2014 boards comprised a shorter 26 pin header. The raspberry pi 4 board has a gpio header with 40 pins.
The goal of the gpio pins is to add some extensions to your raspberry pi for example most of the raspberry pi hats use these pins to connect with the raspberry pi you can also create your electronic circuit by using these gpio pins with cables led and other accessories. Gpios allow you to easily use hardware features and communication directly from a computer the raspberry pi microprocessor. 2x 3 3v. I started from the docs of rpi gpio library but those where abit sparse about how to map these numbers to the actual board pins.
This gpio header is also the same for raspberry pi 3 boards so this guide applies to both versions. Esempio gpio gpio sample. Instead a new serial port dev ttys0 has been provided which is implemented with a software based uart miniuart. Il codice seguente ad esempio apre gpio 5 come output e scrive un 1 digitale nel pin.
All raspberry pis with the standard 40 gpio pins will have two 5v pins and two 3 3v pins always in the same place. Along with the 5v and 3 3v pins 8 ground pins are available.