# Source: advanced.adoc

*Note: This file could not be automatically converted from AsciiDoc.*

:figure-caption!:
== Advanced information

This section provides information for advanced users.

=== Mechanical drawings and schematics

Mechanical drawings and schematics are available on the Product Information Portal at the following locations:

* https://pip.raspberrypi.com/categories/652-raspberry-pi-camera-module-2[Camera Module 2]
* https://pip.raspberrypi.com/categories/786-raspberry-pi-camera-module-3[Camera Module 3]
* https://pip.raspberrypi.com/categories/659-raspberry-pi-high-quality-camera[HQ Camera Module]
* https://pip.raspberrypi.com/categories/810-raspberry-pi-global-shutter-camera[GS Camera Module]

NOTE: Board dimensions and mounting-hole positions for Camera Module 3 are identical to Camera Module 2. However, due to changes in the size and position of the sensor module, it isn't mechanically compatible with the camera lid for the Raspberry Pi Zero case.

In addition, the following figure shows the schematic for the Raspberry Pi CSI camera connector.

=== Pinout information

Use the information in this section to understand the function of the pins in the camera connectors.

==== Locating pin 1

The location of pin 1 on an FPC connector depends on the hardware.

The following descriptions assume you're holding your Raspberry Pi board with the chip and connectors facing up and the Raspberry Pi logo in the correct orientation. For Raspberry Pi Zero boards without the logo on the top side, orient the board with the GPIO along the edge furthest away from you.

** On Raspberry Pi flagship models and Raspberry Pi Zero devices, pin 1 is the pin furthest from you and closest to the GPIO header.
** On Raspberry Pi Compute Module IO boards, pin 1 is marked with a small circle or dot depending on the model.

When holding the Raspberry Pi camera board with the lens facing down and the connector facing to your right, pin 1 is the pin closest to you.

==== Camera connector pinout (15-Pin)

This is the pinout of the 15-pin Camera Serial Interface (CSI) connector used on flagship Raspberry Pi models prior to Raspberry Pi 5.
The connector is compatible with Amphenol SFW15R-2STE1LF.

Signal direction is specified from the perspective of the Raspberry Pi board.
The I2C lines (SCL and SDA) are pulled up to 3.3 V on the Raspberry Pi board.

The function and direction of the GPIO lines depend on the specific Camera Module in use. Typically, `CAM_IO0` is used as an active-high power enable. Some products don't include `CAM_IO1`.

|===
| Pin     | Name        | Description                   | Direction / Type

| 1       | GND         | -                             | Ground
| 2       | CAM_DN0     | D-PHY lane 0 (negative)       | Input, D-PHY
| 3       | CAM_DP0     | D-PHY lane 0 (positive)       | Input, D-PHY
| 4       | GND         | -                             | Ground
| 5       | CAM_DN1     | D-PHY lane 1 (negative)       | Input, D-PHY
| 6       | CAM_DP1     | D-PHY lane 1 (positive)       | Input, D-PHY
| 7       | GND         | -                             | Ground
| 8       | CAM_CN      | D-PHY Clock (negative)        | Input, D-PHY
| 9       | CAM_CP      | D-PHY Clock (positive)        | Input, D-PHY
|10       | GND         | -                             | Ground
|11       | CAM_IO0     | GPIO (for example, Power-Enable)  | Bidirectional, 3.3 V
|12       | CAM_IO1     | GPIO (for example, Clock, LED) | Bidirectional, 3.3 V
|13       | SCL         | I2C Clock                     | Bidirectional, 3.3 V
|14       | SDA         | I2C Data                    | Bidirectional, 3.3 V
|15       | 3V3         | 3.3 V Supply                   | Output
|===

.Schematic of the Raspberry Pi CSI camera connector.
image:images/RPi-S5-conn.png[camera connector, width="65%"]

==== Camera connector pinout (22-Pin)

This is the pinout of the 22-pin Camera Serial Interface (CSI) connector used on the Raspberry Pi Zero series, the Compute Module IO boards, and flagship models since Raspberry Pi 5.
The connector is compatible with Amphenol F32Q-1A7H1-11022.

Signal direction is specified from the perspective of the Raspberry Pi board.
The I2C lines (SCL and SDA) are pulled up to 3.3 V on the Raspberry Pi board.

The function and direction of the GPIO lines depend on the specific Camera Module in use. Typically, `CAM_IO0` is used as an active-high power enable. Some products don't include `CAM_IO1`.

|===
| Pin     | Name        | Description                      | Direction / Type

| 1       | GND         | -                                | Ground
| 2       | CAM_DN0     | D-PHY lane 0 (negative)          | Input, D-PHY
| 3       | CAM_DP0     | D-PHY lane 0 (positive)          | Input, D-PHY
| 4       | GND         | -                                | Ground
| 5       | CAM_DN1     | D-PHY lane 1 (negative)          | Input, D-PHY
| 6       | CAM_DP1     | D-PHY lane 1 (positive)          | Input, D-PHY
| 7       | GND         | -                                | Ground
| 8       | CAM_CN      | D-PHY Clock (negative)           | Input, D-PHY
| 9       | CAM_CP      | D-PHY Clock (positive)           | Input, D-PHY
|10       | GND         | -                                | Ground
|11       | CAM_DN2     | D-PHY lane 2 (negative)          | Input, D-PHY
|12       | CAM_DP2     | D-PHY lane 2 (positive)          | Input, D-PHY
|13       | GND         | -                                | Ground
|14       | CAM_DN3     | D-PHY lane 3 (negative)          | Input, D-PHY
|15       | CAM_DP3     | D-PHY lane 3 (positive)          | Input, D-PHY
|16       | GND         | -                                | Ground
|17       | CAM_IO0     | GPIO (for example, Power-Enable) | Bidirectional, 3.3 V
|18       | CAM_IO1     | GPIO (for example, Clock, LED)   | Bidirectional, 3.3 V
|19       | GND         | -                                | Ground
|20       | SCL         | I2C Clock                        | Bidirectional, 3.3 V
|21       | SDA         | I2C Data                         | Bidirectional, 3.3 V
|22       | 3V3         | 3.3 V Supply                     | Output
|===