Connecting RaspberryPi 4 B to Ardupilot/Cube Orange

Hello everyone,

I’m currently working on a drone equipped with an ArduPilot Cube Orange and a Raspberry Pi. The Raspberry Pi, along with a Raspberry Pi Camera, is being used to detect Aruco markers and send precision landing MAVLink commands to the flight controller.

The code for detection and command transmission is already running successfully. However, I’m having trouble figuring out how to physically connect the Raspberry Pi to the Cube Orange.

Could someone advise me on:

  • Which cable I should use for the connection?
  • Which port on the Cube Orange is best suited for this purpose?
  • What alese am i missing here ?

I’d greatly appreciate any guidance on this.

Thanks in advance and best regards! :blush:

A three wire cable:

RPI TX → CubeOrange RX
RPI RX <= CubeOrange TX
RPI GND ↔ CubeOrange GND

TELEM1 or TELEM2 are the best CubeOrange ports for this.

The wire should be kept short and away from other high current carrying wires.

And using AMC AI chatbot would have given you this answer:

How to connect Raspberry Pi to Cube Orange?

To connect a Raspberry Pi to a Cube Orange, follow these steps:

  1. Cable Selection: Use a cable that supports UART communication. A common choice is a JST GH 1.25mm pitch cable, which matches the connectors on the Cube Orange.

  2. Port Selection: The TELEM1 or TELEM2 ports on the Cube Orange are suitable for this connection. These ports provide UART communication with RTS/CTS pins, which are beneficial for hardware flow control.

  3. Connection Setup:

    • Connect the TX (OUT) pin on the Cube Orange to the RX (IN) pin on the Raspberry Pi.
    • Connect the RX (IN) pin on the Cube Orange to the TX (OUT) pin on the Raspberry Pi.
    • (Optional) Connect the RTS pin on the Cube Orange to the CTS pin on the Raspberry Pi, and vice versa, for flow control.

For more details, refer to the CubeOrangePlus Flight Controller documentation.

1 Like

Thanks for the helpful information in the past, which has been very valuable.
I am now facing a new challenge and hope for your support once again.

I am using a companion computer (Raspberry Pi) equipped with a camera to detect aruco-markers and calculate their coordinates for precision landing. My goal is to send these calculated coordinates directly to the flight controller.

My questions are as follows:

-What settings do I need to configure in Mission Planner to ensure that the flight controller correctly receives the data via MAVLink?

-Are there specific parameters or configurations I need to consider to optimize communication between the Raspberry Pi and the flight controller?

-What steps are necessary to ensure a stable connection via UART?

I look forward to your response and thank you in advance for your assistance!
Best regards