Raspberry Pi 2 Model B Pin Diagram

The gnd 5v 3v3 uart i2c and spi bus pins are in the same places.
Raspberry pi 2 model b pin diagram. Newer computers and game consoles have replaced the old machines where most of us learned to program. A 40 pin gpio header is found on all current raspberry pi boards unpopulated on pi zero and pi zero w. 2x 5v power pins. Pi 4 model b.
The raspberry pi 2 uses a new processor model so some pin additional functions may have changed. If you are reading the raspberry pi copyright statement printed on the pcb then pin 1 is in the bottom left and pin 40 is in the top right. Pi 3 model a. Pins 1 2 39 40 are also labeled below j8 pinout 40 pin header the diagram below illustrates the gpio pinout using the pi4j wiringpi gpio numbering scheme.
Rev 1 pi alternate gpio bcm numbers for the original 26 pin model a and b pi. Pi 2 model b. Eben upton talks about the new raspberry pi 4 model b want to buy the. Wiringpi for gordon henderson s wiring pi library.
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 2 3 pin mappings. 5 minutes to read. The raspberry pi 2 model b board contains a single 40 pin expansion header labeled as j8 providing access to 28 gpio pins.
Raspberry pi 4 model b frequently asked questions faq benchmarking the raspberry pi 4 model b. Do you know your pi from pie. Pins 1 2 39 40 are also labeled below j8 pinout 40 pin header. The genesis of the raspberry pi came from a few college students concerned about the dwindling number and skills of students applying to study computer science.
The pwm specific pin is no longer marked as pwm and now 7 pins are marked as gpio gen0 to gpio gen6. Raspberry pi 4 model b default gpio pinout with poe header. 2x 3 3v. These are shown as a tooltip when you mouseover a pin.
These are the small numbers next to the header e g. Pi 1 model a b revision 2 0. 1x serial uarts rpi3 only includes mini uart 2x spi bus. Physical or board correspond to the pin s physical location on the header.
Hardware interfaces for the raspberry pi 2 and raspberry pi 3 are exposed through the 40 pin header j8 on the board. Prior to the pi 1 model b 2014 boards comprised a shorter 26 pin header. The same gpio pins are used for the raspberry pi 2 e g. Pi 3 model b.
The raspberry pi 3b board contains a single 40 pin expansion header labeled as j8 providing access to 28 gpio pins. 1x i2c bus. Raspberry pi 2 model b model b model a model a cmdk processor chipset broadcom bcm2837 64bit armv7 quad core processor powered single board computer running at 1250mhz broadcom bcm2836 32bit armv7 quad. 24x gpio pins.
40 pin 2 54 mm 100 mil expansion header. Pi 3 model b.