Using a IDC26/DB-25 ribbon cable with the GPIO of a Raspberry Pi is quite useful. It fits perfect on the GPIO port. But there are 2 drawbacks:
- GPIO7 is not connected because DB-25 port has only 25 pins and Raspberry Pi’s GPIO port has 26.
- The pinout numbers on the DB-25 side does not match the pinout numbers in the GPIO side.
TL;DR: This is the pinout in the DB-25 side if you use a IDC26/DB-25 ribbon cable:
In case you want to know why look first at the pinout of the Raspberry Pi’s GPIO:
And now the pinout correspondence on both DB-25 and IDC26 side of the ribbon cable:
As you can see the pin 2 in the GPIO port corresponds to the pin 14 in the DB-25 port, etc. This are the functions of every pin in the DB-25 port if you use a IDC26/DB-25 ribbon cable with your Raspberry Pi:
- 3.3V
- GPIO2 (I2C)
- GPIO3 (I2C)
- GPIO4
- GND
- GPIO17
- GPIO27
- GPIO22
- 3.3V
- GPIO10 (SPI)
- GPIO9 (SPI)
- GPIO11 (SPI)
- GND
- 5V
- 5V
- GND
- GPIO14 (UART)
- GPIO15 (UART)
- GPIO18 (PWM)
- GND
- GPIO23
- GPIO24
- GND
- GPIO25
- GPIO8 (SPI)
Raspberry Pi GPIO image by raspberrypi.org
http://es.wikipedia.org/wiki/Conector_IDC
http://es.wikipedia.org/wiki/D-sub