## Connectors M8, M12

M8 aux connector has 8pin female A-coded connector and the M12 ethernet has 8pin female X-coded connector. Cameras also include an
M8 connector cap for waterproofing in case the M8 connector wouldn't be used.

#### RVC4

| Pin | M12 pin | M8 pin | M8 functionality |
| --- | --- | --- | --- |
| 1 | Eth MX0+ | GPIO_20/5V_RX | Either a 5V GPIO, or UART RX |
| 2 | Eth MX0- | FSYNC/STROBE_5V | FSYNC is the default, STROBE can be enabled |
| 3 | Eth MX1+ | USB D+ | USB 2.0 Host interface (Can't be used alongside USB-C interface) |
| 4 | Eth MX1- | USB D- | USB 2.0 Host interface (Can't be used alongside USB-C interface) |
| 5 | Eth MX3+ | 5V | This pin is used for sourcing 5V power (max 5W) to accessory devices connected to the M8 connector. |
| 6 | Eth MX3- | GPIO_21/5V_TX | Either a 5V GPIO, or UART TX |
| 7 | Eth MX2+ | DET_PIN | Used to detect what device is connected, can't be used for any other purpose |
| 8 | Eth MX2- | GND | Ground |

#### Newer devices (eg. SR POE, TOF)

| Pin | M12 pin | M8 pin | M8 functionality |
| --- | --- | --- | --- |
| 1 | Eth MX0+ | BOOT | Pull this pin high with 10k resistor at startup for **USB boot**. |
| 2 | Eth MX0- | FSYNC ISO | Isolated Frame synchronization input signal for cameras |
| 3 | Eth MX1+ | USB D+ | USB 2.0 interface that can be used to connect to the OAK device (eg. reflash) if USB boot is enabled
(via AUX GPIO 3V3). |
| 4 | Eth MX1- | USB D- | USB 2.0 interface that can be used to connect to the OAK device (eg. reflash) if USB boot is enabled
(via AUX GPIO 3V3). |
| 5 | Eth MX3+ | VBUSIN | This pin is used for sourcing 5V power to accessory devices connected to the M8 connector. If trying to
boot the device in USB boot mode, this pin can also sink current. |
| 6 | Eth MX3- | Strobe ISO | Isolated Strobe output signal for cameras |
| 7 | Eth MX2+ | GPIO 5V | GPIO 5V control signal |
| 8 | Eth MX2- | GND | Ground |

External triggering: Sensors require 1V8 rising edge on FSYNC for the trigger event. The input trigger voltage should be 5V (goes
through a level shifter to 1V8). For an example, see [External FSYNC
Example](https://docs.luxonis.com/hardware/platform/deploy/frame-sync.md).

#### Older devices

| Pin | M12 pin | M8 pin | M8 functionality |
| --- | --- | --- | --- |
| 1 | Eth MX0+ | AUX GPIO 3V3 | 3V3 auxiliary GPIO **52**. Pull this pin high with 10k resistor at startup for **USB boot**. |
| 2 | Eth MX0- | FSYNC ISO | Isolated Frame synchronization input signal for cameras |
| 3 | Eth MX1+ | USB D+ | USB 2.0 interface that can be used to connect to the OAK device (eg. reflash) if USB boot is enabled
(via AUX GPIO 3V3). |
| 4 | Eth MX1- | USB D- | USB 2.0 interface that can be used to connect to the OAK device (eg. reflash) if USB boot is enabled
(via AUX GPIO 3V3). |
| 5 | Eth MX3+ | VBUSIN | This pin is used for sourcing 5V power to accessory devices connected to the M8 connector. If trying to
boot the device in USB boot mode, this pin can also sink current. |
| 6 | Eth MX3- | Strobe ISO | Isolated Strobe output signal for cameras (Open Collector) |
| 7 | Eth MX2+ | Isolated GND | Isolated ground for Strobe/FSYNC |
| 8 | Eth MX2- | GND | Ground |

External triggering: Sensors require 1V8 rising edge on FSYNC for the trigger event. We are using an optocoupler and ESD
protection diode, so the input trigger voltage should be 12V (up to 24V) and the trigger logic is reversed, so trigger event
happens at 0V on the FSYNC line. For an example, see [External FSYNC
Example](https://docs.luxonis.com/hardware/platform/deploy/frame-sync.md).
