Raspberry Pi MIPI CSI Camera Pinout
A complete knowledge base of Raspberry Pi camera 15-pin and 22-pin camera cables and connectors.
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.
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.
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.
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)
|2||CAM_D0_N||MIPI Data Lane 0 Negative|
|3||CAM_D0_P||MIPI Data Lane 0 Positive|
|5||CAM_D1_N||MIPI Data Lane 1 Negative|
|6||CAM_D1_P||MIPI Data Lane 1 Positive|
|8||CAM_CK_N||MIPI Clock Lane Negative|
|9||CAM_CK_P||MIPI Clock Lane Positive|
|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.
The following table is the pin definition on the Pi ZERO-W or Compute Module IO Board.
Raspberry Pi Camera Pinout (22-Pin)
|2||CAM_D0_N||Output||Pixel Data Lane0 Negative|
|3||CAM_D0_P||Output||Pixel Data Lane0 Positive|
|5||CAM_D1_N||Output||Pixel Data Lane1 Negative|
|6||CAM_D1_P||Output||Pixel Data Lane1Positive|
|8||CAM_CK_N||Output||Pixel Clock Output Form Sensor Negaitive|
|9||CAM_CK_P||Output||Pixel Clock Output Form Sensor Positive|
|11||CAM_D2_N||Output||Pixel Data Lane2 Negative|
|12||CAM_D2_P||Output||Pixel Data Lane2 Positive|
|14||CAM_D3_N||Output||Pixel Data Lane3 Negative|
|15||CAM_D3_P||Output||Pixel Data Lane3 Positive|
|20||SCL||Input||SCCB serial interface clock input|
|21||SDA||I/O||SCCB serial interface data I/O|
|22||VCC||Power||3.3V Power Supply|
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.
The 15 to 22 Pin FPC Adapter Schematic
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.
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