> This is part 1 of 3 of the full documentation (pages 1–100 of 298).
> The content is paginated: fetch every part to see all of it.
> Next part: https://docs.arkelectron.com/llms-full.txt/1
> Page index: https://docs.arkelectron.com/llms.txt

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
This site has an agentic ask interface you may use to query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.arkelectron.com/index.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

---

# Home

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2FGQuUs5hXkD7CY02qvs5U%2Fmaster%20logo_transparent%20background_RGB_PNG%20-%20Cropped%20(Phone).png?alt=media&amp;token=d965cf19-3b77-438e-b7aa-1926632dc2ac" alt=""><figcaption></figcaption></figure>

{% content-ref url="/pages/GLST3ZCO49Xk3K3Arg9L" %}
[Knowledge Base](/knowledge-base/knowledge-base)
{% endcontent-ref %}

{% content-ref url="/pages/WR9St4ewUyVZVL0rHy6U" %}
[Embedded Computers](/products/embedded-computers)
{% endcontent-ref %}

{% content-ref url="/pages/lxn9i0DXXmY8dD3Tn7N7" %}
[Flight Controllers](/products/flight-controller)
{% endcontent-ref %}

{% content-ref url="/pages/vxg0q0V2mrI3X3f9KOSO" %}
[ESCs](/products/electronic-speed-controller)
{% endcontent-ref %}

{% content-ref url="/pages/8Y6RUsSBLbEKsLZVfx3h" %}
[Radios](/products/radio)
{% endcontent-ref %}

{% content-ref url="/pages/bLkF6HeVkoY5REUrNiFR" %}
[Sensors](/products/sensor)
{% endcontent-ref %}

{% content-ref url="/pages/ZW5H67lpP8TVZh1ivU0N" %}
[GPS](/products/gps)
{% endcontent-ref %}

{% content-ref url="/pages/9vJfny2gwzbvpcXllkH2" %}
[Power Modules](/products/power)
{% endcontent-ref %}

{% content-ref url="/pages/8BOqrxpN7NzHvR6k1Eba" %}
[IMUs](/products/imu)
{% endcontent-ref %}

{% content-ref url="/pages/ARxUtSQRs8ixeaFjsrEs" %}
[Accessories](/products/accessories)
{% endcontent-ref %}

{% content-ref url="/pages/z8oq9amdLqtf04oIEfDv" %}
[Airframes](/products/airframes)
{% endcontent-ref %}

{% content-ref url="/pages/sMVc60WefCOLazj3ZOME" %}
[ROS2 & PX4](/tutorials/ros2-and-px4)
{% endcontent-ref %}

{% content-ref url="/pages/boq7xpQCr7sGcBSU00iB" %}
[Radio Integration](/tutorials/radio-integration)
{% endcontent-ref %}

***

{% embed url="<https://arkelectron.com/>" %}
Webshop
{% endembed %}

{% embed url="<https://www.linkedin.com/company/ark-electronics-llc>" %}

<https://x.com/ARK_Electr0nics>


# Knowledge Base

Core concepts for working with ARK products, drone electronics, and embedded systems.

Reference pages covering core concepts for working with ARK products, drone electronics, and embedded systems.

{% content-ref url="/pages/ouMhukhelnOtJ32K0REZ" %}
[Microcontrollers](/knowledge-base/knowledge-base/microcontrollers)
{% endcontent-ref %}

{% content-ref url="/pages/dGUaOFVox2UtlbAw5Hqe" %}
[SWD Programming](/knowledge-base/knowledge-base/swd-programming)
{% endcontent-ref %}

{% content-ref url="/pages/k32VFyNfiBsHUDZCRczD" %}
[Serial Communication (UART)](/knowledge-base/knowledge-base/serial-communication-uart)
{% endcontent-ref %}

{% content-ref url="/pages/SL1pjYhfqE9YGKcw5UKE" %}
[CAN Bus](/knowledge-base/knowledge-base/can-bus)
{% endcontent-ref %}

{% content-ref url="/pages/4BbCZEqLQXpKEBNEgn4W" %}
[MAVLink](/knowledge-base/knowledge-base/mavlink)
{% endcontent-ref %}

{% content-ref url="/pages/LpJfs7RXdbAWX6WCbaaq" %}
[Connectors and Wiring](/knowledge-base/knowledge-base/connectors-and-wiring)
{% endcontent-ref %}

{% content-ref url="/pages/vir7X6J3wxfEUbNdprFF" %}
[Power and Grounding](/knowledge-base/knowledge-base/power-and-grounding)
{% endcontent-ref %}

{% content-ref url="/pages/LRLfP0DLR4dtkgEoZ6Rr" %}
[GPS Placement](/knowledge-base/knowledge-base/gps-placement)
{% endcontent-ref %}

{% content-ref url="/pages/ErcnVraCVi7cI3Pya3Sz" %}
[Communication Buses (I2C, SPI)](/knowledge-base/knowledge-base/communication-buses)
{% endcontent-ref %}

{% content-ref url="/pages/GV2RV5izsoBJE8mBB2Hk" %}
[Recommended Tools](/knowledge-base/knowledge-base/recommended-tools)
{% endcontent-ref %}

{% content-ref url="/pages/vARfEK4UNX5azdeGTN7c" %}
[ST-LINK Flashing Guide](/knowledge-base/knowledge-base/st-link-flashing-guide)
{% endcontent-ref %}

{% content-ref url="/pages/tB18bYz9kWARWJ45zruc" %}
[DroneCAN GUI Tool Guide](/knowledge-base/knowledge-base/dronecan-gui-tool-guide)
{% endcontent-ref %}

{% content-ref url="/pages/uAHalm4VQSrJRkfnwhcm" %}
[u-blox Firmware Update](/knowledge-base/knowledge-base/ublox-firmware-update)
{% endcontent-ref %}

{% content-ref url="/pages/teQGD4TM8fftXJ2bdhKZ" %}
[PX4 Log Encryption](/knowledge-base/knowledge-base/px4-log-encryption)
{% endcontent-ref %}


# Microcontrollers

What microcontrollers are, the STM32 family, firmware vs bootloaders, and the NuttX RTOS.

## What is a Microcontroller?

A microcontroller (MCU) is a small computer on a single chip. It contains a processor, memory, and input/output peripherals all in one package. Unlike a full computer (like a Raspberry Pi or Jetson), an MCU has no operating system by default, runs a single firmware image, and boots in milliseconds.

Microcontrollers are the core of nearly every ARK product. They read sensors, drive outputs, and handle communication buses — all in real time.

## How It Works

### The STM32 Family

ARK products use STM32 microcontrollers from STMicroelectronics. These are ARM Cortex-M based chips that are widely used in the drone industry.

| Series  | Core      | Example MCU   | Used In                        |
| ------- | --------- | ------------- | ------------------------------ |
| STM32F4 | Cortex-M4 | STM32F412CGU6 | ARK CANnode, ARK Flow, ARK MAG |
| STM32H7 | Cortex-M7 | STM32H743     | ARKV6X, ARK FPV                |

Key characteristics of STM32 MCUs:

* **Flash memory** — stores firmware persistently (survives power cycles)
* **SRAM** — working memory for runtime data (lost on power off)
* **Hardware peripherals** — UART, SPI, I2C, CAN, timers, ADC, and more are built into the chip
* **Clock speeds** — typically 100–480 MHz depending on the series

### Firmware vs Bootloader

An MCU runs two distinct pieces of software:

* **Bootloader** — a small program that lives at the start of flash memory. It runs first on power-up and decides whether to enter firmware update mode or jump to the main firmware. On ARK DroneCAN products, the bootloader enables firmware updates via CAN bus.
* **Firmware** — the main application. For flight controllers this is PX4 or ArduPilot. For DroneCAN sensors it is a PX4 CANnode build or AP\_Periph build.

The bootloader is flashed once (usually via [SWD](/knowledge-base/knowledge-base/swd-programming)) and rarely changes. Firmware is updated regularly as new versions are released.

### NuttX RTOS

PX4 runs on top of **NuttX**, a real-time operating system (RTOS). NuttX provides:

* A POSIX-like environment (file-based device access, shell commands)
* Task scheduling with deterministic timing
* Device drivers for STM32 peripherals

When you connect to the [debug console](/knowledge-base/knowledge-base/serial-communication-uart), you are interacting with the NuttX shell (NSH). You can list running tasks, read sensor data, and set parameters directly.

## How ARK Products Use It

* **Flight controllers** ([ARKV6X](/products/flight-controller/arkv6x), [ARK FPV](/products/flight-controller/ark-fpv)) run PX4 or ArduPilot on STM32H7 MCUs, handling sensor fusion, control loops, and communication at hundreds of Hz.
* **DroneCAN sensors** ([ARK CANnode](/products/sensor/ark-cannode), [ARK Flow](/products/sensor/ark-flow), [ARK MAG](/products/sensor/ark-mag)) run lightweight firmware on STM32F4 MCUs, reading a sensor and publishing data over [CAN bus](/knowledge-base/knowledge-base/can-bus).
* **ESCs** ([ARK 4IN1 ESC](/products/electronic-speed-controller/ark-4in1-esc)) use STM32F0 MCUs running [ARK32](https://github.com/ARK-Electronics/ARK32) for motor control.

## Common Pitfalls

* **Flashing the wrong firmware** — each MCU variant needs a firmware binary compiled specifically for it. An ARKV6X binary will not run on an ARK FPV, even though both use STM32H7 chips.
* **Forgetting the bootloader** — DroneCAN nodes need a bootloader flashed via SWD before they can accept firmware updates over CAN. If the bootloader is missing or corrupted, the node will not appear on the bus.
* **Confusing flash and SRAM** — parameters stored in flash persist across reboots. A mass erase (`st-flash erase`) wipes everything, including saved parameters.

## Further Reading

* [STM32 Product Page](https://www.st.com/en/microcontrollers-microprocessors/stm32-32-bit-arm-cortex-mcus.html)
* [NuttX Documentation](https://nuttx.apache.org/docs/latest/)
* [PX4 Autopilot Architecture](https://docs.px4.io/main/en/concept/architecture.html)
* [SWD Programming](/knowledge-base/knowledge-base/swd-programming) — how to flash firmware onto an MCU


# SWD Programming

What SWD is, how it works, what hardware you need, and when to use it.

## What is SWD?

SWD (Serial Wire Debug) is a two-wire debug and programming interface for ARM microcontrollers. It lets you flash firmware, set breakpoints, inspect memory, and access a debug console — all through a physical connection to the chip.

Every ARK product with an STM32 [microcontroller](/knowledge-base/knowledge-base/microcontrollers) exposes SWD through a debug connector. It is the most reliable way to flash firmware and the only way to recover a board with a corrupted bootloader.

## How It Works

SWD uses two signals plus ground:

| Signal | Name                 | Direction      | Purpose                                |
| ------ | -------------------- | -------------- | -------------------------------------- |
| SWDIO  | Serial Wire Data I/O | Bidirectional  | Data transfer between debugger and MCU |
| SWCLK  | Serial Wire Clock    | Debugger → MCU | Clock signal driven by the debugger    |
| GND    | Ground               | —              | Common reference                       |

The debugger (e.g., ST-LINK) connects to the MCU's internal debug port, giving it direct access to flash memory, registers, and peripherals. This works even if the firmware is completely broken — SWD operates at the hardware level, below any software.

### What You Need

* [**ST-LINK V3 Mini**](https://www.digikey.com/en/products/detail/stmicroelectronics/STLINK-V3MINIE/16284301) — programmer/debugger that connects to your computer via USB. The V3 Mini is recommended because it also provides a virtual serial port for [UART debug console](/knowledge-base/knowledge-base/serial-communication-uart) access through the same USB connection.
* [**ARK Pixhawk Debug Adapter**](https://arkelectron.com/product/ark-pixhawk-debug-adapter/) — routes the ST-LINK's STDC14 connector to the Pixhawk Standard 6-pin or 10-pin JST-SH debug connector found on ARK boards. Includes debug cables.

The connection chain looks like this:

```
Computer ↔ USB ↔ ST-LINK V3 Mini ↔ STDC14 Cable ↔ ARK Debug Adapter ↔ JST-SH Cable ↔ Board Debug Port
```

### When to Use SWD

Most firmware updates don't require SWD. The day-to-day methods depend on the type of board:

* **Flight controllers** (ARKV6X, ARK FPV, etc.) — firmware is typically loaded via QGroundControl over USB. SWD is not needed for routine updates.
* **DroneCAN nodes** (ARK CANnode, ARK Flow, ARK MAG, etc.) — the flight controller pushes firmware from its SD card to the node over the [CAN bus](/knowledge-base/knowledge-base/can-bus), or you can use the [DroneCAN GUI Tool](/knowledge-base/knowledge-base/dronecan-gui-tool-guide) directly. This is the normal update path once a bootloader is installed.
* **USB DFU** — a fallback used on some boards (like the [ARK FPV](/products/flight-controller/ark-fpv)) to flash a bootloader over USB when the board is placed into DFU mode. Rarely needed.

SWD is for situations where none of the above work:

* **Initial bootloader flash** — a brand-new or factory-fresh DroneCAN node has no bootloader. SWD is the only way to install one so the node can accept CAN firmware updates going forward.
* **Recovery** — if a bootloader becomes corrupted or a bad firmware flash leaves the board unresponsive, SWD can overwrite flash directly and bring it back.
* **Development and debugging** — SWD lets you set breakpoints, step through code, and inspect memory. Not required for firmware development, but useful when you need it.

SWD operates at the hardware level, below any software on the chip. As long as the board is not physically damaged, SWD can recover it — regardless of the state of the bootloader or firmware.

## Debug Connector Pinouts

ARK products use one of two **Pixhawk Standard Debug Connectors** (both JST-SH). The [ARK Pixhawk Debug Adapter](https://arkelectron.com/product/ark-pixhawk-debug-adapter/) includes cables for both.

### 6-Pin Debug Connector

Used on most ARK DroneCAN sensors and smaller boards.

| Pin | Signal  | Voltage |
| --- | ------- | ------- |
| 1   | 3.3V    | 3.3V    |
| 2   | UART TX | 3.3V    |
| 3   | UART RX | 3.3V    |
| 4   | SWDIO   | 3.3V    |
| 5   | SWCLK   | 3.3V    |
| 6   | GND     | GND     |

### 10-Pin Debug Connector

Used on flight controllers like the [ARKV6X](/products/flight-controller/arkv6x). Adds a second UART and reset line.

| Pin | Signal                   | Voltage |
| --- | ------------------------ | ------- |
| 1   | 3.3V                     | 3.3V    |
| 2   | UART5 TX (Debug Console) | 3.3V    |
| 3   | UART5 RX (Debug Console) | 3.3V    |
| 4   | FMU SWDIO                | 3.3V    |
| 5   | FMU SWCLK                | 3.3V    |
| 6   | SWO                      | 3.3V    |
| 7   | IO SWDIO                 | 3.3V    |
| 8   | IO SWCLK                 | 3.3V    |
| 9   | nRST                     | 3.3V    |
| 10  | GND                      | GND     |

## Software Setup

Install the stlink tools from source for the most up-to-date version with the best device support:

```bash
sudo apt install build-essential cmake libusb-1.0-0-dev
git clone https://github.com/stlink-org/stlink.git
cd stlink
cmake .
make
sudo make install
sudo ldconfig
```

{% hint style="info" %}
**Prefer building from source** over `sudo apt install stlink-tools`. The packaged version in most distributions is outdated and may not support newer STM32 chips or ST-LINK firmware versions. See the [stlink-org/stlink GitHub page](https://github.com/stlink-org/stlink) for full build instructions and troubleshooting.
{% endhint %}

If you encounter permission errors after installation, add your user to the `dialout` group:

```bash
sudo usermod -aG dialout $USER
```

Log out and back in for the change to take effect.

## Common Pitfalls

* **Skipping the debug adapter** — the ST-LINK's STDC14 connector does not directly plug into the JST-SH debug port on ARK boards. You need the ARK Pixhawk Debug Adapter or manual wiring.
* **Wrong bootloader for the firmware stack** — PX4 CAN nodes need the PX4 `canbootloader`, and AP\_Periph nodes need the ArduPilot CAN bootloader. Flashing the wrong bootloader means the node won't accept firmware updates over CAN. If a node isn't picking up firmware, check which bootloader is installed.
* **Wrong flash address** — STM32 flash starts at `0x08000000` (the bootloader). On ARK CAN nodes the application is at `0x08010000`. On PX4 STM32H7 flight controllers (ARKV6X, ARKV6S, ARK FPV, ARK Pi6X) the application is at `0x08020000`. See the [ST-LINK Flashing Guide](/knowledge-base/knowledge-base/st-link-flashing-guide).
* **`.px4` over SWD** — `st-flash` takes a `.bin`.
* **Outdated stlink tools** — the version from `apt install stlink-tools` is often too old to recognize newer STM32 chips or ST-LINK firmware. Build from source (see [Software Setup](#software-setup) above).
* **Powering conflicts** — the ST-LINK can supply 3.3V to the target. If the board is already powered externally, this is usually fine, but avoid powering high-current peripherals through the debug connector.

## Further Reading

* [ST-LINK Flashing Guide](/knowledge-base/knowledge-base/st-link-flashing-guide) — step-by-step flashing procedure for ARK products
* [ARM SWD Protocol Overview](https://developer.arm.com/documentation/ihi0031/a/The-Serial-Wire-Debug-Port--SW-DP-)
* [stlink-org/stlink on GitHub](https://github.com/stlink-org/stlink) — open source ST-LINK tools


# Serial Communication (UART)

UART basics, RX/TX cross-wiring, baud rates, and using the debug console.

## What is UART?

UART (Universal Asynchronous Receiver/Transmitter) is a simple serial communication protocol used to send data between two devices over two wires. It is the most common way to access the debug console on a flight controller, connect GPS modules, and link telemetry radios.

Unlike [SPI or I2C](/knowledge-base/knowledge-base/communication-buses), UART is point-to-point — it connects exactly two devices with no shared bus or addressing.

## How It Works

### Signals

A UART connection uses two data lines plus ground:

| Signal | Purpose                                |
| ------ | -------------------------------------- |
| TX     | Transmit — data output from the device |
| RX     | Receive — data input to the device     |
| GND    | Common ground reference                |

### RX/TX Cross-Wiring

This is the single most common wiring mistake in drone electronics: **TX on one device connects to RX on the other, and vice versa.**

```
Device A          Device B
  TX  ──────────→  RX
  RX  ←──────────  TX
  GND ────────────  GND
```

One device's transmit line must feed into the other device's receive line. If you connect TX to TX, neither device hears anything.

{% hint style="warning" %}
**The #1 UART debugging step:** if you get no data, swap TX and RX. This fixes the problem more often than not.
{% endhint %}

### Baud Rate

Both devices must agree on the same data speed, called the **baud rate** (bits per second). If the baud rates don't match, the receiving device sees garbage characters.

Common baud rates in the ARK/PX4 ecosystem:

| Baud Rate | Typical Use                                                   |
| --------- | ------------------------------------------------------------- |
| 9600      | Some GPS modules (default)                                    |
| 57600     | PX4 debug console (NuttX shell)                               |
| 115200    | MAVLink telemetry, some GPS modules                           |
| 921600    | High-speed MAVLink, companion computer links (see note below) |

{% hint style="warning" %}
**921600 baud and above requires hardware flow control** (CTS/RTS) unless the UART connection is very short (PCB-to-PCB, like the on-board link between the Jetson and flight controller on the [ARK Jetson PAB Carrier](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier)). Over cables of any significant length, data will be lost at these speeds without flow control. If you must run high baud rates over a cable, use a TELEM port with CTS/RTS lines connected.
{% endhint %}

### Data Format

UART data is typically configured as **8N1**:

* **8** data bits
* **N**o parity
* **1** stop bit

This is the default on virtually all PX4 and ArduPilot peripherals. You almost never need to change it.

## How ARK Products Use It

### Debug Console

Every ARK board with a debug connector exposes a UART on pins 2 (TX) and 3 (RX) of the [Pixhawk Standard Debug Connector](/knowledge-base/knowledge-base/connectors-and-wiring). Connecting to this UART at 57600 baud gives you the NuttX shell (PX4), where you can:

* View boot messages and error logs
* Run diagnostic commands (`sensors status`, `listener sensor_accel`)
* Set parameters directly

The easiest way to access the debug console is with an [ST-LINK V3 Mini and ARK Debug Adapter](/knowledge-base/knowledge-base/st-link-flashing-guide), which provides both SWD and UART through a single USB connection.

### GPS Modules

ARK GPS modules ([ARK SAM GPS](/products/gps/ark-sam-gps), [ARK DAN GPS](/products/gps/ark-dan-gps)) that support non-CAN connections use UART to send position data to the flight controller. The flight controller's GPS port provides a UART with the Pixhawk Standard pinout.

### Telemetry

MAVLink telemetry between a flight controller and a ground station radio uses UART. The flight controller's TELEM ports are UART interfaces running MAVLink at 57600 or 115200 baud by default.

### Companion Computers

The [ARK Jetson PAB Carrier](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier) and [ARK Pi6X Flow](/products/flight-controller/ark-pi6x-flow) use UART connections between the companion computer and the flight controller MCU for MAVLink or XRCE-DDS communication.

## Common Pitfalls

* **TX and RX swapped** — see [RX/TX Cross-Wiring](#rxtx-cross-wiring) above. Always the first thing to check.
* **Baud rate mismatch** — if you see garbled characters instead of readable text, double-check that both ends are set to the same baud rate. The PX4 debug console is 57600, not 115200.
* **Missing common ground** — UART signals are referenced to ground. If two devices don't share a common ground, communication will be unreliable or fail entirely.
* **Voltage mismatch** — STM32 UART signals are 3.3V. Connecting directly to a 5V device (like some Arduino boards) can damage the MCU. Use a level shifter if needed.
* **Long or untwisted wires** — UART signals degrade over distance. Keep cables as short as possible and use twisted pairs (TX with GND, RX with GND) to reject noise. Runs over 15–20 cm at 115200 baud or above become unreliable without twisted wires, especially on a drone with motors running.
* **Port already in use** — on Linux, if `screen` or another terminal is already connected to a serial port, a second connection will fail silently. Kill existing sessions before reconnecting.
* **Not using an oscilloscope** — if UART isn't working and you've checked TX/RX wiring and baud rate, connect an oscilloscope to the TX and RX lines. This immediately tells you whether the signal is present, at the right voltage level, and clean. It also catches bad solder joints, broken traces, and damaged connectors that are invisible to the eye.

## Further Reading

* [ST-LINK Flashing Guide — UART Debug Console](/knowledge-base/knowledge-base/st-link-flashing-guide#uart-debug-console) — step-by-step instructions for connecting to the debug console
* [PX4 System Console](https://docs.px4.io/main/en/debug/system_console.html)
* [Communication Buses (I2C, SPI)](/knowledge-base/knowledge-base/communication-buses) — comparison of UART with other protocols


# CAN Bus

CAN bus fundamentals, differential signaling, termination, DroneCAN protocol, and 4-pin JST-GH wiring.

## What is CAN Bus?

CAN (Controller Area Network) is a robust communication bus designed for noisy environments. Originally developed for automobiles, it is the standard for connecting sensors, GPS modules, and other peripherals in the Pixhawk drone ecosystem.

CAN uses **differential signaling** over a twisted pair, which makes it highly resistant to electromagnetic interference — critical on a drone where motors, ESCs, and radios generate significant noise.

## How It Works

### Differential Signaling

CAN uses two wires, **CAN\_H** (high) and **CAN\_L** (low), that carry the same signal in opposite polarities. The receiver reads the *difference* between the two, which cancels out any noise that affects both wires equally.

| Bus State     | CAN\_H | CAN\_L | Difference |
| ------------- | ------ | ------ | ---------- |
| Recessive (1) | 2.5V   | 2.5V   | 0V         |
| Dominant (0)  | 3.5V   | 1.5V   | 2V         |

This is why CAN is so much more reliable than [UART](/knowledge-base/knowledge-base/serial-communication-uart) or [I2C](/knowledge-base/knowledge-base/communication-buses) in electrically noisy environments.

### Bus Topology

CAN is a true **multi-drop bus** — all devices share the same two wires. Any device can transmit, and all devices receive every message. Message priority is handled by arbitration built into the protocol.

```
[Flight Controller] ──── CAN_H/CAN_L ──── [GPS] ──── [Flow Sensor] ──── [Mag]
       120Ω                                                               120Ω
```

Devices are daisy-chained, with two 120-ohm termination resistors at each end of the bus.

### Termination

A CAN bus requires a **120-ohm termination resistor** at each physical end of the bus. Without proper termination, signal reflections corrupt data and cause intermittent communication failures.

Most ARK DroneCAN products have a software-configurable built-in termination resistor controlled by the `CANNODE_TERM` parameter. Only the two devices at the physical ends of the bus should have termination enabled.

{% hint style="info" %}
**Rule of thumb:** if you measure the resistance between CAN\_H and CAN\_L with everything powered off, you should see approximately 60 ohms (two 120-ohm resistors in parallel).
{% endhint %}

### Bit Rate

The Pixhawk standard CAN bit rate is **1 Mbps** (1000000 bps). This is the default for PX4, ArduPilot, and all ARK DroneCAN devices. Unlike UART, you almost never need to change the CAN bit rate.

### 4-Pin JST-GH Connector (Pixhawk Standard CAN)

All ARK DroneCAN products use the Pixhawk Standard CAN connector:

| Pin | Signal | Voltage |
| --- | ------ | ------- |
| 1   | 5V     | 5.0V    |
| 2   | CAN\_H | —       |
| 3   | CAN\_L | —       |
| 4   | GND    | GND     |

Devices are connected in a daisy chain using these 4-pin JST-GH cables. Most ARK DroneCAN products have **two CAN connectors** so you can chain one into the next without a splitter.

### DroneCAN Protocol

DroneCAN (formerly UAVCAN v0) is the application-layer protocol that runs on top of CAN bus. It defines standard message types for sensor data, firmware updates, parameter configuration, and node management.

Key DroneCAN concepts:

* **Node ID** — each device on the bus has a unique ID (1–127). PX4 and ArduPilot assign these automatically by default.
* **Message types** — [standardized data structures](https://dronecan.github.io/Specification/7._List_of_standard_data_types/) (e.g., `uavcan.equipment.ahrs.RawIMU`, `uavcan.equipment.gnss.Fix2`) that all compliant devices understand.
* **Dynamic node allocation** — devices can obtain a node ID automatically from the flight controller on first boot.
* **Firmware update** — the flight controller or a tool like the [DroneCAN GUI Tool](/knowledge-base/knowledge-base/dronecan-gui-tool-guide) can push firmware updates to any node on the bus.

## Common Pitfalls

* **Missing termination** — the most common CAN issue. If devices appear and disappear intermittently, check that exactly two nodes have termination enabled (one at each end of the bus).
* **All nodes terminated** — enabling termination on every device drops the bus resistance too low, causing signal distortion. Only the two end nodes should be terminated.
* **Wrong bit rate** — all devices must use the same bit rate (1 Mbps). A device configured for a different rate will be invisible on the bus.
* **Node ID conflicts** — two devices with the same node ID will interfere with each other. Dynamic node allocation usually prevents this, but manually assigned IDs can collide.
* **Cable length** — CAN is robust but not unlimited. For runs over 1 meter, use quality twisted-pair cable and ensure proper termination.
* **5V power through CAN** — the CAN connector provides 5V power. If a device draws too much current through the cable, the voltage can drop below the minimum for reliable operation. Check the power budget for your bus.

## Further Reading

* [DroneCAN GUI Tool Guide](/knowledge-base/knowledge-base/dronecan-gui-tool-guide) — how to inspect, configure, and update firmware on DroneCAN devices
* [PX4 DroneCAN Documentation](https://docs.px4.io/main/en/dronecan/)
* [PX4 CAN Wiring Guide](https://docs.px4.io/main/en/can/#wiring)
* [DroneCAN Specification](https://dronecan.github.io/Specification/)
* [Connectors and Wiring](/knowledge-base/knowledge-base/connectors-and-wiring) — details on the JST-GH connectors used for CAN


# MAVLink

What MAVLink is, how ground stations and companion computers communicate with the flight controller, and MAVLink vs XRCE-DDS.

## What is MAVLink?

MAVLink (Micro Air Vehicle Link) is a lightweight messaging protocol for communicating with and between drones. It is the standard protocol used by ground control stations (like QGroundControl and Mission Planner) to talk to flight controllers running PX4 or ArduPilot.

MAVLink handles everything from live telemetry and parameter configuration to mission uploads and command execution.

## How It Works

### Messages and Packets

MAVLink defines hundreds of standardized message types. Each message has a numeric ID and a fixed set of fields. Messages are wrapped in packets that include source and destination addresses, sequence numbers, and checksums.

Common message categories:

| Category      | Examples                               | Purpose                        |
| ------------- | -------------------------------------- | ------------------------------ |
| Telemetry     | `HEARTBEAT`, `ATTITUDE`, `GPS_RAW_INT` | Live vehicle state             |
| Commands      | `COMMAND_LONG`, `COMMAND_INT`          | Arm, takeoff, set mode, reboot |
| Parameters    | `PARAM_REQUEST_LIST`, `PARAM_SET`      | Read and write configuration   |
| Missions      | `MISSION_ITEM_INT`, `MISSION_COUNT`    | Upload and download waypoints  |
| File Transfer | `FILE_TRANSFER_PROTOCOL`               | Log download, firmware update  |

### System and Component IDs

Every device on a MAVLink network has a **system ID** (identifies the vehicle) and a **component ID** (identifies a specific part of that vehicle, like the autopilot, gimbal, or companion computer).

* The flight controller is typically system ID 1, component ID 1
* A ground station is usually system ID 255
* A companion computer might be system ID 1, component ID 191

### Transport Layers

MAVLink is transport-agnostic — it doesn't care how the bytes get from A to B. Common transports:

| Transport                                                               | Use Case                                             |
| ----------------------------------------------------------------------- | ---------------------------------------------------- |
| [UART](/knowledge-base/knowledge-base/serial-communication-uart) serial | Telemetry radios, direct FC-to-companion links       |
| UDP                                                                     | Ethernet/Wi-Fi connections (QGC default: port 14550) |
| TCP                                                                     | Stable connections over network links                |
| USB                                                                     | Direct QGC connection to flight controller           |

### MAVLink Versions

* **MAVLink v1** — original protocol, 8 bytes overhead per message
* **MAVLink v2** — current standard, supports message signing, extensible fields, and 16-bit message IDs. PX4 and ArduPilot both default to v2.

## MAVLink vs XRCE-DDS

PX4 supports two protocols for companion computer communication:

|                | MAVLink                                                       | XRCE-DDS (uORB over DDS)                       |
| -------------- | ------------------------------------------------------------- | ---------------------------------------------- |
| **Maturity**   | Battle-tested, supported everywhere                           | Newer, actively evolving                       |
| **Ecosystem**  | QGC, Mission Planner, pymavlink, MAVSDK                       | ROS 2 native integration                       |
| **Data model** | Fixed message definitions                                     | PX4 uORB topics published as ROS 2 topics      |
| **Best for**   | GCS communication, telemetry radios, simple companion scripts | ROS 2 applications, high-bandwidth sensor data |
| **Transport**  | Serial, UDP, TCP                                              | Serial (Micro XRCE-DDS Agent)                  |

{% hint style="info" %}
**Which should I use?** If you're building a ROS 2 application on a companion computer, use XRCE-DDS — it gives you direct access to PX4's internal topics as ROS 2 messages. For everything else (GCS, telemetry, simple offboard control), MAVLink is the standard choice.
{% endhint %}

## How ARK Products Use It

### Ground Station Communication

Flight controllers like the [ARKV6X](/products/flight-controller/arkv6x) and [ARK FPV](/products/flight-controller/ark-fpv) use MAVLink to communicate with QGroundControl or Mission Planner over USB, telemetry radio, or network connections.

### Companion Computer Links

The [ARK Jetson PAB Carrier](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier) and [ARK Pi6X Flow](/products/flight-controller/ark-pi6x-flow) use both MAVLink and XRCE-DDS for communication between the companion computer (Jetson or Pi) and the integrated flight controller:

* **MAVLink** — used by the [QGroundControl connection](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/using-ark-os/autopilot-connections/qgroundcontrol-connection) and [MissionPlanner connection](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/using-ark-os/autopilot-connections/missionplanner-ardupilot-connection) forwarded from the companion computer
* **XRCE-DDS** — used by [ROS 2 applications](/tutorials/ros2-and-px4/ros2-and-px4-teleop-example) running on the companion computer

### MAVCAN

Ardupilot supports MAVLink can tunnel [CAN bus](/knowledge-base/knowledge-base/can-bus) traffic over any MAVLink link using the MAVCAN protocol. This lets you use the [DroneCAN GUI Tool](/knowledge-base/knowledge-base/dronecan-gui-tool-guide) to manage CAN devices remotely — even over a telemetry radio link. PX4 does not yet support this.

## Common Pitfalls

* **Baud rate mismatch** — MAVLink over serial requires matching baud rates on both ends. PX4 TELEM ports default to 57600 baud. If QGC shows "Communication Lost," check the baud rate first.
* **Same port, multiple connections** — only one application can open a serial port at a time. If MAVProxy is already connected, QGC cannot connect to the same port.
* **Firewall blocking UDP** — QGC listens on UDP port 14550 by default. Firewalls or VPNs can block these packets silently.
* **System ID conflicts** — if two vehicles share the same system ID on the same network, the GCS will merge their telemetry into a confusing mess. Each vehicle needs a unique system ID.
* **MAVLink vs XRCE-DDS confusion** — these are separate protocols on separate interfaces. You cannot connect QGC to an XRCE-DDS port or subscribe to ROS 2 topics over MAVLink.
* **Baudrate and throughput** — Ensure the baudrate is high enough for the configured mavlink throughput. Baudrates at or above 921600 tend to only work with very short wires, otherwise hardware flow control must be used.

## Further Reading

* [MAVLink Developer Guide](https://mavlink.io/en/)
* [PX4 MAVLink Documentation](https://docs.px4.io/main/en/middleware/mavlink.html)
* [PX4 XRCE-DDS (ROS 2)](https://docs.px4.io/main/en/middleware/uxrce_dds.html)
* [QGroundControl User Guide](https://docs.qgroundcontrol.com/master/en/qgc-user-guide/getting_started/quick_start.html)
* [MAVSDK — MAVLink SDK](https://mavsdk.mavlink.io/main/en/)


# Connectors and Wiring

JST-GH vs JST-SH connectors, wire color conventions, Pixhawk standard pinouts, and cable kits.

## What Are JST Connectors?

JST connectors are the small locking connectors used on virtually all Pixhawk-ecosystem flight controllers and peripherals. The **Pixhawk Connector Standard** specifies two JST connector families for different purposes:

| Connector  | Pitch   | Use                                                      | Found On                  |
| ---------- | ------- | -------------------------------------------------------- | ------------------------- |
| **JST-GH** | 1.25 mm | Peripheral connections (CAN, I2C, UART, SPI, GPS, power) | All main board connectors |
| **JST-SH** | 1.0 mm  | Debug connections (SWD + UART console)                   | Debug ports only          |

Both are polarized locking connectors — they only plug in one way and click into place.

## How It Works

### Pixhawk Standard Pinouts

The Pixhawk Connector Standard defines pin assignments for each connector type. This means an ARK GPS plugs into any Pixhawk-compatible flight controller without custom wiring.

#### CAN — 4-Pin JST-GH

| Pin | Signal | Color  |
| --- | ------ | ------ |
| 1   | 5V     | Red    |
| 2   | CAN\_H | Yellow |
| 3   | CAN\_L | Green  |
| 4   | GND    | Black  |

Used by all ARK [DroneCAN](/knowledge-base/knowledge-base/can-bus) peripherals. See [CAN Bus](/knowledge-base/knowledge-base/can-bus) for protocol details.

#### I2C — 4-Pin JST-GH

| Pin | Signal | Color  |
| --- | ------ | ------ |
| 1   | 5V     | Red    |
| 2   | SCL    | Yellow |
| 3   | SDA    | Green  |
| 4   | GND    | Black  |

Used by [I2C devices](/knowledge-base/knowledge-base/communication-buses) like external magnetometers and barometers.

#### UART/I2C (Basic GPS) — 6-Pin JST-GH

| Pin | Signal | Color  |
| --- | ------ | ------ |
| 1   | 5V     | Red    |
| 2   | TX     | Yellow |
| 3   | RX     | Green  |
| 4   | SCL    | Blue   |
| 5   | SDA    | Orange |
| 6   | GND    | Black  |

Combined UART and I2C port, typically used for GPS modules with a compass.

#### TELEM — 6-Pin JST-GH

| Pin | Signal | Color  |
| --- | ------ | ------ |
| 1   | 5V     | Red    |
| 2   | TX     | Yellow |
| 3   | RX     | Green  |
| 4   | CTS    | Blue   |
| 5   | RTS    | Orange |
| 6   | GND    | Black  |

Used for [MAVLink](/knowledge-base/knowledge-base/mavlink) telemetry connections with hardware flow control.

#### Debug — 6-Pin JST-SH

| Pin | Signal  |
| --- | ------- |
| 1   | 3.3V    |
| 2   | UART TX |
| 3   | UART RX |
| 4   | SWDIO   |
| 5   | SWCLK   |
| 6   | GND     |

Used for [SWD programming](/knowledge-base/knowledge-base/swd-programming) and [debug console](/knowledge-base/knowledge-base/serial-communication-uart) access.

### Wire Color Conventions

Pixhawk standard cables follow a consistent color scheme:

| Color      | Typical Signal                               |
| ---------- | -------------------------------------------- |
| **Red**    | Power (5V or 3.3V) — always pin 1            |
| **Black**  | Ground (GND) — always last pin               |
| **Yellow** | First data signal (CAN\_H, TX, SCL)          |
| **Green**  | Second data signal (CAN\_L, RX, SDA)         |
| **Blue**   | Third data signal (CTS, SCL on combo ports)  |
| **Orange** | Fourth data signal (RTS, SDA on combo ports) |

{% hint style="info" %}
**Power is always pin 1 (red), ground is always the last pin (black).** This is consistent across all Pixhawk Standard connectors and makes visual inspection easy.
{% endhint %}

### Cable Kits

If you need additional or custom-length cables, these pre-crimped kits include connectors and wires ready to assemble (no crimping tool required):

* **JST-GH 1.25 mm**: [GH1.25 Connectors Kit on Amazon](https://www.amazon.com/Pre-Crimped-Connectors-Pixhawk2-Pixracer-Silicone/dp/B07PBHN7TM)
* **JST-SH 1.0 mm**: [JST SH 1.0mm Connector Kit on Amazon](https://www.amazon.com/Teansic-Connector-Pre-Crimped-Housing-Controller/dp/B0D5X6BY5Z)
* **JST-GH 1.25 mm to JST-SH 1.0 mm**: [GH1.25 to SH1.0 Connector Kit on Amazon](https://www.amazon.com/dp/B0D2SVX4S4)

## Common Pitfalls

* **JST-GH and JST-SH are not interchangeable** — they look similar but have different pitches (1.25 mm vs 1.0 mm). Forcing the wrong connector will damage the socket.
* **Inserting cables backwards** — JST connectors are keyed, but enough force can overcome the key. Always check orientation by the latch, not by pushing harder.
* **Pulling on wires instead of the connector** — grip the plastic housing when disconnecting, not the wires. The wires will pull out of the crimps.
* **Missing the latch click** — if the connector doesn't click, it is not seated. A partially inserted connector makes intermittent contact, causing random disconnects.
* **Assuming wire colors match between vendors** — not all cable manufacturers follow the Pixhawk color standard. When in doubt, check the pinout for your specific product.

## Further Reading

* [Pixhawk Connector Standard](https://github.com/pixhawk/Pixhawk-Standards/blob/master/DS-009%20Pixhawk%20Connector%20Standard.pdf)
* [PX4 Wiring Quick Start](https://docs.px4.io/main/en/assembly/)
* [CAN Bus](/knowledge-base/knowledge-base/can-bus) — CAN bus protocol and wiring details
* [SWD Programming](/knowledge-base/knowledge-base/swd-programming) — debug connector usage


# Power and Grounding

Voltage levels, power distribution, ground loops, signal integrity, and noise avoidance on drones.

## What is Power Distribution?

Every component on a drone — flight controller, sensors, GPS, companion computer, radio — needs clean, stable power at the correct voltage. Power distribution is how you get the right voltage to the right place while keeping electrical noise from corrupting sensor readings and communication buses.

Getting this right is the difference between a drone that flies reliably and one that suffers mysterious glitches.

## How It Works

### Voltage Levels

Drones deal with multiple voltage levels simultaneously:

| Voltage                                 | Source                       | Powers                                          |
| --------------------------------------- | ---------------------------- | ----------------------------------------------- |
| **Battery voltage** (3S–6S, 11.1–25.2V) | LiPo battery                 | ESCs, motors                                    |
| **5V**                                  | BEC or power module          | Flight controller, CAN peripherals, GPS, radios |
| **3.3V**                                | On-board regulator (from 5V) | MCU logic, sensors, communication interfaces    |

The flight controller and all Pixhawk standard peripherals run on **5V** supplied through their connectors. The 5V rail is typically provided by a power module or a BEC (Battery Eliminator Circuit) that steps down the battery voltage.

The **3.3V** level is internal to each board — the MCU and sensors operate at 3.3V, but this is regulated on-board from the 5V input. You generally don't need to supply 3.3V externally.

### Power Module Role

ARK power modules ([ARK PAB Power Module](/products/power/ark-pab-power-module), [ARK 12S PAB Power Module](/products/power/ark-12s-pab-power-module)) do two things:

1. **Regulate** battery voltage down to clean 5V for the flight controller and peripherals
2. **Measure** battery voltage and current, reporting it to the flight controller over I2C.

### 5V Power Through CAN

On ARK systems, the [CAN bus](/knowledge-base/knowledge-base/can-bus) carries both data and power on the same cable. Pin 1 of every 4-pin JST-GH CAN connector is 5V. This means DroneCAN peripherals are powered through their CAN cable — no separate power wiring needed.

{% hint style="warning" %}
**Power budget matters.** Every device in the CAN daisy chain draws current through the same cables and connectors. If the total current draw exceeds what the source can provide, voltage will drop and devices will behave erratically. Check the current draw of each peripheral and ensure the power module or BEC can handle the total.
{% endhint %}

### Ground Loops

Ground is not an ideal zero-ohm conductor. Every wire and trace has finite resistance and inductance, so when current flows through a ground path it creates a small voltage drop. If two circuits share a ground path, the return current from one circuit creates noise that the other circuit sees. When multiple ground paths between devices form a closed loop, that loop also acts as an antenna — picking up and radiating electromagnetic interference proportional to the loop area.

On a drone, where ESCs are switching tens of amps at high frequency just centimeters from a GPS receiver trying to hear signals at -130 dBm, even microvolts of ground noise are enough to corrupt sensitive measurements.

**Use a star grounding topology.** In a star ground, every subsystem's ground return connects back to a single common point — typically at or near the battery/power supply return. This means:

* **No shared impedance** — each subsystem has its own dedicated ground return, so motor drive currents never flow through the IMU's ground path.
* **No loops between subsystems** — with only one path from each device to the common point, there is no closed loop to act as an antenna.
* **One unambiguous ground reference** — all voltages are measured with respect to the same point, eliminating ground potential differences between boards.

**Keep every current return path short.** Every current that flows out on a signal or power trace must return to its source, and that outgoing path plus return path form a loop. The radiated EMI and noise susceptibility of that loop is directly proportional to the enclosed area. Keeping return paths short and close to their signal paths minimizes this area. In practice: route ground returns parallel and adjacent to their signal or power traces, don't break ground planes under signal traces, and place decoupling capacitors as close to IC power pins as possible.

**Additional tips:**

* Avoid mounting electronics directly to a conductive (carbon fiber) frame without insulation — this creates unintended ground paths that form loops.
* Keep signal wires away from high-current motor wires to reduce inductive coupling.

For a deeper dive on grounding, see Analog Devices' [Staying Well Grounded](https://www.analog.com/en/resources/analog-dialogue/articles/staying-well-grounded.html) and TI's [PCB Design Guidelines for Reduced EMI](https://www.ti.com/lit/an/szza009/szza009.pdf).

### Signal Integrity and Noise

Digital communication buses ([CAN](/knowledge-base/knowledge-base/can-bus), [UART](/knowledge-base/knowledge-base/serial-communication-uart), [I2C, SPI](/knowledge-base/knowledge-base/communication-buses)) all depend on clean signal transitions. Electrical noise can corrupt these signals, causing:

* Intermittent sensor dropouts
* CAN bus errors or node disconnects
* Garbled serial console output
* I2C bus lockups

**Major noise sources on a drone:**

| Source             | Frequency                    | Affects                                                                    |
| ------------------ | ---------------------------- | -------------------------------------------------------------------------- |
| Motor commutation  | kHz–MHz                      | All buses, especially I2C and analog                                       |
| ESC switching      | 10–100 kHz                   | Power rail ripple, sensor noise                                            |
| USB                | 480 MHz (harmonics into GHz) | GPS reception — USB is a major source of RF interference in the L-band     |
| Radio transmitter  | GHz                          | Possible digital bus upset at close range                                  |
| High-current wires | DC–kHz                       | Magnetometer — motor wires and battery leads create strong magnetic fields |
| PWM servo signals  | 50–400 Hz                    | Ground bounce on shared connectors                                         |

**Noise reduction strategies:**

* Keep sensor cables short and routed away from motor/ESC/power wires
* Use shielded cables for long runs (>15 cm) on sensitive interfaces
* Ensure all connectors are fully seated — intermittent contacts cause noise
* Twist signal pairs to reduce pickup

### GPS Placement

GPS modules are particularly sensitive to both RF interference (which degrades satellite reception) and magnetic interference (which corrupts the built-in compass). Proper placement is critical for reliable position and heading data.

For detailed guidance on interference sources, mounting best practices, and common mistakes, see the dedicated [GPS Placement](/knowledge-base/knowledge-base/gps-placement) page.

### Servo and Actuator Power Isolation

Servos and other actuators with motors are among the worst power consumers on a drone. A stalled servo can draw several amps, and even normal operation causes large current spikes that collapse the voltage rail it shares with other devices.

{% hint style="warning" %}
**Never power servos from the same regulator as the flight controller.** A servo stall or jam can brown out the entire 5V rail, causing the flight controller and all CAN peripherals to reboot mid-flight. Always use a dedicated BEC for servos and actuators.
{% endhint %}

This applies to any high-current load: gimbal motors, LED arrays, radio amplifiers, or payload actuators. If it can draw more than a few hundred milliamps, give it its own power supply with only a shared ground to the flight controller.

## Common Pitfalls

* **Under-rated power supply** — a BEC that can handle bench testing may brown out under load when motors spin up. Size your power supply for worst-case current draw plus margin.
* **Ground loops through the frame** — carbon fiber frames are conductive. If two boards are bolted to the frame and also connected by a cable, you have a ground loop. Use nylon standoffs or insulating tape.
* **Long I2C runs** — I2C/Serial is highly susceptible to noise and capacitance. Runs longer than 10–15 cm are unreliable on a drone. Use [CAN bus](/knowledge-base/knowledge-base/can-bus) for any peripheral that isn't directly next to the flight controller.
* **Servos on the flight controller BEC** — see [Servo and Actuator Power Isolation](#servo-and-actuator-power-isolation) above. A stalled servo will take down your entire avionics power rail.
* **GPS mounted near USB or motor wires** — see [GPS Placement](/knowledge-base/knowledge-base/gps-placement). USB interference and magnetic fields from high-current wires are the two most common causes of poor GPS and compass performance.
* **Ignoring decoupling** — if you're building custom hardware, every IC needs 100 nF decoupling capacitors on its power pins. ARK products include these, but custom carrier boards sometimes omit them.
* **Assuming USB power is sufficient** — USB provides 5V but limited current (500 mA from USB 2.0). A flight controller may boot on USB power but behave erratically because peripherals are under-powered.

## Further Reading

* [PX4 Power Module Setup](https://docs.px4.io/main/en/power_module/)
* [Carrier Power Inputs](/knowledge-base/knowledge-base/carrier-power-inputs) — how multiple 5V inputs combine on ARK carriers
* [CAN Bus](/knowledge-base/knowledge-base/can-bus) — CAN wiring and 5V power delivery
* [Connectors and Wiring](/knowledge-base/knowledge-base/connectors-and-wiring) — connector types and pinouts
* [Communication Buses (I2C, SPI)](/knowledge-base/knowledge-base/communication-buses) — bus noise susceptibility comparison


# Carrier Power Inputs

How the 5V inputs on ARK carrier boards combine, and how much current they can supply.

| Board                                                                                              | 5V inputs                                               | Combining       |
| -------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | --------------- |
| [ARK Pixhawk Autopilot Bus Carrier](/products/flight-controller/ark-pixhawk-autopilot-bus-carrier) | POWER1, POWER2 (6 A each), USB                          | Priority select |
| [ARK Jetson PAB Carrier](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier)           | POWER1–3 (6 A each)                                     | Ideal-diode OR  |
| [ARK Jetson PAB Carrier V3](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier-v3)     | Power 1–3 (4 A each)                                    | Ideal-diode OR  |
| [ARK Just A Jetson](/products/embedded-computers/ark-just-a-jetson)                                | 5V IN (6 A), BAT IN through the onboard 5.2 V regulator | Ideal-diode OR  |
| [ARK VOXL2 RTK PAB Carrier](/products/flight-controller/ark-voxl2-rtk-pab-carrier)                 | VBRICK1, VBRICK2 on POWER (6 A each)                    | Ideal-diode OR  |

## Priority Select

The highest-priority valid input powers the board and the others are disconnected: POWER1 > POWER2 > USB. An input is valid between 3.81 V and 5.85 V. Inputs never share current, so the 5V load must stay within the rating of the selected input.

## Ideal-Diode OR

Each input feeds the 5V bus through its own ideal diode, which blocks backfeed between inputs. There is no input priority.

* Two or more of the same ARK power module share the load, so the total 5V draw can exceed one input's rating. Keep each input within its own rating.
* Inputs at different voltages don't share: the highest-voltage input carries the load. The [ARK PAB Power Module](/products/power/ark-pab-power-module) outputs 5.27 V and the [ARK 12S PAB Power Module](/products/power/ark-12s-pab-power-module) 5.2 V, so mixing them adds redundancy but not capacity.
* An input above 5.84 V is disconnected.


# GPS Placement

GPS module placement, interference sources, and mounting best practices for reliable satellite reception and compass accuracy.

## Why Placement Matters

ARK GPS modules do two jobs: receive satellite signals and measure the earth's magnetic field. Both are easily disrupted by nearby electronics. A GPS module that works perfectly on the bench can perform poorly on a drone if it's mounted in the wrong spot.

All GPS antennas have a **reception pattern** — they are designed to receive signals from satellites above and to the sides, but objects near the antenna can block or distort this pattern. Batteries, carbon fiber, metal brackets, and other conductive materials placed too close to the antenna will shadow parts of the sky and reduce the number of satellites the receiver can track.

Poor placement causes:

* **Low satellite count, high noise, high epv/eph** — RF interference or blocked reception pattern masks weak satellite signals, reducing position accuracy or preventing a GPS fix entirely.
* **Compass calibration failures** — magnetic fields from motor wires, battery leads, and power electronics corrupt magnetometer readings, making calibration impossible or unreliable.
* **Toilet-bowling in flight** — a corrupted compass heading causes the drone to orbit in circles during position hold or autonomous flight.
* **Inconsistent RTK fix** — RTK GPS requires strong signal quality on multiple frequency bands. Even minor RF interference can prevent a fixed solution.

## RF Interference Sources

Radio frequency interference degrades satellite signal reception. The most common on-board sources:

### USB 3.0

USB 3.0 (SuperSpeed) is the single worst source of GPS interference on most drones. USB 3.0 uses 5 Gbit/s signaling, which produces **broadband noise continuously from DC to 5 GHz**. This noise spectrum directly blankets the GPS L1 band (1575.42 MHz), L2 (1227.60 MHz), and L5 (1176.45 MHz) — all at once. The USB 3.0 cable and connectors act as antennas that radiate this noise.

This is a qualitatively different problem than USB 2.0. USB 2.0 runs at 480 MHz and only affects GPS through weak harmonics. USB 3.0 has substantial energy density across the entire GPS frequency range and can raise the noise floor by 20 dB or more, enough to completely kill satellite reception.

{% hint style="danger" %}
**USB 3.0 cables and cameras are a GPS killer.** If you are using USB 3.0 devices (cameras, SSDs, companion computers), keep all USB 3.0 cables and connectors as far from the GPS antenna as possible. If USB 3.0 bandwidth is not required, use a USB 2.0 cable instead — this eliminates the problem entirely.
{% endhint %}

If you must use USB 3.0 near a GPS module, **shield the cable**. Wrapping a USB 3.0 cable with conductive shielding (copper foil tape or a double-shielded cable) and adding ferrite chokes near the connectors can significantly reduce radiated interference. See [Alex Klimaj's demonstration of USB3 cable shielding on a Septentrio Mosaic-X5](https://x.com/alexklimaj/status/1752197126120189962) for a real-world example.

### ESC Switching Noise

ESCs switch at 10–100 kHz, but the fast switching edges produce broadband RF noise that extends well into the MHz and GHz range. This noise radiates from the ESC itself and from the motor phase wires, which act as antennas.

### Radio Transmitters and Antennas

Telemetry radios (900 MHz, 2.4 GHz), RC receivers, and Wi-Fi antennas can all desensitize the GPS receiver if mounted too close. The GPS front-end has a low-noise amplifier that can be overloaded by strong nearby transmitters, even on frequencies well outside the GPS bands.

## Magnetic Interference Sources

The magnetometer (compass) built into most GPS modules measures the earth's magnetic field to determine heading. Any current-carrying wire or magnetized component near the magnetometer will distort this measurement.

### Confirming Magnetic Interference in Logs

You can verify magnetic interference by reviewing a PX4 flight log on [PX4 Flight Review](https://review.px4.io). Look at the **magnetometer field norm** — it should remain stable throughout the flight. If the mag field norm correlates with throttle or thrust, that indicates magnetic coupling from the power system. This is a clear sign that the GPS/compass needs to be moved further from motor wires and battery leads.

### Motor Wires and Battery Leads

These carry the highest currents on the drone (tens of amps) and create proportionally strong magnetic fields. The field strength drops with distance, so even a few centimeters of additional separation makes a meaningful difference.

### ESCs and Power Distribution Boards

ESCs contain inductors and carry high switching currents. Power distribution boards concentrate high-current traces in a small area. Both are strong magnetic interference sources.

### Steel Hardware

Steel screws, nuts, and brackets near the GPS module can distort the magnetic field. Use non-magnetic hardware (nylon, brass, aluminum, titanium) for GPS mast mounting.

## Mounting Best Practices

### Use a Mast

The single most effective thing you can do for GPS performance is mount it on a mast above the frame. Even 5–10 cm of vertical separation dramatically reduces both RF and magnetic interference from the electronics below and keeps the antenna reception pattern clear of obstructions.

### Top of Frame

If a mast isn't practical, mount the GPS on the top of the frame, centered, and as far above the electronics stack as possible. Avoid mounting it underneath the frame where the entire electronics stack is between the GPS antenna and the sky.

### Keep the Reception Pattern Clear

Make sure nothing blocks the sky view around the GPS antenna. Batteries mounted on top of the frame right next to the GPS, tall carbon fiber standoffs, or other conductive objects near the antenna will shadow satellites and reduce fix quality. The GPS antenna needs a clear view of the sky above and to the sides.

### SMA Extenders for Flexible Placement

Some GPS modules support external antennas via SMA connectors. You can use SMA cables or extenders to place the GPS antenna in a more favorable location — for example, on top of a mast or away from a crowded electronics bay — while keeping the GPS receiver module closer to the flight controller.

{% hint style="warning" %}
**Update your GPS position offset parameters.** If you move the GPS antenna away from the module using an SMA extender, the antenna's physical position relative to the flight controller has changed. Update `EKF2_GPS_POS_X`, `EKF2_GPS_POS_Y`, and `EKF2_GPS_POS_Z` in PX4 to reflect the actual antenna location, not the module location.
{% endhint %}

### Orientation

Most GPS modules have an arrow or marking indicating the forward direction. Mount the module with this arrow pointing toward the front of the drone. If the module is rotated, you must set the corresponding autopilot parameter (e.g., `CAL_MAGx_ROT` in PX4) to match, or compass heading will be wrong.

### Separation Distances

There are no universal numbers — it depends on your specific hardware and how much current it draws. As a rough guide:

* **USB 3.0 cables/connectors** — as far as possible; use USB 2.0 cables or shielded cables if separation is limited
* **Motor wires and battery leads** — at least 5–10 cm, preferably on opposite side of frame
* **ESCs** — at least 5 cm
* **Radio antennas** — at least 10 cm from telemetry/RC antennas

## Common Mistakes

* **GPS mounted too close to the battery** — a LiPo battery is a large conductive object that blocks the GPS antenna reception pattern. If the battery sits right next to or above the GPS, it shadows satellites and degrades fix quality. Mount the GPS above or well away from the battery.
* **GPS too close to other antennas and RF-noisy devices** — clustering the GPS antenna near telemetry radios, RC receivers, Wi-Fi antennas, or USB 3.0 cameras creates a high-noise environment. Spread antennas out and keep the GPS away from other RF sources.
* **Power wires routed near the GPS** — high-current battery leads and motor wires near the GPS create magnetic interference that corrupts the compass. Route power wiring on the opposite side of the frame.
* **Carbon fiber infused 3D-printed enclosure** — carbon fiber is conductive. A 3D-printed enclosure made with carbon fiber filament acts as a Faraday cage around the GPS, blocking satellite signals. Use non-conductive materials (PLA, PETG, nylon) for any GPS enclosure or mount.
* **GPS blocked by the carbon fiber airframe** — mounting the GPS below a carbon fiber plate or inside a carbon fiber fuselage attenuates satellite signals. Always mount the GPS above and outside any conductive airframe structure.
* **RTK antennas mounted too close together** — dual-antenna RTK heading setups require sufficient baseline separation between the two antennas to get an accurate heading. Mounting them too close together reduces heading precision. Follow the GPS manufacturer's recommended minimum baseline distance.

## Further Reading

* [Power and Grounding](/knowledge-base/knowledge-base/power-and-grounding) — voltage levels, noise sources, and signal integrity
* [CAN Bus](/knowledge-base/knowledge-base/can-bus) — CAN wiring and 5V power delivery for DroneCAN GPS modules
* [PX4 Magnetometer Calibration](https://docs.px4.io/main/en/config/compass.html)
* [PX4 Flight Review](https://review.px4.io) — upload ulogs to check magnetometer field norm and GPS quality
* [USB3 cable jamming and shielding](https://x.com/alexklimaj/status/1752197126120189962) — Alex Klimaj demonstrating the impact of USB3 cable shielding on GPS reception
* [USB 3.0 Radio Frequency Interference Impact on 2.4 GHz Wireless Devices](https://www.usb.org/sites/default/files/327216.pdf) — Intel whitepaper on USB 3.0 broadband emissions


# Communication Buses (I2C, SPI)

I2C and SPI basics, a comparison of UART vs I2C vs SPI vs CAN, and why CAN wins for drones.

## What Are Communication Buses?

A communication bus is a set of shared wires and protocols that allow multiple chips or devices to exchange data. Drones use several different buses, each with different trade-offs in speed, distance, noise immunity, and wiring complexity.

This page covers **I2C** and **SPI** — two buses commonly found inside or very near the flight controller. For the other major buses, see [UART](/knowledge-base/knowledge-base/serial-communication-uart) and [CAN Bus](/knowledge-base/knowledge-base/can-bus).

## How They Work

### I2C (Inter-Integrated Circuit)

I2C is a two-wire bus that supports multiple devices on the same pair of wires. Each device has a unique 7-bit address, and the controller (flight controller) selects which device to talk to by address.

| Signal | Purpose                                     |
| ------ | ------------------------------------------- |
| SCL    | Clock — driven by the controller            |
| SDA    | Data — bidirectional, shared by all devices |

**Key characteristics:**

* **Multi-device** — many devices share two wires (plus power and ground)
* **Addressable** — each device has a hardware address (e.g., 0x76 for a barometer, 0x1E for a magnetometer)
* **Speed** — typically 100 kHz (standard) or 400 kHz (fast mode)
* **Distance** — very short, typically on-board or a few centimeters. Unreliable beyond 10–15 cm on a drone due to capacitance and noise.
* **Pull-up resistors** — SDA and SCL require pull-up resistors to 3.3V. These are usually included on the flight controller board.

I2C is used for on-board sensors (barometers, magnetometers, IMUs) and short-range external connections via the [Pixhawk Standard I2C connector](/knowledge-base/knowledge-base/connectors-and-wiring) (4-pin JST-GH).

### SPI (Serial Peripheral Interface)

SPI is a high-speed bus that uses separate wires for data in each direction plus a chip-select line for each device.

| Signal | Purpose                                               |
| ------ | ----------------------------------------------------- |
| SCLK   | Clock — driven by the controller                      |
| MOSI   | Master Out, Slave In — data from controller to device |
| MISO   | Master In, Slave Out — data from device to controller |
| CS     | Chip Select — one per device, active low              |

**Key characteristics:**

* **Fast** — typically 1–10 MHz, some devices support 20+ MHz
* **Full duplex** — data flows in both directions simultaneously
* **No addressing** — each device needs its own CS line, so wiring grows with each added device
* **Short range** — on-board only, not designed for inter-board connections
* **No bus contention** — only the selected device responds, making it very reliable on a PCB

SPI is used for the primary IMU, high-speed flash memory, and other on-board sensors that need fast data transfer.

## Comparison: UART vs I2C vs SPI vs CAN

| Feature             | UART                          | I2C                                    | SPI                                 | CAN                                |
| ------------------- | ----------------------------- | -------------------------------------- | ----------------------------------- | ---------------------------------- |
| **Wires (data)**    | 2 (TX, RX)                    | 2 (SCL, SDA)                           | 3 + 1/device (SCLK, MOSI, MISO, CS) | 2 (CAN\_H, CAN\_L)                 |
| **Topology**        | Point-to-point                | Multi-drop bus                         | Multi-drop (with CS lines)          | Multi-drop bus                     |
| **Speed**           | Up to 921600 bps typical      | 100–400 kHz                            | 1–20 MHz                            | 1 Mbps                             |
| **Distance**        | Meters (with proper levels)   | Centimeters                            | On-board only                       | Tens of meters                     |
| **Noise immunity**  | Low (single-ended)            | Low (single-ended)                     | Low (single-ended)                  | **High (differential)**            |
| **Devices per bus** | 2 (point-to-point)            | Up to 127 (by address)                 | Limited by CS lines                 | Up to 127 (by node ID)             |
| **Connector**       | 6-pin JST-GH                  | 4-pin JST-GH                           | 7-pin JST-GH                        | 4-pin JST-GH                       |
| **Hot-pluggable**   | Yes                           | No (can lock bus)                      | No                                  | Yes                                |
| **Drone use case**  | Debug console, telemetry, GPS | On-board sensors, short-range external | Primary IMU, flash                  | **Peripheral sensors, GPS, power** |

### Why CAN Wins for Drone Peripherals

For any sensor or module that is not on the flight controller PCB itself, [CAN bus](/knowledge-base/knowledge-base/can-bus) is the clear choice:

1. **Noise immunity** — differential signaling rejects the electromagnetic noise from motors and ESCs that plagues I2C
2. **Distance** — works reliably over the cable lengths found on real drones (10 cm to 1+ meter), where I2C fails
3. **Hot-pluggable** — devices can be connected and disconnected without locking the bus or requiring a reboot
4. **Power delivery** — 5V power and data on the same 4-pin cable
5. **Firmware updates** — DroneCAN supports over-the-bus firmware updates, no debug adapter needed

I2C and SPI remain critical for on-board sensors where their speed advantages and tight PCB integration make them the right choice. The pattern is:

* **On the board** → SPI (fastest) or I2C (fewer pins)
* **Off the board** → CAN (robust and long-distance)

## How ARK Products Use It

### I2C

* [ARK CANnode](/products/sensor/ark-cannode) provides a Pixhawk Standard I2C connector to bridge non-CAN I2C sensors onto the [CAN bus](/knowledge-base/knowledge-base/can-bus)
* Flight controllers use I2C internally for barometers and secondary magnetometers
* External I2C is available on ARK flight controllers but not recommended for long cable runs

### SPI

* All ARK flight controllers use SPI for the primary IMU (e.g., Bosch BMI088, Invensense ICM-42688-P)
* [ARK CANnode](/products/sensor/ark-cannode) provides a Pixhawk Standard SPI connector for bridging SPI sensors onto CAN
* SPI connections are on-board only — there are no long SPI cables in a typical ARK build

### CAN

* Most external ARK sensors use [DroneCAN](/knowledge-base/knowledge-base/can-bus) as their primary interface
* This is by design — CAN's noise immunity and robustness make it the right bus for inter-board communication on a drone

## Common Pitfalls

* **Using I2C for external sensors on a drone** — I2C works perfectly on a bench but fails intermittently in flight due to motor noise and cable capacitance. Use CAN for any sensor that isn't on the flight controller board.
* **I2C bus lockup** — if an I2C device holds SDA low (due to noise, interrupted transfer, or a bug), the entire bus locks up. The only recovery is usually a power cycle. CAN does not have this failure mode.
* **Address conflicts on I2C** — two devices with the same I2C address cannot share a bus. Some sensors have configurable addresses, but many do not.
* **Missing I2C pull-ups** — if you connect an external I2C device to a port that doesn't have pull-up resistors, communication will fail. The Pixhawk Standard I2C port on ARK boards includes pull-ups.
* **SPI chip-select wiring** — each SPI device needs its own CS line wired correctly. A floating or mis-routed CS line will cause data corruption or no communication.

## Further Reading

* [CAN Bus](/knowledge-base/knowledge-base/can-bus) — detailed CAN bus reference
* [Serial Communication (UART)](/knowledge-base/knowledge-base/serial-communication-uart) — UART protocol details
* [Connectors and Wiring](/knowledge-base/knowledge-base/connectors-and-wiring) — Pixhawk standard connector pinouts
* [I2C Specification (NXP)](https://www.digikey.com/en/pdf/n/nxp-semiconductors/um10204-i2c-bus-specification-and-user-manual)
* [SPI Overview (Analog Devices)](https://www.analog.com/en/analog-dialogue/articles/introduction-to-spi-interface.html)


# Recommended Tools

Essential bench tools for building, debugging, and maintaining drone electronics.

## Why Good Tools Matter

You can build a drone with just a soldering iron and a prayer, but when something goes wrong — and it will — having the right tools on your bench turns a multi-day guessing game into a 10-minute diagnosis. Every tool on this list has earned its spot by saving real debugging time.

## Debug and Programming

### ST-LINK V3 Mini

The [ST-LINK V3 Mini](https://www.digikey.com/en/products/detail/stmicroelectronics/STLINK-V3MINIE/16284301) is the recommended programmer/debugger for all ARK products with STM32 microcontrollers. It handles both [SWD programming](/knowledge-base/knowledge-base/swd-programming) and [UART debug console](/knowledge-base/knowledge-base/serial-communication-uart) access through a single USB connection — no separate USB-to-serial adapter needed.

See the [ST-LINK Flashing Guide](/knowledge-base/knowledge-base/st-link-flashing-guide) for setup and usage.

### ARK Pixhawk Debug Adapter

The [ARK Pixhawk Debug Adapter](https://arkelectron.com/product/ark-pixhawk-debug-adapter/) bridges the ST-LINK V3 Mini's STDC14 connector to the Pixhawk Standard 6-pin and 10-pin JST-SH debug connectors found on ARK boards. Includes debug cables. Without this adapter, you would need to manually wire the ST-LINK to JST-SH connectors.

A printable holder that mounts an ST-LINK V3 Mini to the adapter is at <https://github.com/ARK-Electronics/ark-hardware/tree/main/ARK_Pixhawk_Debug_Adapter/case>

### CAN-to-USB Adapter

A CAN-to-USB adapter like the [Zubax Babel](https://zubax.com/products/babel) lets you connect your computer directly to the [CAN bus](/knowledge-base/knowledge-base/can-bus) for diagnostics, firmware updates, and parameter configuration using the [DroneCAN GUI Tool](/knowledge-base/knowledge-base/dronecan-gui-tool-guide).

This is essential for:

* Updating firmware on DroneCAN nodes when no flight controller is available
* Inspecting raw CAN bus traffic to diagnose communication issues
* Configuring device parameters outside of a flight controller setup

{% hint style="info" %}
With ArduPilot, the flight controller itself can act as a CAN interface via SLCAN, so a separate adapter is not strictly required. However, a dedicated adapter is useful for standalone bench work and does not depend on a working flight controller.
{% endhint %}

## Test and Measurement

### Oscilloscope

An oscilloscope is the single most useful debugging tool for embedded electronics. When a communication bus isn't working and you've checked the obvious (wiring, baud rate, configuration), an oscilloscope shows you exactly what is happening on the wire — signal presence, voltage levels, noise, rise times, and timing.

Use it to:

* Verify [UART](/knowledge-base/knowledge-base/serial-communication-uart) TX/RX signals are present and clean
* Spot power rail noise, ripple, and brownouts
* Confirm connector and solder joint integrity — a broken connection is immediately obvious
* Check voltage levels and signal rise/fall times

An oscilloscope shows you the actual analog waveform, which matters because a logic analyzer applies a voltage threshold and only shows you 1s and 0s. A signal that is ringing, has a slow rise time, or is sitting at an ambiguous voltage will show up clearly on a scope but may look perfectly fine on a logic analyzer. Always verify with a scope first, then move to a logic analyzer for protocol decoding.

Any decent digital oscilloscope with at least 100 MHz bandwidth and two channels will cover drone electronics work.

### Logic Analyzer

A logic analyzer captures and decodes digital bus traffic over time. The [Saleae Logic Pro 16](https://www.saleae.com/) is an excellent choice — 16 channels, high sample rate, and the Saleae Logic 2 software includes built-in protocol decoders for UART, I2C, SPI, and more.

This is the right tool for protocol-level debugging — verifying that the correct bytes are being sent, spotting framing errors, checking timing between messages, and decoding multi-wire buses like I2C (SCL + SDA) and SPI (SCLK + MOSI + MISO + CS) where you need to see clock and data together.

{% hint style="info" %}
**Oscilloscope first, logic analyzer second.** A logic analyzer applies a voltage threshold to classify signals as high or low — it won't tell you if a signal is noisy, has poor rise times, or is floating at an intermediate voltage. Use an oscilloscope to confirm signal integrity first, then switch to a logic analyzer for protocol decoding.
{% endhint %}

### Multimeter

A basic digital multimeter handles the everyday measurements:

* **Voltage** — verify 5V and 3.3V rails are within spec, check battery voltage
* **Continuity** — trace wires, check solder joints, find broken traces
* **Resistance** — measure [CAN bus termination](/knowledge-base/knowledge-base/can-bus) (should read \~60 ohms between CAN\_H and CAN\_L with two 120-ohm terminators)

Any reputable multimeter with DC voltage, resistance, and continuity modes will work.

### Benchtop Power Supply

A benchtop power supply with adjustable voltage and current limiting lets you power your electronics safely during development without a battery.

{% hint style="warning" %}
**Quality matters here.** Cheap power supplies have high output ripple (voltage noise) that can cause the same problems you're trying to debug — sensor noise, communication errors, and erratic behavior. Look for a supply with low ripple specification (under 10 mV peak-to-peak). A supply with ripple in the hundreds of millivolts can mask or create issues that won't appear on battery power, and vice versa.
{% endhint %}

Key features to look for:

* Adjustable voltage (0–30V covers everything from 3.3V logic to 6S battery simulation)
* Current limiting — set a limit so a wiring mistake trips the supply instead of releasing the magic smoke
* Low ripple and noise (< 10 mV p-p)
* Voltage and current readout

## ESC Programming

### Betaflight-Capable Flight Controller

To configure or flash firmware on ARK32 ESCs (like the [ARK 4IN1 ESC](/products/electronic-speed-controller/ark-4in1-esc)), you need a flight controller running Betaflight that supports ESC passthrough. The [ARK FPV](/products/flight-controller/ark-fpv) works for this — flash it with [Betaflight](/products/flight-controller/ark-fpv/firmware#betaflight), connect the ESC, and use the [ARK32 Configurator](https://ark32.arkelectron.com/) via passthrough.

See the [ARK 4IN1 ESC firmware guide](/products/electronic-speed-controller/ark-4in1-esc/firmware) for detailed instructions.

## Cables and Connectors

### JST Cable Kits

Pre-crimped cable kits let you make custom-length cables without a crimping tool:

* **JST-GH 1.25 mm** (peripheral connectors — CAN, I2C, UART, GPS, power): [GH1.25 Connectors Kit on Amazon](https://www.amazon.com/Pre-Crimped-Connectors-Pixhawk2-Pixracer-Silicone/dp/B07PBHN7TM)
* **JST-SH 1.0 mm** (debug connectors): [JST SH 1.0mm Connector Kit on Amazon](https://www.amazon.com/Teansic-Connector-Pre-Crimped-Housing-Controller/dp/B0D5X6BY5Z)

See [Connectors and Wiring](/knowledge-base/knowledge-base/connectors-and-wiring) for pinout details and wire color conventions.


# ST-LINK Flashing Guide

Guide for using ST-LINK to flash firmware and access the debug console on ARK products.

## Overview

### What is SWD?

SWD (Serial Wire Debug) is a two-wire debug interface for ARM microcontrollers. It provides programming and debugging capabilities using just two signals (SWDIO and SWCLK) plus ground. All ARK products with STM32 microcontrollers include an SWD interface on their debug connector.

### What is ST-LINK?

ST-LINK is a programmer/debugger from STMicroelectronics designed for their STM32 microcontroller family. It connects to your computer via USB and to the target board via the SWD interface, allowing you to flash firmware and debug applications.

### Why ST-LINK V3 Mini?

We recommend the **ST-LINK V3 Mini** because it is a composite USB device that provides both the programmer interface and a virtual serial port in a single USB connection. This means you can flash firmware and access the UART debug console without needing a separate USB-to-serial adapter.

When you connect an ST-LINK V3 Mini to your computer, it creates multiple USB interfaces:

**Example `dmesg` output:**

```
usb 1-3: new high-speed USB device number 66 using xhci_hcd
usb 1-3: New USB device found, idVendor=0483, idProduct=3754, bcdDevice= 1.00
usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-3: Product: STLINK-V3
usb 1-3: Manufacturer: STMicroelectronics
usb 1-3: SerialNumber: 003500313133510F37363734
cdc_acm 1-3:1.1: ttyACM0: USB ACM device
```

The `ttyACM0` device is the virtual serial port you can use for UART debug console access.

***

## What You'll Need

* [**ARK Pixhawk Debug Adapter**](https://arkelectron.com/product/ark-pixhawk-debug-adapter/) - Includes 6-pin and 10-pin JST-SH debug cables
* [**ST-LINK V3MINIE**](https://www.digikey.com/en/products/detail/stmicroelectronics/STLINK-V3MINIE/16284301) (recommended) or ST-LINK V2
* **Computer** running Ubuntu or Windows
* **Firmware binary file** (.bin)

### Optional: JST Cable Kits

If you need additional cables for custom wiring, these pre-crimped cable kits are convenient (no crimping tool required):

* **JST-SH 1.0mm** (debug connectors): [JST SH 1.0mm Connector Kit on Amazon](https://www.amazon.com/Teansic-Connector-Pre-Crimped-Housing-Controller/dp/B0D5X6BY5Z)
* **JST-GH 1.25mm** (peripheral connectors): [GH1.25 Connectors Kit on Amazon](https://www.amazon.com/Pre-Crimped-Connectors-Pixhawk2-Pixracer-Silicone/dp/B07PBHN7TM)

***

## Hardware Setup

The [ARK Pixhawk Debug Adapter](https://arkelectron.com/product/ark-pixhawk-debug-adapter/) makes connecting an ST-LINK to ARK products simple - no manual wiring required.

1. Connect the ST-LINK V3 Mini to the adapter's STDC14 connector using the cable that comes with the ST-LINK
2. Connect the appropriate JST-SH debug cable (6-pin or 10-pin) from the adapter to your ARK product's debug port
3. Connect the ST-LINK to your computer via USB

The adapter routes SWD signals (SWDIO, SWCLK, GND) and UART signals (TX, RX) between the ST-LINK and the Pixhawk Standard Debug connector.

{% hint style="warning" %}
**Power:** The ST-LINK can provide 3.3V power to the target. If your board is already powered from another source (battery, USB, etc.), the adapter handles this safely. However, for boards that draw significant current, power from an external source is recommended.
{% endhint %}

***

## Software Installation

### Ubuntu

Install the stlink tools from the official repository:

```bash
sudo apt install stlink-tools
```

Alternatively, you can build from source by following the instructions on the [stlink-org/stlink GitHub page](https://github.com/stlink-org/stlink).

**Permissions:** If you encounter permission errors, add your user to the `dialout` group:

```bash
sudo usermod -aG dialout $USER
```

Log out and back in for the change to take effect.

### Windows

1. Download the **ST-LINK Utility** from the [STMicroelectronics website](https://www.st.com/en/development-tools/st-link-v2.html#tools-software)
2. Install the utility and USB drivers
3. Refer to the [ST-LINK documentation](https://www.st.com/en/development-tools/stsw-link007.html#documentation) for detailed usage instructions

***

## Flashing Firmware

### Ubuntu

#### Test the Connection

After connecting your ST-LINK to both your computer and the target board, verify the connection:

```bash
st-info --probe
```

**Expected output (example for ARK FPV):**

```
Found 1 stlink programmers
  version:    V3J8
  serial:     003800333433510937363934
  flash:      2097152 (pagesize: 131072)
  sram:       131072
  chipid:     0x450
  dev-type:   STM32H74x_H75x
```

**Expected output (example for ARK 4IN1 ESC):**

```
Found 1 stlink programmers
  version:    V2J45S7
  serial:     543C0A135550
  flash:      32768 (pagesize: 1024)
  sram:       4096
  chipid:     0x0440
  dev-type:   STM32F03x/STM32F05x
```

If you see an error or no device found, check your wiring connections.

#### Erase Flash Memory (Optional)

Before flashing new firmware, you may want to erase the existing flash. On PX4 boards with FLASH based parameters (ARK FPV, ARK Pi6X) this will also wipe all parameters back to default. If you don't mass erase, parameters will remain unchanged.

```bash
st-flash erase
```

#### Flash Firmware

Navigate to the directory containing your firmware binary, then flash:

```bash
st-flash write firmware.bin 0x08000000
```

{% hint style="warning" %}
`st-flash` takes a `.bin`. A `.px4` is a JSON envelope for QGC / ARK-OS / `px_uploader`, not an SWD image.

`0x08000000` is the start of flash (bootloader or single-image firmware). Application offsets: [PX4 flight controllers](#flashing-px4-flight-controllers) and [DroneCAN nodes](#flashing-dronecan-nodes).
{% endhint %}

**Expected output:**

```
st-flash 1.8.0
2025-01-15T10:30:00 INFO common.c: STM32H74x: 128 KiB SRAM, 2048 KiB flash
file firmware.bin md5 checksum: abc123..., stlink checksum: 0x00abcdef
2025-01-15T10:30:00 INFO common.c: Attempting to write 524288 (0x80000) bytes to stm32 address: 134217728 (0x8000000)
2025-01-15T10:30:05 INFO common.c: Flash written and verified! jolly good!
```

### Windows

1. Open **ST-LINK Utility**
2. Click **Target > Connect** to connect to your board
3. Click **File > Open File** and select your firmware binary (.bin file)
4. Click **Target > Program & Verify**
5. Verify the success message in the log window

***

## Flashing PX4 Flight Controllers

ARKV6X, ARKV6S, ARK FPV, and ARK Pi6X are STM32H7 with 128 KB flash sectors.

| Image       | File                      | Address            |
| ----------- | ------------------------- | ------------------ |
| Bootloader  | `<target>_bootloader.bin` | `0x08000000`       |
| Application | `<target>_default.px4`    | USB (QGC / ARK-OS) |

```bash
st-flash write ark_fmu-v6x_bootloader.bin 0x08000000
```

Then flash the `.px4` application over USB.

The bootloader `.bin` is in PX4-Autopilot at `boards/ark/<board>/extras/` and on [PX4 GitHub releases](https://github.com/PX4/PX4-Autopilot/releases) as `<target>_bootloader.bin`.

SWD of the application is `0x08020000`.

***

## Flashing DroneCAN Nodes

DroneCAN nodes — ARK RTK GPS, ARK CANnode, ARK Flow, ARK MAG, ARK DIST, and the other CAN products — run **two** separate images: a bootloader at the start of flash and the application at a fixed offset above it. On ARK CAN nodes the bootloader region is 64 KB, so the application lives at `0x08010000`, not `0x08000000`. This applies to both ArduPilot AP\_Periph and PX4 CAN node firmware.

| Image                                                        | Flash address |
| ------------------------------------------------------------ | ------------- |
| Bootloader (ArduPilot CAN bootloader or PX4 `canbootloader`) | `0x08000000`  |
| Application (AP\_Periph or PX4 CAN node firmware)            | `0x08010000`  |

{% hint style="warning" %}
Writing the application to `0x08000000` overwrites the bootloader. `st-flash` reports success, but the node boots with a single LED flash and then goes dark — it never appears in the [DroneCAN GUI Tool](/knowledge-base/knowledge-base/dronecan-gui-tool-guide) or the Mission Planner DroneCAN/UAVCAN tab. If you see this after an SWD flash, reflash with the combined image below.
{% endhint %}

### Recommended: Flash the Combined Bootloader + Application Image

ArduPilot publishes a combined bootloader and application image as an Intel HEX file. HEX files carry their own load addresses, so there is no offset to get wrong. This is the recommended way to flash a node over SWD, and the only way to bring up a node that has no bootloader at all.

Download `AP_Periph_with_bl.hex` for your board from the [ArduPilot firmware server](https://firmware.ardupilot.org/AP_Periph/stable/), then flash it:

```bash
st-flash --format ihex write AP_Periph_with_bl.hex
```

Power-cycle the node afterward. It should enumerate on the CAN bus within a few seconds.

### Firmware Files

Each board directory on the ArduPilot firmware server contains several files. Pick the one that matches how you are flashing:

| File                    | Contents                 | Use with                                                                                                    |
| ----------------------- | ------------------------ | ----------------------------------------------------------------------------------------------------------- |
| `AP_Periph_with_bl.hex` | Bootloader + application | ST-LINK / SWD — no address needed                                                                           |
| `AP_Periph.bin`         | Application only         | ST-LINK / SWD, written at `0x08010000`                                                                      |
| `AP_Periph.apj`         | Application only         | [DroneCAN GUI Tool](/knowledge-base/knowledge-base/dronecan-gui-tool-guide) or flight controller CAN update |

### Flashing the Application Only

If the node already has a working bootloader and you only want to replace the application, write the `.bin` at the application offset:

```bash
st-flash write AP_Periph.bin 0x08010000
```

Prefer the combined HEX unless you have a specific reason not to — an application flashed at the wrong address is the most common way to leave a node unresponsive.

{% hint style="info" %}
Once a bootloader is installed, SWD is no longer needed for routine updates. Firmware can be pushed over CAN from the flight controller's SD card or with the [DroneCAN GUI Tool](/knowledge-base/knowledge-base/dronecan-gui-tool-guide).
{% endhint %}

### PX4 Nodes

PX4 CAN nodes use the same split — the PX4 `canbootloader` at `0x08000000` and the node application at `0x08010000`. Flash the bootloader first, then the application at its offset. PX4 does not publish a combined image, so both writes are separate:

```bash
st-flash write canbootloader.bin 0x08000000
st-flash write firmware.bin 0x08010000
```

***

## UART Debug Console

The debug connector provides a serial console (UART) for viewing system output and debugging. This is useful for accessing the NuttX shell, viewing boot messages, and debugging issues.

### Connection

When using the ARK Pixhawk Debug Adapter with an ST-LINK V3 Mini, the UART signals are routed through the adapter. The ST-LINK V3 Mini's composite USB creates a virtual serial port (`/dev/ttyACM0` on Linux, `COMx` on Windows) that provides access to the debug console.

No additional wiring or adapters are needed.

### Serial Terminal Settings

* **Baud rate:** 57600
* **Data bits:** 8
* **Stop bits:** 1
* **Parity:** None
* **Flow control:** None

### Ubuntu

Using `screen`:

```bash
screen /dev/ttyACM0 57600
```

To exit screen, press `Ctrl+A` then `K`, then `Y` to confirm.

### Windows

Use a serial terminal application such as:

* **PuTTY** - Select "Serial" connection type, enter the COM port, and set speed to 57600
* **Tera Term** - Select serial port and configure 57600 baud, 8N1

***

## Troubleshooting

### "No ST-LINK detected"

* Check that the USB cable is connected properly
* Try a different USB port
* Verify the ST-LINK USB drivers are installed (Windows)
* Check `dmesg` output (Linux) to see if the device is recognized

### "Target voltage detected" or Similar Errors

* Ensure proper power configuration - either power from ST-LINK OR external source, not both.
* Disconnect peripheral devices in case they are drawing too much power.

### Permission Denied (Linux)

Add your user to the dialout group:

```bash
sudo usermod -aG dialout $USER
```

Then log out and back in.

### Flash Verification Failed

* Ensure the correct firmware binary for your target
* Try erasing flash first with `st-flash erase`
* Check that the flash address is correct for your target — `0x08000000` for a bootloader or single-image firmware, `0x08020000` for a PX4 STM32H7 application, `0x08010000` for a DroneCAN node application

### Node Flashes Its LED Once at Boot, Then Nothing

The application was almost certainly written over the bootloader at `0x08000000`. The node has no bootloader to hand off to, so it never joins the CAN bus and no DroneCAN tool will see it. Reflash with the combined image — see [Flashing DroneCAN Nodes](#flashing-dronecan-nodes).

### Serial Console Shows Garbage Characters

* Verify the baud rate is set to 57600
* Check TX/RX connections are not swapped
* Ensure common ground between ST-LINK and target board


# DroneCAN GUI Tool Guide

Guide for using the DroneCAN GUI Tool to configure, update firmware, and monitor ARK DroneCAN devices.

## Overview

The DroneCAN GUI Tool is an open source application for managing DroneCAN devices. It allows you to:

* Upload firmware to DroneCAN nodes
* View and modify device parameters
* Monitor CAN bus traffic in real-time

This guide covers using the tool with ARK DroneCAN products such as the ARK Flow, ARK CANnode, ARK DIST, ARK MAG, and ARK GPS modules.

{% embed url="<https://github.com/dronecan/gui_tool>" %}

***

## Installation

Install the required dependencies and the DroneCAN GUI Tool on Ubuntu:

```bash
sudo apt-get install -y python3-pip python3-setuptools python3-wheel
sudo apt-get install -y python3-numpy python3-pyqt5 python3-pyqt5.qtsvg git-core
python3 -m pip install git+https://github.com/DroneCAN/gui_tool@master
```

Run the tool with:

```bash
dronecan_gui_tool
```

***

## Connecting to DroneCAN Devices

### PX4 - USB to CAN Adapter

PX4 requires a USB-to-CAN adapter that supports the SLCAN protocol to connect to DroneCAN devices. The Zubax Babel is a commonly used adapter.

1. Connect the adapter to your CAN bus and plug it into your computer via USB
2. Launch the DroneCAN GUI Tool
3. Select the adapter's serial port from the dropdown
4. Set the CAN bus bit rate to 1000000 (1 Mbps)
5. Click OK to connect
6. Once connected press the "Set" button to the right of "Set local node ID."

![](https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2Fgit-blob-bbff3dc27ac403fbee7d81e9e839f0c9ca124881%2Fdronecan_gui_tool_start.png?alt=media)

![](https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2Fgit-blob-3caa29033928b4731b804a90063d52c73ff759b2%2Fdronecan_gui_tool_connected.png?alt=media)

### ArduPilot - Flight Controller as CAN Interface

With ArduPilot, the flight controller can act as a CAN interface, eliminating the need for a separate USB-to-CAN adapter.

#### SLCAN

SLCAN exposes the CAN bus over the flight controller's USB serial port. This is the simplest method when the vehicle is not armed.

This is already enabled by default on ARK boards running Ardupilot.

* [SLCAN on F7/H7 Autopilots](https://ardupilot.org/copter/docs/common-slcan-f7h7.html)

{% hint style="info" %}
SLCAN access is disabled when the vehicle is armed to reduce CPU load.
{% endhint %}

#### MAVCAN

MAVCAN tunnels CAN frames over a MAVLink connection. This method works while armed and over any MAVLink link (USB, telemetry radio, etc.).

To connect via MAVCAN in the DroneCAN GUI Tool, enter the connection string with the `mavcan:` prefix, for example `mavcan:udp:14550`.

{% hint style="info" %}
It is not recommended to run MAVCAN while the vehicle is armed, due to the high amount of link traffic it creates.
{% endhint %}

***

## Firmware Upload

DroneCAN nodes that require firmware will appear with a status of MAINTENANCE in the node list.

To upload firmware:

1. Double-click on the node to open its properties window
2. Click **Update Firmware**
3. Select the firmware file for your device

**Firmware file formats:**

* `.bin` - AP\_Periph firmware (ArduPilot)
* `.uavcan.bin` - PX4 CANnode firmware

{% hint style="info" %}
Check the individual ARK product documentation pages for which firmware types are supported by each device.
{% endhint %}

![](https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2Fgit-blob-a693c409da1c411080c561cee8e1e134d7b4fc2d%2Fdronecan_gui_tool_fw_update.png?alt=media)

***

## Parameter Configuration

To view and modify device parameters:

1. Double-click on a node in the node list to open its properties window
2. Click **Fetch All** to retrieve parameters from the device
3. Edit parameter values as needed
4. Click **Send** to write the changed parameters to the device

![](https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2Fgit-blob-e29be881612e98e99597cbc754036d2587bca0e7%2Fdronecan_gui_tool_params.png?alt=media)

***

## Bus Monitor

The Bus Monitor provides real-time visibility into CAN bus traffic, useful for debugging and verifying device communication.

To open the Bus Monitor:

1. Go to **Tools** in the menu bar
2. Select **Bus Monitor**
3. Press the camera icon to begin capturing frames
4. Press the pause icon to stop cature and review

The Bus Monitor displays:

* CAN message types and data type names
* Source and destination node IDs
* Decoded message contents

![](https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2Fgit-blob-1d9bc50e056e05daa57ee424442d8255ea692b10%2Fdronecan_gui_tool_bus_monitor.png?alt=media)


# u-blox Firmware Update

The u-blox receiver's firmware is separate from the ARK module's CAN node firmware, and is updated with u-blox's [u-center](https://www.u-blox.com/en/product/u-center) desktop tools — u-center for the ZED-F9P, u-center 2 for the ZED-X20P. The procedure applies to the [ARK RTK GPS](/products/gps/ark-rtk-gps), [ARK RTK Base](/products/gps/ark-rtk-base), and [ARK X20 RTK GPS](/products/gps/ark-x20-rtk-gps).

## Connecting

* **ARK RTK Base** — connect over USB-C. The F9P enumerates directly as a USB serial port.
* **CAN modules (ARK RTK GPS, ARK X20 RTK GPS)** — hold the safety switch while powering the module through a CAN port, until all three LEDs blink rapidly. This bridges the receiver's `UART1` to the debug connector's UART (pins 2/3 of the 6-pin JST-SH, plus GND). Attach a 3.3V USB-serial adapter there and connect u-center to that COM port. Check *Use this baudrate for update* and select `115200`. See the [PX4 ARK RTK GPS page](https://docs.px4.io/main/en/dronecan/ark_rtk_gps.html) for the full procedure.

{% hint style="warning" %}
u-blox firmware cannot be updated over UART2. `GPS_UBX_MODE` 7 opens UART2 as a UBX diagnostic port for u-center, but firmware update is only available on UART1 via the debug passthrough above.
{% endhint %}

## Updating

1. Check the installed version: in u-center open **View > Messages View > UBX > MON > VER**; u-center 2 shows the firmware version on the device page.
2. Download the firmware image from the u-blox product page — [ZED-F9P](https://www.u-blox.com/en/product/zed-f9p-module) or [ZED-X20P](https://www.u-blox.com/en/product/zed-x20p-module), under *Documentation & resources*.
3. Run the firmware update tool (**Tools > Firmware Update** in u-center, **Firmware Update** on the device page in u-center 2), select the downloaded image, and leave the remaining settings at their defaults.
4. When the update completes, power cycle the module and re-check the version.

{% hint style="warning" %}
Do not power cycle the module while the update is running.
{% endhint %}


# PX4 Log Encryption

This section guides you through setting up log encryption in PX4 on our flight controllers, and then explains how to access, decrypt, and view the encrypted logs.

{% embed url="<https://www.youtube.com/watch?v=ixmzCn4nH9c>" %}

### Creating PX4 Board files for Encrypted logs

```
git clone --recurse-submodules git@github.com:PX4/PX4-Autopilot.git
```

Generate your Private and Public Key

```
cd PX4-Autopilot/Tools/log_encryption
python3 generate_keys.py
```

You can find your keys in

```
PX4-Autopilot/
│
├── keys/ 
│ ├── private/
│ │ ├── private_key.pem # RSA private key (2048-bit)
│ │
│ ├── public/ 
│ │ ├── public_key.der # Public key in DER format
│ │ ├── public_key.pub # Public key in hex format
```

The ARK flight controllers have targets setup for encryption

You should navigate to

```
PX4-Autopilot/boards/ark
```

* ARK FPV
* ARKV6X
* ARKPI6X

You should replace the Dummy Key with your own Public Key in the following file

```
encrypted_logs.px4board
```

```
CONFIG_PUBLIC_KEY1="../../../keys/public/public_key.pub"
```

Then you can go ahead and make your board file

```
make ark_fpv_encrypted_logs
OR
make ark_fmu-v6x_encrypted_logs
OR
make ark_pi6x_encrypted_logs
```

Once that is done you can find your build file in

```
PX4-Autopilot/build/*.px4
```

You can go ahead and flash it on your flight controller.

### Downloading and Decrypting log files

The encrypted logs can be found on the SD card in .ulge format.

You can either extract the files directly from the SD card our use the log tool provided below

Addresses might need to be adjusted

```
cd PX4-Autopilot/Tools/log_encryption

python3 download_logs.py /dev/ttyACM0 --baudrate 57600

OR

python3 download_logs.py udp:0.0.0.0:14550
```

To Decrypt the logs you can use

```
cd PX4-Autopilot/Tools/log_encryption

AND
# Uses default key + default folder
python3 decrypt_logs.py

OR
# Use --help to get all the options
python3 decrypt_logs.py --help
```

Your logs can be found in the following structure

```
PX4-Autopilot/
│
├── logs/ 
│ ├── encrypted/ 
│ │ ├── log-YYYY-MM-DD_HH-MM-SS_ID.ulge 
│ │
│ ├── decrypted/
│ │ ├── log-YYYY-MM-DD_HH-MM-SS_ID.ulg
```

Once you've decrypted your logs, you can view them using your preferred method.

### Flight Review

{% embed url="<https://www.youtube.com/watch?v=Dhd3jYyHgI0&t=1s>" %}

If you choose to use Flight Review, you can embed your Private Key on your local Flight Review server, allowing your encrypted logs to be decrypted automatically when the .ulge is uploaded .

```
git clone --recurse-submodules git@github.com:PX4/flight_review.git
```

You should follow these steps

```
cd flight_review/app
pip install -r requirements.txt
# Note: preferably use a virtualenv
./app/setup_db.py
```

Add your Private Key to

```
flight_review/app/private_key/private_key.pem
```

Then you need to edit, the config file. There you can define your own network setup (Domain, VPN, etc).

```
flight_review/app/config_default.ini
```

You have to update the Private Key path with your own.

```
ulge_private_key = ../private_key/private_key.pem
```

Once you are done you can just open your server using

```
cd app
./serve.py --show
```

Once you have your server ready you can upload the Encrypted logs and view them.

Optionally you can also integrate logloader developed by ARK.

The repository can be found here:

<https://github.com/ARK-Electronics/logloader>

You should specify your server in the config file

```
logloader/config.toml
```


# PX4 Setup

{% embed url="<https://www.youtube.com/watch?v=c2G0YkwViTc>" %}

{% embed url="<https://docs.px4.io/main/en/config_mc/>" %}


# USB Peripherals

Tested USB Wi-Fi and Bluetooth adapters, and USB camera EMI on GPS.

Applies to every ARK Jetson carrier. Adapters below were tested against the [ARK Jetson Kernel](https://github.com/ARK-Electronics/ark_jetson_kernel).

## Wi-Fi Adapters

<table><thead><tr><th>Wi-Fi Adapter</th><th>Status</th><th data-hidden></th></tr></thead><tbody><tr><td><a href="https://a.co/d/3MhAIhk">Edimax Wi-Fi 4 802.11n Adapter</a></td><td>Working with rtl8xxxu driver</td><td></td></tr><tr><td><a href="https://a.co/d/afkaRWw">TP-Link TL-WN725N</a></td><td>Module exists in kernel but is missing driver</td><td></td></tr><tr><td><a href="https://a.co/d/gagruxP">TP-Link AX1800</a></td><td>Does not work. No kernel driver in 5.15</td><td></td></tr><tr><td><a href="https://a.co/d/at9haBv">TP-Link AC1300</a></td><td>Does not work. No kernel driver in 5.15</td><td></td></tr></tbody></table>

## Bluetooth Adapters

<table><thead><tr><th>Bluetooth Adapter</th><th>Status</th><th data-hidden></th></tr></thead><tbody><tr><td><a href="https://a.co/d/bp0okc0">TP-Link UB500</a></td><td>Working with btusb driver</td><td></td></tr><tr><td><a href="https://a.co/d/2u3XvwS">UGREEN 5.3 Bluetooth Adapter</a></td><td>No driver exists in 5.15 for the Actions ATS2851 chipset</td><td></td></tr></tbody></table>

## USB Cameras and GPS

USB 3.0 signalling emits broadband EMI overlapping the GPS L1, L2, and L5 bands. It raises the noise floor enough to degrade or prevent GPS lock.

Use a USB 2.0 camera where possible. If not, shield the cable and connectors with faraday tape.

Before flight testing:

1. **Measure** the noise floor across the GPS bands with the camera active, using a GPS receiver with spectrum monitoring or a spectrum analyzer.
2. **Shield** the cable, connectors, and exposed sections with faraday/EMI tape if interference is severe.
3. **Re-measure** to confirm the noise floor recovered.

See [this post from Alex Klimaj](https://x.com/ArkElectron/status/1752197126120189962).


# ARK-OS

[ARK-OS](https://github.com/ARK-Electronics/ARK-OS) is ARK's companion computer software suite: a set of systemd services for MAVLink routing, video streaming, flight log management, firmware updates, and network RTK corrections, plus a web UI to manage it all. It ships pre-installed on the ARK Jetson image and on the Pi golden image.

## ARK-UI

The web UI is served at `http://<hostname>.local` (or the device's IP) — `jetson.local`, `just-a-pi.local`, `pi6x.local`. Pages: **System** (hardware and resource info, hostname), **Autopilot** (status, firmware update, reset), **Connections** (WiFi/Ethernet/LTE, data usage), **Services** (start/stop, autostart, logs, config editing), **Video** (live camera stream), and **Logs** (flight log download and upload to Flight Review).

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2Fgit-blob-b6b4c1aa7dc616b5242e6b3126f9ba1ff774fd3a%2Fark-ui-services.png?alt=media" alt=""><figcaption><p>Services page — start/stop services, toggle autostart, view logs, edit configs</p></figcaption></figure>

## Services

See the [Services](/software/ark-os/services) page for what each service does and which are enabled by default.

## Command-Line Tools

ARK-OS puts its operator scripts on `PATH` (open a login shell and run them by name):

```
mavlink_shell.py              # interactive PX4 NSH shell over MAVLink
px4_shell_command.py <cmd>    # run a single PX4 console command
flash_firmware.sh <fw.px4>    # flash flight controller firmware
reset_fmu_fast.py             # reset the flight controller
reset_fmu_wait_bl.py          # reset the flight controller into bootloader
```

Jetson carriers also ship:

```
jetson_serial_number.py       # print the carrier serial number
can_check.py can0             # check DroneCAN traffic on a CAN interface
check_cameras.sh              # stream-test the CSI cameras
check_fan.sh                  # verify the cooling fan
```

## Installing and Updating ARK-OS

ARK-OS is distributed as a Debian package on the [releases page](https://github.com/ARK-Electronics/ARK-OS/releases). On Pi the packages are split by OS release — `ark-os-pi-trixie` for Raspberry Pi OS based on Debian 13, `ark-os-pi-bookworm` for Debian 12 — and the install script picks the right one. Run it from a clone of the repo on the device:

```bash
git clone https://github.com/ARK-Electronics/ARK-OS.git
cd ARK-OS
sudo ./packaging/install_ark_os.sh --ark-os-version=X.Y.Z
```

{% hint style="warning" %}
Upgrading resets the service configuration under `/etc/ark-os/` to packaged defaults — reconfigure via the web UI afterward.
{% endhint %}


# Services

What each ARK-OS service does.

ARK-OS services are system-level [systemd services](https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html) running as the device user — `jetson` on Jetson carriers, `pi` on Pi carriers. Manage them, including configuration editing, from the ARK-UI **Services** page or with `systemctl`. Configuration files live under `/etc/ark-os/`.

## Enabled by Default

**mavlink-router** routes MAVLink between the flight controller (USB, `/dev/ttyACM0`) and user-defined UDP/TCP endpoints such as QGroundControl. Default config: [main.conf](https://github.com/ARK-Electronics/ARK-OS/blob/main/services/mavlink-router/main.conf).

**rtsp-server** streams the first CSI camera over RTSP at `rtsp://<hostname>.local:5600/camera1` using gstreamer.

**go2rtc** restreams the RTSP feed to the browser over WebRTC for the ARK-UI **Video** page.

**ark-ui-backend**, **system-manager**, **service-manager**, **connection-manager**, **autopilot-manager** are the REST APIs behind the ARK-UI (hidden from the Services page).

**jetson-can** brings up the Jetson CAN interface (`can0`). Jetson carriers only.

## Optional (installed, disabled by default)

Enable from the ARK-UI Services page or with `systemctl enable --now <service>`.

**dds-agent** bridges PX4 uORB topics to ROS 2 by running the [Micro XRCE-DDS Agent](https://github.com/eProsima/Micro-XRCE-DDS-Agent) on the high-speed serial connection to the flight controller — `/dev/ttyTHS1` on Jetson carriers and `/dev/ttyAMA4` on the Pi6X Flow, wired to TELEM2 at 3 Mbps. A Pi6X Flow with a CM5 needs `/dev/ttyAMA3` instead; see its [Autopilot Connections](/products/flight-controller/ark-pi6x-flow/autopilot-connections#serial). The bridged topics are defined in [PX4's dds\_topics.yaml](https://github.com/PX4/PX4-Autopilot/blob/main/src/modules/uxrce_dds_client/dds_topics.yaml). Set these PX4 parameters:

| Parameter       | Value   | Description |
| --------------- | ------- | ----------- |
| UXRCE\_DDS\_CFG | 102     | TELEM 2     |
| SER\_TEL2\_BAUD | 3000000 | 3 Mbps 8N1  |

**logloader** downloads PX4 `.ulg` flight logs from the flight controller's SD card over MAVLink FTP and optionally uploads them to [Flight Review](https://review.px4.io/). Driven from the ARK-UI **Logs** page.

**flight-review** hosts a local [PX4 Flight Review](https://github.com/PX4/flight_review) server at `http://<hostname>.local/flight-review` for the logs downloaded by logloader.

**polaris** receives network RTK corrections from the [Point One Polaris](https://pointonenav.com/polaris) service (subscription required) and publishes them to the flight controller over MAVLink.

**pointperfect** receives GNSS corrections from the [u-blox PointPerfect](https://www.u-blox.com/en/product/pointperfect) NTRIP service and publishes them to the flight controller over MAVLink. For u-blox receivers it can also request AssistNow start-up assistance for a faster first fix.

**rid-transmitter** (Jetson carriers only) broadcasts Remote ID over Bluetooth per ASTM F3411 (requires a Bluetooth 5.x capable radio).


# Apt: Hold Back Risky Packages

The ARK image keeps NVIDIA's apt repo enabled. NVIDIA's packages own the kernel, device tree and bootloader files, so an `apt upgrade` without holds replaces ARK's builds with stock ones and breaks carrier hardware.

The image holds these packages:

| Packages                                                                                                                                                                  | Held since | Why                                                                                                    |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | ------------------------------------------------------------------------------------------------------ |
| `nvidia-l4t-camera`, `nvidia-l4t-multimedia`, `nvidia-l4t-multimedia-utils`, `nvidia-l4t-gstreamer`                                                                       | 6.2.2.5    | Pinned to the 36.4.4 camera stack; NVIDIA's 36.5 stack crashes `nvargus-daemon` on camera relaunch.    |
| `nvidia-l4t-kernel`, `nvidia-l4t-kernel-dtbs`, `nvidia-l4t-kernel-headers`, `nvidia-l4t-kernel-oot-headers`, `nvidia-l4t-kernel-oot-modules`, `nvidia-l4t-display-kernel` | 6.2.2.7    | ARK's kernel and device tree. The out-of-tree modules must match the kernel, so these move as one set. |
| `nvidia-l4t-bootloader`                                                                                                                                                   | 6.2.2.7    | Its install rewrites the QSPI that holds ARK's boot-time pinmux.                                       |

On an image older than 6.2.2.7, hold the boot chain yourself before upgrading:

```
sudo apt-mark hold nvidia-l4t-kernel nvidia-l4t-kernel-dtbs nvidia-l4t-kernel-headers nvidia-l4t-kernel-oot-headers nvidia-l4t-kernel-oot-modules nvidia-l4t-display-kernel nvidia-l4t-bootloader
```

Show packages on hold:

```
sudo apt-mark showhold
```

To move to a newer JetPack release, reflash with the latest ARK image instead of upgrading in place; see your carrier's Flashing Guide.


# Embedded Computers

ARK embedded computers for onboard AI and autonomous computing, built around NVIDIA Jetson, Raspberry Pi, and SiMa.ai Modalix compute modules.

{% content-ref url="/pages/QoFTB30a2YpQPrYwhPWS" %}
[ARK Just A Jetson](/products/embedded-computers/ark-just-a-jetson)
{% endcontent-ref %}

{% content-ref url="/pages/yH43mJpQecvpkla2XIAs" %}
[ARK Just a Pi](/products/embedded-computers/ark-just-a-pi)
{% endcontent-ref %}

{% content-ref url="/pages/0aCgFAR2leEzdLygC9r9" %}
[SiMa.ai Modalix](/products/embedded-computers/sima-modalix)
{% endcontent-ref %}


# ARK Just A Jetson

A carrier board for an NVIDIA Jetson Orin NX or Orin Nano module. It runs [ARK-OS](/software/ark-os), preinstalled on the bundles.

<a href="https://arkelectron.com/product/ark-just-a-jetson/" class="button primary" data-icon="cart-shopping">Buy carrier</a> <a href="https://arkelectron.com/product/ark-just-a-jetson-ndaa-bundle/" class="button primary" data-icon="cart-shopping">Buy NDAA bundle</a> <a href="https://github.com/ARK-Electronics/ark-hardware/tree/main/ARK_Just_A_Jetson/model" class="button secondary" data-icon="cube">3D model</a> <a href="https://github.com/ARK-Electronics/ark-hardware/tree/main/ARK_Just_A_Jetson/case" class="button secondary" data-icon="box">Case</a>

* **Interfaces:** gigabit Ethernet (RJ45), two USB-A, USB-C, HDMI, two CSI cameras, M.2 Key E, PCIe, CAN, UART, SPI, I2S and GPIO
* **Sensors:** ICM-42688-P IMU, INA238 power monitor
* **Power:** 5.5–75 V battery input or 5 V input
* **Compliance:** USA built, NDAA

## Where to Start

**Your bundle arrived preflashed.** It already runs ARK-OS. Go to [Set Up Your Jetson](/products/embedded-computers/ark-just-a-jetson/setup), then manage it from the ARK-UI web interface.

**You have a bare board, or you want to flash it yourself.** Install a Jetson module and NVMe SSD, then start at the [Flashing Guide](/products/embedded-computers/ark-just-a-jetson/developer/flashing-guide).

## Documentation

* [Set Up Your Jetson](/products/embedded-computers/ark-just-a-jetson/setup)
* [Using ARK-OS](/products/embedded-computers/ark-just-a-jetson/using-ark-os)
* [Hardware Reference](/products/embedded-computers/ark-just-a-jetson/hardware)
* [Developer Guide](/products/embedded-computers/ark-just-a-jetson/developer)


# Set Up Your Jetson

## What's Pre-Installed

Bundles ship ready to use — no flashing required:

* **Jetson**: Latest ARK Jetson image (JetPack 6 / L4T r36) on the NVMe SSD, with [ARK-OS](https://github.com/ARK-Electronics/ARK-OS) pre-installed
* **Credentials**: Username `jetson`, password `jetson`, hostname `jetson`

{% hint style="info" %}
The default password is well known — change it (`passwd`) before putting the device on a network you don't control.
{% endhint %}

A bare carrier board (no Jetson module or SSD) has no OS on it. Install your module and NVMe SSD, then follow the [Flashing Guide](/products/embedded-computers/ark-just-a-jetson/developer/flashing-guide).

## Steps

1. [Connect](/products/embedded-computers/ark-just-a-jetson/setup/connect) — reach the Jetson over USB-C, WiFi hotspot, or Ethernet.
2. [Get Online](/products/embedded-computers/ark-just-a-jetson/setup/get-online) — join it to your WiFi network.
3. [ARK-OS](/software/ark-os) — the preinstalled services and the ARK-UI web interface.


# Connect

## USB-C

Connect the USB-C port to your PC. The Jetson appears as a USB network device at `192.168.55.1`:

```bash
ssh jetson@192.168.55.1
```

The web UI is reachable the same way at <http://192.168.55.1>.

The same cable also carries a serial login console — see [USB-C Console](/products/embedded-computers/ark-just-a-jetson/developer/usb-c-console).

## WiFi Hotspot

On first boot, if no known WiFi network is available, the Jetson brings up a hotspot:

* **Network**: `jetson-<serial>`
* **Password**: `password`

Connect to it and open <http://jetson.local>.

{% hint style="info" %}
**WiFi antennas and MHF4 cables are not included.** Connect an [MHF4 to RP-SMA cable](https://www.amazon.com/dp/B07GTL2G69) to each MHF4 connector on the WiFi card, then an RP-SMA WiFi antenna to each cable. Any dual-band (2.4/5 GHz) antenna works; the 6 GHz band needs one rated for Wi-Fi 6E, such as these [tri-band antennas](https://www.amazon.com/dp/B0C344ZWZP).
{% endhint %}

## Ethernet

Plug the Ethernet port into your network — the Jetson requests an address over DHCP.

Once the Jetson is on your network:

```bash
ssh jetson@jetson.local
```


# Get Online

## From ARK-UI

Open <http://jetson.local> (or <http://192.168.55.1> over USB-C) and join a network from the **Connections** page:

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2Fgit-blob-8bc42899f435d6abdb3b8000fe0c7ee502749896%2Fark-ui-connections.png?alt=media" alt=""><figcaption><p>ARK-UI Connections page</p></figcaption></figure>

## From the Command Line

Scan for networks:

```bash
sudo nmcli device wifi
```

Connect to a network:

```bash
sudo nmcli device wifi connect 'SSID' password 'PASSWORD'
```

## Sharing Your PC's Internet over USB

The kernel repo ships a helper that NATs the Jetson's traffic out through your host PC's WiFi — see [share\_wifi.sh](https://github.com/ARK-Electronics/ark_jetson_kernel/blob/main/scripts/share_wifi.sh).

You can also bake a WiFi profile into the image before flashing with `./scripts/add_wifi_network.sh JAJ <ssid> <password>`.


# Using ARK-OS

[ARK-OS](/software/ark-os) is preinstalled on every bundle: MAVLink routing, video streaming, flight log management, firmware updates, and network RTK corrections, plus the ARK-UI web interface at <http://jetson.local>.

* [ARK-OS and ARK-UI](/software/ark-os)
* [Services](/software/ark-os/services) — what each service does, and which are enabled by default
* [Apt: Hold Back Risky Packages](/software/ark-os/apt-hold-back) — read before running `apt upgrade`

## On This Carrier

* [Updating the Flight Controller Firmware](/products/embedded-computers/ark-just-a-jetson/using-ark-os/updating-the-flight-controller-firmware)


# Updating the Flight Controller Firmware

Flash PX4 or ArduPilot firmware on a USB-connected flight controller.

The Just a Jetson has no onboard flight controller, but ARK-OS can flash one connected over USB.

## From the Web UI

Open the [ARK-UI](http://jetson.local) **Autopilot** page, select the **Firmware** tab, and upload a `.px4` or `.apj` firmware file.

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2Fgit-blob-d94575485b62d808f04c27b534992ec232c6613f%2Fark-ui-autopilot-firmware.png?alt=media" alt=""><figcaption></figcaption></figure>

## From the Command Line

SSH into the Jetson and run the ARK-OS flashing tool (on `PATH`):

```bash
flash_firmware.sh <firmware.px4>
```

## Firmware Binaries

* **PX4**: [PX4 releases page](https://github.com/PX4/PX4-Autopilot/releases/)
* **ArduPilot**: [firmware.ardupilot.org](https://firmware.ardupilot.org/)

If the flight controller does not enumerate over USB, recover the bootloader over SWD: [ST-LINK Flashing Guide](/knowledge-base/knowledge-base/st-link-flashing-guide#flashing-px4-flight-controllers).


# Hardware Reference

* [Pinout](/products/embedded-computers/ark-just-a-jetson/hardware/pinout)
* [Ports and Serial](/products/embedded-computers/ark-just-a-jetson/hardware/connections) — USB-C modes and the UART map
* [Block Diagram](/products/embedded-computers/ark-just-a-jetson/hardware/block-diagram)
* [3D Model](/products/embedded-computers/ark-just-a-jetson/hardware/3d-model)
* [GPIO Control](/products/embedded-computers/ark-just-a-jetson/hardware/gpio-control)
* [Camera Overlays](/products/embedded-computers/ark-just-a-jetson/hardware/camera-overlays)
* [IMU ICM-42688P Guide](/products/embedded-computers/ark-just-a-jetson/hardware/imu-icm-42688p-guide) — the onboard IMU on SPI1
* [INA238 Power Monitor Guide](/products/embedded-computers/ark-just-a-jetson/hardware/ina238-power-monitor-guide) — carrier rail monitoring over I2C
* [Power Cycling USB Ports](/products/embedded-computers/ark-just-a-jetson/hardware/power-cycling-usb-ports)

## Power

| Input or rail      | Limit                                | Connectors                         |
| ------------------ | ------------------------------------ | ---------------------------------- |
| `5V IN`            | 6 A input                            | 5V IN                              |
| `VDD_5V_JPERIPH`   | 1.5 A typical, shared                | CAN, UART0/GPIO, SPI/GPIO, Fan     |
| Fan 5 V            | 500 mA fuse, inside `VDD_5V_JPERIPH` | Fan                                |
| `VDD_5V_JPERIPH_2` | 1.5 A typical, shared                | UART1/GPIO, UART2/I2C0, I2S/GPIO   |
| USB VBUS           | 750 mA minimum, 1 A typical each     | Both USB JST-GH                    |
| USB VBUS           | 1.5 A typical each                   | Both USB-A, USB-C (host mode only) |
| `5V_PCIE_FFC`      | 1.5 A typical                        | PCIE                               |
| HDMI 5 V           | 500 mA fuse                          | HDMI                               |
| Camera 3.3 V       | 1 A each                             | CAM0/CSI0, CAM1/CSI2               |

The Jetson module and every rail above draw from the same 5 V supply. `VDD_5V_JPERIPH`, `VDD_5V_JPERIPH_2` and the camera 3.3 V stay off while the Jetson is in reset.

## Temperature

| Specification         | Value                          |
| --------------------- | ------------------------------ |
| Operating temperature | −10 °C to +60 °C, carrier only |
| Storage temperature   | −10 °C to +60 °C, carrier only |

Jetson Orin NX and Orin Nano modules are rated −25 °C to +105 °C junction.


# Pinout

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2FAQlXXwochuq4ggLy3f2E%2FPinout%20Top.png?alt=media&amp;token=c1907a11-78e2-4e7a-aa9d-1d06d4ba7b60" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2FHRRopX1b3ODvyd3Vt720%2FPinout%20Bottom.png?alt=media&amp;token=ecc4442b-64e8-4cb0-9728-531c4e7a03f4" alt=""><figcaption></figcaption></figure>

{% file src="/files/vE3uMIcMKGlrHxeWElJe" %}

The onboard 5V regulator (fed from `BAT IN`) and `5V IN` are ideal-diode ORed; see [Carrier Power Inputs](/knowledge-base/knowledge-base/carrier-power-inputs) for load sharing.

#### BAT IN - XT60

<table><thead><tr><th width="134">Pin Number</th><th width="237">Signal Name</th><th>Voltage</th></tr></thead><tbody><tr><td>+</td><td>VBAT_IN</td><td>5.5V - 75V</td></tr><tr><td>-</td><td>GND</td><td>GND</td></tr></tbody></table>

#### BAT OUT - XT30

<table><thead><tr><th width="134">Pin Number</th><th width="237">Signal Name</th><th>Voltage</th></tr></thead><tbody><tr><td>+</td><td>VBAT_OUT</td><td>VBAT_IN</td></tr><tr><td>-</td><td>GND</td><td>GND</td></tr></tbody></table>

#### 5V IN - 6 Pin 2.00mm Molex [CLIK-Mate 502443](https://www.molex.com/en-us/part-list/502443)

Mating plug [5024390600](https://www.digikey.com/en/products/detail/molex/5024390600/2380425)

Pre-crimped wires [0797581014](https://www.digikey.com/en/products/detail/molex/0797581014/6346648)

<table><thead><tr><th width="134">Pin Number</th><th width="237">Signal Name</th><th>Voltage</th></tr></thead><tbody><tr><td>1</td><td>VBRICK1</td><td>5.0V</td></tr><tr><td>2</td><td>VBRICK1</td><td>5.0V</td></tr><tr><td>3</td><td>I2C0_SCL_PWR_EXT</td><td>3.3V</td></tr><tr><td>4</td><td>I2C0_SDA_PWR_EXT</td><td>3.3V</td></tr><tr><td>5</td><td>GND</td><td>GND</td></tr><tr><td>6</td><td>GND</td><td>GND</td></tr></tbody></table>

#### Fan - 4 Pin Molex [PicoBlade 53261](https://www.molex.com/en-us/part-list/53261)

Mating plug [0510210400](https://www.digikey.com/en/products/detail/molex/0510210400/242844)

<table><thead><tr><th width="134">Pin Number</th><th width="237">Signal Name</th><th>Voltage</th></tr></thead><tbody><tr><td>1</td><td>GND</td><td>GND</td></tr><tr><td>2</td><td>VDD_5V_JPERIPH</td><td>5.0V</td></tr><tr><td>3</td><td>FAN_TACH_CON</td><td>5.0V</td></tr><tr><td>4</td><td>FAN_PWM_Q*</td><td>5.0V</td></tr></tbody></table>

#### UART0/GPIO - 6 Pin JST-GH

<table><thead><tr><th width="134">Pin Number</th><th width="237">Signal Name</th><th>Voltage</th></tr></thead><tbody><tr><td>1</td><td>VDD_5V_JPERIPH</td><td>5.0V</td></tr><tr><td>2</td><td>UART0_TXD_3V3</td><td>3.3V</td></tr><tr><td>3</td><td>UART0_RXD_3V3</td><td>3.3V</td></tr><tr><td>4</td><td>UART0_CTS_3V3</td><td>3.3V</td></tr><tr><td>5</td><td>UART0_RTS_3V3</td><td>3.3V</td></tr><tr><td>6</td><td>GND</td><td>GND</td></tr></tbody></table>

#### UART1/GPIO - 6 Pin JST-GH

<table><thead><tr><th width="134">Pin Number</th><th width="237">Signal Name</th><th>Voltage</th></tr></thead><tbody><tr><td>1</td><td>VDD_5V_JPERIPH_2</td><td>5.0V</td></tr><tr><td>2</td><td>UART1_TXD_3V3</td><td>3.3V</td></tr><tr><td>3</td><td>UART1_RXD_3V3</td><td>3.3V</td></tr><tr><td>4</td><td>UART1_CTS_3V3</td><td>3.3V</td></tr><tr><td>5</td><td>UART1_RTS_3V3</td><td>3.3V</td></tr><tr><td>6</td><td>GND</td><td>GND</td></tr></tbody></table>

#### UART2/I2C0 - 6 Pin JST-GH

<table><thead><tr><th width="134">Pin Number</th><th width="237">Signal Name</th><th>Voltage</th></tr></thead><tbody><tr><td>1</td><td>VDD_5V_JPERIPH_2</td><td>5.0V</td></tr><tr><td>2</td><td>UART2_TXD_EXT</td><td>3.3V</td></tr><tr><td>3</td><td>UART2_RXD_EXT</td><td>3.3V</td></tr><tr><td>4</td><td>I2C0_SCL_EXT</td><td>3.3V</td></tr><tr><td>5</td><td>I2C0_SDA_EXT</td><td>3.3V</td></tr><tr><td>6</td><td>GND</td><td>GND</td></tr></tbody></table>

#### CAM1/CSI2- 22 Pin 0.5mm FFC

<table><thead><tr><th width="153">Pin Number</th><th width="210">Signal Name</th><th>Voltage</th></tr></thead><tbody><tr><td>1</td><td>GND</td><td>GND</td></tr><tr><td>2</td><td>CSI2_D0_N</td><td>1.2V</td></tr><tr><td>3</td><td>CSI2_D0_P</td><td>1.2V</td></tr><tr><td>4</td><td>GND</td><td>GND</td></tr><tr><td>5</td><td>CSI2_D1_N</td><td>1.2V</td></tr><tr><td>6</td><td>CSI2_D1_P</td><td>1.2V</td></tr><tr><td>7</td><td>GND</td><td>GND</td></tr><tr><td>8</td><td>CSI2_CLK_N</td><td>1.2V</td></tr><tr><td>9</td><td>CSI2_CLK_P</td><td>1.2V</td></tr><tr><td>10</td><td>GND</td><td>GND</td></tr><tr><td>11</td><td>CSI3_D0_N</td><td>1.2V</td></tr><tr><td>12</td><td>CSI3_D0_P</td><td>1.2V</td></tr><tr><td>13</td><td>GND</td><td>GND</td></tr><tr><td>14</td><td>CSI3_D1_N</td><td>1.2V</td></tr><tr><td>15</td><td>CSI3_D1_P</td><td>1.2V</td></tr><tr><td>16</td><td>GND</td><td>GND</td></tr><tr><td>17</td><td>CAM1_PWDN_3V3</td><td>3.3V</td></tr><tr><td>18</td><td>CAM1_MCLK</td><td>1.8V</td></tr><tr><td>19</td><td>GND</td><td>GND</td></tr><tr><td>20</td><td>CAM1_SCL</td><td>3.3V</td></tr><tr><td>21</td><td>CAM1_SDA</td><td>3.3V</td></tr><tr><td>22</td><td>3.3V</td><td>3.3V (1A)</td></tr></tbody></table>

#### CAM0/CSI0- 22 Pin 0.5mm FFC

<table><thead><tr><th width="153">Pin Number</th><th width="210">Signal Name</th><th>Voltage</th></tr></thead><tbody><tr><td>1</td><td>GND</td><td>GND</td></tr><tr><td>2</td><td>CSI1_D0_N</td><td>1.2V</td></tr><tr><td>3</td><td>CSI1_D0_P</td><td>1.2V</td></tr><tr><td>4</td><td>GND</td><td>GND</td></tr><tr><td>5</td><td>CSI1_D1_N</td><td>1.2V</td></tr><tr><td>6</td><td>CSI1_D1_P</td><td>1.2V</td></tr><tr><td>7</td><td>GND</td><td>GND</td></tr><tr><td>8</td><td>CSI1_CLK_N</td><td>1.2V</td></tr><tr><td>9</td><td>CSI1_CLK_P</td><td>1.2V</td></tr><tr><td>10</td><td>GND</td><td>GND</td></tr><tr><td>11</td><td>CSI0_D0_N</td><td>1.2V</td></tr><tr><td>12</td><td>CSI0_D0_P</td><td>1.2V</td></tr><tr><td>13</td><td>GND</td><td>GND</td></tr><tr><td>14</td><td>CSI0_D1_N</td><td>1.2V</td></tr><tr><td>15</td><td>CSI0_D1_P</td><td>1.2V</td></tr><tr><td>16</td><td>GND</td><td>GND</td></tr><tr><td>17</td><td>CAM0_PWDN_3V3</td><td>3.3V</td></tr><tr><td>18</td><td>CAM0_MCLK</td><td>1.8V</td></tr><tr><td>19</td><td>GND</td><td>GND</td></tr><tr><td>20</td><td>CAM0_SCL</td><td>3.3V</td></tr><tr><td>21</td><td>CAM0_SDA</td><td>3.3V</td></tr><tr><td>22</td><td>3.3V</td><td>3.3V (1A)</td></tr></tbody></table>

#### SPI/GPIO - 7 Pin JST-GH

<table><thead><tr><th width="134">Pin Number</th><th width="237">Signal Name</th><th>Voltage</th></tr></thead><tbody><tr><td>1</td><td>VDD_5V_JPERIPH</td><td>5.0V</td></tr><tr><td>2</td><td>SPI0_MOSI_3V3</td><td>3.3V</td></tr><tr><td>3</td><td>SPI0_SCK_3V3</td><td>3.3V</td></tr><tr><td>4</td><td>SPI0_MISO_3V3</td><td>3.3V</td></tr><tr><td>5</td><td>SPI0_CS0n_3V3</td><td>3.3V</td></tr><tr><td>6</td><td>SPI0_CS1n_3V3</td><td>3.3V</td></tr><tr><td>7</td><td>GND</td><td>GND</td></tr></tbody></table>

#### I2S/GPIO - 7 Pin JST-GH

<table><thead><tr><th width="134">Pin Number</th><th width="237">Signal Name</th><th>Voltage</th></tr></thead><tbody><tr><td>1</td><td>VDD_5V_JPERIPH_2</td><td>5.0V</td></tr><tr><td>2</td><td>I2S0_DOUT_3V3</td><td>3.3V</td></tr><tr><td>3</td><td>I2S0_DIN_3V3</td><td>3.3V</td></tr><tr><td>4</td><td>I2S0_LRCLK_3V3</td><td>3.3V</td></tr><tr><td>5</td><td>I2S0_SCLK_3V3</td><td>3.3V</td></tr><tr><td>6</td><td>AUD_MCLK_3V3</td><td>3.3V</td></tr><tr><td>7</td><td>GND</td><td>GND</td></tr></tbody></table>

#### CAN - 4 Pin JST-GH

<table><thead><tr><th width="134">Pin Number</th><th width="237">Signal Name</th><th>Voltage</th></tr></thead><tbody><tr><td>1</td><td>VDD_5V_JPERIPH</td><td>5.0V</td></tr><tr><td>2</td><td>JCAN_P</td><td>5.0V</td></tr><tr><td>3</td><td>JCAN_N</td><td>5.0V</td></tr><tr><td>4</td><td>GND</td><td>GND</td></tr></tbody></table>

#### USB - 4 Pin JST-GH

<table><thead><tr><th width="134">Pin Number</th><th width="237">Signal Name</th><th>Voltage</th></tr></thead><tbody><tr><td>1</td><td>USB1_VBUS</td><td>5.0V</td></tr><tr><td>2</td><td>HUB_USB1_N</td><td>3.3V</td></tr><tr><td>3</td><td>HUB_USB1_P</td><td>3.3V</td></tr><tr><td>4</td><td>GND</td><td>GND</td></tr></tbody></table>

#### USB - 4 Pin JST-GH

<table><thead><tr><th width="134">Pin Number</th><th width="237">Signal Name</th><th>Voltage</th></tr></thead><tbody><tr><td>1</td><td>USB3_VBUS</td><td>5.0V</td></tr><tr><td>2</td><td>HUB_USB3_N</td><td>3.3V</td></tr><tr><td>3</td><td>HUB_USB3_P</td><td>3.3V</td></tr><tr><td>4</td><td>GND</td><td>GND</td></tr></tbody></table>

#### PCIE - 16 Pin FFC 5051101692

<table><thead><tr><th width="134">Pin Number</th><th width="237">Signal Name</th><th>Voltage</th></tr></thead><tbody><tr><td>1</td><td>5V_PCIE_FFC</td><td>5.0V</td></tr><tr><td>2</td><td>5V_PCIE_FFC</td><td>5.0V</td></tr><tr><td>3</td><td>GND</td><td>GND</td></tr><tr><td>4</td><td>PCIE2_CLK_P</td><td>1.0V</td></tr><tr><td>5</td><td>PCIE2_CLK_N</td><td>1.0V</td></tr><tr><td>6</td><td>GND</td><td>GND</td></tr><tr><td>7</td><td>PCIE2_RX0_P</td><td>1.0V</td></tr><tr><td>8</td><td>PCIE2_RX0_N</td><td>1.0V</td></tr><tr><td>9</td><td>GND</td><td>GND</td></tr><tr><td>10</td><td>PCIE2_TX0_P</td><td>1.0V</td></tr><tr><td>11</td><td>PCIE2_TX0_N</td><td>1.0V</td></tr><tr><td>12</td><td>GND</td><td>GND</td></tr><tr><td>13</td><td>PCIE2_PWR_EN_3V3</td><td>3.3V</td></tr><tr><td>14</td><td>PCIE_WAKE</td><td>3.3V</td></tr><tr><td>15</td><td>PCIE2_CLKREQ</td><td>3.3V</td></tr><tr><td>16</td><td>PCIE2_RST*</td><td>3.3V</td></tr></tbody></table>


# Ports and Serial

## USB C

The USB-C port supports dual role operation, functioning as both host and device. In device mode it provides networking, a serial console, and an `L4T-README` drive — see [Connect](/products/embedded-computers/ark-just-a-jetson/setup/connect) and [USB-C Console](/products/embedded-computers/ark-just-a-jetson/developer/usb-c-console).

## Serial Ports

<table><thead><tr><th width="101">Connector</th><th width="152">Port</th><th width="198">Available Signals</th><th>Function</th></tr></thead><tbody><tr><td>UART0</td><td>/dev/ttyTHS3</td><td>RX/TX/RTS/CTS</td><td>User Available</td></tr><tr><td>UART1</td><td>/dev/ttyTHS1</td><td>RX/TX/RTS/CTS</td><td>User Available</td></tr><tr><td>UART2</td><td>/dev/ttyTCU0</td><td>RX/TX</td><td>Linux Console (Reserved)</td></tr></tbody></table>

The console runs at 115200 8N1 and carries bootloader, UEFI and kernel output plus a login prompt.


# IMU ICM-42688P Guide

The onboard ICM-42688P IMU is connected to SPI1 on the Just a Jetson and shows up in Linux as `/dev/spidev1.0`. See the [pinmux spreadsheet](https://github.com/ARK-Electronics/ark_jetson_kernel/blob/main/products/JAJ/Jetson_Orin_NX_and_Orin_Nano_series_Pinmux_Config_Jetpack_6.xlsm) for the GPIO assignments.

To enable the SPI bus, enable **spi3** with the Jetson Expansion Header Tool and reboot:

```
sudo /opt/nvidia/jetson-io/jetson-io.py
```

```
Configure Jetson 40pin Header
Configure header pins manually
```

```
  =================== Jetson Expansion Header Tool ===================
 |                                                                    |
 |                                                                    |
 |                Select desired functions (for pins):                |
 |                                                                    |
 |                [ ] aud            (7)                              |
 |                [ ] extperiph3_clk (29)                             |
 |                [ ] extperiph4_clk (31)                             |
 |                [ ] i2s2           (12,35,38,40)                    |
 |                [ ] pwm1           (15)                             |
                  [ ] pwm5           (33)                             |
 |                [ ] pwm7           (32)                             |
 |                [ ] spi1           (19,21,23,24,26)                 |
 |                [*] spi3           (13,16,18,22,37)                 |
 |                [*] uarta-cts/rts  (11,36)                          |
 |                                                                    |
 |                                Back                                |
 |                                                                    |
  ====================================================================
```

To read the IMU, run the test script that ships with ARK-OS (on `PATH`):

```
icm42688p_test.py
```

Source: [icm42688p\_test.py](https://github.com/ARK-Electronics/ARK-OS/blob/main/platform/jetson/scripts/extras/icm42688p_test.py)


# INA238 Power Monitor Guide

The INA238 power monitor is connected to I2C bus 1, which is Linux bus 7, at address `0x45`:

```
sudo i2cdetect -y -r 7
```

Always pass `-r` — without it, `i2cdetect` skips the `0x40–0x4F` range on Tegra. See the [I2C bus map](https://github.com/ARK-Electronics/ark_jetson_kernel/blob/main/docs/i2c.md) for which connector maps to which Linux bus.

To read voltage, current, and power, run the test script that ships with ARK-OS (on `PATH`):

```
ina238_test.py
```

Source: [ina238\_test.py](https://github.com/ARK-Electronics/ARK-OS/blob/main/platform/jetson/scripts/extras/ina238_test.py)


# Block Diagram

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2FqShuan1OSjLgzvEx0W2Z%2FARK%20Just%20a%20Jetson%20Block%20Diagram%200.4.png?alt=media&amp;token=d422c3b3-5e5b-4b2a-86fa-8c8c244031f5" alt=""><figcaption><p>Block diagram</p></figcaption></figure>


# 3D Model

Step files can be found here\
<https://github.com/ARK-Electronics/ark-hardware/tree/main/ARK_Just_A_Jetson/model>

Case files can be found here\
<https://github.com/ARK-Electronics/ark-hardware/tree/main/ARK_Just_A_Jetson/case>


# GPIO Control

The I2S/GPIO connector pins come up as general-purpose GPIOs by default — no overlay or jetson-io step is needed. At idle the SoC drives none of them: the four output-capable pins sit hi-z, held HIGH by 604Ω pull-ups on the carrier, and DIN is a floating input. A pin wired to a relay or actuator never transitions at boot.

## I2S/GPIO Connector Pin Mapping

| ARK Pin | Signal              | 40-Pin Header | libgpiod Name | Idle at Boot  |
| ------- | ------------------- | ------------- | ------------- | ------------- |
| 1       | VDD\_5V\_JPERIPH\_2 | -             | -             | -             |
| 2       | I2S0\_DOUT\_3V3     | Pin 40        | `PI.00`       | HIGH (pulled) |
| 3       | I2S0\_DIN\_3V3      | Pin 38        | `PI.01`       | hi-z (input)  |
| 4       | I2S0\_LRCLK\_3V3    | Pin 35        | `PI.02`       | HIGH (pulled) |
| 5       | I2S0\_SCLK\_3V3     | Pin 12        | `PH.07`       | HIGH (pulled) |
| 6       | AUD\_MCLK\_3V3      | Pin 7         | `PAC.06`      | HIGH (pulled) |
| 7       | GND                 | -             | -             | -             |

Confirm the lines are exposed:

```bash
sudo gpioinfo | grep -E '"P(H\.07|I\.0[0-2]|AC\.06)"'
```

## Using the GPIOs

Drive and read the lines with `libgpiod` (`gpioset` / `gpioget`) or the Jetson.GPIO Python library. Jetson.GPIO addresses pins by their 40-pin header number and needs version 2.1.12 or newer:

```bash
sudo pip3 install 'Jetson.GPIO>=2.1.12'
```

The example below jumpers HDR40 pin 40 (DOUT) to pin 38 (DIN) and toggles HIGH/LOW, reading each transition back as a loopback test:

```python
import time
import Jetson.GPIO as GPIO

GPIO.setmode(GPIO.BOARD)
GPIO.setup(40, GPIO.OUT, initial=GPIO.LOW)  # I2S0_DOUT
GPIO.setup(38, GPIO.IN)                     # I2S0_DIN

try:
    for level in (GPIO.HIGH, GPIO.LOW, GPIO.HIGH, GPIO.LOW):
        GPIO.output(40, level)
        time.sleep(0.2)
        got = GPIO.input(38)
        print(f"wrote {level} read {got} {'PASS' if got == level else 'FAIL'}")
finally:
    GPIO.cleanup()
```

ARK-OS ships a complete version of this loopback as `i2s_gpio_example.py` (on `PATH`).

{% hint style="warning" %}
**GPIO state after your app exits**

While your app owns a line, the kernel guarantees its value. On release (clean exit, crash, or kill), **the pin retains its last-written value** until the next reboot re-asserts the pulled-HIGH idle state. If a line must be safe-off for an active-high load, add an external pull-down or keep a process owning the line (`gpioset --mode=signal`).
{% endhint %}

For the full pin reference, electrical details, and safe-state patterns, see the [ARK Jetson Kernel GPIO docs](https://github.com/ARK-Electronics/ark_jetson_kernel/blob/main/docs/gpio.md).


# Camera Overlays

The ARK Just A Jetson has **2× dual-lane CSI ports** on 22-pin FFC connectors. Camera configuration is managed through device tree overlays, and the image ships with the **IMX219 dual** overlay active — IMX219 cameras work on both ports out of the box.

## Supported Cameras

| Sensor | Resolution | Overlay            | Status            |
| ------ | ---------- | ------------------ | ----------------- |
| IMX219 | 3280x2464  | Camera IMX219 Dual | Working (default) |
| IMX477 | 4056x3040  | Camera IMX477 Dual | Working           |
| IMX708 | 4608x2592  | Camera IMX708 Dual | Working           |

See [cameras.md](https://github.com/ARK-Electronics/ark_jetson_kernel/blob/main/docs/cameras.md) in the kernel repo for sensor details, verification commands, and known issues.

## Switching Overlays

List the overlays available on your Jetson:

```bash
sudo /opt/nvidia/jetson-io/config-by-hardware.py -l
```

Apply one and reboot:

```bash
sudo /opt/nvidia/jetson-io/config-by-hardware.py -n 2="Camera IMX477 Dual"
sudo reboot
```

## Verifying a Camera

Check that the sensor is detected:

```bash
nvargus_nvraw --lps
```

ARK-OS also ships `check_cameras.sh` (on `PATH`) which stream-tests every connected CSI camera, and the [ARK-UI](http://jetson.local) **Video** page shows a live stream of the first camera.

## Custom Overlays

To build your own camera overlay — or install one on an already-flashed system — follow [camera\_overlays.md](https://github.com/ARK-Electronics/ark_jetson_kernel/blob/main/docs/camera_overlays.md) in the kernel repo.


# Power Cycling USB Ports

The hub-connected USB ports can be power cycled from the command line with [uhubctl](https://github.com/mvp/uhubctl).

List the hubs and ports that support power switching:

```
sudo uhubctl
```

Cycle power on a port:

```
sudo uhubctl -l <hub> -p <port> -a off
sudo uhubctl -l <hub> -p <port> -a on
```


# Developer Guide

* [Flashing Guide](/products/embedded-computers/ark-just-a-jetson/developer/flashing-guide) — flash a prebuilt release, or build from source
* [USB-C Console](/products/embedded-computers/ark-just-a-jetson/developer/usb-c-console) — serial login over the USB cable
* [USB Peripherals](/knowledge-base/knowledge-base/usb-peripherals) — tested Wi-Fi and Bluetooth adapters, USB camera EMI
* [Apt: Hold Back Risky Packages](/software/ark-os/apt-hold-back) — keep `apt upgrade` from overwriting the ARK kernel


# Flashing Guide

Bundles ship pre-flashed with the ARK Jetson image and ARK-OS. Follow this guide to update to a newer release or to flash a Jetson for the first time.

The image is built from the [ark\_jetson\_kernel](https://github.com/ARK-Electronics/ark_jetson_kernel) repository, which adds the carrier's device tree to NVIDIA's JetPack. One image covers every Orin Nano/NX module variant.

{% hint style="info" %}
A stock NVIDIA JetPack image will not enable all carrier hardware — use the ARK image, or build from source with the ARK device tree.
{% endhint %}

## Enter Recovery Mode

Connect the **USB-C** port to your host PC, then power on the Jetson while holding the **Force Recovery** button.

## Flash a Prebuilt Release (recommended)

On a Debian/Ubuntu host, download the flasher script and flash the latest JAJ release to the NVMe SSD:

```bash
curl -LO https://raw.githubusercontent.com/ARK-Electronics/ark_jetson_kernel/main/packaging/flash_from_package.sh
chmod +x flash_from_package.sh
./flash_from_package.sh jaj
```

The script downloads the package from [downloads.arkelectron.com/jetson/jaj](https://downloads.arkelectron.com/jetson/jaj/), checks its SHA-256, waits for the Jetson in recovery mode, and flashes the bootloader and root filesystem. To flash a specific version, pass its tag instead of `jaj`, for example `jaj-6.2.2.6`.

## Build From Source

To customize the kernel, device tree, or preinstalled software, build and flash from source — see the [ark\_jetson\_kernel README](https://github.com/ARK-Electronics/ark_jetson_kernel#build--flash):

```bash
./setup.sh          # one-time download of BSP + rootfs + sources
./build.sh JAJ      # build and provision the image (installs ARK-OS)
./flash.sh JAJ      # flash to NVMe (--sdcard and --usb also available)
```

You can bake a WiFi profile into the image before flashing with `./scripts/add_wifi_network.sh JAJ <ssid> <password>`.


# Release Notes

## 6.2.2.8 - 2026-10-30

* The UEFI boot order is re-sorted on every boot with the NVMe first: a boot without the SSD detected no longer moves it to the end of the order, where the unit stopped in the UEFI shell instead of booting
* A boot order changed in the UEFI menu now resets on the next boot; use the F11 boot menu for a one-time boot from another device

## 6.2.2.7 - 2026-10-19

* PCIe link on the FFC connector capped at Gen2 (5 GT/s), ending the correctable-error flood it ran at Gen3
* ARK-OS updated to v1.3.1: adds a Logs page and PointPerfect client fixes
* Boots the NVMe first: network boot (HTTP/PXE) no longer runs before the SSD, and NVMe outranks USB storage
* `apt upgrade` no longer replaces the ARK kernel and device tree with NVIDIA's stock ones, and `apt install nvidia-jetpack` now works
* A root filesystem on a UAS USB drive now mounts
* SSH no longer stays dead if power is cut while the first boot generates host keys
* The serial console prints errors only, so a burst of kernel warnings can no longer stall boot into a watchdog reset

## 6.2.2.6 - 2026-07-23

* ARK-OS updated to v1.2.0

## 6.2.2.5 - 2026-07-21

* The camera userspace (Argus, `nvarguscamerasrc` and the NVIDIA multimedia libraries) is pinned to the L4T 36.4.4 packages and held from `apt upgrade`, fixing nvargus-daemon crashes and dropped frames when a camera pipeline is restarted
* The kernel now includes WireGuard VPN support as the `wireguard` module

## 6.2.2.4 - 2026-07-09

* Fixed the onboard IMU on `/dev/spidev1.0` reading all zeros: its SPI pins are now routed to the SPI controller from boot
* Dual IMX219 cameras are enabled on first boot with no jetson-io step; select a different camera in jetson-io to replace them
* jetson-io now lists the CSI camera overlays, which were missing from its menu in 6.2.2.1
* Added IMX708 (Raspberry Pi / Arducam Camera Module 3) support with a dual-camera overlay
* Removed the single-camera IMX219-A and IMX219-C overlays
* `nvarguscamerasrc` and the other NVIDIA GStreamer camera plugins are now preinstalled
* The I2S0 connector pins now boot as GPIO inputs idling high on the carrier pull-ups instead of being driven low, so the ARK I2S to GPIO overlay is no longer needed and was removed
* MAVSDK is no longer installed system-wide: ARK-OS bundles its own under `/usr/lib/ark-os/mavsdk`, so install MAVSDK yourself if your code links against it
* Preinstalled gpiod, i2c-tools, usbutils, pciutils, v4l-utils, uhubctl, inxi, xdotool and x11-xserver-utils, plus the Python packages spidev, pyserial, dronecan, smbus2 and Jetson.GPIO
* The system clock now starts at the image build time, so desktop autologin works on a first boot without network time
* ARK-OS updated to v1.1.0
* The flasher is now fetched from the main branch and flashes any release; it is no longer attached to each release

## 6.2.2.1 - 2026-06-10

* Initial release on JetPack 6.2.2 (L4T R36.5.0): one NVMe image with Super mode for every Orin Nano and Orin NX module
* Ships with ARK-OS v1.0.0, MAVSDK 3.17.1 and jtop preinstalled


# USB-C Console

Plugged into a host PC, the Jetson enumerates as one USB composite device (`0955:7020`) providing four functions:

| Function                   | Host sees                                             |
| -------------------------- | ----------------------------------------------------- |
| RNDIS + CDC-NCM networking | Two USB Ethernet interfaces; Jetson at `192.168.55.1` |
| CDC-ACM serial             | Virtual COM port with a login console                 |
| Mass storage               | `L4T-README` drive                                    |

## Serial Console

Use the `by-id` path — the `ttyACM` number changes between sessions:

```bash
ls -l /dev/serial/by-id/
usb-NVIDIA_Linux_for_Tegra_1613223640377-if02 -> ../../ttyACM1
```

```bash
screen /dev/serial/by-id/usb-NVIDIA_Linux_for_Tegra_*-if02 115200
```

Log in with your username and password (default `jetson` / `jetson`). Your user must be in the `dialout` group.

On macOS the port is `/dev/tty.usbmodem*`; on Windows it is a `COMx` port in Device Manager.

{% hint style="info" %}
This is not a boot console. The gadget (`nv-l4t-usb-device-mode.service`) and login prompt (`serial-getty@ttyGS0.service`) start under `multi-user.target`, so there is no UEFI, bootloader, or early kernel output — and no port at all if boot hangs before that point. For boot-level debugging use UART2 (`/dev/ttyTHS2`), see [Connections](/products/embedded-computers/ark-just-a-jetson/hardware/connections).
{% endhint %}


# ARK Just a Pi

A carrier board for the Raspberry Pi Compute Module 5. It runs [ARK-OS](/software/ark-os) and talks to a flight controller over USB.

<a href="https://arkelectron.com/product/ark-just-a-pi/" class="button primary" data-icon="cart-shopping">Buy</a> <a href="https://github.com/ARK-Electronics/ark-hardware/tree/main/ARK_Just_A_Pi/model" class="button secondary" data-icon="cube">3D model</a> <a href="https://github.com/ARK-Electronics/ark-hardware/tree/main/ARK_Just_A_Pi/case" class="button secondary" data-icon="box">Case</a>

* **Compute module:** Raspberry Pi Compute Module 5; a Compute Module 4 fits, with some interfaces lost
* **Interfaces:** Ethernet switch, USB 3.0 on USB-C, two CSI cameras, PCIe, Micro HDMI, UART and GPIO on JST-GH
* **Power:** 5 V, 2 A minimum (Molex CLIK-Mate)
* **Compliance:** USA built, NDAA

## Documentation

* [Hardware Reference](/products/embedded-computers/ark-just-a-pi/hardware)
* [Getting Started](/products/embedded-computers/ark-just-a-pi/getting-started)
* [Using ARK-OS](/products/embedded-computers/ark-just-a-pi/using-ark-os)
* [Flashing Guide](/products/embedded-computers/ark-just-a-pi/flashing-guide)


# Hardware Reference

## Specifications

| Specification         | Value                                                                                                                                                                                                          |
| --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Compute module        | Raspberry Pi [Compute Module 5](https://www.raspberrypi.com/products/compute-module-5/); [Compute Module 4](https://www.raspberrypi.com/products/compute-module-4/) with the [limits below](#compute-module-4) |
| Storage               | microSD slot for Lite modules (no eMMC); modules with eMMC boot from their eMMC                                                                                                                                |
| Ethernet              | Built-in switch with two 100 Mbps ports (4-pin JST-GH)                                                                                                                                                         |
| USB                   | USB-C, dual role, USB 3.0; 4-pin JST-GH, USB 2.0                                                                                                                                                               |
| Cameras               | 2× MIPI CSI, 22-pin 0.5 mm FFC, Raspberry Pi 5 CSI pinout                                                                                                                                                      |
| PCIe                  | PCIe x1, 16-pin FFC, Raspberry Pi 5 PCIe pinout                                                                                                                                                                |
| Display               | Micro HDMI                                                                                                                                                                                                     |
| UARTs and GPIO        | UART0 debug/GPIO, UART2/SPI3/GPIO, UART3/SPI4/GPIO, UART4/PWM/GPIO (6-pin JST-GH each)                                                                                                                         |
| Fan                   | 4-pin JST-SH, Raspberry Pi 5 fan pinout                                                                                                                                                                        |
| Power                 | 5 V, 2 A minimum, through a 6-pin Molex CLIK-Mate with I2C that matches [ARK PAB power modules](https://arkelectron.com/product-category/power/)                                                               |
| Operating temperature | 0 °C to +70 °C, carrier only                                                                                                                                                                                   |
| Storage temperature   | −25 °C to +80 °C, carrier only                                                                                                                                                                                 |

The CM5 is rated −20 °C to +85 °C.

## Compute Module 4

A CM4 fits, but these interfaces don't work with it:

* CAM2 (MIPI1)
* UART2
* USB-C
* PCIe
* Fan

With a CM4, the camera on CAM1 is the overlay default in `config.txt` (no `cam0` parameter), and the UART3 and UART4 connectors are uart4 (`/dev/ttyAMA4`) and uart5 (`/dev/ttyAMA5`).

## PCIe

* Gen 2 (default, tested). Set `dtparam=pciex1_gen=3` in [`config.txt`](/products/embedded-computers/ark-just-a-pi/flashing-guide/after-flashing-before-installing) for Gen 3 (untested).
* The 5 V pins are fed through a load switch limited to 1.5 A. The Compute Module's `PCIE_PWR_EN` turns the switch on and is also routed to pin 13, so the adapter can use it to enable its own regulator.

## Pinout

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2FKSXEGBBMW4v3fStprM68%2FPinout%20Drawing%20Top.png?alt=media&amp;token=d133d601-49b3-47b4-b93b-dd9cff60fb35" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2F4BbVhsd5eOKF90ylCa1f%2FPinout%20Drawing%20Bottom.png?alt=media&amp;token=11819837-421f-4d8d-81e6-ef4dc2bdd1b4" alt=""><figcaption></figcaption></figure>

{% file src="/files/rEk5tGTkkooCudUB5EDI" %}

### Power — 6-pin 2.00 mm Molex [CLIK-Mate 502443](https://www.molex.com/en-us/part-list/502443)

Mating plug [5024390600](https://www.digikey.com/en/products/detail/molex/5024390600/2380425)

Pre-crimped wires [0797581014](https://www.digikey.com/en/products/detail/molex/0797581014/6346648)

| Pin | Signal             | Voltage |
| --- | ------------------ | ------- |
| 1   | VDD\_5V\_IN        | 5.0V    |
| 2   | VDD\_5V\_IN        | 5.0V    |
| 3   | PI\_SCL1\_PWR\_EXT | 3.3V    |
| 4   | PI\_SDA1\_PWR\_EXT | 3.3V    |
| 5   | GND                | GND     |
| 6   | GND                | GND     |

### Fan — 4-pin JST-SH

| Pin | Signal      | Voltage      |
| --- | ----------- | ------------ |
| 1   | VDD\_5V\_IN | 5.0V (500mA) |
| 2   | FAN\_PWM    | 5.0V         |
| 3   | GND         | GND          |
| 4   | FAN\_TACHO  | 5.0V         |

### UART0 Debug/GPIO — 6-pin JST-GH

| Pin | Signal            | Voltage      |
| --- | ----------------- | ------------ |
| 1   | VDD\_5V\_IN       | 5.0V (500mA) |
| 2   | UART0\_TX/GPIO14  | 3.3V         |
| 3   | UART0\_RX/GPIO15  | 3.3V         |
| 4   | UART0\_CTS/GPIO16 | 3.3V         |
| 5   | UART0\_RTS/GPIO17 | 3.3V         |
| 6   | GND               | GND          |

### UART2/SPI3/GPIO — 6-pin JST-GH

| Pin | Signal                      | Voltage      |
| --- | --------------------------- | ------------ |
| 1   | VDD\_5V\_IN                 | 5.0V (500mA) |
| 2   | UART2\_TXD/SPI3\_CSn/GPIO4  | 3.3V         |
| 3   | UART2\_RXD/SPI3\_MISO/GPIO5 | 3.3V         |
| 4   | UART2\_CTS/SPI3\_MOSI/GPIO6 | 3.3V         |
| 5   | UART2\_RTS/SPI3\_SCLK/GPIO7 | 3.3V         |
| 6   | GND                         | GND          |

### UART3/SPI4/GPIO — 6-pin JST-GH

| Pin | Signal                       | Voltage      |
| --- | ---------------------------- | ------------ |
| 1   | VDD\_5V\_IN                  | 5.0V (500mA) |
| 2   | UART3\_TXD/SPI4\_CSn/GPIO8   | 3.3V         |
| 3   | UART3\_RXD/SPI4\_MISO/GPIO9  | 3.3V         |
| 4   | UART3\_CTS/SPI4\_MOSI/GPIO10 | 3.3V         |
| 5   | UART3\_RTS/SPI4\_SCLK/GPIO11 | 3.3V         |
| 6   | GND                          | GND          |

### UART4/PWM/GPIO — 6-pin JST-GH

| Pin | Signal                 | Voltage      |
| --- | ---------------------- | ------------ |
| 1   | VDD\_5V\_IN            | 5.0V (500mA) |
| 2   | UART4\_TXD/PWM0/GPIO12 | 3.3V         |
| 3   | UART4\_RXD/PWM1/GPIO13 | 3.3V         |
| 4   | PWM2/GPIO18            | 3.3V         |
| 5   | PWM3/GPIO19            | 3.3V         |
| 6   | GND                    | GND          |

### CAM1 (MIPI0) — 22-pin 0.5 mm FFC

| Pin | Signal           | Voltage   |
| --- | ---------------- | --------- |
| 1   | GND              | GND       |
| 2   | MIPI0\_D0\_N     | 1.2V      |
| 3   | MIPI0\_D0\_P     | 1.2V      |
| 4   | GND              | GND       |
| 5   | MIPI0\_D1\_N     | 1.2V      |
| 6   | MIPI0\_D1\_P     | 1.2V      |
| 7   | GND              | GND       |
| 8   | MIPI0\_C\_N      | 1.2V      |
| 9   | MIPI0\_C\_P      | 1.2V      |
| 10  | GND              | GND       |
| 11  | MIPI0\_D2\_N     | 1.2V      |
| 12  | MIPI0\_D2\_P     | 1.2V      |
| 13  | GND              | GND       |
| 14  | MIPI0\_D3\_N     | 1.2V      |
| 15  | MIPI0\_D3\_P     | 1.2V      |
| 16  | GND              | GND       |
| 17  | CAM\_GPIO0       | 3.3V      |
| 18  | CAM\_GPIO1       | 3.3V      |
| 19  | GND              | GND       |
| 20  | SCL0             | 3.3V      |
| 21  | SDA0             | 3.3V      |
| 22  | VDD\_3V3\_CAMERA | 3.3V (1A) |

### CAM2 (MIPI1) — 22-pin 0.5 mm FFC

| Pin | Signal                                  | Voltage   |
| --- | --------------------------------------- | --------- |
| 1   | GND                                     | GND       |
| 2   | MIPI1\_D0\_N                            | 1.2V      |
| 3   | MIPI1\_D0\_P                            | 1.2V      |
| 4   | GND                                     | GND       |
| 5   | MIPI1\_D1\_N                            | 1.2V      |
| 6   | MIPI1\_D1\_P                            | 1.2V      |
| 7   | GND                                     | GND       |
| 8   | MIPI1\_C\_N                             | 1.2V      |
| 9   | MIPI1\_C\_P                             | 1.2V      |
| 10  | GND                                     | GND       |
| 11  | MIPI1\_D2\_N                            | 1.2V      |
| 12  | MIPI1\_D2\_P                            | 1.2V      |
| 13  | GND                                     | GND       |
| 14  | MIPI1\_D3\_N                            | 1.2V      |
| 15  | MIPI1\_D3\_P                            | 1.2V      |
| 16  | GND                                     | GND       |
| 17  | Pulled up to 3.3V via 1.5k Ohm Resistor | 3.3V      |
| 18  | NC                                      | NC        |
| 19  | GND                                     | GND       |
| 20  | ID\_SC                                  | 3.3V      |
| 21  | ID\_SD                                  | 3.3V      |
| 22  | VDD\_3V3\_CAMERA                        | 3.3V (1A) |

### USB 2.0 — 4-pin JST-GH

| Pin | Signal     | Voltage   |
| --- | ---------- | --------- |
| 1   | USB2\_VBUS | 5.0V (1A) |
| 2   | USB2\_N    | 3.3V      |
| 3   | USB2\_P    | 3.3V      |
| 4   | GND        | GND       |

### ETH1 — 4-pin JST-GH

| Pin | Signal           | Voltage  |
| --- | ---------------- | -------- |
| 1   | EXT1\_ETH\_RX\_N | Isolated |
| 2   | EXT1\_ETH\_RX\_P | Isolated |
| 3   | EXT1\_ETH\_TX\_N | Isolated |
| 4   | EXT1\_ETH\_TX\_P | Isolated |

### ETH2 — 4-pin JST-GH

| Pin | Signal           | Voltage  |
| --- | ---------------- | -------- |
| 1   | EXT2\_ETH\_RX\_N | Isolated |
| 2   | EXT2\_ETH\_RX\_P | Isolated |
| 3   | EXT2\_ETH\_TX\_N | Isolated |
| 4   | EXT2\_ETH\_TX\_P | Isolated |

### PCIe — 16-pin FFC (CF20161V0R0-NH)

| Pin | Signal         | Voltage     |
| --- | -------------- | ----------- |
| 1   | 5V\_PCIE\_FFC  | 5.0V (1.5A) |
| 2   | 5V\_PCIE\_FFC  | 5.0V (1.5A) |
| 3   | GND            | GND         |
| 4   | PCIE\_CLK\_P   | 1.0V        |
| 5   | PCIE\_CLK\_N   | 1.0V        |
| 6   | GND            | GND         |
| 7   | PCIE\_RX\_P    | 1.0V        |
| 8   | PCIE\_RX\_N    | 1.0V        |
| 9   | GND            | GND         |
| 10  | PCIE\_TX\_P    | 1.0V        |
| 11  | PCIE\_TX\_N    | 1.0V        |
| 12  | GND            | GND         |
| 13  | PCIE\_PWR\_EN  | 3.3V        |
| 14  | PCIE\_WAKEn    | 3.3V        |
| 15  | PCIE2\_CLKREQn | 3.3V        |
| 16  | PCIE2\_RSTn    | 3.3V        |

## Block Diagram

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2F0onoAQYUyLd7INg8SGfE%2FPi_CM5_Carrier.drawio.png?alt=media&amp;token=5798848d-1399-406c-9abc-047da75b45fd" alt=""><figcaption><p>ARK Just a Pi Block Diagram</p></figcaption></figure>

## 3D Model and Case

| File                                                                                                                                               | Contents                  |
| -------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------- |
| [ARK\_Just\_a\_Pi.step](https://github.com/ARK-Electronics/ark-hardware/raw/main/ARK_Just_A_Pi/model/ARK_Just_a_Pi.step)                           | Board model               |
| [Bottom\_Just\_a\_Pi\_Case.step](https://github.com/ARK-Electronics/ark-hardware/raw/main/ARK_Just_A_Pi/case/Bottom_Just_a_Pi_Case.step)           | Case bottom               |
| [Fan\_Top\_Just\_a\_Pi\_Case.step](https://github.com/ARK-Electronics/ark-hardware/raw/main/ARK_Just_A_Pi/case/Fan_Top_Just_a_Pi_Case.step)        | Case top with fan opening |
| [No\_Fan\_Top\_Just\_a\_Pi\_Case.step](https://github.com/ARK-Electronics/ark-hardware/raw/main/ARK_Just_A_Pi/case/No_Fan_Top_Just_a_Pi_Case.step) | Case top without fan      |

All files: [ARK\_Just\_A\_Pi in ark-hardware](https://github.com/ARK-Electronics/ark-hardware/tree/main/ARK_Just_A_Pi)


# Getting Started

## What's Pre-Installed

Bundles that include a CM5 ship pre-imaged:

* **OS**: Raspberry Pi OS (64-bit) with the carrier configuration baked in and [ARK-OS](https://github.com/ARK-Electronics/ARK-OS) pre-installed
* **Credentials**: Username `pi`, password `raspberry`, hostname `just-a-pi`

{% hint style="info" %}
The default password is well known — change it (`passwd`) before putting the device on a network you don't control.
{% endhint %}

If you are installing your own Compute Module, follow the [Flashing Guide](/products/embedded-computers/ark-just-a-pi/flashing-guide) first.

## Connecting

### Option 1: WiFi Hotspot

On first boot, if no known WiFi network is available, the Pi brings up a hotspot:

* **Network**: `just-a-pi-<serial>`
* **Password**: `password`

Connect to the hotspot, open <http://just-a-pi.local>, and join your WiFi network from the **Connections** page:

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2Fgit-blob-6b79afd234cec103b5734ea592bc0ccf689e5aaf%2Fark-ui-connections-justapi.png?alt=media" alt=""><figcaption><p>ARK-UI Connections page</p></figcaption></figure>

Once the Pi is on your network:

```bash
ssh pi@just-a-pi.local
```

If mDNS is not available on your network, use the Pi's IP address instead.

### Option 2: Ethernet

Plug either Ethernet port into your network. The Pi requests an address over DHCP. You can use an [ARK Ethernet Adapter](/products/accessories/ark-ethernet-adapter) to get an RJ45 jack.

### Option 3: Serial Debug Console

The **UART0 Debug** connector (6-pin JST-GH) exposes the Compute Module's serial console at 3.3V. Connect a 3.3V USB-to-serial adapter to reach the console before the network is configured. See the [Pinout](/products/embedded-computers/ark-just-a-pi/hardware#pinout) for the connector pin assignments.

## ARK-UI Web Interface

ARK-OS hosts a web UI at <http://just-a-pi.local> for managing the device: system info, network connections, services, and video streaming. See [ARK-OS](/products/embedded-computers/ark-just-a-pi/using-ark-os).

## Next Steps

* [ARK-OS](/products/embedded-computers/ark-just-a-pi/using-ark-os) – The pre-installed services and web UI
* [Flashing Guide](/products/embedded-computers/ark-just-a-pi/flashing-guide) – Image the Compute Module
* [Hardware Reference](/products/embedded-computers/ark-just-a-pi/hardware) – Specifications, pinout and block diagram


# Using ARK-OS

[ARK-OS](/software/ark-os) ships on the golden image: MAVLink routing, video streaming, flight log management, firmware updates, and network RTK corrections, plus the ARK-UI web interface at <http://just-a-pi.local>.

* [ARK-OS and ARK-UI](/software/ark-os)
* [Services](/software/ark-os/services) — what each service does, and which are enabled by default

Services that talk to a flight controller expect one connected over USB.

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2Fgit-blob-46fd116745e15cf7e50a740b7c0fece3ec573f1c%2Fark-ui-services-pi.png?alt=media" alt=""><figcaption><p>Services page — start/stop services, toggle autostart, view logs, edit configs</p></figcaption></figure>


# Flashing Guide

Bundles that include a CM5 ship pre-imaged with ARK-OS. Follow this guide if you purchased just the carrier and are installing your own Compute Module.

## Option 1: ARK Golden Image

The golden image is Raspberry Pi OS with the carrier's `config.txt` baked in and ARK-OS installed. Download the one for your compute module from [downloads.arkelectron.com/pi/just-a-pi/latest](https://downloads.arkelectron.com/pi/just-a-pi/latest/): `justapi-cm5-trixie-ark-os.img.xz` or `justapi-cm4-trixie-ark-os.img.xz`. Write it to the SD card with [Raspberry Pi Imager](https://www.raspberrypi.com/software/) (**Use custom**), without OS customization. Log in as `pi` / `raspberry`. The image configures the cameras for the Raspberry Pi Camera Module 3 (IMX708); for another camera, change the `dtoverlay=imx708` lines in `/boot/firmware/config.txt`.

For a module with eMMC, hold the **BOOT** button while powering the board, connect the USB JST-GH port to the host, and run [rpiboot](https://www.raspberrypi.com/documentation/computers/compute-module.html#flashing-the-compute-module-emmc) so the eMMC appears as a drive. Write the image to it.

To build the image yourself, see [ark\_pi\_image](https://github.com/ARK-Electronics/ark_pi_image) (`--target justapi-cm5` or `justapi-cm4`).

## Option 2: Raspberry Pi Imager (manual)

Flash stock Raspberry Pi OS, then configure the carrier by hand:

{% content-ref url="/pages/zbZscLqO3bK3iiubqEtp" %}
[Pi CM5 Lite with Micro SD](/products/embedded-computers/ark-just-a-pi/flashing-guide/pi-cm5-lite-with-micro-sd)
{% endcontent-ref %}

{% content-ref url="/pages/MJINAbKNd4AgtMyufIsO" %}
[Pi CM5 with EMMC](/products/embedded-computers/ark-just-a-pi/flashing-guide/pi-cm5-with-emmc)
{% endcontent-ref %}

Then edit `config.txt` for the carrier ([After Flashing, Before Installing](/products/embedded-computers/ark-just-a-pi/flashing-guide/after-flashing-before-installing)), boot, and [install ARK-OS](/software/ark-os#installing-and-updating-ark-os).


# Pi CM5 Lite with Micro SD

When using a Pi CM5 Lite without EMMC, a micro SD must be used for the OS. Follow the normal steps for flashing a micro SD using the Raspberry Pi Imager.

{% embed url="<https://www.raspberrypi.com/software/>" %}

If using Ubuntu:

```
wget -O pi_imager.deb https://downloads.raspberrypi.org/imager/imager_latest_amd64.deb && sudo dpkg -i pi_imager.deb && rm pi_imager.deb
```

{% hint style="info" %}
Select a **64-bit** Raspberry Pi OS. ARK-OS ships packages for both current Raspberry Pi OS (Debian 13 Trixie) and Legacy (Debian 12 Bookworm) — the install script picks the matching one automatically.
{% endhint %}

Apply OS customization to configure WiFi and enable SSH:

* Set the default hostname:

```
just-a-pi
```

* Set the Wifi:\
  It is recommended to add a Dummy Wifi to turn on the Wifi radio, it does not have to be a reachable/ functioning network.\
  Otherwise it can be turned on using the following command once you have ssh-d to the Pi using the debug port.

```
sudo nmcli radio wifi on
```

* Set the default **username (pi)** and **password (raspberry)**
* Enable SSH

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2FScEkmiVAYSQ1HwIqHqPD%2FScreenshot%20from%202025-08-15%2010-45-02.png?alt=media&amp;token=22550eda-1a1f-4180-9983-0d37438e12ae" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2FtnAzv6Qb6C5wrabnFC6j%2FScreenshot%20from%202025-08-15%2010-44-47.png?alt=media&amp;token=892eafb4-54f5-4423-95c1-8e33c0ae212d" alt=""><figcaption></figcaption></figure>

After flashing the SD card is complete, you will need to modify the **/boot/firmware/config.txt** file on the SD card before installing it into the Pi. See [**After Flashing, Before Installing**](/products/embedded-computers/ark-just-a-pi/flashing-guide/after-flashing-before-installing)**.**


# Pi CM5 with EMMC

When using Pi CM5 with EMMC, it must be flashed through the USB JST-GH port on the board. Hold the BOOT button while powering on the board (you can release it a few seconds after power is applied), then follow the steps at the link below.

The [ARK USB Adapter](https://arkelectron.com/product/ark-usb-adapter/) with a USB A to A cable can be used to avoid building a cable.

{% embed url="<https://www.raspberrypi.com/documentation/computers/compute-module.html#flashing-the-compute-module-emmc>" %}

Once complete follow the steps at [After Flashing, Before Installing](/products/embedded-computers/ark-just-a-pi/flashing-guide/after-flashing-before-installing)


# After Flashing, Before Installing

After flashing the SD/EMMC you must modify the config.txt in order for the ARK Just a Pi to function properly.

Edit `config.txt` on the boot partition. On a running Pi it is **/boot/firmware/config.txt**.

Comment out the following lines:

```
# Automatically load overlays for detected cameras
# camera_auto_detect=1

# Automatically load overlays for detected DSI displays
# display_auto_detect=1
```

Leave the stock `[cm4]` and `[cm5]` sections in place. Add the block for your compute module at the end of the file, after `[all]`. For `/dev/i2c-1`, also add `i2c-dev` to a file in `/etc/modules-load.d/`. A CM4 can't use some interfaces; see [Compute Module 4](/products/embedded-computers/ark-just-a-pi/hardware#compute-module-4).

{% tabs %}
{% tab title="CM5" %}

```
# Ethernet switch 1.2V rail, Ethernet switch out of reset, 3.3V camera rail
gpio=27=op,dh
gpio=20=op,dh
gpio=22=op,dh

# CAM1 connector (MIPI0) takes cam0; CAM2 (MIPI1) is the overlay default. Compute modules don't
# auto-detect cameras: use imx708 for Camera Module 3, imx219 for Camera Module 2, imx477 for HQ
dtoverlay=imx708,cam0
dtoverlay=imx708

# I2C1 (GPIO2/3)
dtparam=i2c_arm=on

# UART0 debug console (GPIO14/15)
enable_uart=1
# UART2 connector, with flow control (GPIO4-7)
dtoverlay=uart2,ctsrts
# UART3 connector, with flow control (GPIO8-11)
dtoverlay=uart3,ctsrts
# UART4 connector, TX/RX only (GPIO12/13)
dtoverlay=uart4

# PCIe FFC connector, off by default on the CM5. Uncomment the second line for Gen 3
# if the cable and device run cleanly at Gen 3
dtparam=pciex1
#dtparam=pciex1_gen=3

# USB 2.0 host port VBUS
gpio=24=op,dh

# Fan: temperatures in millidegrees Celsius, speed 0-255
dtparam=cooling_fan=on
dtparam=fan_temp0=40000
dtparam=fan_temp0_speed=120
dtparam=fan_temp1=50000
dtparam=fan_temp2=60000
dtparam=fan_temp3=70000

# Power LED on
dtparam=pwr_led_trigger=default-on
```

{% endtab %}

{% tab title="CM4" %}

```
# Ethernet switch 1.2V rail, Ethernet switch out of reset, 3.3V camera rail
gpio=27=op,dh
gpio=20=op,dh
gpio=22=op,dh

# Camera on the CAM1 connector (the overlay default on a CM4). Compute modules don't
# auto-detect cameras: use imx708 for Camera Module 3, imx219 for Camera Module 2, imx477 for HQ
dtoverlay=imx708

# I2C1 (GPIO2/3)
dtparam=i2c_arm=on

# UART0 debug console (GPIO14/15)
enable_uart=1
# UART3 connector, with flow control (uart4 on the CM4, GPIO8-11)
dtoverlay=uart4,ctsrts
# UART4 connector, TX/RX only (uart5 on the CM4, GPIO12/13)
dtoverlay=uart5

# USB 2.0 host port VBUS
gpio=24=op,dh

# Power LED on
dtparam=pwr_led_trigger=default-on
```

{% endtab %}
{% endtabs %}

{% hint style="warning" %}
With a CM5, a Camera Module 3 (IMX708) on CAM2 streams only after a software reset at each power-up. The golden image does this at boot. On a manual install, run this at boot before anything opens the camera (needs `i2c-tools` and the `i2c-dev` module):

```
sudo i2ctransfer -f -y 0 w3@0x1a 0x01 0x03 0x01
```

{% endhint %}


# Wi-Fi Setup

If WiFi was not setup via the OS Customization options in the Pi Imager UI you can follow these steps to setup your network.

Mount the SD card or EMMC on your computer and open the root filesystem directory.

## Bookworm

Create a new NeworkManager connection profile in **/etc/NetworkManager/system-connections/**

Name the file **YourNetworkSSID**.nmconnection and make sure to replace **YourNetworkSSID** and **YourNetworkPassword**.

```
[connection]
id=YourNetworkSSID
uuid=0e214bd8-4501-4394-9a46-123badc0ffee
type=wifi

[wifi]
mode=infrastructure
ssid=YourNetworkSSID

[wifi-security]
key-mgmt=wpa-psk
psk=YourNetworkPassword

[ipv4]
method=auto

[ipv6]
addr-gen-mode=default
method=auto

[proxy]
```

## Prior to Bookworm

Create a file called **wpa\_supplicant.conf**

Edit the file in a text editor.

Replace `<YOUR TWO LETTER COUNTRY CODE>` with your country code, ie `US`.

Replace `<YOUR NETWORK NAME>` and `<YOUR NETWORK PASSWORD>` with your network info.

```
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=<YOUR TWO LETTER COUNTRY CODE>

network={
    ssid="<YOUR NETWORK NAME>"
    psk="<YOUR NETWORK PASSWORD>"
    key_mgmt=WPA-PSK
}

```

Save the file. On the next boot of the Pi, it will move the file to **/etc/wpa\_supplicant/**


# SSH

If SSH was not setup via the OS Customization options in the Pi Imager UI you can follow these steps to setup SSH.

To enable SSH, mount the SD card or EMMC on your computer and open the root directory.

Create a file named `ssh` on the root of the SD Card.


# SiMa.ai Modalix

A SiMa.ai SoM, pin-compatible with the NVIDIA Jetson Orin NX/Nano (260-pin SODIMM), that fits the ARK Just A Jetson, ARK Jetson PAB Carrier and ARK Jetson PAB Carrier V3. Carrier hardware (power, IMU, connectors) is unchanged: use the carrier's docs for pinout and mechanicals.

* **Performance:** 50 TOPS (BF16/INT8/INT16) at under 10 W, vendor peak rating
* **Storage:** on-module eMMC, optional M.2 NVMe SSD
* **Software:** SiMa.ai eLxr with the ARK carrier overlay and the ARK-OS modalix package

## Documentation

* [ARK Jetson PAB V3 Modalix Bundle](/products/embedded-computers/sima-modalix/ark-jetson-pab-v3-modalix-bundle)
* [ARK Just A Jetson Modalix Bundle](/products/embedded-computers/sima-modalix/ark-just-a-jetson-modalix-bundle)


# ARK Jetson PAB V3 Modalix Bundle

ARK Jetson PAB Carrier V3, SiMa.ai Modalix SoM, heatsink and fan. Optional NDAA 480GB M.2 NVMe SSD.

<a href="https://arkelectron.com/product/ark-jetson-pab-v3-modalix-bundle/" class="button primary" data-icon="cart-shopping">Buy</a> <a href="https://github.com/ARK-Electronics/ark-hardware/tree/main/ARK_Jetson_PAB_V3/model" class="button secondary" data-icon="cube">3D model</a>

The carrier is the same hardware as [ARK Jetson PAB Carrier V3](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier-v3) — ARKV6X flight controller, Pixhawk Autopilot Bus, I/O co-processor, avionics connectors, and Payload Bus. This page covers SoM differences only.

{% hint style="info" %}
The ARK carrier is NDAA. The SoM is SiMa.ai.
{% endhint %}

## Carrier Hardware

{% content-ref url="/pages/UzgcAv6bqVlPHboUz3QG" %}
[ARK Jetson PAB Carrier V3](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier-v3)
{% endcontent-ref %}

Use the PAB V3 [Hardware Reference](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier-v3/hardware) for pinout, power, and 3D models. Do not use the PAB V3 [Flashing Guide](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier-v3/developer/flashing-guide) or [USB-C Console](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier-v3/developer/micro-usb-console) gadget login.

## Where to Start

Do not use NVIDIA SDK Manager or L4T. The SoM boots from built-in eMMC; an NVMe SSD is not required.

1. Apply the ARK carrier overlay to the running eLxr image — [ark-meta-simaai](https://github.com/ARK-Electronics/ark-meta-simaai). The overlay ships as a versioned release package:

   ```bash
   curl -LO https://raw.githubusercontent.com/ARK-Electronics/ark-meta-simaai/main/packaging/provision_from_package.sh
   chmod +x provision_from_package.sh
   BOARD=sima@<ip> ./provision_from_package.sh pab-v3
   ```

   `cat /etc/ark_modalix` afterwards reports which overlay release the board carries.
2. Install the ARK-OS `modalix` package — see [ARK-OS](#ark-os).
3. ML tooling — [SiMa.ai Palette](https://developer.sima.ai/) and [SiMa.ai hardware docs](https://developer.sima.ai/hardware).

SiMa eLxr default login: user `sima`, password `edgeai`, hostname `modalix`. ARK-OS services run as `sima`.

## Interface Differences

| Interface | Modalix                                                                                                                                             |
| --------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| UART2     | Works as a console (UART2 debug header)                                                                                                             |
| CAN       | No SoM CAN. Flight-controller CAN on the avionics connectors is unchanged.                                                                          |
| HDMI      | Works only if the Modalix SoM was ordered with the HDMI option. ARK units will not have HDMI. The V3 Micro HDMI connector is unused.                |
| PCIe2     | Only works when HDMI is not used. On ARK units (no HDMI), PCIe2 is available                                                                        |
| M.2 Key E | No PCIe                                                                                                                                             |
| USB-C     | USB 3.0 works as a host. USB 2.0 on that connector goes to an FTDI console on the SoM (not Jetson gadget device mode)                               |
| UART0     | Works without flow control (no RTS/CTS)                                                                                                             |
| UART1     | Does not work. On this carrier UART1 is the SoM-to-flight-controller serial (Telem2).                                                               |
| Ethernet  | Links at 100 Mb/s, not gigabit. The KSZ8795 switch is held in reset on stock eLxr, so there is no Ethernet at all until the ARK overlay is applied. |

Do not install the Jetson Wi-Fi 6E / Remote ID M.2 option — M.2 Key E has no PCIe on Modalix.

The PAB V3 [Autopilot Connections](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier-v3/using-ark-os/autopilot-connections) UART map (`/dev/ttyTHS1` → Telem2) is for NVIDIA Jetson modules.

## Flight Controller

USB and Ethernet between the Modalix SoM and the ARKV6X are functional. UART1 / Telem2 is not.

Use USB or Ethernet for MAVLink (and for DDS, if you need it). Do not use the Jetson serial path.

Flight-controller CAN, PWM, GPS, and the rest of the avionics connectors are on the ARKV6X and are unchanged.

## Console

UART2 is the console. USB-C USB 2.0 is an FTDI console on the SoM. USB-C USB 3.0 is host only.

On a freshly flashed eLxr image the SoM USB-C console is the **only** way in: the KSZ8795 switch is held in reset until the ARK overlay releases `SWITCH_RSTn`, so Ethernet does not come up. Apply the overlay over that console, reboot, and Ethernet works on its own from then on.

Do not use the Jetson USB-C gadget login (`jetson` / `192.168.55.1`). The SoM has no USB device controller at all (`/sys/class/udc` is empty), so no USB gadget networking of any kind is available — this is not just a different gadget address.

## Recovery

If the eMMC image is unbootable, reflash eLxr with SiMa's netboot path — `scripts/netboot-elxr-pab-v3.sh` in [ark-meta-simaai](https://github.com/ARK-Electronics/ark-meta-simaai), which drives `sima-cli` over TFTP. There is no NVIDIA Force Recovery mode on this SoM.

## Storage

Boots from on-module eMMC. M.2 Key M NVMe is optional extra storage.

## Display / PCIe

ARK-sold Modalix SoMs do not include HDMI. The V3 Micro HDMI connector is unused. Because HDMI is unused, PCIe2 is available.

M.2 Key M is still NVMe. M.2 Key E has no PCIe.

## ARK-OS

ARK-OS is a Debian package, not a full OS image. Flash eLxr first, then install the `modalix` platform on the board (user `sima` must exist):

```bash
curl -fSLO https://github.com/ARK-Electronics/ARK-OS/releases/download/v1.3.0/ark-os-modalix-bookworm_1.3.0_arm64.deb
sudo apt-get install -y ./ark-os-modalix-bookworm_1.3.0_arm64.deb
```

Use `apt-get install`, not `dpkg -i` — the package has dependencies (nginx, gstreamer) that only apt resolves.

The package is named `bookworm` while eLxr 12 reports its own codename, `aria`. They are ABI-compatible; the bookworm build is the one to install. If you use `packaging/install_ark_os.sh` instead, pass `--codename=bookworm`, or it will look for an `aria` asset that is not published.

Do not install the `jetson` package.

ARK-UI is at <http://modalix.local> (or the board's IP). Do not use `jetson.local` or USB-C gadget networking.

Compared with [ARK-OS](/software/ark-os) on Jetson:

* No `jtop` / jetson-stats
* No `jetson-can` (no SoM CAN)
* No `rid-transmitter`
* FMU reset / VBUS GPIO helpers are no-ops until mapped
* mavlink-router can use the USB flight-controller path
* Do not use XRCE-DDS on UART1 / Telem2 — that serial link does not work

{% content-ref url="/pages/UeK3tIjBLKOTDOsePSXc" %}
[ARK-OS](/software/ark-os)
{% endcontent-ref %}

## Performance

Vendor peak ratings, not a lab benchmark:

| Module                      | Peak TOPS                 | Rated power |
| --------------------------- | ------------------------- | ----------- |
| SiMa.ai Modalix             | 50 TOPS (BF16/INT8/INT16) | sub-10W     |
| NVIDIA Jetson Orin Nano 8GB | 40 TOPS; Super 67 TOPS    | 25W         |
| NVIDIA Jetson Orin NX 16GB  | 100 TOPS; Super 157 TOPS  | 40W         |

Modalix has higher TOPS per watt than Orin Nano Super and Orin NX Super at those rated points. Peak TOPS on Super NX is higher.

## External

* [SiMa.ai MLSoC Family](https://sima.ai/mlsoc-family/)
* [SiMa.ai Developer Center (Palette)](https://developer.sima.ai/)
* [SiMa.ai Hardware Docs](https://developer.sima.ai/hardware)
* [ark-meta-simaai](https://github.com/ARK-Electronics/ark-meta-simaai) — ARK carrier device tree and flash tooling
* [ARK-OS](https://github.com/ARK-Electronics/ARK-OS) — `modalix` platform package


# ARK Just A Jetson Modalix Bundle

ARK Just A Jetson carrier, SiMa.ai Modalix SoM, heatsink and fan. Optional NDAA 480GB M.2 NVMe SSD.

<a href="https://arkelectron.com/product/ark-just-a-jetson-modalix-bundle/" class="button primary" data-icon="cart-shopping">Buy</a> <a href="https://github.com/ARK-Electronics/ark-hardware/tree/main/ARK_Just_A_Jetson/model" class="button secondary" data-icon="cube">3D model</a>

The carrier is the same hardware as [ARK Just A Jetson](/products/embedded-computers/ark-just-a-jetson). This page covers SoM differences only.

{% hint style="info" %}
The ARK carrier is NDAA. The SoM is SiMa.ai.
{% endhint %}

## Carrier Hardware

{% content-ref url="/pages/QoFTB30a2YpQPrYwhPWS" %}
[ARK Just A Jetson](/products/embedded-computers/ark-just-a-jetson)
{% endcontent-ref %}

Use the JAJ [Hardware Reference](/products/embedded-computers/ark-just-a-jetson/hardware) for pinout, power, and 3D models. Do not use the JAJ [Flashing Guide](/products/embedded-computers/ark-just-a-jetson/developer/flashing-guide) or [USB-C Console](/products/embedded-computers/ark-just-a-jetson/developer/usb-c-console) gadget login.

## Where to Start

Do not use NVIDIA SDK Manager or L4T. The SoM boots from built-in eMMC; an NVMe SSD is not required.

1. Apply the ARK carrier overlay to the running eLxr image — [ark-meta-simaai](https://github.com/ARK-Electronics/ark-meta-simaai). The overlay ships as a versioned release package:

   ```bash
   curl -LO https://raw.githubusercontent.com/ARK-Electronics/ark-meta-simaai/main/packaging/provision_from_package.sh
   chmod +x provision_from_package.sh
   BOARD=sima@<ip> ./provision_from_package.sh jaj
   ```

   `cat /etc/ark_modalix` afterwards reports which overlay release the board carries.
2. Install the ARK-OS `modalix` package — see [ARK-OS](#ark-os).
3. ML tooling — [SiMa.ai Palette](https://developer.sima.ai/) and [SiMa.ai hardware docs](https://developer.sima.ai/hardware).

SiMa eLxr default login: user `sima`, password `edgeai`, hostname `modalix`. ARK-OS services run as `sima`.

## Interface Differences

| Interface | Modalix                                                                                                               |
| --------- | --------------------------------------------------------------------------------------------------------------------- |
| UART2     | Works as a console                                                                                                    |
| CAN       | No CAN interface                                                                                                      |
| HDMI      | Works only if the Modalix SoM was ordered with the HDMI option. ARK units will not have HDMI.                         |
| PCIe2     | Only works when HDMI is not used. On ARK units (no HDMI), PCIe2 is available                                          |
| M.2 Key E | No PCIe                                                                                                               |
| USB-C     | USB 3.0 works as a host. USB 2.0 on that connector goes to an FTDI console on the SoM (not Jetson gadget device mode) |
| UART0     | Works without flow control (no RTS/CTS)                                                                               |
| UART1     | Does not work                                                                                                         |
| Ethernet  | Carrier gigabit Ethernet works on stock eLxr, before the ARK overlay is applied                                       |

Do not install the Jetson Wi-Fi 6E / Remote ID M.2 option — M.2 Key E has no PCIe on Modalix.

The JAJ [Ports and Serial](/products/embedded-computers/ark-just-a-jetson/hardware/connections) UART map (`/dev/ttyTHS*`) is for NVIDIA Jetson modules.

## Console

UART2 is the console. USB-C USB 2.0 is an FTDI console on the SoM. USB-C USB 3.0 is host only.

Do not use the Jetson USB-C gadget login (`jetson` / `192.168.55.1`). The SoM has no USB device controller at all (`/sys/class/udc` is empty), so no USB gadget networking of any kind is available — this is not just a different gadget address.

## Recovery

If the eMMC image is unbootable, reflash eLxr with SiMa's netboot path — `./flash.sh JAJ --netboot` in [ark-meta-simaai](https://github.com/ARK-Electronics/ark-meta-simaai), which drives `sima-cli` over TFTP. There is no NVIDIA Force Recovery mode on this SoM.

## Storage

Boots from on-module eMMC. M.2 Key M NVMe is optional extra storage.

## Display / PCIe

ARK-sold Modalix SoMs do not include HDMI. Because HDMI is unused, PCIe2 is available.

M.2 Key M is still NVMe. M.2 Key E has no PCIe.

## ARK-OS

ARK-OS is a Debian package, not a full OS image. Flash eLxr first, then install the `modalix` platform on the board (user `sima` must exist):

```bash
curl -fSLO https://github.com/ARK-Electronics/ARK-OS/releases/download/v1.3.0/ark-os-modalix-bookworm_1.3.0_arm64.deb
sudo apt-get install -y ./ark-os-modalix-bookworm_1.3.0_arm64.deb
```

Use `apt-get install`, not `dpkg -i` — the package has dependencies (nginx, gstreamer) that only apt resolves.

The package is named `bookworm` while eLxr 12 reports its own codename, `aria`. They are ABI-compatible; the bookworm build is the one to install. If you use `packaging/install_ark_os.sh` instead, pass `--codename=bookworm`, or it will look for an `aria` asset that is not published.

Do not install the `jetson` package.

ARK-UI is at <http://modalix.local> (or the board's IP). Do not use `jetson.local` or USB-C gadget networking.

Compared with [ARK-OS](/software/ark-os) on Jetson:

* No `jtop` / jetson-stats
* No `jetson-can` (no SoM CAN)
* No `rid-transmitter`
* FMU reset / VBUS GPIO helpers are no-ops until mapped
* mavlink-router still uses the USB flight-controller path when an FC is on USB

{% content-ref url="/pages/UeK3tIjBLKOTDOsePSXc" %}
[ARK-OS](/software/ark-os)
{% endcontent-ref %}

## Performance

Vendor peak ratings, not a lab benchmark:

| Module                      | Peak TOPS                 | Rated power |
| --------------------------- | ------------------------- | ----------- |
| SiMa.ai Modalix             | 50 TOPS (BF16/INT8/INT16) | sub-10W     |
| NVIDIA Jetson Orin Nano 8GB | 40 TOPS; Super 67 TOPS    | 25W         |
| NVIDIA Jetson Orin NX 16GB  | 100 TOPS; Super 157 TOPS  | 40W         |

Modalix has higher TOPS per watt than Orin Nano Super and Orin NX Super at those rated points. Peak TOPS on Super NX is higher.

## External

* [SiMa.ai MLSoC Family](https://sima.ai/mlsoc-family/)
* [SiMa.ai Developer Center (Palette)](https://developer.sima.ai/)
* [SiMa.ai Hardware Docs](https://developer.sima.ai/hardware)
* [ark-meta-simaai](https://github.com/ARK-Electronics/ark-meta-simaai) — ARK carrier device tree and flash tooling
* [ARK-OS](https://github.com/ARK-Electronics/ARK-OS) — `modalix` platform package


# Flight Controllers

ARK flight controllers and autopilot carrier boards for PX4, ArduPilot, and Betaflight.

{% content-ref url="/pages/6J6cWwEzre1Au5hIWae8" %}
[ARK FPV](/products/flight-controller/ark-fpv)
{% endcontent-ref %}

{% content-ref url="/pages/cC0fhOQeuUjhhp453uMD" %}
[ARKV6X](/products/flight-controller/arkv6x)
{% endcontent-ref %}

{% content-ref url="/pages/VSDKXa4IHDTdJwGBqMzz" %}
[ARKV6X-RT](/products/flight-controller/arkv6x-rt)
{% endcontent-ref %}

{% content-ref url="/pages/g6AeKjO11nQcU2wJWLsR" %}
[ARK Pixhawk Autopilot Bus Carrier](/products/flight-controller/ark-pixhawk-autopilot-bus-carrier)
{% endcontent-ref %}

{% content-ref url="/pages/5fmpxMUTz0ILwNZVhXDT" %}
[ARK Jetson PAB Carrier](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier)
{% endcontent-ref %}

{% content-ref url="/pages/UzgcAv6bqVlPHboUz3QG" %}
[ARK Jetson PAB Carrier V3](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier-v3)
{% endcontent-ref %}

{% content-ref url="/pages/058wj5KxrgTfxEYFZT5t" %}
[ARK Pi6X Flow](/products/flight-controller/ark-pi6x-flow)
{% endcontent-ref %}

{% content-ref url="/pages/wDdCEscPz7NLUT6B7AGp" %}
[ARK VOXL2 RTK PAB Carrier](/products/flight-controller/ark-voxl2-rtk-pab-carrier)
{% endcontent-ref %}


# ARK FPV

A flight controller based on the [ARKV6X](/products/flight-controller/arkv6x), in a 30.5 mm mounting pattern.

<a href="https://arkelectron.com/product-category/flight-controllers/fpv/" class="button primary" data-icon="cart-shopping">Buy</a> <a href="https://github.com/ARK-Electronics/ark-hardware/tree/main/ARK_FPV/model" class="button secondary" data-icon="cube">3D model</a> <a href="https://github.com/ARK-Electronics/ark-hardware/tree/main/ARK_FPV/case" class="button secondary" data-icon="box">Case</a>

* **Processor:** STM32H743, 480 MHz
* **Sensors:** InvenSense IIM-42653 or ST LSM6DSV32X IMU, Bosch BMP390 barometer, ST IIS2MDC magnetometer
* **Power:** 3S–12S input, 12 V 2 A output for video transmitters and payloads
* **Autopilots:** PX4 (preinstalled), ArduPilot, Betaflight
* **Compliance:** USA built, NDAA, Blue Framework listed (ARK FPV)

## Variants

| Variant         | IMU        | Buy                                                                   |
| --------------- | ---------- | --------------------------------------------------------------------- |
| **ARK FPV**     | IIM-42653  | [Buy](https://arkelectron.com/product/ark-fpv-flight-controller/)     |
| **ARK FPV 32X** | LSM6DSV32X | [Buy](https://arkelectron.com/product/ark-fpv-32x-flight-controller/) |

## Documentation

* [Firmware](/products/flight-controller/ark-fpv/firmware)
* [Hardware Reference](/products/flight-controller/ark-fpv/hardware)
* [PX4 Instructions](/products/flight-controller/ark-fpv/px4-instructions)
* [ArduPilot Instructions](/products/flight-controller/ark-fpv/ardupilot-instructions)
* [Betaflight Instructions](/products/flight-controller/ark-fpv/betaflight-instructions)


# Firmware

The ARK FPV ships with PX4. It also runs ArduPilot and Betaflight. The ARK FPV 32X uses the same build targets.

PX4 main starts the LSM6DSV32X on an ARK FPV 32X (`ARKFPV001`), and so does release/1.18 after v1.18.0-rc1 ([backport](https://github.com/PX4/PX4-Autopilot/pull/29375)). ArduPilot master starts it too. The [ArduPilot 4.7 backport](https://github.com/ArduPilot/ardupilot/pull/34484) is open. The published Betaflight `ARK_FPV` target selects the IIM-42653; [32X support](https://github.com/betaflight/config/pull/1201) is in review.

| Firmware   | Build target                                                                                                   |
| ---------- | -------------------------------------------------------------------------------------------------------------- |
| PX4        | `ark_fpv_default` ([boards/ark/fpv](https://github.com/PX4/PX4-Autopilot/tree/main/boards/ark/fpv))            |
| ArduPilot  | `ARK_FPV` ([hwdef](https://github.com/ArduPilot/ardupilot/tree/master/libraries/AP_HAL_ChibiOS/hwdef/ARK_FPV)) |
| Betaflight | `ARK_FPV`                                                                                                      |

## PX4

### Flashing Firmware

Firmware can be flashed over USB C using [QGroundControl](https://qgroundcontrol.com/).

### Building Firmware

```
make ark_fpv_default
```

and optionally upload

```
make ark_fpv_default upload
```

## ArduPilot

### Flashing Firmware

Firmware can be flashed over USB C using [QGroundControl](https://qgroundcontrol.com/).

### Building Firmware

```
./waf configure --board ARK_FPV
./waf copter
```

and optionally upload

```
./waf copter --upload
```

## Betaflight

{% hint style="info" %}
The published Betaflight `ARK_FPV` target selects the IIM-42653. On an ARK FPV 32X that leaves the IMU stopped.
{% endhint %}

### Building Firmware

See the official [Betaflight documentation](https://betaflight.com/docs/development/building/Building-in-Ubuntu) for setting up the development environment.

If you flash your flight controller using DFU via <https://app.betaflight.com/>, build the `.hex`:

```
make hex CONFIG=ARK_FPV
```

If you flash your flight controller using ST-Link, build the `.bin`:

```
make binary CONFIG=ARK_FPV
```

### Flash using DFU mode via web app

Betaflight can be flashed using DFU over USB C.

1. With the board unpowered, hold the button next to the USB C port while connecting the USB cable to your PC.
2. Open <https://app.betaflight.com/> in Chrome or Edge.
3. Select `Firmware Flasher`\
   Toggle the sliders `Enable Expert Mode` and `Show release candidates` and select:\
   \- `Development`\
   \- `ARK_FPV`\
   \- `4.6.0-dev [latest]`\
   ![](https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2FiizmGiPj2RTtrpINBvt6%2Fimage.png?alt=media\&token=4522c066-5bde-47c8-8731-57fe8f946de4)
4. Now select the `Load Firmware [Online]`\
   ![](https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2Fy0RolNUQ2ZMojwiwLDsX%2Fimage.png?alt=media\&token=bd4dcadb-e1c1-48f4-ad8c-5c4887e0bef0)
5. You could also flash your own build\
   \- Select the `Load Firmware [Local]`\
   \- In this case you need a `.hex`\
   ![](https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2F1jyPlQRm3UNOXUGXA7E7%2Fimage.png?alt=media\&token=3fea5a5d-be6c-473d-9750-3ee93072de71)<br>
6. Now select `Flash Firmware`

{% hint style="info" %}
Betaflight does not have a separate bootloader. If you want to re-flash back to PX4 or Ardupilot after flashing Betaflight, you will need to re-flash the PX4 bootloader. See [Bootloader Flashing Using DFU](/products/flight-controller/ark-fpv/firmware/bootloader-flashing-using-dfu).
{% endhint %}

### Flash using ST-Link

For detailed instructions on ST-LINK setup, software installation, and usage, see the [ST-LINK Flashing Guide](/knowledge-base/knowledge-base/st-link-flashing-guide).

Connect to the 6-pin debug connector and flash:

```
st-flash write obj/ARK_FPV.bin 0x08000000
```

## Bootloader

The default ARK FPV PX4 bootloader works with PX4 and ArduPilot. DFU over USB C flashes or reflashes it.

{% content-ref url="/pages/yQiTjlhHUOPqAqSTan2e" %}
[Bootloader Flashing Using DFU](/products/flight-controller/ark-fpv/firmware/bootloader-flashing-using-dfu)
{% endcontent-ref %}


# Bootloader Flashing Using DFU

DFU can be used to flash or reflash the bootloader with the following steps.

1. With the board unpowered, hold the button next to the USB C port while connecting the USB cable to your PC.
2. Open <https://devanlai.github.io/webdfu/dfu-util/> in Chrome.
3. Select `Connect`, then select `DFU in FS Mode`.

   <figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2F91h9BJWzjVcO5ZOnpbIS%2Fimage.png?alt=media&amp;token=4ac739c0-8646-483b-a8ac-92067b207164" alt=""><figcaption><p>DFU Device Selection</p></figcaption></figure>
4. Now select the `@Internal Flash` option.

   <figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2FteDuDz2S65P7sJNDcyTp%2Fimage.png?alt=media&amp;token=90eac48f-9fb6-4ce6-b187-b0d2d0cef5af" alt=""><figcaption><p>Select the @Internal Flash Option</p></figcaption></figure>
5. Now choose the bootloader binary you wish to flash. In this case we are using the default ARK FPV PX4 bootloader which is compatible with PX4 and Ardupilot.

{% file src="/files/WKF1WXXNNsU0AZx6hyrK" %}
ARK FPV PX4 Bootloader Built on Commit [1043aebf5ddd8fd0f6825a27d9a060fa24b616eb](https://github.com/PX4/PX4-Autopilot/commit/1043aebf5ddd8fd0f6825a27d9a060fa24b616eb)
{% endfile %}

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2F61m2CCQnYou3nIlephRT%2Fimage.png?alt=media&amp;token=32f2a08a-8840-414a-93a1-c770ea53efd4" alt=""><figcaption><p>Firmware Selection</p></figcaption></figure>

6. Select `Download` to flash the firmware.

   <figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2F4wfOAlqLJPXtFXQhgn8P%2Fimage.png?alt=media&amp;token=2bafc4f0-92b4-4907-b183-18f03a1ce6ef" alt=""><figcaption><p>Start the Firmware Download</p></figcaption></figure>
7. The flash will finish and the firmware will start.


# Hardware Reference

## Specifications

| Specification         | Value                                                                                                                                                                          |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| MCU                   | [STM32H743IIK6](https://www.st.com/en/microcontrollers-microprocessors/stm32h743ii.html), 480 MHz, 2 MB flash, 1 MB RAM                                                        |
| IMU                   | [Invensense IIM-42653](https://invensense.tdk.com/products/smartindustrial/iim-42653/) industrial IMU on the ARK FPV. PX4 reports this board as `ARKFPV000`                    |
| IMU, 32X              | [ST LSM6DSV32X](https://www.st.com/en/mems-and-sensors/lsm6dsv32x.html) on the ARK FPV 32X, on the same SPI pads. PX4 reports this board as `ARKFPV001`                        |
| Barometer             | [Bosch BMP390](https://www.bosch-sensortec.com/products/environmental-sensors/pressure-sensors/pressure-sensors-bmp390.html)                                                   |
| Magnetometer          | [ST IIS2MDC](https://www.st.com/en/mems-and-sensors/iis2mdc.html)                                                                                                              |
| Heater                | 1 W, for warming sensors in extreme cold                                                                                                                                       |
| Storage               | MicroSD slot                                                                                                                                                                   |
| Indicators            | LEDs                                                                                                                                                                           |
| Interfaces            | USB-C (VBUS in, USB), 9 PWM outputs, CAN, GPS (UART, I2C), TELEM (UART with flow control), RC (UART), VTX (12 V, two UARTs), SPI for an OSD or external IMU, debug (UART, SWD) |
| Battery input         | 5.5–54 V (3S–12S). Zener diode, 54 V standoff, 60 V breakdown                                                                                                                  |
| 5 V regulator         | 2 A                                                                                                                                                                            |
| Power draw            | 500 mA: 300 mA main system, 200 mA heater                                                                                                                                      |
| 12 V regulator        | 2 A, for video transmitters and payloads. Tracks VBAT when VBAT is below 12 V. Power control from the MCU (pit switch)                                                         |
| Voltage monitoring    | VBAT in, 5.0 V, 12.0 V, 3.3 V FMU, 3.3 V sensors                                                                                                                               |
| Operating temperature | −25 °C to +85 °C                                                                                                                                                               |
| Storage temperature   | −25 °C to +85 °C                                                                                                                                                               |
| Mounting              | 30.5 mm                                                                                                                                                                        |
| Dimensions            | 3.6 × 3.6 × 0.8 cm                                                                                                                                                             |
| Weight                | 7.5 g with MicroSD card                                                                                                                                                        |
| Compliance            | USA built, NDAA compliant. The ARK FPV is [Blue Framework listed](https://tyrionprod.servicenowservices.com/gsp?id=framework_list)                                             |

## Power

| Rail    | Limit                                        | Connectors               |
| ------- | -------------------------------------------- | ------------------------ |
| `5.0V`  | 2 A, including the flight controller's 0.5 A | RC, CAN, GPS, TELEM, SPI |
| `12.0V` | 2 A                                          | VTX, POWER AUX           |

The 5 V connector pins have no fuse or current limit. With the battery disconnected, USB powers the 5 V rail and everything on it.

Power a high-current telemetry radio, such as an RFD900x, from its own 5 V regulator. With a radio drawing about 1 A from TELEM, connecting USB and the battery at the same time can crash the flight controller.

## Pinout

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2FloHWaQorAkLLDQp7NcRQ%2FAcrobat_IDpk1kUSKm.png?alt=media&amp;token=7d343ce4-00b2-4ffc-9c30-1788e777beab" alt=""><figcaption><p>ARK FPV Flight Controller Top</p></figcaption></figure>

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2FT9JCPl3q1E6UfUVnUrBm%2FAcrobat_Vz8k0IUfcj.png?alt=media&amp;token=167d598e-4c0d-4c29-80cb-7191c1f53b25" alt=""><figcaption><p>ARK FPV Flight Controller Bottom</p></figcaption></figure>

### PWM UART4 — 8-pin JST-GH

| Pin | Signal         | Voltage  |
| --- | -------------- | -------- |
| 1   | VBAT IN        | 5.5V-54V |
| 2   | CURR\_IN\_EXT  | 3.3V     |
| 3   | UART4\_RX\_EXT | 3.3V     |
| 4   | FMU\_CH1\_EXT  | 3.3V     |
| 5   | FMU\_CH2\_EXT  | 3.3V     |
| 6   | FMU\_CH3\_EXT  | 3.3V     |
| 7   | FMU\_CH4\_EXT  | 3.3V     |
| 8   | GND            | GND      |

### RC — 4-pin JST-GH

| Pin | Signal                  | Voltage |
| --- | ----------------------- | ------- |
| 1   | 5.0V                    | 5.0V    |
| 2   | USART6\_RX\_IN\_EXT     | 3.3V    |
| 3   | USART6\_TX\_OUTPUT\_EXT | 3.3V    |
| 4   | GND                     | GND     |

### PWM EXTRA — 6-pin JST-SH

| Pin | Signal        | Voltage |
| --- | ------------- | ------- |
| 1   | FMU\_CH5\_EXT | 3.3V    |
| 2   | FMU\_CH6\_EXT | 3.3V    |
| 3   | FMU\_CH7\_EXT | 3.3V    |
| 4   | FMU\_CH8\_EXT | 3.3V    |
| 5   | FMU\_CH9\_EXT | 3.3V    |
| 6   | GND           | GND     |

### POWER AUX — 3-pin JST-GH

| Pin | Signal      | Voltage  |
| --- | ----------- | -------- |
| 1   | 12.0V       | 12.0V    |
| 2   | GND         | GND      |
| 3   | VBAT IN/OUT | 5.5V-54V |

### CAN — 4-pin JST-GH

| Pin | Signal  | Voltage |
| --- | ------- | ------- |
| 1   | 5.0V    | 5.0V    |
| 2   | CAN1\_P | 5.0V    |
| 3   | CAN1\_N | 5.0V    |
| 4   | GND     | GND     |

### GPS — 6-pin JST-GH

| Pin | Signal                | Voltage |
| --- | --------------------- | ------- |
| 1   | 5.0V                  | 5.0V    |
| 2   | USART1\_TX\_GPS1\_EXT | 3.3V    |
| 3   | USART1\_RX\_GPS1\_EXT | 3.3V    |
| 4   | I2C1\_SCL\_GPS1\_EXT  | 3.3V    |
| 5   | I2C1\_SDA\_GPS1\_EXT  | 3.3V    |
| 6   | GND                   | GND     |

### TELEM — 6-pin JST-GH

| Pin | Signal                  | Voltage |
| --- | ----------------------- | ------- |
| 1   | 5.0V                    | 5.0V    |
| 2   | UART7\_TX\_TELEM1\_EXT  | 3.3V    |
| 3   | UART7\_RX\_TELEM1\_EXT  | 3.3V    |
| 4   | UART7\_CTS\_TELEM1\_EXT | 3.3V    |
| 5   | UART7\_RTS\_TELEM1\_EXT | 3.3V    |
| 6   | GND                     | GND     |

### VTX — 6-pin JST-GH

| Pin | Signal                  | Voltage |
| --- | ----------------------- | ------- |
| 1   | 12.0V                   | 12.0V   |
| 2   | GND                     | GND     |
| 3   | UART5\_TX\_TELEM2\_EXT  | 3.3V    |
| 4   | UART5\_RX\_TELEM2\_EXT  | 3.3V    |
| 5   | USART2\_RX\_TELEM3\_EXT | 3.3V    |
| 6   | GND                     | GND     |

### SPI (OSD or IMU) — 8-pin JST-SH

| Pin | Signal            | Voltage |
| --- | ----------------- | ------- |
| 1   | 5.0V              | 5.0V    |
| 2   | SPI6\_SCK\_EXT    | 3.3V    |
| 3   | SPI6\_MISO\_EXT   | 3.3V    |
| 4   | SPI6\_MOSI\_EXT   | 3.3V    |
| 5   | SPI6\_nCS1\_EXT   | 3.3V    |
| 6   | SPI6\_DRDY1\_EXT  | 3.3V    |
| 7   | SPI6\_nRESET\_EXT | 3.3V    |
| 8   | GND               | GND     |

### Flight Controller Debug — 6-pin JST-SH

| Pin | Signal            | Voltage |
| --- | ----------------- | ------- |
| 1   | 3V3\_FMU          | 3.3V    |
| 2   | USART3\_TX\_DEBUG | 3.3V    |
| 3   | USART3\_RX\_DEBUG | 3.3V    |
| 4   | FMU\_SWDIO        | 3.3V    |
| 5   | FMU\_SWCLK        | 3.3V    |
| 6   | GND               | GND     |

## UART Port Mapping

| UART   | Connector | PX4 name | NuttX tty  |
| ------ | --------- | -------- | ---------- |
| USART1 | GPS       | GPS1     | /dev/ttyS0 |
| USART2 | VTX       | Telem3   | /dev/ttyS1 |
| USART3 | Debug     | Debug    | /dev/ttyS2 |
| UART4  | PWM       | UART4    | /dev/ttyS3 |
| UART5  | VTX       | Telem2   | /dev/ttyS4 |
| USART6 | RC        | USART6   | /dev/ttyS5 |
| UART7  | Telem     | Telem1   | /dev/ttyS6 |

## 3D Model and Case

The ARK FPV 32X uses the same board and case.

| File                                                                                                                                   | Contents               |
| -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- |
| [ARK\_FPV\_Rev\_1.0.step](https://github.com/ARK-Electronics/ark-hardware/raw/main/ARK_FPV/model/ARK_FPV_Rev_1.0.step)                 | Board, rev 1.0         |
| [ARK\_FPV\_Rev\_1.0\_PDF3D.pdf](https://github.com/ARK-Electronics/ark-hardware/raw/main/ARK_FPV/model/ARK_FPV_Rev_1.0_PDF3D.pdf)      | Board, rev 1.0, 3D PDF |
| [Top\_ARK\_FPV\_Case\_rev1.stl](https://github.com/ARK-Electronics/ark-hardware/raw/main/ARK_FPV/case/Top_ARK_FPV_Case_rev1.stl)       | Case top               |
| [Bottom\_ARK\_FPV\_Case\_rev1.stl](https://github.com/ARK-Electronics/ark-hardware/raw/main/ARK_FPV/case/Bottom_ARK_FPV_Case_rev1.stl) | Case bottom            |

All files: [ARK\_FPV in ark-hardware](https://github.com/ARK-Electronics/ark-hardware/tree/main/ARK_FPV)


# PX4 Instructions

{% embed url="<https://docs.px4.io/main/en/flight_controller/ark_fpv.html>" %}
ARK FPV PX4 Documentation
{% endembed %}

PX4 main starts the LSM6DSV32X on an ARK FPV 32X. To build or flash PX4, see [Firmware](/products/flight-controller/ark-fpv/firmware#px4).

## PWM Outputs

Outputs 1–8 support DShot and bidirectional DShot. Output 9 is PWM and OneShot only.

Protocol and rate are set per timer: outputs 1–4, 5–8 and 9.


# ArduPilot Instructions

{% embed url="<https://ardupilot.org/copter/docs/common-ark-fpv.html>" %}
ARK FPV ArduPilot Documentation
{% endembed %}

ArduPilot master starts the LSM6DSV32X on an ARK FPV 32X. To build or flash ArduPilot, see [Firmware](/products/flight-controller/ark-fpv/firmware#ardupilot).

## UART Mapping

| Name    | Function                                   |
| ------- | ------------------------------------------ |
| SERIAL0 | USB                                        |
| SERIAL1 | UART7 (Telem)                              |
| SERIAL2 | UART5 (DisplayPort HD VTX)                 |
| SERIAL3 | USART1 (GPS1)                              |
| SERIAL4 | USART2 (User, SBUS pin on HD VTX, RX only) |
| SERIAL5 | UART4 (ESC Telem, RX only)                 |
| SERIAL6 | USART6 (RC Input)                          |
| SERIAL7 | OTG2 (SLCAN)                               |

All UARTS support DMA. Any UART may be re-tasked by changing its protocol parameter.


# Betaflight Instructions

To build or flash Betaflight, see [Firmware](/products/flight-controller/ark-fpv/firmware#betaflight). The published `ARK_FPV` target selects the IIM-42653, so it leaves the IMU stopped on an ARK FPV 32X.

## Connection to the Flight Controller

If your FC is flashed with Betaflight:

1. Power your board
2. Open <https://app.betaflight.com/> in Chrome or Edge.
3. Click on Connect

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2F1JJ9FGBPxrhLtiwTRjxy%2Fimage.png?alt=media&amp;token=549dd4cd-031a-40c2-b6d5-e3f14efbe519" alt=""><figcaption></figcaption></figure>


# ARKV6X

A flight controller module built to the Pixhawk FMUv6X and Autopilot Bus standards. It plugs into any PAB carrier, such as the [ARK Pixhawk Autopilot Bus Carrier](/products/flight-controller/ark-pixhawk-autopilot-bus-carrier).

<a href="https://arkelectron.com/product-category/flight-controllers/arkv6/" class="button primary" data-icon="cart-shopping">Buy</a> <a href="https://github.com/ARK-Electronics/ark-hardware/tree/main/ARKV6X/model" class="button secondary" data-icon="cube">3D model</a> <a href="https://github.com/ARK-Electronics/ark-hardware/blob/main/ARKV6X/datasheet/ARKV6X_Datasheet.pdf" class="button secondary" data-icon="file-pdf">Datasheet</a>

* **Processor:** STM32H743, 480 MHz
* **Sensors:** triple synced IMUs, Bosch BMP390 barometer, Bosch BMM150 magnetometer
* **Autopilots:** PX4 (preinstalled), ArduPilot
* **Compliance:** USA built, NDAA, Blue Framework listed

## Variants

| Variant                   | IMUs                      | Range          | Module                                                   | On PAB carrier                                                       |
| ------------------------- | ------------------------- | -------------- | -------------------------------------------------------- | -------------------------------------------------------------------- |
| **ARKV6X**                | 2× ICM-42688-P, IIM-42652 | 2000 dps, 16 g | [Buy](https://arkelectron.com/product/arkv6x/)           | [Buy](https://arkelectron.com/product/arkv6x-bundle/)                |
| **ARKV6X Extended Range** | 3× IIM-42653              | 4000 dps, 32 g | [Buy](https://arkelectron.com/product/arkv6x-iim-42653/) | [Buy](https://arkelectron.com/product/arkv6x-extended-range-bundle/) |

## Documentation

* [Firmware](/products/flight-controller/arkv6x/firmware)
* [Hardware Reference](/products/flight-controller/arkv6x/hardware)
* [PX4 Instructions](/products/flight-controller/arkv6x/px4-instructions)
* [ArduPilot Instructions](/products/flight-controller/arkv6x/ardupilot-instructions)


# Firmware

The ARKV6X ships with PX4 and can be flashed with ArduPilot. The ARKV6X Extended Range needs PX4 1.14 or later, or ArduPilot 4.6.3 or later.

| Firmware  | Build target                                                                                                    |
| --------- | --------------------------------------------------------------------------------------------------------------- |
| PX4       | `ark_fmu-v6x_default` ([boards/ark/fmu-v6x](https://github.com/PX4/PX4-Autopilot/tree/main/boards/ark/fmu-v6x)) |
| ArduPilot | `ARKV6X` ([hwdef](https://github.com/ArduPilot/ardupilot/tree/master/libraries/AP_HAL_ChibiOS/hwdef/ARKV6X))    |

## PX4

### Flashing Firmware

#### QGroundControl (USB-C)

Firmware can be flashed over USB C using [QGroundControl](https://qgroundcontrol.com/).

#### px4\_uploader.py (USB or UART)

[`px4_uploader.py`](https://github.com/PX4/PX4-Autopilot/blob/main/Tools/px4_uploader.py) can flash firmware over USB or UART. For UART flashing, only the **Telem1** port is supported.

Over USB:

```sh
python3 Tools/px4_uploader.py build/ark_fmu-v6x_default/ark_fmu-v6x_default.px4
```

Over UART (via Telem1):

```sh
python3 Tools/px4_uploader.py --port /dev/<your-uart> build/ark_fmu-v6x_default/ark_fmu-v6x_default.px4
```

### Building Firmware

```
make ark_fmu-v6x_default
```

and optionally upload

```
make ark_fmu-v6x_default upload
```

## ArduPilot

### Flashing Firmware

Firmware can be flashed over USB C using [QGroundControl](https://qgroundcontrol.com/).

### Building Firmware

```
./waf configure --board ARKV6X
./waf copter
```

and optionally upload

```
./waf copter --upload
```

For a carrier board with an IOMCU, change the hwdef first: see [hwdef modifications for use with an IOMCU](/products/flight-controller/arkv6x/ardupilot-instructions#hwdef-modifications-for-use-with-an-iomcu).

## Recovering the Bootloader (SWD)

The application is at `0x08020000` (128 KB sectors).

```bash
st-flash write ark_fmu-v6x_bootloader.bin 0x08000000
```

Use `ark_fmu-v6x_bootloader.bin` from `boards/ark/fmu-v6x/extras/` in PX4-Autopilot, or from [PX4 GitHub releases](https://github.com/PX4/PX4-Autopilot/releases). Then flash `ark_fmu-v6x_default.px4` over USB. Setup: [ST-LINK Flashing Guide](/knowledge-base/knowledge-base/st-link-flashing-guide#flashing-px4-flight-controllers).


# Hardware Reference

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2FwqSqeEjKl9QlZ922bvEr%2Fark_v6x_front.D40XTXGs.jpg?alt=media&amp;token=c83b5ba6-57f9-495e-ab90-1a4d7fbed498" alt=""><figcaption><p>ARK Electronics ARKV6X</p></figcaption></figure>

## Specifications

| Specification         | Value                                                                                                                                                                                                                           |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| MCU                   | [STM32H743IIK6](https://www.st.com/en/microcontrollers-microprocessors/stm32h743ii.html), 480 MHz, 2 MB flash, 1 MB RAM                                                                                                         |
| IMUs                  | [Dual Invensense ICM-42688-P](https://invensense.tdk.com/products/motion-tracking/6-axis/icm-42688-p/) and [Invensense IIM-42652](https://invensense.tdk.com/products/smartindustrial/iim-42652/) industrial IMU, triple synced |
| IMUs, Extended Range  | [Triple Invensense IIM-42653](https://invensense.tdk.com/products/smartindustrial/iim-42653/) industrial IMUs: 4000 dps gyroscope and 32 g accelerometer, against 2000 dps and 16 g on the IIM-42652 and ICM-42688-P            |
| Barometer             | [Bosch BMP390](https://www.bosch-sensortec.com/en/products/environmental-sensors/pressure-sensors/bmp390)                                                                                                                       |
| Magnetometer          | [Bosch BMM150](https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmm150-ds001.pdf)                                                                                                                  |
| Memory                | FRAM                                                                                                                                                                                                                            |
| PWM outputs           | 8 FMU outputs. DShot on 1–6 only: 7–8 are on TIM12, which has no DMA. A carrier with PX4IO adds 8 PWM outputs                                                                                                                   |
| Form factor           | [Pixhawk Autopilot Bus (PAB)](https://github.com/pixhawk/Pixhawk-Standards/blob/master/DS-010%20Pixhawk%20Autopilot%20Bus%20Standard.pdf)                                                                                       |
| Heater                | 1 W. Keeps sensors warm in extreme conditions                                                                                                                                                                                   |
| Storage               | MicroSD slot                                                                                                                                                                                                                    |
| Indicators            | LEDs                                                                                                                                                                                                                            |
| Power                 | 5 V, 500 mA: 300 mA main system, 200 mA heater                                                                                                                                                                                  |
| Mounting              | PAB. In the bundles, the module is screwed into the ARK PAB Carrier with four M2×8 mm screws                                                                                                                                    |
| Operating temperature | −10 °C to +60 °C                                                                                                                                                                                                                |
| Storage temperature   | −10 °C to +60 °C                                                                                                                                                                                                                |
| Dimensions            | 3.6 × 2.9 × 0.5 cm                                                                                                                                                                                                              |
| Weight                | 5.0 g                                                                                                                                                                                                                           |
| Compliance            | USA built, NDAA compliant, [Blue Framework listed](https://tyrionprod.servicenowservices.com/gsp?id=framework_list)                                                                                                             |

## Pinout

{% hint style="info" %}
**Using the ARKV6X on an ARK PAB Carrier?** See the [ARK Pixhawk Autopilot Bus Carrier Pinout](/products/flight-controller/ark-pixhawk-autopilot-bus-carrier/hardware/pinout).
{% endhint %}

For pinout of the ARKV6X board-to-board connectors see the [DS-10 Pixhawk Autopilot Bus Standard](https://github.com/pixhawk/Pixhawk-Standards/blob/master/DS-010%20Pixhawk%20Autopilot%20Bus%20Standard.pdf).

All wiring connectors — GPS, TELEM, CAN, PWM, and the rest — are broken out by the carrier board, not the ARKV6X itself. For the ARK PAB Carrier, see:

{% content-ref url="/pages/8FoCumpSHonz9iz7bpP3" %}
[Pinout](/products/flight-controller/ark-pixhawk-autopilot-bus-carrier/hardware/pinout)
{% endcontent-ref %}

## Serial Port Mapping

| UART   | Device     | Port          |
| ------ | ---------- | ------------- |
| USART1 | /dev/ttyS0 | GPS           |
| USART2 | /dev/ttyS1 | TELEM3        |
| USART3 | /dev/ttyS2 | Debug Console |
| UART4  | /dev/ttyS3 | UART4 & I2C   |
| UART5  | /dev/ttyS4 | TELEM2        |
| USART6 | /dev/ttyS5 | PX4IO/RC      |
| UART7  | /dev/ttyS6 | TELEM1        |
| UART8  | /dev/ttyS7 | GPS2          |

## Datasheet

* [ARKV6X](https://github.com/ARK-Electronics/ark-hardware/blob/main/ARKV6X/datasheet/ARKV6X_Datasheet.pdf)

## 3D Model and Case

The ARKV6X Extended Range uses the same board model.

| File                                                                                                                 | Contents      |
| -------------------------------------------------------------------------------------------------------------------- | ------------- |
| [ARKV6X\_3D\_Model.step](https://github.com/ARK-Electronics/ark-hardware/raw/main/ARKV6X/model/ARKV6X_3D_Model.step) | Board         |
| [ARKV6X\_3D\_PDF.pdf](https://github.com/ARK-Electronics/ark-hardware/raw/main/ARKV6X/model/ARKV6X_3D_PDF.pdf)       | Board, 3D PDF |

All files: [ARKV6X in ark-hardware](https://github.com/ARK-Electronics/ark-hardware/tree/main/ARKV6X)


# PX4 Instructions

{% embed url="<https://docs.px4.io/main/en/flight_controller/arkv6x.html>" %}
Up to date PX4 Documentation
{% endembed %}

To build or flash PX4, or to recover the bootloader, see [Firmware](/products/flight-controller/arkv6x/firmware).

## PWM Outputs

FMU outputs 1–6 support DShot and bidirectional DShot. Outputs 7–8 are PWM and OneShot only.

Protocol and rate are set per timer: outputs 1–4, 5–6 and 7–8. PX4 lists the FMU outputs as AUX. On a carrier with PX4IO, the MAIN outputs come from PX4IO and are PWM only.


# ArduPilot Instructions

{% embed url="<https://ardupilot.org/copter/docs/common-ark-v6x-overview.html>" %}
ARKV6X ArduPilot Documentation
{% endembed %}

To build or flash ArduPilot, see [Firmware](/products/flight-controller/arkv6x/firmware#ardupilot).

## Serial Port Mapping

{% hint style="info" %}
Serial Port Mapping for Default Firmware with No IOMCU
{% endhint %}

| **UART** | **Serial Number** | **Port**      |
| -------- | ----------------- | ------------- |
| UART7    | SERIAL1           | TELEM1        |
| UART5    | SERIAL2           | TELEM2        |
| USART1   | SERIAL3           | GPS           |
| UART8    | SERIAL4           | GPS2          |
| USART2   | SERIAL5           | TELEM3        |
| UART4    | SERIAL6           | UART4 & I2C   |
| USART3   | SERIAL7           | Debug Console |
| USART6   | SERIAL8           | PX4IO/RC      |

## hwdef modifications for use with an IOMCU

The default build is for a carrier without an IOMCU, such as the ARK PAB Carrier, where USART6 is the RC input. For a carrier with an IOMCU on USART6, edit the [ARKV6X hwdef](https://github.com/ArduPilot/ardupilot/blob/Copter-4.7.1/libraries/AP_HAL_ChibiOS/hwdef/ARKV6X/hwdef.dat) and build it:

1. Swap the `SERIAL_ORDER` line comments ([L30-L33](https://github.com/ArduPilot/ardupilot/blob/Copter-4.7.1/libraries/AP_HAL_ChibiOS/hwdef/ARKV6X/hwdef.dat#L30-L33)) to remove USART6 from the serial ports.
2. Comment out `define DEFAULT_SERIAL8_PROTOCOL SerialProtocol_RCIN` ([L88](https://github.com/ArduPilot/ardupilot/blob/Copter-4.7.1/libraries/AP_HAL_ChibiOS/hwdef/ARKV6X/hwdef.dat#L88)), present from ArduPilot 4.7.0. With USART6 removed, SERIAL8 is the second USB port.
3. Uncomment `IOMCU_UART USART6` ([L91](https://github.com/ArduPilot/ardupilot/blob/Copter-4.7.1/libraries/AP_HAL_ChibiOS/hwdef/ARKV6X/hwdef.dat#L91)).

Keep the `PC6` and `PC7` USART6 pin lines; the IOMCU uses them.

Build and flash the firmware using the steps in [Firmware](/products/flight-controller/arkv6x/firmware#ardupilot).


# ARKV6X-RT

A variant of the ARKV6X flight controller module, built to the Pixhawk FMUv6X-RT and Autopilot Bus standards. It plugs into any PAB carrier, such as the [ARK Pixhawk Autopilot Bus Carrier](/products/flight-controller/ark-pixhawk-autopilot-bus-carrier).

<a href="https://arkelectron.com/product/arkv6xrt/" class="button primary" data-icon="cart-shopping">Buy</a>

* **Processor:** NXP i.MX RT1176, 1 GHz Cortex-M7
* **Sensors:** triple synced IMUs, Bosch BMP390 barometer, ST IIS2MDC magnetometer
* **Security:** NXP EdgeLock SE051 secure element
* **Autopilots:** PX4 (preinstalled)
* **Compliance:** USA built, NDAA

## Documentation

* [Firmware](/products/flight-controller/arkv6x-rt/firmware)
* [Hardware Reference](/products/flight-controller/arkv6x-rt/hardware)
* [PX4 Instructions](/products/flight-controller/arkv6x-rt/px4-instructions)


# Firmware

The board ships with PX4. Source and the build target live in [boards/ark/fmu-v6xrt](https://github.com/PX4/PX4-Autopilot/tree/main/boards/ark/fmu-v6xrt).

| Firmware       | Build target               |
| -------------- | -------------------------- |
| PX4            | `ark_fmu-v6xrt_default`    |
| PX4 bootloader | `ark_fmu-v6xrt_bootloader` |

Rev 2.0 needs a build that recognizes FMUM revision 1. See [Hardware Type](/products/flight-controller/arkv6x-rt/px4-instructions#hardware-type).

## Flashing Firmware

### QGroundControl (USB)

[QGroundControl](https://qgroundcontrol.com/) can't download stock firmware for this board yet. The `ark_fmu-v6xrt` build target is on PX4 `main` but isn't in a PX4 release, and QGroundControl has no firmware entry for the board ID (62). Flash a file you built instead:

1. [Build the firmware](#building-firmware).
2. In QGroundControl, open the **Firmware** setup page, then connect the carrier USB-C port.
3. Check **Advanced settings**, choose **Custom firmware file...**, and select `ark_fmu-v6xrt_default.px4`.

### px4\_uploader.py (USB or TELEM2)

[`px4_uploader.py`](https://github.com/PX4/PX4-Autopilot/blob/main/Tools/px4_uploader.py) flashes a `.px4` over USB, or over the carrier TELEM2 UART.

Over USB:

```sh
python3 Tools/px4_uploader.py build/ark_fmu-v6xrt_default/ark_fmu-v6xrt_default.px4
```

Over UART, use the carrier **TELEM2** port. The bootloader enables LPUART8 and leaves the other UARTs off. TELEM1, the port the ARKV6X bootloader uses, stays silent on this board. The bootloader runs TELEM2 at 1,500,000 baud. TX, RX, and GND are enough: the module pulls its CTS input low, so the port doesn't block with CTS unconnected. If you do connect CTS, the adapter must hold RTS asserted, or the bootloader can stop transmitting. The uploader defaults to 115200, so pass `--baud-bootloader 1500000`:

```sh
python3 Tools/px4_uploader.py --port /dev/<telem2-uart> --baud-bootloader 1500000 \
  build/ark_fmu-v6xrt_default/ark_fmu-v6xrt_default.px4
```

That command works only while the bootloader is listening, for example on a board with no valid firmware. When PX4 is installed and no USB cable is connected, the bootloader starts PX4 right away. The uploader then has to reboot the board into the bootloader with a MAVLink command on TELEM2. TELEM2 has no MAVLink instance by default, so first set `MAV_1_CONFIG` to `TELEM 2` and reboot. Then also pass the TELEM2 baud (`SER_TEL2_BAUD`, 921600 by default) as `--baud-flightstack`:

```sh
python3 Tools/px4_uploader.py --port /dev/<telem2-uart> --baud-bootloader 1500000 --baud-flightstack 921600 \
  build/ark_fmu-v6xrt_default/ark_fmu-v6xrt_default.px4
```

## Building Firmware

```sh
make ark_fmu-v6xrt_default
```

Upload over USB once a bootloader is present:

```sh
make ark_fmu-v6xrt_default upload
```

The bootloader image is a separate target:

```sh
make ark_fmu-v6xrt_bootloader
```

## Recovering Firmware over SWD

USB upload works after a bootloader is on the NOR. A blank or wiped NOR has nothing for the uploader to talk to, so recovery is over SWD. Use pyOCD and NXP's RT1176 device pack. FlexSPI has to be put back into a mode the algorithm can use.

Full notes are in the [board README](https://github.com/PX4/PX4-Autopilot/blob/main/boards/ark/fmu-v6xrt/README.md). The procedure below is that recovery path.

### What you need

* An NXP MCU-Link (`1fc9:0143`), wired to the carrier FMU Debug connector. That connector is a 10-pin JST-SH (Pixhawk Debug Full), not JST-GH.
* pyOCD from pip, so `cmsis-pack-manager` is included:

```bash
pip install pyocd
pyocd pack install mimxrt1176
```

* Permission to open the probe:

```
# /etc/udev/rules.d/60-mcu-link.rules
ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="0143", MODE="0666", GROUP="plugdev"
```

### Flash layout

| Region      | Address      | Size                                |
| ----------- | ------------ | ----------------------------------- |
| Bootloader  | `0x30000000` | 128 KB                              |
| Application | `0x30020000` | 4 MB - 128 KB, inside the 64 MB NOR |

Both images carry their own boot header. Flash the raw `.bin`. The `.px4` is the container the USB uploader uses.

### 1. Precondition FlexSPI

Do this every session, before any flash. PX4 leaves the NOR in octal DDR. The pack's flash algorithm hangs against that configuration. This command also halts the core.

```bash
pyocd cmd -t mimxrt1170_cm7 -f 4000k -O resume_on_disconnect=false \
  -c "read32 0x400CC000" -c "write32 0x400CC000 0xffffa700"
```

`0x400CC000` is FlexSPI1 `MCR0`.

### 2. Flash

Use the pack target `mimxrt1176dvmaa` here. The chip is marked MIMXRT1176DVMAB, but the DVMAA target is the right one, and PX4 builds for DVMAA as well. The built-in `mimxrt1170_cm7` target is only for the preconditioning step and the reset.

You don't have to build the bootloader. A prebuilt image is in the PX4 tree at [`boards/ark/fmu-v6xrt/extras/ark_fmu-v6xrt_bootloader.bin`](https://github.com/PX4/PX4-Autopilot/blob/main/boards/ark/fmu-v6xrt/extras/ark_fmu-v6xrt_bootloader.bin). Use that path in place of `build/ark_fmu-v6xrt_bootloader/ark_fmu-v6xrt_bootloader.bin` below.

```bash
pyocd flash -t mimxrt1176dvmaa -f 4000k -O resume_on_disconnect=false \
  --format bin --base-address 0x30000000 \
  build/ark_fmu-v6xrt_bootloader/ark_fmu-v6xrt_bootloader.bin

pyocd flash -t mimxrt1176dvmaa -f 4000k -O resume_on_disconnect=false \
  --format bin --base-address 0x30020000 \
  build/ark_fmu-v6xrt_default/ark_fmu-v6xrt_default.bin
```

`programmed 0 bytes … identical` means the NOR already matches the image. Pass `-O smart_flash=false` to force an erase and program.

### 3. Reset

```bash
pyocd reset -t mimxrt1170_cm7 -f 4000k -O reset_type=hw
```

`reset_type=hw` is required. A core reset leaves boot-mode bits set, and the board sits halted. NRST reloads them from the boot pins.

### Boot button

The boot mode is read only at power-on or reset. Holding the onboard button through power-on or reset selects the ROM serial downloader (`BOOT_MODE[1:0] = 01`). Otherwise the board boots from fuses (`BOOT_MODE[1:0] = 00`). Pressing the button on a running board does nothing. The SWD steps above are for a board whose fuses are already programmed.


# Hardware Reference

{% hint style="info" %}
The ARKV6X-RT is a flight-controller module. It needs a Pixhawk Autopilot Bus carrier, such as the [ARK Pixhawk Autopilot Bus Carrier](/products/flight-controller/ark-pixhawk-autopilot-bus-carrier). Wiring connectors (GPS, TELEM, CAN, PWM, Ethernet, power) are on the carrier. See the [ARK Pixhawk Autopilot Bus Carrier Pinout](/products/flight-controller/ark-pixhawk-autopilot-bus-carrier/hardware/pinout).

That pinout labels signals with ARKV6X names, such as `UART5` on TELEM2 and `I2C3` on the I2C3 connector. The ARKV6X-RT names are different. Use the [Serial Port Mapping](#serial-port-mapping) and [I2C Bus Mapping](#i2c-bus-mapping) tables on this page.
{% endhint %}

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2Fgit-blob-2e519503d4c0a87d0500628d4458cd8ab92141a9%2Fark_v6xrt_top.jpg?alt=media" alt="ARKV6X-RT Rev 1.0, PAB connector side"><figcaption><p>ARKV6X-RT Rev 1.0, PAB connector side</p></figcaption></figure>

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2Fgit-blob-52891c5f10bc85d6c03ad1cc815c1409675273d1%2Fark_v6xrt_bottom.jpg?alt=media" alt="ARKV6X-RT Rev 1.0, MicroSD side"><figcaption><p>ARKV6X-RT Rev 1.0, MicroSD side</p></figcaption></figure>

## Specifications

{% hint style="warning" %}
Rev 2.0 has different IMUs than Rev 1.0. Rev 1.0 uses an ICM-45686, an IIM-20670, and an LSM6DSV80X. Rev 2.0 uses three LSM6DSV32X IMUs.
{% endhint %}

Values are for Rev 1.0, the revision in production. Rev 2.0 differences are under [Revisions](#revisions).

| Specification  | Value                                                                                                                                                                                                                                                                                                                             |
| -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| MCU            | [NXP i.MX RT1176](https://www.nxp.com/products/i.MX-RT1170), MIMXRT1176DVMAB. 1 GHz Arm Cortex-M7: PX4 clocks this core at 996 MHz. 400 MHz Arm Cortex-M4: PX4 clocks this core at 392.73 MHz and leaves it idle. 2 MB RAM                                                                                                        |
| Code store     | 64 MB Macronix MX25UM51345G octal NOR on FlexSPI1. The RT1176 fetches instructions from that flash (execute-in-place). PX4 uses the first 4 MB                                                                                                                                                                                    |
| Secure element | [NXP EdgeLock SE051](https://www.nxp.com/products/SE051), I2C address 0x48                                                                                                                                                                                                                                                        |
| IMU, SPI1      | [Invensense ICM-45686](https://www.invensense.tdk.com/en-us/products/6-axis/icm-45686), ±32 g / ±4000 dps. Primary IMU, and the heater sense point                                                                                                                                                                                |
| IMU, SPI2      | [Invensense IIM-20670](https://www.invensense.tdk.com/en-us/products/motion-tracking/6-axis/iim-20670), ±65.5 g / ±1966 dps                                                                                                                                                                                                       |
| IMU, SPI3      | [ST LSM6DSV80X](https://www.st.com/en/mems-and-sensors/lsm6dsv80x.html). PX4 publishes the ±16 g / ±4000 dps channel. The part's ±80 g element is left off. High-g coverage on this revision is the IIM-20670                                                                                                                     |
| Barometer      | [Bosch BMP390](https://www.bosch-sensortec.com/products/environmental-sensors/pressure-sensors/pressure-sensors-bmp390.html) on I2C2, address 0x76                                                                                                                                                                                |
| Magnetometer   | [ST IIS2MDC](https://www.st.com/en/mems-and-sensors/iis2mdc.html) on I2C3, address 0x1E                                                                                                                                                                                                                                           |
| FRAM           | Infineon FM25V02A, 256 Kbit (32 KB), on FlexSPI2. PX4 stores parameters here                                                                                                                                                                                                                                                      |
| Form factor    | [Pixhawk Autopilot Bus (PAB)](https://github.com/pixhawk/Pixhawk-Standards/blob/master/DS-010%20Pixhawk%20Autopilot%20Bus%20Standard.pdf): 100-pin Hirose DF40C-100DP-0.4V(51) and 50-pin Hirose DF40C-50DP-0.4V(51). Fits any [PAB-compatible carrier](https://docs.px4.io/main/en/flight_controller/pixhawk_autopilot_bus.html) |
| Heater         | 1 W on 5 V, about 200 mA, for warming the sensors in extreme cold                                                                                                                                                                                                                                                                 |
| Indicators     | Red, green, and blue LEDs                                                                                                                                                                                                                                                                                                         |
| Storage        | MicroSD slot. A MicroSD card is included                                                                                                                                                                                                                                                                                          |
| Boot button    | Onboard. The boot mode is read only at power-on or reset. Hold the button while powering on to select the ROM serial downloader. Otherwise the board boots from the programmed fuses                                                                                                                                              |
| Power          | 5 V from the carrier, 500 mA: 300 mA for the main system, 200 mA for the heater                                                                                                                                                                                                                                                   |
| Dimensions     | 3.6 × 2.9 × 0.5 cm                                                                                                                                                                                                                                                                                                                |
| Weight         | 5.0 g                                                                                                                                                                                                                                                                                                                             |

## Pinout

The board-to-board pinout is the [DS-010 Pixhawk Autopilot Bus Standard](https://github.com/pixhawk/Pixhawk-Standards/blob/master/DS-010%20Pixhawk%20Autopilot%20Bus%20Standard.pdf).

GPS, TELEM, CAN, PWM, Ethernet, and power connectors are on the carrier.

{% content-ref url="/pages/8FoCumpSHonz9iz7bpP3" %}
[Pinout](/products/flight-controller/ark-pixhawk-autopilot-bus-carrier/hardware/pinout)
{% endcontent-ref %}

## Interfaces

These signals are on the PAB connectors. A carrier decides which of them reach a jack.

* 12 FMU PWM outputs. A carrier with PX4IO adds 8 more.
* Eight serial ports: GPS1, GPS2, TELEM1, TELEM2, TELEM3, TELEM4, PX4IO/RC, and the debug console
* Four I2C buses: I2C1, I2C2, I2C3, and I2C6. I2C3 is internal and holds the onboard IIS2MDC. On Rev 1.0 the BMP390 is on I2C2, which also runs to the carrier GPS2 and POWER2 connectors. On Rev 2.0 the BMP390 is on I2C3. See [I2C Bus Mapping](#i2c-bus-mapping).
* SPI1, SPI2, and SPI3 serve the onboard IMUs. SPI6 is the external bus, with two chip selects, two data-ready lines, and a reset.
* CAN1, CAN2, and CAN3. The default PX4 build enables two CAN interfaces.
* 100BASE-T Ethernet on ENET2. The module drives RMII, PHY power, and the PHY interrupt. The PHY, magnetics, and jack are on the carrier.
* USB
* MicroSD
* SWD and the system console, on the carrier FMU Debug connector

## Serial Port Mapping

PX4 on the ARKV6X-RT. Flow control is CTS/RTS on the TELEM ports that have it. The last column is the connector and signal name on the [ARK PAB Carrier pinout](/products/flight-controller/ark-pixhawk-autopilot-bus-carrier/hardware/pinout), which uses ARKV6X UART names.

| UART     | Device     | Port          | Flow control | ARK PAB Carrier connector (pinout label) |
| -------- | ---------- | ------------- | :----------: | ---------------------------------------- |
| LPUART1  | /dev/ttyS0 | Debug Console |      No      | Debug Port (Console TX/RX)               |
| LPUART3  | /dev/ttyS1 | GPS1          |      No      | GPS1 (`USART1`)                          |
| LPUART4  | /dev/ttyS2 | TELEM1        |      Yes     | TELEM1 (`UART7`)                         |
| LPUART5  | /dev/ttyS3 | GPS2          |      No      | GPS2 (`UART8`)                           |
| LPUART6  | /dev/ttyS4 | PX4IO / RC    |      No      | RC/SBUS (`USART6`)                       |
| LPUART8  | /dev/ttyS5 | TELEM2        |      Yes     | TELEM2 (`UART5`)                         |
| LPUART10 | /dev/ttyS6 | TELEM3        |      Yes     | TELEM3 (`USART2`)                        |
| LPUART11 | /dev/ttyS7 | TELEM4        |      No      | UART4/I2C3 (`UART4`)                     |

{% hint style="info" %}
The bootloader brings up LPUART8 only, at 1,500,000 baud. UART flashing uses the carrier TELEM2 connector. See [Firmware](/products/flight-controller/arkv6x-rt/firmware).
{% endhint %}

## I2C Bus Mapping

PX4 bus numbers, as used by driver `-b` options and parameters such as `PCA9685_EN_BUS`.

| PX4 bus | ARK PAB Carrier connectors | Onboard devices                          |
| ------- | -------------------------- | ---------------------------------------- |
| 1       | GPS1, POWER1               | None                                     |
| 2       | GPS2, POWER2               | Rev 1.0: BMP390 at 0x76                  |
| 3       | None (internal)            | IIS2MDC at 0x1E. Rev 2.0: BMP390 at 0x76 |
| 6       | I2C3, UART4/I2C3           | None                                     |

The carrier's `I2C3` connectors are bus 6 on the ARKV6X-RT, not bus 3. Bus 3 is internal. A PCA9685 on the carrier I2C3 connector needs `PCA9685_EN_BUS` set to 6.

On Rev 1.0, don't put another device at address 0x76 on GPS2 or POWER2, such as a barometer in a GPS module. It would collide with the onboard BMP390.

## Revisions

Rev 1.0 is the revision in production. Rev 1.0 and Rev 2.0 share the processor, memory, magnetometer, heater, and PAB connectors. The sensor set and the barometer bus change.

|                        | Rev 1.0 (shipping)                                                                                                                           | Rev 2.0                                                              |
| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
| IMU, SPI1              | [ICM-45686](https://www.invensense.tdk.com/en-us/products/6-axis/icm-45686)                                                                  | [LSM6DSV32X](https://www.st.com/en/mems-and-sensors/lsm6dsv32x.html) |
| IMU, SPI2              | [IIM-20670](https://www.invensense.tdk.com/en-us/products/motion-tracking/6-axis/iim-20670)                                                  | LSM6DSV32X                                                           |
| IMU, SPI3              | [LSM6DSV80X](https://www.st.com/en/mems-and-sensors/lsm6dsv80x.html)                                                                         | LSM6DSV32X                                                           |
| Barometer              | [BMP390](https://www.bosch-sensortec.com/products/environmental-sensors/pressure-sensors/pressure-sensors-bmp390.html) on I2C2, address 0x76 | BMP390 on I2C3, address 0x76                                         |
| Magnetometer           | [IIS2MDC](https://www.st.com/en/mems-and-sensors/iis2mdc.html) on I2C3, address 0x1E                                                         | IIS2MDC on I2C3, address 0x1E                                        |
| FMUM hardware revision | 0 (`ARKV6XRT000`)                                                                                                                            | 1                                                                    |

Each IMU has its own SPI bus, power rail, and data-ready line. On Rev 2.0 the BMP390 shares I2C3 with the IIS2MDC. The two parts use different addresses.

Rev 2.0 replaces U9, U10, and U15 with three [ST LSM6DSV32X](https://www.st.com/en/mems-and-sensors/lsm6dsv32x.html) IMUs (±32 g / ±4000 dps) on the same three SPI buses, and moves the BMP390 to I2C3.

PX4 starts the Rev 1.0 IMUs when the hardware type is `ARKV6XRT000`, and it probes the BMP390 on I2C2. Rev 2.0 needs a build that recognizes FMUM revision 1. See [PX4 Instructions](/products/flight-controller/arkv6x-rt/px4-instructions#hardware-type).


# PX4 Instructions

{% embed url="<https://docs.px4.io/main/en/flight_controller/ark_v6xrt>" %}
PX4 user guide for the ARKV6X-RT
{% endembed %}

To build, flash or recover the firmware, see [Firmware](/products/flight-controller/arkv6x-rt/firmware).

## Hardware Type

Rev 1.0 reports hardware type `ARKV6XRT000`. `init/rc.board_sensors` starts the internal IMUs only for that type:

```sh
icm45686 -R 6 -b 1 -s start
lsm6dsv -R 1 -b 3 -s -T 80 start
iim20670 -R 2 -b 2 -s start
```

The IIS2MDC starts on I2C3, and the BMP390 starts on I2C2 (`bmp388 -I -b 2 start`), for every hardware type.

Rev 2.0 has different IMUs: three LSM6DSV32X parts, on SPI1, SPI2, and SPI3, in place of the ICM-45686, IIM-20670, and LSM6DSV80X. It also sets the FMUM hardware revision to 1 and moves the BMP390 to I2C3. A firmware build that only matches `ARKV6XRT000` prints `unsupported FMU hwtype, internal IMUs not started` on that board, and it still looks for the barometer on I2C2. The `lsm6dsv` driver recognizes the LSM6DSV32X, and the board's SPI table declares an LSM6DSV on SPI3, so the SPI3 part can be started by hand. SPI1 and SPI2 are declared as the ICM-45686 and IIM-20670, so those two LSM6DSV32X parts can't start until the board configuration changes.

## IMUs

These rates are for Rev 1.0. Rev 2.0 fits three LSM6DSV32X IMUs instead, and the startup script above does not start them.

On Rev 1.0, each IMU runs at the widest full scale of the channel it publishes, with light on-chip filtering. PX4 filters downstream. The LSM6DSV80X accelerometer keeps its LPF2 at ODR/10 (768 Hz) as an anti-alias filter, and the IIM-20670 gyro low-pass can't be set wider than 60 Hz (see below).

| IMU        | Bus  | Full scale          | Publish rate |
| ---------- | ---- | ------------------- | ------------ |
| ICM-45686  | SPI1 | ±32 g / ±4000 dps   | 800 Hz       |
| LSM6DSV80X | SPI3 | ±16 g / ±4000 dps   | 768 Hz       |
| IIM-20670  | SPI2 | ±65.5 g / ±1966 dps | 1000 Hz      |

The ICM-45686 and LSM6DSV80X rates follow `IMU_GYRO_RATEMAX`. The table shows multicopter rates, because multicopter airframes raise `IMU_GYRO_RATEMAX` from 400 to 800. Fixed-wing, VTOL, and rover airframes keep 400, so those two IMUs publish at about 400 Hz. The IIM-20670 publishes at 1000 Hz on every airframe.

Startup order is ICM-45686, then LSM6DSV80X, then IIM-20670. At equal calibration priority the voter keeps the lowest instance, and `CAL_ACC0_PRIO` / `CAL_GYRO0_PRIO` are seeded on the ICM-45686, so that part is the primary.

The IIM-20670 starts last on purpose. Its gyro low-pass cannot be set wider than 60 Hz, which is too much group delay for the rate loop, so it is the navigation and fallback IMU. Its gyro trace looks smoother and later than the other two.

The LSM6DSV80X publishes its ±16 g accelerometer. The ±80 g element stays powered down.

## Heater

On Rev 1.0 (`ARKV6XRT000`), the heater is closed-loop on the ICM-45686 die temperature: the board defaults set `HEATER1_SENS_ID` to that sensor (`3407882`). Other hardware types keep the driver default, 0. The pad warms the whole board. The parameter only selects which die is the feedback.

Run the accelerometer calibration after the heater reaches its setpoint. `heater status` prints the sensor temperature and the set temperature. Wait until they are within 2.5 °C, or until `listener heater_status` shows `temperature_target_met` as true.

## PWM Outputs

The module provides 12 FMU PWM outputs, and 8 more from PX4IO on a carrier that has one. How many of those reach a connector depends on the carrier.

FMU outputs 1–8 support DShot and bidirectional DShot. Outputs 9–12 are PWM only.

Each FMU output has its own FlexPWM submodule, so protocol and rate are set per output.

## RC Input

The RC port (LPUART6, the carrier **RC/SBUS** connector) runs CRSF by default: `RC_CRSF_PRT_CFG` is set to Radio Controller. SBUS is off. For an SBUS receiver, set `RC_CRSF_PRT_CFG` to Disabled and `RC_SBUS_PRT_CFG` to Radio Controller, then reboot.

## Power

The module is powered at 5 V from the carrier. Two digital power bricks are supported. `SENS_EN_INA226` is enabled by default. The INA228 and INA238 drivers are built in for carriers that use those parts. Set `ADC_ADS1115_EN` to use an ADS1115 instead of the onboard ADC for analog monitoring.

## GPS and Compass

* GPS1 (LPUART3) is the full GPS port on a PAB carrier: safety switch, buzzer, LED, and compass I2C.
* GPS2 (LPUART5) is the basic GPS port.

The onboard IIS2MDC is a backup. Yaw normally comes from an external compass in the GPS module.

## Debug Console

The PX4 system console is LPUART1, on the carrier FMU Debug connector, at 57600 baud. SWD is on the same connector. An NXP MCU-Link's virtual COM port is this console.


# ARKV6S

A single-IMU variant of the ARKV6X flight controller module, built to the Pixhawk FMUv6X and Autopilot Bus standards. It plugs into any PAB carrier, such as the [ARK Pixhawk Autopilot Bus Carrier](/products/flight-controller/ark-pixhawk-autopilot-bus-carrier).

<a href="https://arkelectron.com/product/arkv6s-flight-controller/" class="button primary" data-icon="cart-shopping">Buy</a> <a href="https://github.com/ARK-Electronics/ark-hardware/tree/main/ARKV6S/model" class="button secondary" data-icon="cube">3D model</a> <a href="https://github.com/ARK-Electronics/ark-hardware/blob/main/ARKV6S/datasheet/ARKV6S_Datasheet.pdf" class="button secondary" data-icon="file-pdf">Datasheet</a>

* **Processor:** STM32H743, 480 MHz
* **Sensors:** Invensense IIM-42653 industrial IMU, Bosch BMP390 barometer, ST IIS2MDC magnetometer
* **Autopilots:** PX4 (preinstalled), ArduPilot
* **Compliance:** USA built, NDAA

## Documentation

* [Firmware](/products/flight-controller/arkv6s/firmware)
* [Hardware Reference](/products/flight-controller/arkv6s/hardware)
* [PX4 Instructions](/products/flight-controller/arkv6s/px4-instructions)
* [ArduPilot Instructions](/products/flight-controller/arkv6s/ardupilot-instructions)


# Firmware

The ARKV6S ships with PX4 and can be flashed with ArduPilot 4.7.1 or later.

| Firmware  | Build target                                                                                                    |
| --------- | --------------------------------------------------------------------------------------------------------------- |
| PX4       | `ark_fmu-v6s_default` ([boards/ark/fmu-v6s](https://github.com/PX4/PX4-Autopilot/tree/main/boards/ark/fmu-v6s)) |
| ArduPilot | `ARKV6S` ([hwdef](https://github.com/ArduPilot/ardupilot/tree/master/libraries/AP_HAL_ChibiOS/hwdef/ARKV6S))    |

## PX4

### Flashing Firmware

Firmware can be flashed over USB C using [QGroundControl](https://qgroundcontrol.com/).

### Building Firmware

```
make ark_fmu-v6s_default
```

and optionally upload

```
make ark_fmu-v6s_default upload
```

## ArduPilot

### Flashing Firmware

Firmware can be flashed over USB C using [QGroundControl](https://qgroundcontrol.com/).

### Building Firmware

```
./waf configure --board ARKV6S
./waf copter
```

and optionally upload

```
./waf copter --upload
```

For a carrier board with an IOMCU, change the hwdef first: see [hwdef modifications for use with an IOMCU](/products/flight-controller/arkv6s/ardupilot-instructions#hwdef-modifications-for-use-with-an-iomcu).


# Hardware Reference

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2Fgit-blob-2c9d2443588e78882c194629e2c539cdff5e32a5%2Fark_v6s_back.jpg?alt=media" alt=""><figcaption><p>ARK Electronics ARKV6S</p></figcaption></figure>

## Specifications

| Specification         | Value                                                                                                                                     |
| --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| MCU                   | [STM32H743IIK6](https://www.st.com/en/microcontrollers-microprocessors/stm32h743ii.html), 480 MHz, 2 MB flash, 1 MB RAM                   |
| IMU                   | [Invensense IIM-42653](https://invensense.tdk.com/products/smartindustrial/iim-42653/) industrial IMU                                     |
| Barometer             | [Bosch BMP390](https://www.bosch-sensortec.com/products/environmental-sensors/pressure-sensors/bmp390/)                                   |
| Magnetometer          | [ST IIS2MDC](https://www.st.com/en/mems-and-sensors/iis2mdc.html)                                                                         |
| Memory                | FRAM                                                                                                                                      |
| PWM outputs           | 8 FMU outputs. DShot on 1–6 only: 7–8 are on TIM12, which has no DMA. A carrier with PX4IO adds 8 PWM outputs                             |
| Form factor           | [Pixhawk Autopilot Bus (PAB)](https://github.com/pixhawk/Pixhawk-Standards/blob/master/DS-010%20Pixhawk%20Autopilot%20Bus%20Standard.pdf) |
| Heater                | 1 W. Keeps sensors warm in extreme conditions                                                                                             |
| Storage               | MicroSD slot                                                                                                                              |
| Indicators            | LEDs                                                                                                                                      |
| Power                 | 5 V, 500 mA: 300 mA main system, 200 mA heater                                                                                            |
| Operating temperature | −10 °C to +60 °C                                                                                                                          |
| Storage temperature   | −10 °C to +60 °C                                                                                                                          |
| Dimensions            | 3.6 × 2.9 × 0.5 cm                                                                                                                        |
| Weight                | 5.0 g                                                                                                                                     |
| Compliance            | USA built, NDAA compliant                                                                                                                 |

## Pinout

For pinout of the ARKV6S see the [DS-10 Pixhawk Autopilot Bus Standard](https://github.com/pixhawk/Pixhawk-Standards/blob/master/DS-010%20Pixhawk%20Autopilot%20Bus%20Standard.pdf).

## Serial Port Mapping

| UART   | Device     | Port          |
| ------ | ---------- | ------------- |
| USART1 | /dev/ttyS0 | GPS           |
| USART2 | /dev/ttyS1 | TELEM3        |
| USART3 | /dev/ttyS2 | Debug Console |
| UART4  | /dev/ttyS3 | UART4 & I2C   |
| UART5  | /dev/ttyS4 | TELEM2        |
| USART6 | /dev/ttyS5 | PX4IO/RC      |
| UART7  | /dev/ttyS6 | TELEM1        |
| UART8  | /dev/ttyS7 | GPS2          |

## Datasheet

* [ARKV6S](https://github.com/ARK-Electronics/ark-hardware/blob/main/ARKV6S/datasheet/ARKV6S_Datasheet.pdf)

## 3D Model and Case

| File                                                                                             | Contents |
| ------------------------------------------------------------------------------------------------ | -------- |
| [ARKV6S.step](https://github.com/ARK-Electronics/ark-hardware/raw/main/ARKV6S/model/ARKV6S.step) | Board    |

All files: [ARKV6S in ark-hardware](https://github.com/ARK-Electronics/ark-hardware/tree/main/ARKV6S)


# PX4 Instructions

{% embed url="<https://docs.px4.io/main/en/flight_controller/ark_v6s.html>" %}
Up to date PX4 Documentation
{% endembed %}

To build or flash PX4, see [Firmware](/products/flight-controller/arkv6s/firmware#px4).

## PWM Outputs

FMU outputs 1–6 support DShot and bidirectional DShot. Outputs 7–8 are PWM and OneShot only.

Protocol and rate are set per timer: outputs 1–4, 5–6 and 7–8. PX4 lists the FMU outputs as AUX. On a carrier with PX4IO, the MAIN outputs come from PX4IO and are PWM only.


# ArduPilot Instructions

{% embed url="<https://ardupilot.org/copter/docs/common-ark-v6s-overview.html>" %}
ARKV6S ArduPilot Documentation
{% endembed %}

To build or flash ArduPilot, see [Firmware](/products/flight-controller/arkv6s/firmware#ardupilot).

## Serial Port Mapping

{% hint style="info" %}
Serial Port Mapping for Default Firmware with No IOMCU
{% endhint %}

| **UART** | **Serial Number** | **Port**      |
| -------- | ----------------- | ------------- |
| UART7    | SERIAL1           | TELEM1        |
| UART5    | SERIAL2           | TELEM2        |
| USART1   | SERIAL3           | GPS           |
| UART8    | SERIAL4           | GPS2          |
| USART2   | SERIAL5           | TELEM3        |
| UART4    | SERIAL6           | UART4 & I2C   |
| USART3   | SERIAL7           | Debug Console |
| USART6   | SERIAL8           | PX4IO/RC      |

## hwdef modifications for use with an IOMCU

The default build is for a carrier without an IOMCU, such as the ARK PAB Carrier, where USART6 is the RC input. For a carrier with an IOMCU on USART6, edit the [ARKV6S hwdef](https://github.com/ArduPilot/ardupilot/blob/Copter-4.7.1/libraries/AP_HAL_ChibiOS/hwdef/ARKV6S/hwdef.dat) and build it:

1. Comment out the first `SERIAL_ORDER` line ([L30](https://github.com/ArduPilot/ardupilot/blob/Copter-4.7.1/libraries/AP_HAL_ChibiOS/hwdef/ARKV6S/hwdef.dat#L30)).
2. Comment out `define DEFAULT_SERIAL8_PROTOCOL SerialProtocol_RCIN` ([L85](https://github.com/ArduPilot/ardupilot/blob/Copter-4.7.1/libraries/AP_HAL_ChibiOS/hwdef/ARKV6S/hwdef.dat#L85)). With USART6 removed, SERIAL8 is the second USB port.
3. Uncomment the `SERIAL_ORDER`, `IOMCU_UART` and `ROMFS io_firmware.bin` lines ([L94-L96](https://github.com/ArduPilot/ardupilot/blob/Copter-4.7.1/libraries/AP_HAL_ChibiOS/hwdef/ARKV6S/hwdef.dat#L94-L96)). The build fails without the IO firmware.

Keep the `PC6` and `PC7` USART6 pin lines, although the hwdef comment says to remove them; the IOMCU uses them.

Build and flash the firmware using the steps in [Firmware](/products/flight-controller/arkv6s/firmware#ardupilot).


# ARK Pixhawk Autopilot Bus Carrier

A flight controller carrier board built to the Pixhawk Autopilot Bus standard. It takes any PAB flight controller module, such as the [ARKV6X](/products/flight-controller/arkv6x).

<a href="https://arkelectron.com/product/ark-pixhawk-autopilot-bus-carrier/" class="button primary" data-icon="cart-shopping">Buy</a> <a href="https://github.com/ARK-Electronics/ark-hardware/tree/main/ARK_PAB_Carrier/model" class="button secondary" data-icon="cube">3D model</a> <a href="https://github.com/ARK-Electronics/ark-hardware/tree/main/ARK_PAB_Carrier/case" class="button secondary" data-icon="box">Case</a>

* **Power:** dual digital power module inputs
* **Interfaces:** Ethernet, USB-C, two GPS, two CAN, three TELEM, eight PWM, RC, SPI, ADIO, debug
* **Compliance:** USA built, NDAA

## Documentation

* [Hardware Reference](/products/flight-controller/ark-pixhawk-autopilot-bus-carrier/hardware)
* [PX4 Instructions](/products/flight-controller/ark-pixhawk-autopilot-bus-carrier/px4-instructions)


# Hardware Reference

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2FRWkrZ3HvU8sqTbX9Tpf3%2Fark_pab_main.CyaXkl1j.jpg?alt=media&amp;token=9bc3b4e8-81e3-457a-bf2f-a165f245f963" alt=""><figcaption><p>ARK Pixhawk Autopilot Bus Carrier</p></figcaption></figure>

![ARKPAB Top Down Photo](https://docs.px4.io/main/assets/ark_pab_top.C8on0kwA.jpg)

![ARKPAB Bottom Photo](https://docs.px4.io/main/assets/ark_pab_back.BMAKz_xS.jpg)

## Specifications

| Specification                | Value                                                                                                                                                                                                                                                             |
| ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Form factor                  | [Pixhawk Autopilot Bus (PAB)](https://github.com/pixhawk/Pixhawk-Standards/blob/master/DS-010%20Pixhawk%20Autopilot%20Bus%20Standard.pdf). Takes any [PAB-compatible flight controller](https://docs.px4.io/main/en/flight_controller/pixhawk_autopilot_bus.html) |
| PAB board-to-board interface | 100-pin Hirose DF40, 50-pin Hirose DF40 ([Pixhawk Autopilot Bus](https://github.com/pixhawk/Pixhawk-Standards/blob/master/DS-010%20Pixhawk%20Autopilot%20Bus%20Standard.pdf))                                                                                     |
| Power module inputs          | Dual digital power module inputs: 5 V input, I2C power monitor, 6-pin Molex CLIK-Mate                                                                                                                                                                             |
| Ethernet                     | 100 Mbps, built-in magnetics, 4-pin JST-GH                                                                                                                                                                                                                        |
| GPS                          | Full GPS plus safety switch port, 10-pin JST-GH. Basic GPS port, 6-pin JST-GH                                                                                                                                                                                     |
| CAN                          | Dual CAN ports, 4-pin JST-GH                                                                                                                                                                                                                                      |
| Telemetry                    | Triple telemetry ports with flow control, 6-pin JST-GH                                                                                                                                                                                                            |
| PWM                          | Eight PWM outputs, 10-pin JST-GH                                                                                                                                                                                                                                  |
| UART/I2C                     | 6-pin JST-GH                                                                                                                                                                                                                                                      |
| I2C                          | 4-pin JST-GH                                                                                                                                                                                                                                                      |
| RC                           | PPM RC port, 3-pin JST-GH. DSM RC port, 3-pin JST-ZH. RC/SBUS port, 5-pin                                                                                                                                                                                         |
| USB                          | USB-C, and a 4-pin JST-GH in parallel                                                                                                                                                                                                                             |
| SPI                          | 11-pin JST-GH                                                                                                                                                                                                                                                     |
| ADIO                         | 8-pin JST-GH                                                                                                                                                                                                                                                      |
| Debug                        | 10-pin JST-SH                                                                                                                                                                                                                                                     |
| Power                        | 5 V                                                                                                                                                                                                                                                               |
| Operating temperature        | −25 °C to +85 °C, without flight controller module                                                                                                                                                                                                                |
| Storage temperature          | −25 °C to +85 °C, without flight controller module                                                                                                                                                                                                                |
| Dimensions                   | 74.0 × 43.5 × 12.0 mm, without flight controller module                                                                                                                                                                                                           |
| Weight                       | 22 g, without flight controller module                                                                                                                                                                                                                            |

## Pinout

See the [Pinout](/products/flight-controller/ark-pixhawk-autopilot-bus-carrier/hardware/pinout) page for the connector pinouts.

{% content-ref url="/pages/8FoCumpSHonz9iz7bpP3" %}
[Pinout](/products/flight-controller/ark-pixhawk-autopilot-bus-carrier/hardware/pinout)
{% endcontent-ref %}

## LEDs

There are two LEDs on the ARK PAB:

| LED   | Meaning           |
| ----- | ----------------- |
| Red   | Ethernet power    |
| Green | Ethernet activity |

## Power

| Input or rail              | Rating                                                                                                 |
| -------------------------- | ------------------------------------------------------------------------------------------------------ |
| `POWER1`, `POWER2`         | 5 V, 6 A each (two power pins, 3 A each)                                                               |
| `USB C`, `USB JST-GH`      | 5 V, in parallel                                                                                       |
| Input protection           | Undervoltage 3.81 V, overvoltage 5.85 V                                                                |
| Input range with an ARKV6X | 4.8 V minimum, 5.5 V absolute maximum. The selected input powers the flight controller module directly |
| `VDD_5V_HIPOWER`           | 1.5 A current limit, shared by GPS2, TELEM1, TELEM3 and CAN1                                           |
| `VDD_5V_PERIPH`            | 1.5 A current limit, shared by GPS1, TELEM2, UART4/I2C3, I2C3, CAN2, ADIO and SPI6                     |

Inputs are prioritized POWER1 > POWER2 > USB. Only the selected input powers the board, so the flight controller module and both 5 V rails draw from it; see [Carrier Power Inputs](/knowledge-base/knowledge-base/carrier-power-inputs).

## 3D Model and Case

| File                                                                                                                                              | Contents                                         |
| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
| [ARK\_PAB\_Carrier\_3D\_Model.step](https://github.com/ARK-Electronics/ark-hardware/raw/main/ARK_PAB_Carrier/model/ARK_PAB_Carrier_3D_Model.step) | Board                                            |
| [ARK\_PAB\_Carrier\_3D\_PDF.pdf](https://github.com/ARK-Electronics/ark-hardware/raw/main/ARK_PAB_Carrier/model/ARK_PAB_Carrier_3D_PDF.pdf)       | Board, 3D PDF                                    |
| [Top\_Case.stl](https://github.com/ARK-Electronics/ark-hardware/raw/main/ARK_PAB_Carrier/case/Top_Case.stl)                                       | Case top                                         |
| [Bottom\_Case.stl](https://github.com/ARK-Electronics/ark-hardware/raw/main/ARK_PAB_Carrier/case/Bottom_Case.stl)                                 | Case bottom                                      |
| [Som\_Case.stl](https://github.com/ARK-Electronics/ark-hardware/raw/main/ARK_PAB_Carrier/case/Som_Case.stl)                                       | Case part for the flight controller module (SOM) |

All files: [ARK\_PAB\_Carrier in ark-hardware](https://github.com/ARK-Electronics/ark-hardware/tree/main/ARK_PAB_Carrier)


# Pinout

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2ForNJ8Yz3AJvmcNU7fDwH%2FARK%20PAB%20Carrier%20Board%20Pinout%20Reference%20Poster%20NO%20LOGO.png?alt=media&amp;token=43cbf3b0-8742-42f3-8482-2104a0519191" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2Fgit-blob-390787d05b3763c7b162b8a8f2fdfd98e9c8afff%2Farkpab_pinout.BbDXBv95.jpg?alt=media" alt=""><figcaption><p>ARK PAB Carrier connector locations</p></figcaption></figure>

### POWER1 — 6-pin 2.00mm Molex [CLIK-Mate 502443](https://www.molex.com/en-us/part-list/502443)

Mating plug [5024390600](https://www.digikey.com/en/products/detail/molex/5024390600/2380425)

Pre-crimped wires [0797581014](https://www.digikey.com/en/products/detail/molex/0797581014/6346648)

| Pin     | Signal    | Voltage |
| ------- | --------- | ------- |
| 1 (red) | `VBRICK1` | +5.0V   |
| 2 (blk) | `VBRICK1` | +5.0V   |
| 3 (blk) | I2C1\_SCL | +3.3V   |
| 4 (blk) | I2C1\_SDA | +3.3V   |
| 5 (blk) | `GND`     | GND     |
| 6 (blk) | `GND`     | GND     |

### POWER2 — 6-pin 2.00mm Molex [CLIK-Mate 502443](https://www.molex.com/en-us/part-list/502443)

Mating plug [5024390600](https://www.digikey.com/en/products/detail/molex/5024390600/2380425)

Pre-crimped wires [0797581014](https://www.digikey.com/en/products/detail/molex/0797581014/6346648)

| Pin     | Signal    | Voltage |
| ------- | --------- | ------- |
| 1 (red) | `VBRICK2` | +5.0V   |
| 2 (blk) | `VBRICK2` | +5.0V   |
| 3 (blk) | I2C2\_SCL | +3.3V   |
| 4 (blk) | I2C2\_SDA | +3.3V   |
| 5 (blk) | `GND`     | GND     |
| 6 (blk) | `GND`     | GND     |

### PWM — 10-pin JST-GH

| Pin      | Signal                     | Voltage |
| -------- | -------------------------- | ------- |
| 1 (red)  | VDD\_SERVO (Not Connected) | +5.0V   |
| 2 (blk)  | FMU\_CH1                   | +3.3V   |
| 3 (blk)  | FMU\_CH2                   | +3.3V   |
| 4 (blk)  | FMU\_CH3                   | +3.3V   |
| 5 (blk)  | FMU\_CH4                   | +3.3V   |
| 6 (blk)  | FMU\_CH5                   | +3.3V   |
| 7 (blk)  | FMU\_CH6                   | +3.3V   |
| 8 (blk)  | FMU\_CH7                   | +3.3V   |
| 9 (blk)  | FMU\_CH8                   | +3.3V   |
| 10 (blk) | `GND`                      | GND     |

### GPS1 — 10-pin JST-GH

| Pin      | Signal                    | Voltage |
| -------- | ------------------------- | ------- |
| 1 (red)  | `VDD_5V_PERIPH`           | +5.0V   |
| 2 (blk)  | USART1\_TX\_GPS1          | +3.3V   |
| 3 (blk)  | USART1\_RX\_GPS1          | +3.3V   |
| 4 (blk)  | I2C1\_SCL                 | +3.3V   |
| 5 (blk)  | I2C1\_SDA                 | +3.3V   |
| 6 (blk)  | nSAFETY\_SWITCH\_IN       | +3.3V   |
| 7 (blk)  | nSAFETY\_SWITCH\_LED\_OUT | +3.3V   |
| 8 (blk)  | `3V3_FMU`                 | +3.3V   |
| 9 (blk)  | BUZZER                    | +5.0V   |
| 10 (blk) | `GND`                     | GND     |

### GPS2 — 6-pin JST-GH

| Pin     | Signal           | Voltage |
| ------- | ---------------- | ------- |
| 1 (red) | `VDD_5V_HIPOWER` | +5.0V   |
| 2 (blk) | UART8\_TX\_GPS2  | +3.3V   |
| 3 (blk) | UART8\_RX\_GPS2  | +3.3V   |
| 4 (blk) | I2C2\_SCL        | +3.3V   |
| 5 (blk) | I2C2\_SDA        | +3.3V   |
| 6 (blk) | `GND`            | GND     |

### TELEM1 — 6-pin JST-GH

| Pin     | Signal           | Voltage |
| ------- | ---------------- | ------- |
| 1 (red) | `VDD_5V_HIPOWER` | +5.0V   |
| 2 (blk) | UART7\_TX        | +3.3V   |
| 3 (blk) | UART7\_RX        | +3.3V   |
| 4 (blk) | UART7\_CTS       | +3.3V   |
| 5 (blk) | UART7\_RTS       | +3.3V   |
| 6 (blk) | `GND`            | GND     |

### TELEM2 — 6-pin JST-GH

| Pin     | Signal          | Voltage |
| ------- | --------------- | ------- |
| 1 (red) | `VDD_5V_PERIPH` | +5.0V   |
| 2 (blk) | UART5\_TX       | +3.3V   |
| 3 (blk) | UART5\_RX       | +3.3V   |
| 4 (blk) | UART5\_CTS      | +3.3V   |
| 5 (blk) | UART5\_RTS      | +3.3V   |
| 6 (blk) | `GND`           | GND     |

### TELEM3 — 6-pin JST-GH

| Pin     | Signal           | Voltage |
| ------- | ---------------- | ------- |
| 1 (red) | `VDD_5V_HIPOWER` | +5.0V   |
| 2 (blk) | USART2\_TX       | +3.3V   |
| 3 (blk) | USART2\_RX       | +3.3V   |
| 4 (blk) | USART2\_CTS      | +3.3V   |
| 5 (blk) | USART2\_RTS      | +3.3V   |
| 6 (blk) | `GND`            | GND     |

### UART4/I2C3 — 6-pin JST-GH

| Pin     | Signal          | Voltage |
| ------- | --------------- | ------- |
| 1 (red) | `VDD_5V_PERIPH` | +5.0V   |
| 2 (blk) | UART4\_TX       | +3.3V   |
| 3 (blk) | UART4\_RX       | +3.3V   |
| 4 (blk) | I2C3\_SCL       | +3.3V   |
| 5 (blk) | I2C3\_SDA       | +3.3V   |
| 6 (blk) | `GND`           | GND     |

### I2C3 — 4-pin JST-GH

| Pin     | Signal          | Voltage |
| ------- | --------------- | ------- |
| 1 (red) | `VDD_5V_PERIPH` | +5.0V   |
| 2 (blk) | I2C3\_SCL       | +3.3V   |
| 3 (blk) | I2C3\_SDA       | +3.3V   |
| 4 (blk) | `GND`           | GND     |

### CAN1 — 4-pin JST-GH

| Pin     | Signal           | Voltage |
| ------- | ---------------- | ------- |
| 1 (red) | `VDD_5V_HIPOWER` | +5.0V   |
| 2 (blk) | CAN1\_H          | +3.3V   |
| 3 (blk) | CAN1\_L          | +3.3V   |
| 4 (blk) | `GND`            | GND     |

### CAN2 — 4-pin JST-GH

| Pin     | Signal          | Voltage |
| ------- | --------------- | ------- |
| 1 (red) | `VDD_5V_PERIPH` | +5.0V   |
| 2 (blk) | CAN2\_H         | +3.3V   |
| 3 (blk) | CAN2\_L         | +3.3V   |
| 4 (blk) | `GND`           | GND     |

### USB — 4-pin JST-GH

All signals in parallel with the USB C connector.

| Pin     | Signal    | Voltage |
| ------- | --------- | ------- |
| 1 (red) | `VBUS_IN` | +5.0V   |
| 2 (blk) | USB\_N    | +3.3V   |
| 3 (blk) | USB\_P    | +3.3V   |
| 4 (blk) | `GND`     | GND     |

### ETH — 4-pin JST-GH

| Pin     | Signal     | Voltage         |
| ------- | ---------- | --------------- |
| 1 (red) | ETH\_RD\_N | +50.0V Tolerant |
| 2 (blk) | ETH\_RD\_P | +50.0V Tolerant |
| 3 (blk) | ETH\_TD\_N | +50.0V Tolerant |
| 4 (blk) | ETH\_TD\_P | +50.0V Tolerant |

### ADIO — 8-pin JST-GH

| Pin     | Signal          | Voltage |
| ------- | --------------- | ------- |
| 1 (red) | `VDD_5V_PERIPH` | +5.0V   |
| 2 (blk) | FMU\_CAP        | +3.3V   |
| 3 (blk) | BOOTLOADER      | +3.3V   |
| 4 (blk) | FMU\_RST\_REQ   | +3.3V   |
| 5 (blk) | nARMED          | +3.3V   |
| 6 (blk) | ADC1\_3V3       | +3.3V   |
| 7 (blk) | ADC1\_6V6       | +3.3V   |
| 8 (blk) | `GND`           | GND     |

### RC/SBUS — 5-pin

| Pin     | Signal               | Voltage |
| ------- | -------------------- | ------- |
| 1 (red) | `VDD_5V_SBUS_RC`     | +5.0V   |
| 2 (blk) | USART6\_RX\_SBUS\_IN | +3.3V   |
| 3 (blk) | USART6\_TX           | +3.3V   |
| 4 (blk) | `VDD_3V3_SPEKTRUM`   | +3.3V   |
| 5 (blk) | `GND`                | GND     |

### PPM — 3-pin JST-GH

| Pin     | Signal                     | Voltage |
| ------- | -------------------------- | ------- |
| 1 (red) | `VDD_5V_PPM_RC`            | +5.0V   |
| 2 (blk) | DSM\_INPUT/FMU\_PPM\_INPUT | +3.3V   |
| 3 (blk) | `GND`                      | GND     |

### DSM — 3-pin JST-ZH

| Pin     | Signal                     | Voltage |
| ------- | -------------------------- | ------- |
| 1 (red) | `VDD_3V3_SPEKTRUM`         | +3.3V   |
| 2 (blk) | `GND`                      | GND     |
| 3 (blk) | DSM\_INPUT/FMU\_PPM\_INPUT | +3.3V   |

### SPI6 — 11-pin JST-GH

| Pin      | Signal          | Voltage |
| -------- | --------------- | ------- |
| 1 (red)  | `VDD_5V_PERIPH` | +5.0V   |
| 2 (blk)  | SPI6\_SCK       | +3.3V   |
| 3 (blk)  | SPI6\_MISO      | +3.3V   |
| 4 (blk)  | SPI6\_MOSI      | +3.3V   |
| 5 (blk)  | SPI6\_nCS1      | +3.3V   |
| 6 (blk)  | SPI6\_nCS2      | +3.3V   |
| 7 (blk)  | SPIX\_nSYNC     | +3.3V   |
| 8 (blk)  | SPI6\_DRDY1     | +3.3V   |
| 9 (blk)  | SPI6\_DRDY2     | +3.3V   |
| 10 (blk) | SPI6\_nRESET    | +3.3V   |
| 11 (blk) | `GND`           | GND     |

### Debug Port — 10-pin JST-SH

The pinouts and connector comply with the [Pixhawk Debug Full](https://docs.px4.io/main/en/debug/swd_debug.html#pixhawk-debug-full) interface defined in the [Pixhawk Connector Standard](https://github.com/pixhawk/Pixhawk-Standards/blob/master/DS-009%20Pixhawk%20Connector%20Standard.pdf) (JST SM10B connector).

| Pin      | Signal           | Voltage |
| -------- | ---------------- | ------- |
| 1 (red)  | `Vtref`          | +3.3V   |
| 2 (blk)  | Console TX (OUT) | +3.3V   |
| 3 (blk)  | Console RX (IN)  | +3.3V   |
| 4 (blk)  | `SWDIO`          | +3.3V   |
| 5 (blk)  | `SWCLK`          | +3.3V   |
| 6 (blk)  | `SWO`            | +3.3V   |
| 7 (blk)  | NFC GPIO         | +3.3V   |
| 8 (blk)  | PH11             | +3.3V   |
| 9 (blk)  | nRST             | +3.3V   |
| 10 (blk) | `GND`            | GND     |


# PX4 Instructions

{% embed url="<https://docs.px4.io/main/en/flight_controller/arkpab.html>" %}
Up to date PX4 Docs
{% endembed %}

## Debug Port <a href="#debug-port" id="debug-port"></a>

The [PX4 System Console](https://docs.px4.io/main/en/debug/system_console.html) and [SWD interface](https://docs.px4.io/main/en/debug/swd_debug.html) run on the **FMU Debug** port. For its pinout, see [Pinout](/products/flight-controller/ark-pixhawk-autopilot-bus-carrier/hardware/pinout).

For information about using this port see:

* [SWD Debug Port](https://docs.px4.io/main/en/debug/swd_debug.html)
* [PX4 System Console](https://docs.px4.io/main/en/debug/system_console.html) (Note, the FMU console maps to USART3).


# Jetson PABs

{% content-ref url="/pages/5fmpxMUTz0ILwNZVhXDT" %}
[ARK Jetson PAB Carrier](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier)
{% endcontent-ref %}

{% content-ref url="/pages/UzgcAv6bqVlPHboUz3QG" %}
[ARK Jetson PAB Carrier V3](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier-v3)
{% endcontent-ref %}

The ARK Jetson PAB Carrier and ARK Jetson PAB Carrier V3 are NVIDIA Jetson Orin Nano/NX carrier boards built around the ARKV6X flight controller and the Pixhawk Autopilot Bus. Both run PX4 and ARK-OS; the bundles ship with ARK-OS preinstalled. The V3 is a re-architected revision that adds a dedicated I/O co-processor (doubling the PWM outputs to 16), consolidates wiring into two 40-pin avionics connectors, and adds a 30-pin Pixhawk Payload Bus.

## Comparison

| Feature                    | ARK Jetson PAB Carrier                                                        | ARK Jetson PAB Carrier V3                                          |
| -------------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| Compute module             | Jetson Orin Nano / NX                                                         | Jetson Orin Nano / NX                                              |
| Flight controller          | ARKV6X (Pixhawk Autopilot Bus)                                                | ARKV6X (Pixhawk Autopilot Bus)                                     |
| I/O co-processor           | None                                                                          | STM32F103C8T7 IOMCU                                                |
| PWM outputs                | 8 (FMU)                                                                       | 16 (8 FMU + 8 IO)                                                  |
| Avionics wiring            | Discrete JST-GH connectors per function (CAN, TELEM, GPS, RC, PWM, I2C, UART) | Two 40-pin Molex Pico-Clasp bundles (Primary + Secondary Avionics) |
| Pixhawk Payload Bus        | —                                                                             | 30-pin FFC (USB 2.0, Ethernet, CAN, I2C, UART, PWM, GPIO)          |
| CAN buses                  | 2× FC CAN + 1× Jetson CAN                                                     | 2× FC CAN + 1× Jetson CAN                                          |
| Power inputs               | 3× 5V / 6A, Molex Clik-Mate (6-pin)                                           | 3× 5V / 4A, Molex Micro-Lock PLUS (6-pin)                          |
| CSI camera inputs          | 4× 15-pin FFC (CSI0–CSI3)                                                     | 2× 22-pin dual-lane FFC (CSI0–CSI3)                                |
| Ethernet                   | Gigabit, RJ45                                                                 | 10/100, onboard switch → JST-GH (4-pin) + Payload Bus              |
| USB host                   | 3x USB 3.0 A Ports; 1x USB 2.0 A Port                                         | 2× USB 2.0 (JST-GH); USB 3.0 on USB-C                              |
| Display output             | Mini DisplayPort                                                              | Micro HDMI                                                         |
| USB console / recovery     | Micro USB (muxed with FC USB)                                                 | USB-C                                                              |
| Debug UART / Linux console | 6-pin JST-SH                                                                  | 6-pin JST-SH                                                       |
| NVMe storage               | M.2 Key M 2242, PCIe ×4                                                       | M.2 Key M 2242, PCIe ×4                                            |
| M.2 Key E 2230 slot        | PCIe x1, USB, UART, I2S                                                       | PCIe x1, USB, UART, I2S                                            |


# ARK Jetson PAB Carrier

A carrier board for an NVIDIA Jetson Orin Nano or NX module and a Pixhawk Autopilot Bus flight controller, such as the [ARKV6X](/products/flight-controller/arkv6x).

<a href="https://arkelectron.com/product/ark-jetson-pab-carrier/" class="button primary" data-icon="cart-shopping">Buy carrier</a> <a href="https://arkelectron.com/product/ark-jetson-pab-ndaa-bundle/" class="button primary" data-icon="cart-shopping">Buy NDAA bundle</a> <a href="https://github.com/ARK-Electronics/ark-hardware/tree/main/ARK_Jetson_PAB_Carrier/model" class="button secondary" data-icon="cube">3D model</a> <a href="https://github.com/ARK-Electronics/ark-hardware/tree/main/ARK_Jetson_PAB_Carrier/case" class="button secondary" data-icon="box">Case</a>

* **Flight controller I/O:** eight PWM, two CAN, two TELEM, two GPS, RC, SPI, I2C on JST-GH
* **Jetson interfaces:** gigabit Ethernet (RJ45), three USB 3.0 and one USB 2.0 Type-A, four CSI cameras, Mini DisplayPort, CAN, M.2 Key E
* **Power:** three 5 V, 6 A inputs (Molex CLIK-Mate)
* **Software:** ARK-OS on the Jetson (preinstalled on the bundles), PX4 or ArduPilot on the flight controller
* **Compliance:** USA built, NDAA

## Where to Start

**Your bundle arrived preflashed.** The Jetson already runs ARK-OS and the flight controller already has PX4. Go to [Set Up Your Carrier](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/setup), then manage it from the ARK-UI web interface.

**You have a bare board, or you want to flash it yourself.** Install a Jetson module and NVMe SSD, then start at the [Flashing Guide](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/developer/flashing-guide).

## Documentation

* [Set Up Your Carrier](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/setup)
* [Using ARK-OS](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/using-ark-os)
* [Hardware Reference](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/hardware)
* [Developer Guide](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/developer)


# Set Up Your Carrier

## What's Pre-Installed

Bundles ship ready to use — no flashing required:

* **Jetson**: Latest ARK Jetson image (JetPack 6 / L4T r36) on the NVMe SSD, with [ARK-OS](https://github.com/ARK-Electronics/ARK-OS) pre-installed
* **Flight Controller**: Latest PX4 stable firmware
* **Credentials**: Username `jetson`, password `jetson`, hostname `jetson`

{% hint style="info" %}
The default password is well known — change it (`passwd`) before putting the vehicle on a network you don't control.
{% endhint %}

A bare carrier board (no Jetson module or SSD) has no OS on it. Install your module and NVMe SSD, then follow the [Flashing Guide](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/developer/flashing-guide).

## Steps

1. [Connect](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/setup/connect) — reach the Jetson over Micro USB, WiFi hotspot, or Ethernet.
2. [Get Online](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/setup/get-online) — join it to your WiFi network.
3. [ARK-OS](/software/ark-os) — the preinstalled services and the ARK-UI web interface.
4. [Autopilot Connections](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/using-ark-os/autopilot-connections) — connect QGroundControl or Mission Planner.


# Connect

## Micro USB

Connect the Micro USB port to your PC. The Jetson appears as a USB network device at `192.168.55.1`:

```bash
ssh jetson@192.168.55.1
```

The web UI is reachable the same way at <http://192.168.55.1>.

{% hint style="danger" %}
**Micro USB + Flight Controller Conflict**

The Micro USB port is muxed with the flight controller's USB connection. While a Micro USB cable is connected, the flight controller is disconnected from the Jetson and MAVLink routing will not work. After unplugging, **reboot the Jetson** to restore the flight controller connection.
{% endhint %}

The same cable also carries a serial login console — see [Micro USB Console](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/developer/micro-usb-console).

## WiFi Hotspot

On first boot, if no known WiFi network is available, the Jetson brings up a hotspot:

* **Network**: `jetson-<serial>`
* **Password**: `password`

Connect to it and open <http://jetson.local>.

{% hint style="info" %}
**WiFi antennas and MHF4 cables are not included.** Connect an [MHF4 to RP-SMA cable](https://www.amazon.com/dp/B07GTL2G69) to each MHF4 connector on the WiFi card, then an RP-SMA WiFi antenna to each cable. Any dual-band (2.4/5 GHz) antenna works; the 6 GHz band needs one rated for Wi-Fi 6E, such as these [tri-band antennas](https://www.amazon.com/dp/B0C344ZWZP). Some bundles ship without the WiFi card — the hotspot only appears when a WiFi card is installed.
{% endhint %}

## Ethernet

Plug the RJ45 port into your network — the Jetson requests an address over DHCP.

Once the Jetson is on your network:

```bash
ssh jetson@jetson.local
```


# Get Online

## From ARK-UI

Open <http://jetson.local> (or <http://192.168.55.1> over Micro USB) and join a network from the **Connections** page:

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2Fgit-blob-8bc42899f435d6abdb3b8000fe0c7ee502749896%2Fark-ui-connections.png?alt=media" alt=""><figcaption><p>ARK-UI Connections page</p></figcaption></figure>

## From the Command Line

Scan for networks:

```bash
sudo nmcli device wifi
```

Connect to a network:

```bash
sudo nmcli device wifi connect 'SSID' password 'PASSWORD'
```

## Sharing Your PC's Internet over USB

The kernel repo ships a helper that NATs the Jetson's traffic out through your host PC's WiFi — see [share\_wifi.sh](https://github.com/ARK-Electronics/ark_jetson_kernel/blob/main/scripts/share_wifi.sh).

You can also bake a WiFi profile into the image before flashing with `./scripts/add_wifi_network.sh PAB <ssid> <password>`.


# Using ARK-OS

[ARK-OS](/software/ark-os) is preinstalled on every bundle: MAVLink routing, video streaming, flight log management, firmware updates, and network RTK corrections, plus the ARK-UI web interface at <http://jetson.local>.

* [ARK-OS and ARK-UI](/software/ark-os)
* [Services](/software/ark-os/services) — what each service does, and which are enabled by default
* [Apt: Hold Back Risky Packages](/software/ark-os/apt-hold-back) — read before running `apt upgrade`

## On This Carrier

* [Autopilot Connections](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/using-ark-os/autopilot-connections) — connect QGroundControl or Mission Planner
* [Updating the Flight Controller Firmware](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/using-ark-os/updating-the-flight-controller-firmware)


# Autopilot Connections

There are two communication channels between the Jetson and the flight controller: USB and serial. Both are direct board-to-board connections tested up to 3 Mbps.

| Type   | Jetson device path | Flight Controller |
| ------ | ------------------ | ----------------- |
| USB    | /dev/ttyACM0       | USB               |
| Serial | /dev/ttyTHS1       | Telem2            |

{% hint style="info" %}
We recommend running MAVLink on USB and XRCE-DDS on serial. ARK-OS's defaults do exactly this — see [Services](/software/ark-os/services).
{% endhint %}

## USB

The flight controller's USB connection is muxed with the external Micro USB port. While a Micro USB cable is connected, the flight controller is disconnected from the Jetson. After unplugging, reboot the Jetson to restore the connection.

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2F3Hs4NP44KRzFHV5My0p0%2Fimage.png?alt=media&amp;token=3b81b461-0599-4e20-83c0-ea6218e0c02a" alt=""><figcaption></figcaption></figure>

For the flight controller's USB to enumerate, its VBUS\_SENSE pin must be driven high by the Jetson. This is set in the Jetson pinmux at boot, so it works out of the box.

## Serial

The serial connection is Jetson UART1 (`/dev/ttyTHS1`) to **Telem2** on the flight controller, tested to 3 Mbps. When running MAVLink on Telem2, set flow control to off: [MAV\_x\_FLOW\_CTRL](https://docs.px4.io/main/en/advanced_config/parameter_reference.html#MAV_1_FLOW_CTRL) = 0.

## Flight Controller Reset

The Jetson can hard-reset the flight controller via a GPIO reset line. The reset is gated by the nARMED signal — the Jetson cannot reset the flight controller while it is armed.

ARK-OS ships two reset helpers on `PATH`:

```bash
reset_fmu_fast.py       # reset and boot straight into the application
reset_fmu_wait_bl.py    # reset and wait in the bootloader (for firmware flashing)
```


# QGroundControl Connection

When using PX4 or ArduPilot on the ARKV6X, to connect to QGroundControl, use UDP as the connection type. Enter the IP address(or hostname ie jetson.local) of the Jetson with port 14550.

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2FOMzAvPTyyMcMC8EAdiWc%2Fimage.png?alt=media&amp;token=281d1634-7aa1-4015-9569-d78f59ed85b2" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2F4g1MBzXQID5SXg91e1FF%2Fimage.png?alt=media&amp;token=ba0e7e8d-7df8-48fc-8b4b-8dc5d2b9d3ed" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2Fpz4aE6Mma92U7sDKIaV8%2Fimage.png?alt=media&amp;token=6a2328e5-4b4d-4b6e-8352-e63a40940e5f" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2FseKDUOrGVycjlQI9dkCl%2Fimage.png?alt=media&amp;token=f2f2d4ca-0fa6-4a53-b624-53ce751b6c06" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2FIO44Fcfrgmx3R7mziyyJ%2Fimage.png?alt=media&amp;token=2877e1b4-229f-408f-8e3e-62980f13fec3" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2FF5UKq7mKpwtAzzlniywS%2Fimage.png?alt=media&amp;token=17b90e5c-44d6-4ce4-92b0-55c1c2547fb6" alt=""><figcaption></figcaption></figure>


# MissionPlanner ArduPilot Connection

When using ArduPilot on the ARKV6X, to connect to MissionPlanner, use UDPCI as the connection type. Enter the IP address of the Jetson with port 14550.

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2FXK4teGZAQ6Y1kVQMc7J6%2Fimage.png?alt=media&amp;token=859b104f-f563-4956-877a-51411d12530b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2FNEpINl0WgiPxqKrzmDG2%2Fimage.png?alt=media&amp;token=2cfb69ba-8677-4eae-b1df-c7eee5e673f7" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2F98NVyWbj1riHnWoP15r5%2Fimage.png?alt=media&amp;token=0c48a252-dcf0-4d40-bf8f-87c17e12f1bc" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2FOfC2eyBl8aRXnnkJKu1M%2FMissionPlanner_ttNXsCGx3J.jpg?alt=media&amp;token=d6f0429e-137c-4076-91cb-ca4d67654205" alt=""><figcaption></figcaption></figure>


# Updating the Flight Controller Firmware

The ARKV6X Flight Controller can be flashed with PX4 or ArduPilot.

## From the Web UI

Open the [ARK-UI](http://jetson.local) **Autopilot** page, select the **Firmware** tab, and upload a `.px4` or `.apj` firmware file.

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2Fgit-blob-d94575485b62d808f04c27b534992ec232c6613f%2Fark-ui-autopilot-firmware.png?alt=media" alt=""><figcaption></figcaption></figure>

## From the Command Line

SSH into the Jetson and run the ARK-OS flashing tool (on `PATH`):

```bash
flash_firmware.sh <firmware.px4>
```

Run without an argument to flash the PX4 image bundled with ARK-OS.

## Firmware Binaries

* **PX4**: `ark_fmu-v6x` builds from the [PX4 releases page](https://github.com/PX4/PX4-Autopilot/releases/)
* **ArduPilot**: `ARK_FMU_V6X` builds from [firmware.ardupilot.org](https://firmware.ardupilot.org/)

If the flight controller does not enumerate over USB, recover the bootloader over SWD: [ST-LINK Flashing Guide](/knowledge-base/knowledge-base/st-link-flashing-guide#flashing-px4-flight-controllers).


# Hardware Reference

* [Pinout](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/hardware/pinout)
* [Ports and Serial](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/hardware/ports-and-serial) — Micro USB modes and the UART map
* [Block Diagram](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/hardware/block-diagram)
* [3D Models and Case Files](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/hardware/3d-models-and-case-files)
* [GPIO Control](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/hardware/gpio-control)
* [Camera Overlays](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/hardware/camera-overlays)
* [Mini DisplayPort](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/hardware/mini-displayport) — display output and adapter requirements
* [Power Cycling USB Ports](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/hardware/power-cycling-usb-ports)

## Power

| Input or rail      | Limit                                                                     | Connectors                                                                 |
| ------------------ | ------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| `POWER1`–`POWER3`  | 6 A input each                                                            | POWER1, POWER2, POWER3                                                     |
| `VDD_5V_HIPOWER`   | 1.5 A typical, shared                                                     | TELEM1, TELEM3, GPS2, CAN1                                                 |
| `VDD_5V_PERIPH`    | 1.5 A typical, shared                                                     | GPS1, CAN2, UART4/I2C3, I2C3, SPI6, ADIO                                   |
| `VDD_5V_JPERIPH`   | 1.5 A typical, shared                                                     | Jetson CAN, Jetson I2C0, Jetson SPI0, Jetson SPI1, Jetson I2S0, Jetson Fan |
| Fan 5 V            | 500 mA fuse, inside `VDD_5V_JPERIPH`                                      | Jetson Fan                                                                 |
| `VDD_5V_SBUS_RC`   | 250 mA fuse                                                               | RC pin 1                                                                   |
| `VDD_3V3_SPEKTRUM` | 250 mA                                                                    | RC pin 4                                                                   |
| `3V3_FMU`          | Flight controller module's 3.3 V; 250 mA fuse on GPS1                     | GPS1 pin 8, FC Debug pin 1                                                 |
| Camera 3.3 V       | 1 A each                                                                  | Jetson CSI0–CSI3                                                           |
| `3V3_DP`           | 500 mA fuse                                                               | Mini DisplayPort                                                           |
| `3V3`              | 12 A regulator, shared with the cameras, Mini DisplayPort and the USB hub | Jetson Debug, Jetson M.2 Key E, M.2 Key M (SSD)                            |
| USB VBUS           | 1.5 A typical each                                                        | Standalone USB 3 port, both USB 3 ports on the combined connector          |
| USB VBUS           | 750 mA minimum, 1 A typical                                               | USB 2.0 port                                                               |

The flight controller switches `VDD_5V_HIPOWER`, `VDD_5V_PERIPH` and `VDD_3V3_SPEKTRUM`. `VDD_5V_JPERIPH` and `3V3` stay off while the Jetson is in reset. The Jetson module, the flight controller module and every rail above draw from the combined power inputs.

## Temperature

| Specification         | Value                          |
| --------------------- | ------------------------------ |
| Operating temperature | −10 °C to +60 °C, carrier only |
| Storage temperature   | −10 °C to +60 °C, carrier only |

Jetson Orin NX and Orin Nano modules are rated −25 °C to +105 °C junction.


# Pinout

{% file src="/files/2MI4TboRY7AjWDRf2B8z" %}
Pinout reference poster (PDF)
{% endfile %}

`POWER1`–`POWER3` are ideal-diode ORed; see [Carrier Power Inputs](/knowledge-base/knowledge-base/carrier-power-inputs) for load sharing.

### **POWER1** - 6 Pin 2.00mm Molex [CLIK-Mate 502443](https://www.molex.com/en-us/part-list/502443)

Mating plug [5024390600](https://www.digikey.com/en/products/detail/molex/5024390600/2380425)

Pre-crimped wires [0797581014](https://www.digikey.com/en/products/detail/molex/0797581014/6346648)

| Pin Number | Signal Name         | Voltage |
| ---------- | ------------------- | ------- |
| 1          | VBRICK1             | 5.0V    |
| 2          | VBRICK1             | 5.0V    |
| 3          | I2C1\_SCL\_PWR\_EXT | 3.3V    |
| 4          | I2C1\_SDA\_PWR\_EXT | 3.3V    |
| 5          | GND                 | GND     |
| 6          | GND                 | GND     |

### **POWER2** - 6 Pin 2.00mm Molex [CLIK-Mate 502443](https://www.molex.com/en-us/part-list/502443)

Mating plug [5024390600](https://www.digikey.com/en/products/detail/molex/5024390600/2380425)

Pre-crimped wires [0797581014](https://www.digikey.com/en/products/detail/molex/0797581014/6346648)

| Pin Number | Signal Name               | Voltage |
| ---------- | ------------------------- | ------- |
| 1          | VBRICK2                   | 5.0V    |
| 2          | VBRICK2                   | 5.0V    |
| 3          | I2C2\_SCL\_BASE\_PWR\_EXT | 3.3V    |
| 4          | I2C2\_SDA\_BASE\_PWR\_EXT | 3.3V    |
| 5          | GND                       | GND     |
| 6          | GND                       | GND     |

### **POWER3** - 6 Pin 2.00mm Molex [CLIK-Mate 502443](https://www.molex.com/en-us/part-list/502443)

Mating plug [5024390600](https://www.digikey.com/en/products/detail/molex/5024390600/2380425)

Pre-crimped wires [0797581014](https://www.digikey.com/en/products/detail/molex/0797581014/6346648)

| Pin Number | Signal Name         | Voltage |
| ---------- | ------------------- | ------- |
| 1          | VBRICK3             | 5.0V    |
| 2          | VBRICK3             | 5.0V    |
| 3          | I2C3\_SCL\_PWR\_EXT | 3.3V    |
| 4          | I2C3\_SDA\_PWR\_EXT | 3.3V    |
| 5          | GND                 | GND     |
| 6          | GND                 | GND     |

### **TELEM1**

| Pin Number | Signal Name             | Voltage |
| ---------- | ----------------------- | ------- |
| 1          | VDD\_5V\_HIPOWER        | 5.0V    |
| 2          | UART7\_TX\_TELEM1\_EXT  | 3.3V    |
| 3          | UART7\_RX\_TELEM1\_EXT  | 3.3V    |
| 4          | UART7\_CTS\_TELEM1\_EXT | 3.3V    |
| 5          | UART7\_RTS\_TELEM1\_EXT | 3.3V    |
| 6          | GND                     | GND     |

### **TELEM3**

| Pin Number | Signal Name              | Voltage |
| ---------- | ------------------------ | ------- |
| 1          | VDD\_5V\_HIPOWER         | 5.0V    |
| 2          | USART2\_TX\_TELEM3\_EXT  | 3.3V    |
| 3          | USART2\_RX\_TELEM3\_EXT  | 3.3V    |
| 4          | USART2\_CTS\_TELEM3\_EXT | 3.3V    |
| 5          | USART2\_RTS\_TELEM3\_EXT | 3.3V    |
| 6          | GND                      | GND     |

### **GPS1**

| Pin Number | Signal Name                    | Voltage           |
| ---------- | ------------------------------ | ----------------- |
| 1          | VDD\_5V\_PERIPH                | 5.0V              |
| 2          | USART1\_TX\_GPS1\_EXT          | 3.3V              |
| 3          | USART1\_RX\_GPS1\_EXT          | 3.3V              |
| 4          | I2C1\_SCL\_GPS1\_EXT           | 3.3V              |
| 5          | I2C1\_SDA\_GPS1\_EXT           | 3.3V              |
| 6          | NSAFETY\_SWITCH\_IN\_EXT       | 3.3V              |
| 7          | NSAFETY\_SWITCH\_LED\_OUT\_EXT | 3.3V              |
| 8          | 3V3\_FMU                       | 3.3V              |
| 9          | BUZZER\_EXT                    | 5.0V (open drain) |
| 10         | GND                            | GND               |

### **GPS2**

| Pin Number | Signal Name                | Voltage |
| ---------- | -------------------------- | ------- |
| 1          | VDD\_5V\_HIPOWER           | 5.0V    |
| 2          | UART8\_TX\_GPS2\_EXT       | 3.3V    |
| 3          | UART8\_RX\_GPS2\_EXT       | 3.3V    |
| 4          | I2C2\_SCL\_BASE\_GPS2\_EXT | 3.3V    |
| 5          | I2C2\_SDA\_BASE\_GPS2\_EXT | 3.3V    |
| 6          | GND                        | GND     |

### **CAN1**

| Pin Number | Signal Name      | Voltage |
| ---------- | ---------------- | ------- |
| 1          | VDD\_5V\_HIPOWER | 5.0V    |
| 2          | CAN1\_H          | 3.3V    |
| 3          | CAN1\_L          | 3.3V    |
| 4          | GND              | GND     |

### **CAN2**

| Pin Number | Signal Name     | Voltage |
| ---------- | --------------- | ------- |
| 1          | VDD\_5V\_PERIPH | 5.0V    |
| 2          | CAN2\_H         | 3.3V    |
| 3          | CAN2\_L         | 3.3V    |
| 4          | GND             | GND     |

### **RC**

| Pin Number | Signal Name                 | Voltage |
| ---------- | --------------------------- | ------- |
| 1          | VDD\_5V\_SBUS\_RC           | 5.0V    |
| 2          | RX\_SBUS\_IN\_EXT           | 3.3V    |
| 3          | USART6\_TX\_RC\_OUTPUT\_EXT | 3.3V    |
| 4          | VDD\_3V3\_SPEKTRUM          | 3.3V    |
| 5          | GND                         | GND     |

### **PWM**

| Pin Number | Signal Name            | Voltage    |
| ---------- | ---------------------- | ---------- |
| 1          | VDD SERVO (NO CONNECT) | NO CONNECT |
| 2          | FMU\_CH1\_EXT          | 3.3V       |
| 3          | FMU\_CH2\_EXT          | 3.3V       |
| 4          | FMU\_CH3\_EXT          | 3.3V       |
| 5          | FMU\_CH4\_EXT          | 3.3V       |
| 6          | FMU\_CH5\_EXT          | 3.3V       |
| 7          | FMU\_CH6\_EXT          | 3.3V       |
| 8          | FMU\_CH7\_EXT          | 3.3V       |
| 9          | FMU\_CH8\_EXT          | 3.3V       |
| 10         | GND                    | GND        |

### **ADIO**

| Pin Number | Signal Name     | Voltage |
| ---------- | --------------- | ------- |
| 1          | VDD\_5V\_PERIPH | 5.0V    |
| 2          | FMU\_CAP\_EXT   | 3.3V    |
| 3          | NARMED\_EXT     | 3.3V    |
| 4          | ADC1\_3V3\_EXT  | 3.3V    |
| 5          | ADC1\_6V6\_EXT  | 6.6V    |
| 6          | GND             | GND     |

### **SPI6**

| Pin Number | Signal Name       | Voltage |
| ---------- | ----------------- | ------- |
| 1          | VDD\_5V\_PERIPH   | 5.0V    |
| 2          | SPI6\_SCK\_EXT    | 3.3V    |
| 3          | SPI6\_MISO\_EXT   | 3.3V    |
| 4          | SPI6\_MOSI\_EXT   | 3.3V    |
| 5          | SPI6\_NCS1\_EXT   | 3.3V    |
| 6          | SPI6\_NCS2\_EXT   | 3.3V    |
| 7          | SPIX\_NSYNC\_EXT  | 3.3V    |
| 8          | SPI6\_DRDY1\_EXT  | 3.3V    |
| 9          | SPI6\_DRDY2\_EXT  | 3.3V    |
| 10         | SPI6\_NRESET\_EXT | 3.3V    |
| 11         | GND               | GND     |

### **I2C3**

| Pin Number | Signal Name     | Voltage |
| ---------- | --------------- | ------- |
| 1          | VDD\_5V\_PERIPH | 5.0V    |
| 2          | I2C3\_SCL\_EXT  | 3.3V    |
| 3          | I2C3\_SDA\_EXT  | 3.3V    |
| 4          | GND             | GND     |

### **UART4/I2C3**

| Pin Number | Signal Name     | Voltage |
| ---------- | --------------- | ------- |
| 1          | VDD\_5V\_PERIPH | 5.0V    |
| 2          | UART4\_TX\_EXT  | 3.3V    |
| 3          | UART4\_RX\_EXT  | 3.3V    |
| 4          | I2C3\_SCL\_EXT  | 3.3V    |
| 5          | I2C3\_SDA\_EXT  | 3.3V    |
| 6          | GND             | GND     |

### **FC Debug**

| Pin Number | Signal Name            | Voltage |
| ---------- | ---------------------- | ------- |
| 1          | 3V3\_FMU               | 3.3V    |
| 2          | USART3\_TX\_DEBUG      | 3.3V    |
| 3          | USART3\_RX\_DEBUG\_EXT | 3.3V    |
| 4          | FMU\_SWDIO             | 3.3V    |
| 5          | FMU\_SWCLK             | 3.3V    |
| 6          | SPI6\_SCK\_EXTERNAL1   | 3.3V    |
| 7          | NFC\_GPIO              | 3.3V    |
| 8          | PD15                   | 3.3V    |
| 9          | FMU\_NRST              | 3.3V    |
| 10         | GND                    | GND     |

### **Jetson SPI0**

| Pin Number | Signal Name      | Voltage |
| ---------- | ---------------- | ------- |
| 1          | VDD\_5V\_JPERIPH | 5.0V    |
| 2          | SPI0\_MOSI\_3V3  | 3.3V    |
| 3          | SPI0\_SCK\_3V3   | 3.3V    |
| 4          | SPI0\_MISO\_3V3  | 3.3V    |
| 5          | SPI0\_CS0N\_3V3  | 3.3V    |
| 6          | SPI0\_CS1N\_3V3  | 3.3V    |
| 7          | GND              | GND     |

### **Jetson SPI1**

| Pin Number | Signal Name      | Voltage    |
| ---------- | ---------------- | ---------- |
| 1          | VDD\_5V\_JPERIPH | 5.0V       |
| 2          | SPI1\_MOSI\_3V3  | 3.3V       |
| 3          | SPI1\_SCK\_3V3   | 3.3V       |
| 4          | SPI1\_MISO\_3V3  | 3.3V       |
| 5          | SPI1\_CS0N\_3V3  | 3.3V       |
| 6          | NO CONNECT       | NO CONNECT |
| 7          | GND              | GND        |

### **Jetson I2S0**

| Pin Number | Signal Name      | Voltage |
| ---------- | ---------------- | ------- |
| 1          | VDD\_5V\_JPERIPH | 5.0V    |
| 2          | I2S0\_DOUT\_3V3  | 3.3V    |
| 3          | I2S0\_DIN\_3V3   | 3.3V    |
| 4          | I2S0\_LRCLK\_3V3 | 3.3V    |
| 5          | I2S0\_SCLK\_3V3  | 3.3V    |
| 6          | AUD\_MCLK\_3V3   | 3.3V    |
| 7          | GND              | GND     |

### **Jetson I2C0**

| Pin Number | Signal Name      | Voltage |
| ---------- | ---------------- | ------- |
| 1          | VDD\_5V\_JPERIPH | 5.0V    |
| 2          | I2C0\_SCL\_EXT   | 3.3V    |
| 3          | I2C0\_SDA\_EXT   | 3.3V    |
| 4          | GND              | GND     |

### **Jetson CAN**

| Pin Number | Signal Name      | Voltage |
| ---------- | ---------------- | ------- |
| 1          | VDD\_5V\_JPERIPH | 5.0V    |
| 2          | JCAN\_H          | 3.3V    |
| 3          | JCAN\_L          | 3.3V    |
| 4          | GND              | GND     |

### **Jetson Fan** - 4 Pin Molex [PicoBlade 53047](https://www.molex.com/en-us/part-list/53047)

Mating plug [0510210400](https://www.digikey.com/en/products/detail/molex/0510210400/242844)

| Pin Number | Signal Name      | Voltage |
| ---------- | ---------------- | ------- |
| 1          | GND              | GND     |
| 2          | VDD\_5V\_JPERIPH | 5.0V    |
| 3          | FAN\_TACH\_CON   | 5.0V    |
| 4          | FAN\_PWM\_Q\*    | 5.0V    |

### **Jetson M.2 Key E**

| Pin Number   | Signal Name               | Voltage |
| ------------ | ------------------------- | ------- |
| 2, 4, 72, 74 | 3V3                       | 3.3V    |
| 3            | HUB\_USB4\_M2\_P          | 3.3V    |
| 5            | HUB\_USB4\_M2\_N          | 3.3V    |
| 8            | I2S1\_SCLK                | 1.8V    |
| 10           | I2S1\_LRCLK               | 1.8V    |
| 12           | I2S1\_DIN                 | 1.8V    |
| 14           | I2S1\_DOUT                | 1.8V    |
| 20           | BT\_M2\_WAKE\_AP (GPIO02) | 1.8V    |
| 22           | UART0\_RXD\_1V8           | 1.8V    |
| 32           | UART0\_TXD\_1V8           | 1.8V    |
| 34           | UART0\_CTS\_1V8           | 1.8V    |
| 36           | UART0\_RTS\_1V8           | 1.8V    |
| 58           | I2C\_M2\_DATA\_1V8        | 1.8V    |
| 60           | I2C\_M2\_CLK\_1V8         | 1.8V    |

### **Jetson Debug**

| Pin Number | Signal Name     | Voltage    |
| ---------- | --------------- | ---------- |
| 1          | 3V3             | 3.3V       |
| 2          | UART2\_TXD\_3V3 | 3.3V       |
| 3          | UART2\_RXD\_3V3 | 3.3V       |
| 4          | NO CONNECT      | NO CONNECT |
| 5          | NO CONNECT      | NO CONNECT |
| 6          | GND             | GND        |

### **Jetson CSI0**

| Pin Number | Signal Name     | Voltage |
| ---------- | --------------- | ------- |
| 1          | 3V3             | 3.3V    |
| 2          | CAM0\_SDA       | 3.3V    |
| 3          | CAM0\_SCL       | 3.3V    |
| 4          | CAM0\_MCLK      | 1.8V    |
| 5          | CAM0\_PWDN\_3V3 | 3.3V    |
| 6          | GND             | GND     |
| 7          | CSI0\_CLK\_P    | 1.2V    |
| 8          | CSI0\_CLK\_N    | 1.2V    |
| 9          | GND             | GND     |
| 10         | CSI0\_D1\_P     | 1.2V    |
| 11         | CSI0\_D1\_N     | 1.2V    |
| 12         | GND             | GND     |
| 13         | CSI0\_D0\_P     | 1.2V    |
| 14         | CSI0\_D0\_N     | 1.2V    |
| 15         | GND             | GND     |

### **Jetson CSI1**

| Pin Number | Signal Name     | Voltage |
| ---------- | --------------- | ------- |
| 1          | 3V3             | 3.3V    |
| 2          | CAM1\_SDA       | 3.3V    |
| 3          | CAM1\_SCL       | 3.3V    |
| 4          | CAM1\_MCLK      | 1.8V    |
| 5          | CAM1\_PWDN\_3V3 | 3.3V    |
| 6          | GND             | GND     |
| 7          | CSI1\_CLK\_P    | 1.2V    |
| 8          | CSI1\_CLK\_N    | 1.2V    |
| 9          | GND             | GND     |
| 10         | CSI1\_D1\_P     | 1.2V    |
| 11         | CSI1\_D1\_N     | 1.2V    |
| 12         | GND             | GND     |
| 13         | CSI1\_D0\_P     | 1.2V    |
| 14         | CSI1\_D0\_N     | 1.2V    |
| 15         | GND             | GND     |

### **Jetson CSI2**

| Pin Number | Signal Name                                   | Voltage |
| ---------- | --------------------------------------------- | ------- |
| 1          | 3V3                                           | 3.3V    |
| 2          | CAM2\_SDA                                     | 3.3V    |
| 3          | CAM2\_SCL                                     | 3.3V    |
| 4          | CAM2\_MCLK (GPIO01 GP65)                      | 1.8V    |
| 5          | CAM2\_PWDN\_3V3 (SPI1\_CS1\* GP40\_SPI3\_CS1) | 3.3V    |
| 6          | GND                                           | GND     |
| 7          | CSI2\_CLK\_P                                  | 1.2V    |
| 8          | CSI2\_CLK\_N                                  | 1.2V    |
| 9          | GND                                           | GND     |
| 10         | CSI2\_D1\_P                                   | 1.2V    |
| 11         | CSI2\_D1\_N                                   | 1.2V    |
| 12         | GND                                           | GND     |
| 13         | CSI2\_D0\_P                                   | 1.2V    |
| 14         | CSI2\_D0\_N                                   | 1.2V    |
| 15         | GND                                           | GND     |

### **Jetson CSI3**

| Pin Number | Signal Name              | Voltage |
| ---------- | ------------------------ | ------- |
| 1          | 3V3                      | 3.3V    |
| 2          | CAM3\_SDA                | 3.3V    |
| 3          | CAM3\_SCL                | 3.3V    |
| 4          | CAM3\_MCLK (GPIO11 GP66) | 1.8V    |
| 5          | CAM3\_PWDN\_3V3 (GPIO06) | 3.3V    |
| 6          | GND                      | GND     |
| 7          | CSI3\_CLK\_P             | 1.2V    |
| 8          | CSI3\_CLK\_N             | 1.2V    |
| 9          | GND                      | GND     |
| 10         | CSI3\_D1\_P              | 1.2V    |
| 11         | CSI3\_D1\_N              | 1.2V    |
| 12         | GND                      | GND     |
| 13         | CSI3\_D0\_P              | 1.2V    |
| 14         | CSI3\_D0\_N              | 1.2V    |
| 15         | GND                      | GND     |


# Ports and Serial

## Micro USB

Plugging in the Micro USB port disconnects the flight controller's USB from the Jetson and puts the Jetson in device mode, providing networking, a serial login console, and an `L4T-README` drive — see [Connect](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/setup/connect) and [Micro USB Console](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/developer/micro-usb-console). It is also the recovery port for [flashing](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/developer/flashing-guide).

## Serial Ports

<table><thead><tr><th width="160">Connector</th><th width="140">Port</th><th width="160">Available Signals</th><th>Function</th></tr></thead><tbody><tr><td>Flight controller (internal)</td><td>/dev/ttyTHS1</td><td>RX/TX/RTS/CTS</td><td>FC TELEM2. The ARK-OS DDS agent uses it by default at 3 Mbaud.</td></tr><tr><td>Jetson Debug (6-pin JST-SH)</td><td>/dev/ttyTCU0</td><td>RX/TX</td><td>Jetson debug UART and Linux console (Reserved)</td></tr><tr><td>M.2 Key E</td><td>/dev/ttyTHS3</td><td>RX/TX/RTS/CTS</td><td>Bluetooth UART of an M.2 card</td></tr></tbody></table>

The debug UART runs at 115200 8N1, 3.3 V, and carries bootloader, UEFI and kernel output plus a login prompt. Connector pins are on the [Pinout](/products/flight-controller/jetson-pabs/ark-jetson-pab-carrier/hardware/pinout) page.


# Mini DisplayPort

The Mini DisplayPort will work natively with a DisplayPort capable monitor.

In order to use HDMI, an active Mini DisplayPort to HDMI adapter is required. We recommend the [Plugable Mini DisplayPort/Thunderbolt™ 2 to HDMI 2.0 Active Adapter](https://plugable.com/products/mdp-hdmi).


# Block Diagram

<figure><img src="https://1515919775-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOwmEn1N45AR4WjMQhHlu%2Fuploads%2FZiqCCRDzCLifnbVq9Fnn%2FBlock%20Diagram.png?alt=media&amp;token=2db460f8-d662-49e5-8ae9-52178b9dc5a1" alt=""><figcaption><p>Block diagram</p></figcaption></figure>


# 3D Models and Case Files

Step files can be found here\
<https://github.com/ARK-Electronics/ark-hardware/tree/main/ARK_Jetson_PAB_Carrier/model>

Case files can be found here\
<https://github.com/ARK-Electronics/ark-hardware/tree/main/ARK_Jetson_PAB_Carrier/case>


# GPIO Control

The I2S0 connector pins come up as general-purpose GPIOs by default — no overlay or jetson-io step is needed. At idle the SoC drives none of them: the four output-capable pins sit hi-z, held HIGH by 604Ω pull-ups on the carrier, and DIN is a floating input. A pin wired to a relay or actuator never transitions at boot.

## I2S0 Connector Pin Mapping

| ARK Pin | Signal           | 40-Pin Header | libgpiod Name | Idle at Boot  |
| ------- | ---------------- | ------------- | ------------- | ------------- |
| 1       | VDD\_5V\_JPERIPH | -             | -             | -             |
| 2       | I2S0\_DOUT\_3V3  | Pin 40        | `PI.00`       | HIGH (pulled) |
| 3       | I2S0\_DIN\_3V3   | Pin 38        | `PI.01`       | hi-z (input)  |
| 4       | I2S0\_LRCLK\_3V3 | Pin 35        | `PI.02`       | HIGH (pulled) |
| 5       | I2S0\_SCLK\_3V3  | Pin 12        | `PH.07`       | HIGH (pulled) |
| 6       | AUD\_MCLK\_3V3   | Pin 7         | `PAC.06`      | HIGH (pulled) |
| 7       | GND              | -             | -             | -             |

Confirm the lines are exposed:

```bash
sudo gpioinfo | grep -E '"P(H\.07|I\.0[0-2]|AC\.06)"'
```

## Using the GPIOs

Drive and read the lines with `libgpiod` (`gpioset` / `gpioget`) or the Jetson.GPIO Python library. Jetson.GPIO addresses pins by their 40-pin header number and needs version 2.1.12 or newer:

```bash
sudo pip3 install 'Jetson.GPIO>=2.1.12'
```

The example below jumpers HDR40 pin 40 (DOUT) to pin 38 (DIN) and toggles HIGH/LOW, reading each transition back as a loopback test:

```python
import time
import Jetson.GPIO as GPIO

GPIO.setmode(GPIO.BOARD)
GPIO.setup(40, GPIO.OUT, initial=GPIO.LOW)  # I2S0_DOUT
GPIO.setup(38, GPIO.IN)                     # I2S0_DIN

try:
    for level in (GPIO.HIGH, GPIO.LOW, GPIO.HIGH, GPIO.LOW):
        GPIO.output(40, level)
        time.sleep(0.2)
        got = GPIO.input(38)
        print(f"wrote {level} read {got} {'PASS' if got == level else 'FAIL'}")
finally:
    GPIO.cleanup()
```

ARK-OS ships a complete version of this loopback as `i2s_gpio_example.py` (on `PATH`).

{% hint style="warning" %}
**GPIO state after your app exits**

While your app owns a line, the kernel guarantees its value. On release (clean exit, crash, or kill), **the pin retains its last-written value** until the next reboot re-asserts the pulled-HIGH idle state. If a line must be safe-off for an active-high load, add an external pull-down or keep a process owning the line (`gpioset --mode=signal`).
{% endhint %}

For the full pin reference, electrical details, and safe-state patterns, see the [ARK Jetson Kernel GPIO docs](https://github.com/ARK-Electronics/ark_jetson_kernel/blob/main/docs/gpio.md).


# Camera Overlays

The ARK Jetson PAB Carrier has **4× 2-lane CSI ports**. Camera configuration is managed through device tree overlays, and the image ships with the **IMX219 quad** overlay active — IMX219 cameras work on all four ports out of the box.

## Supported Cameras

| Sensor | Resolution | Overlay            | Status            |
| ------ | ---------- | ------------------ | ----------------- |
| IMX219 | 3280x2464  | Camera IMX219 Quad | Working (default) |
| IMX477 | 4056x3040  | Camera IMX477 Quad | Working           |
| IMX708 | 4608x2592  | Camera IMX708 Quad | Working           |

4-lane CSI modes are not supported — 2-lane provides full resolution at 30 fps for the IMX477. See [cameras.md](https://github.com/ARK-Electronics/ark_jetson_kernel/blob/main/docs/cameras.md) in the kernel repo for sensor details, verification commands, and known issues.

## Switching Overlays

List the overlays available on your Jetson:

```bash
sudo /opt/nvidia/jetson-io/config-by-hardware.py -l
```

Apply one and reboot:

```bash
sudo /opt/nvidia/jetson-io/config-by-hardware.py -n 2="Camera IMX477 Quad"
sudo reboot
```

## Verifying a Camera

Check that the sensor is detected:

```bash
nvargus_nvraw --lps
```

ARK-OS also ships `check_cameras.sh` (on `PATH`) which stream-tests every connected CSI camera, and the [ARK-UI](http://jetson.local) **Video** page shows a live stream of the first camera.

## Custom Overlays

To build your own camera overlay — or install one on an already-flashed system — follow [camera\_overlays.md](https://github.com/ARK-Electronics/ark_jetson_kernel/blob/main/docs/camera_overlays.md) in the kernel repo.




---

[Next Page](https://docs.arkelectron.com/llms-full.txt/1)

