Typical Autopilot Wiring Connections¶
This topic covers the wiring/connection of basic/mandatory peripherals to the autopilot. For detailed explanations about each autopilot port/connector, see Autopilot Inputs and Outputs
GPS is usually mandatory in all vehicles, except when some other position determining sensor or system is used . Compass is also usually required for Copter and Rover and QuadPlane types of Plane (see Compass-less Operation for compass alternatives), but not for Conventional Planes, however it is recommended.
TX and RX are swapped from autopilot to GPS module.
Usually GPS is attached to the logical Serial Port 3 by default in ArduPilot. However, which physical UART is assigned to ArduPilot’s Serial Port 3 on the autopilot is documented in the autopilots documentation
It is important that a GPS be connected to the first SERIALx port that has its
SERIALx_PROTOCOL parameter set to “5” (GPS) since it will stop searching for GPS during bootup if not found on the first port configured for GPS protocol.
As a wiring example, the topic 3DR UBlox GPS + Compass Module shows how to connect to a Pixhawk autopilot and includes additional configuration and mounting information.
Radio Control Receivers are normally used for pilot control. While exclusive pilot control via ground stations using telemetry is possible, it is not recommended. (However, it is possible to control the vehicle via ground station software using a joystick. See Joysticks .
Ardupilot autodetects the following serial RC receiver protocols:
- PPM remote control (R/C) receivers
- SBus receivers
- FPort receivers (see FPort Receivers )
- Crossfire (CRSF) receivers (see Team Black Sheep RC Systems, needs full UART connection for Telem)
- Spektrum DSM and DSM2 receivers
- Spektrum DSM-X Satellite receivers
- IBUS receivers
- MULTIPLEX SRXL version 1 and version 2 receivers.
For traditional single-wire-per-channel (PWM) receivers a PPM encoder can be used to convert the receiver outputs to PPM.
As of Ardupilot 4.0 versions of firmware, any autopilot UART may be used as an input for an RC receiver, instead of the designated RCin or SBUS input pin, by setting that port’s
SERIALx_PROTOCOL to 23. However, some serial protocols require inversion (SBUS,FPort) and the UART must be capable of using the
SERIALx_OPTIONS parameter to invert the RX input, otherwise, an external inverter will be required. This also allows a second RC receiver to be attached to the autopilot for redundancy. If the first receiver (first detected valid after boot) fails, then the second will be used. Note that whatever RC input ranges and trims were calibrated will be used for the second when it becomes active. Both receivers MUST be set to send no pulses in failsafe for this to work properly.
Motor ESCs and/or PWM Servos are attached to the PWM outputs of the autopilot.
They are labeled either as MAIN/AUX outputs or just as OUTPUTs. These outputs provide the PWM or Dshot signals for motor ESC or servo control of flight surfaces. They can also be sometimes used as general purpose I/O pins for controlling relays, parachutes, grippers, etc.
Those controllers with MAIN/AUX output labels usually indicate that a IOMCU co-processor is being employed. These provide outputs intended for use as the motor/servo outputs and provide a redundant means of control via RC if the main autopilot fails. The MAIN outputs come from this co-processor, while the AUX designated outputs are controlled directly from the autopilot. Most board level autopilots do not use an IOMCU and have outputs only labeled OUTPUTx or Mx.
This distinction is important, since AUX outputs(and OUTPUTs from autopilots without an IOMCU) can be used as GPIOs as well as PWM or Dshot. While MAIN outputs can only be used for PWM.
A few autopilots that do NOT use an IOMCU label their outputs as MAIN, so actually do have the capability of use as GPIOs and/or Dshot ESC control outputs. CUAV V5 Nano and Holybro Pixhawk 4 Mini are examples.
Often these outputs are provided on 3 pin connector strips supplying or distributing servo power and ground, in addition to the individual output signals. This power is usually provided externally, such as by the ESC or a BEC, although some autopilots provide this power from internal regulators.
A connection example for Rover
An example for Copters using only motors. In this case, only ESC signal lines are being connected.
For planes connect the control channel wires to the main output signal pins:
- Output 1 = Aileron
- Output 2 = Elevator
- Output 3 = Throttle
- Output 4 = Rudder
Connect buzzer and safety switch¶
The buzzer and safety switch button are optional, but useful for some configurations. Not all autopilots provide these connections. A BUZZER and SWITCH can be connected to their respective ports as shown.
Mount the beeper at least 5cm away from the flight controller or the noise may upset the accelerometers.
Connect other peripherals¶
Depending on your hardware there may be any number of other peripherals attached, including sensors, cameras, grippers etc. These can be found as sub-pages of the topic Optional Hardware.
Information about connecting these peripherals to the autopilot is found in those respective pages.