Voltage for Raspberry Input and Output GPIO Pins
As Output you can define 3V3 GPIO Pins. The output pin can be set to high (3V3) or low (0V).
- Output
- Maximum total of all pins 50 mA.
- Default 8 mA max per pin. (Returns to this configuration after reset.)
- Software configurable from 2 mA to 16 mA.
- Input
- Threshold of 1.8V
- Maximum 0.5 mA
- Use a 6Kohm resistor to ensure that current from a 3.3V source cannot exceed 0.5 mA
- ( 3.3V / 6000Ω = .00055A )
More Pins
As well as simple input and output devices, the GPIO pins can be used with a variety of alternative functions, some are available on all pins, others on specific pins.
- PWM (pulse-width modulation)
- Software PWM available on all pins
- Hardware PWM available on GPIO12, GPIO13, GPIO18, GPIO19
- SPI
- SPI0: MOSI (GPIO10); MISO (GPIO9); SCLK (GPIO11); CE0 (GPIO8), CE1 (GPIO7)
- SPI1: MOSI (GPIO20); MISO (GPIO19); SCLK (GPIO21); CE0 (GPIO18); CE1 (GPIO17); CE2 (GPIO16)
- I2C
- Data: (GPIO2); Clock (GPIO3)
- EEPROM Data: (GPIO0); EEPROM Clock (GPIO1)
- Serial
- TX (GPIO14); RX (GPIO15)
GPIO Pins
3V3 power | 1 | 2 | 5V power |
GPIO 2 (SDA) | 3 | 4 | 5V power |
GPIO 3 (SCL) | 5 | 6 | Ground |
GPIO 4 (GPCLK0) | 7 | 8 | GPIO 14 (TXD) |
Ground | 9 | 10 | GPIO 15 (RXD) |
GPIO 17 | 11 | 12 | GPIO 18 (PCM_CLK) |
GPIO 27 | 13 | 14 | Ground |
GPIO 22 | 15 | 16 | GPIO 23 |
3V3 power | 17 | 18 | GPIO 24 |
GPIO 10 (MOSI) | 19 | 20 | Ground |
GPIO 9 (MISO) | 21 | 22 | GPIO 25 |
GPIO 11 (SCLK) | 23 | 24 | GPIO 8 (CE0) |
Ground | 25 | 26 | GPIO 7 (CE1) |
GPIO 0 (ID_SD) | 27 | 28 | GPIO 1 (ID_SC) |
GPIO 5 | 29 | 30 | Ground |
GPIO 6 | 31 | 32 | GPIO 12 (PWM0) |
GPIO 13 (PWM1) | 33 | 34 | Ground |
GPIO 19 (PCM_FS) | 35 | 36 | GPIO 16 |
GPIO 26 | 37 | 38 | GPIO 20 (PCM_DIN) |
Ground | 39 | 40 | GPIO 21 (PCM_DOUT) |