Raspberry Pi MIPI CSI Connector Pinout

A complete knowledge base of Raspberry Pi camera 15-pin and 22-pin camera cables and connectors.

raspberry pi camera pinout camera 2

Raspberry Pi Camera Interface

There are two different kinds of Raspberry Pi CSI camera connectors: 15-pin and 22-pin. The 15-pin connector is mostly seen on standard Raspberry Pi models (A&B series) and Pi camera modules; the 22-pin is on Raspberry Pi Zero-W and Compute Module IO Board. Arducam also uses derived versions of these connectors, usually with different FPC contact positions, to accommodate different camera board designs.

15-Pin Connector Types

The 15-pin connector is the most used one. Unless otherwise indicated, It’s the “default” connector in terms of Raspberry Pi camera. You will see it in mainstream Raspberry Pi products such as the Model A&B series as well as V1&V2 camera modules.

There are at least three different types of 15-pin connectors that you’ll see in Pi-camera-related hardware.

Connector on the V1.3 or V2.1 Pi Camera Board

It is a 1.0mm pin pitch 15-position right angle and lower contact FFC or FPC connector.

Connector PN: SFW15R-2STE1LF

Connector on the Raspberry Pi Model A and B or B Plus

It is 1.0mm pin pitch 15 position vertical surface mount FFC or FPC connector.

Connector PN: 1-1734248-5

Derived or Alternative Connectors on Arducam Raspberry Pi Camera Products

Apart from the two 15-pin connectors above, Arducam also uses a derived version with an upper contact. Its FPC contact part is on the upper side other than the camera board side.

Connector PN: SFW15R-2STE2LF

No matter what type of the connector model is, the pinout for these camera connectors is the same.

The following table is the pin definition of the camera board, the signals are input or output type. Vice versa these pins on the RPI board are in reverse direction.

Raspberry Pi Camera Pinout (15-Pin)

Pin # Name Description
1 GND Ground
2 CAM_D0_N MIPI Data Lane 0 Negative
3 CAM_D0_P MIPI Data Lane 0 Positive
4 GND Ground
5 CAM_D1_N MIPI Data Lane 1 Negative
6 CAM_D1_P MIPI Data Lane 1 Positive
7 GND Ground
8 CAM_CK_N MIPI Clock Lane Negative
9 CAM_CK_P MIPI Clock Lane Positive
10 GND Ground
11 CAM_IO0 Power Enable
12 CAM_IO1 LED Indicator
13 CAM_SCL I2C SCL
14 CAM_SDA I2C SDA
15 CAM_3V3 3.3V Power Input

22-Pin Connector Types

Connector on the Raspberry Pi Zero W

Connector on the Raspberry Pi Compute Module IO Board

It is 0.5mm fine pitch 22-position lower(or bottom) contact FFC or FPC connector.

Connector PN: 54548-2271

The following table is the pin definition on the Pi ZERO-W or Compute Module IO Board.

Raspberry Pi Camera Pinout (22-Pin)

Pin # Name Description
1 GND Ground
2 CAM_D0_N MIPI Data Lane 0 Negative
3 CAM_D0_P MIPI Data Lane 0 Positive
4 GND Ground
5 CAM_D1_N MIPI Data Lane 1 Negative
6 CAM_D1_P MIPI Data Lane 1 Positive
7 GND Ground
8 CAM_CK_N MIPI Clock Lane Negative
9 CAM_CK_P MIPI Clock Lane Positive
10 GND Ground
11CAM_D2_N MIPI Data Lane 2 Negative
12 CAM_D2_P MIPI Data Lane 2 Positive
13 GND Ground
14 CAM_D3_N MIPI Data Lane 3 Negative
15 CAM_D3_P MIPI Data Lane 3 Positive
16 GND Ground
17 CAM_IO0 Power Enable
18 CAM_IO1 LED Indicator
19 GND Ground
20 CAM_SCL I2C SCL
21 CAM_SDA I2C SDA
22 CAM_3V3 3.3V Power Output

15 to 22 Pin FPC Adapter Schematic

The following schematic shows the diagram of the pin mapping from the 15-pin to 22-pin. Some of the 22 pins are not used in this configuration.

The Compute Module camera adapter board is also based on this schematic.

15 22 pin pi cam map expand

The 15 to 22 Pin FPC Adapter Schematic

Compute Module camera adapter 1

The Compute Module camera adapter board

Various FPC Cable Lengths

The default Pi Camera cable

The default Raspberry Pi Camera FPC cable is 15cm long opposite side contactor.

15-pin to 15-pin standard pi camera FFC cable top and bottom view.

15-pin to 22-pin standard Pi camera FFC cable top and bottom view.

It covers most of the applications, in some cases, users might want longer or even short cables. So Arducam covers these requirements and provides wide range selections of the Raspberry Pi camera cables.

Arducam Camera Cable for Raspberry Pi (15-pin)

Arducam Camera Cable for Raspberry Pi (15-to-22-pin)

38mm 15-pin to 22-pin standard pi camera FPC cable top and bottom view.

73mm 15-pin to 22-pin standard Pi camera FPC cable top and bottom view.

Troubleshooting

The following illustrations show the WRONG ways to connect the camera cable. Make sure you are not connecting the camera cable in the following ways if you encounter any problem while using the camera.

Cable to Pi Zero: Gold contacts facing up, WRONG

Cable to Pi 3, Pi4: Silver contacts facing audio jack, WRONG

Cable to Arducam camera multiplexer: Input contacts facing PCB, WRONG