1Raspberry Pi {#rasppi} 2============ 3 4The Raspberry Pi is based on the Broadcom BCM2835 system on a chip, which 5includes an ARM1176JZF-S 700 MHz processor, VideoCore IV GPU and was originally 6shipped with 256 megabytes of RAM, later upgraded (Model B & Model B+) to 512 7MB. The Raspberry Pi 2 is based on an armv7 CPU but shares a number of 8similarities with the original. 9 10Revision Support 11---------------- 12Raspberry Pi A/B/A+/B+ 13Raspberry Pi 2 B 14 15Interface notes 16--------------- 17 18**PWM** Whilst the Raspberry Pi is meant to have 1 PWM channel this is currently not supported. 19 20Pin Mapping 21----------- 22 23This pin mapping refers to the first generation 'B' model Pi but gives an idea 24as to what the values are from mraa. Note that there is an emum to use wiringPi 25style numbers. 26 27| MRAA Number | Physical Pin | Function | 28|-------------|--------------|----------| 29| 1 | P1-01 | 3V3 VCC | 30| 2 | P1-02 | 5V VCC | 31| 3 | P1-03 | I2C SDA | 32| 4 | P1-04 | 5V VCC | 33| 5 | P1-05 | I2C SCL | 34| 6 | P1-06 | GND | 35| 7 | P1-07 | GPIO(4) | 36| 8 | P1-08 | UART TX | 37| 9 | P1-09 | GND | 38| 10 | P1-10 | UART RX | 39| 11 | P1-11 | GPIO(17) | 40| 12 | P1-12 | GPIO(18) | 41| 13 | P1-13 | GPIO(21) | 42| 14 | P1-14 | GND | 43| 15 | P1-15 | GPIO(22) | 44| 16 | P1-16 | GPIO(23) | 45| 17 | P1-17 | 3V3 VCC | 46| 18 | P1-18 | GPIO(24) | 47| 19 | P1-19 | SPI MOSI | 48| 20 | P1-20 | GND | 49| 21 | P1-21 | SPI MISO | 50| 22 | P1-22 | GPIO(25) | 51| 23 | P1-23 | SPI SCL | 52| 24 | P1-24 | SPI CS0 | 53| 25 | P1-25 | GND | 54| 26 | P1-26 | SPI CS1 | 55 56 57The following pin mapping applies to the new Raspberry Pi model 2 and B+. Note that GPIO(21) is now GPIO(27) 58 59| MRAA Number | Physical Pin | Function | 60|-------------|--------------|----------| 61| 1 | P1-01 | 3V3 VCC | 62| 2 | P1-02 | 5V VCC | 63| 3 | P1-03 | I2C SDA | 64| 4 | P1-04 | 5V VCC | 65| 5 | P1-05 | I2C SCL | 66| 6 | P1-06 | GND | 67| 7 | P1-07 | GPIO(4) | 68| 8 | P1-08 | UART TX | 69| 9 | P1-09 | GND | 70| 10 | P1-10 | UART RX | 71| 11 | P1-11 | GPIO(17) | 72| 12 | P1-12 | GPIO(18) | 73| 13 | P1-13 | GPIO(27) | 74| 14 | P1-14 | GND | 75| 15 | P1-15 | GPIO(22) | 76| 16 | P1-16 | GPIO(23) | 77| 17 | P1-17 | 3V3 VCC | 78| 18 | P1-18 | GPIO(24) | 79| 19 | P1-19 | SPI MOSI | 80| 20 | P1-20 | GND | 81| 21 | P1-21 | SPI MISO | 82| 22 | P1-22 | GPIO(25) | 83| 23 | P1-23 | SPI SCL | 84| 24 | P1-24 | SPI CS0 | 85| 25 | P1-25 | GND | 86| 26 | P1-26 | SPI CS1 | 87| 27 | P1-27 | I2C SDA1 | 88| 28 | P1-28 | I2C SCL1 | 89| 29 | P1-29 | GPIO(5) | 90| 30 | P1-30 | GND | 91| 31 | P1-31 | GPIO(6) | 92| 32 | P1-32 | GPIO(12) | 93| 33 | P1-33 | GPIO(13) | 94| 34 | P1-34 | GND | 95| 35 | P1-35 | SPI MISO1| 96| 36 | P1-36 | GPIO(16) | 97| 37 | P1-37 | GPIO(26) | 98| 38 | P1-38 | SPI MOSI1| 99| 39 | P1-39 | GND | 100| 40 | P1-40 | SPI SCL1 | 101