# *Pixhawk 4 mini </0 >接线快速入门
PX4 does not manufacture this (or any) autopilot. Contact the [manufacturer](https://shop.holybro.com/) for hardware support or compliance issues.
This quick start guide shows how to power the Pixhawk® 4 Mini flight controller and connect its most important peripherals.
# 接线图概述
The image below shows where to connect the most important sensors and peripherals (except for motors and servos).
提示
More information about available ports can be found here: Pixhawk 4 Mini > Interfaces.
# 飞控的安装和方向
Pixhawk 4 Mini should be mounted on your frame using vibration-damping foam pads (included in the kit). It should be positioned as close to your vehicle’s center of gravity as possible, oriented top-side up with the arrow pointing towards the front of the vehicle.
注解
If the controller cannot be mounted in the recommended/default orientation (e.g. due to space constraints) you will need to configure the autopilot software with the orientation that you actually used: Flight Controller Orientation.
# GPS + 指南针 + 蜂鸣器 + 安全开关 + LED
使用6PIN线材将套件附带的PMB模块的输出接口连接到Pixhawk 4 mini 的 POWER 端口。 下表解释了电源管理板的连接, 包括动力电源与 ESC电调和伺服舵机的信号连接。
注解
The GPS module's integrated safety switch is enabled by default (when enabled, PX4 will not let you arm the vehicle). To disable the safety press and hold the safety switch for 1 second. You can press the safety switch again to enable safety and disarm the vehicle (this can be useful if, for whatever reason, you are unable to disarm the vehicle from your remote control or ground station).
# 电源
The Power Management Board (PMB) serves the purpose of a power module as well as a power distribution board. In addition to providing regulated power to Pixhawk 4 Mini and the ESCs, it sends information to the autopilot about the battery’s voltage and current draw.
Connect the output of the PMB that comes with the kit to the POWER port of the Pixhawk 4 Mini using a 6-wire cable. The connections of the PMB, including power supply and signal connections to the ESCs and servos, are explained in the image below.
注解
The image above only shows the connection of a single ESC and a single servo. Connect the remaining ESCs and servos similarly.
Pin(s) 或连接器 | 功能 |
---|---|
B+ | 连接到 ESC电调B+以为 ESC电调供电 |
GND | 连接到 ESC电调负极 |
PWR | JST-GH 6-pin 接头, 5V 3A 输出 |
连接到Pixhawk 4 Mini 的POWER接口 | |
BAT | 电源输入,连接到2~12S的LiPo电池 |
The pinout of the Pixhawk 4 Mini POWER port is shown below. The CURRENT
signal should carry an analog voltage from 0-3.3V for 0-120A as default. The VOLTAGE
signal should carry an analog voltage from 0-3.3V for 0-60V as default. The VCC lines have to offer at least 3A continuous and should default to 5.1V. A lower voltage of 5V is still acceptable, but discouraged.
针脚 | 信号 | 电压 |
---|---|---|
1(红) | VCC | +5V |
2(黑) | VCC | +5V |
3(黑) | 电流 | +3.3V |
4(黑) | 电压 | +3.3V |
5(黑) | GND | GND |
6(黑) | GND | GND |
注解
If using a plane or rover, the 8 pin power (+) rail of MAIN OUT will need to be separately powered in order to drive servos for rudders, elevons, etc. To do this, the power rail needs to be connected to a BEC equipped ESC, a standalone 5V BEC, or a 2S LiPo battery. Be careful with the voltage of servo you are going to use here.
注解
Using the Power Module that comes with the kit you will need to configure the Number of Cells in the Power Settings (opens new window) but you won't need to calibrate the voltage divider. You will have to update the voltage divider if you are using any other power module (e.g. the one from the Pixracer).
# 无线电遥控
A remote control (RC) radio system is required if you want to manually control your vehicle (PX4 does not require a radio system for autonomous flight modes).
You will need to select a compatible transmitter/receiver and then bind them so that they communicate (read the instructions that come with your specific transmitter/receiver).
The instructions below show how to connect the different types of receivers to Pixhawk 4 Mini:
Spektrum/DSM 或者 S.BUS 接收机连接到 DSM/SBUS RC 输入端口。
PPM 接收机连接到 PPM RC 输入端口。
PPM 和 每个通道有单独连接线 的 PWM 接收机需要连接在 PPM RC 端口,PWM信号需要通过一个类似这样的 (opens new window)* PPM 编码器*(PPM-Sum 接收机只需要一根信号线就包含所有通道)。
For more information about selecting a radio system, receiver compatibility, and binding your transmitter/receiver pair, see: Remote Control Transmitters & Receivers.
# 数传电台(可选)
Telemetry radios may be used to communicate and control a vehicle in flight from a ground station (for example, you can direct the UAV to a particular position, or upload a new mission).
The vehicle-based radio should be connected to the TELEM1 port as shown below (if connected to this port, no further configuration is required). The other radio is connected to your ground station computer or mobile device (usually by USB).
# SD卡(可选)
SD cards are highly recommended as they are needed to log and analyse flight details, to run missions, and to use UAVCAN-bus hardware. Insert the card (included in the kit) into Pixhawk 4 Mini as shown below.
提示
For more information see Basic Concepts > SD Cards (Removable Memory).
# 电机
Motors/servos are connected to the MAIN OUT ports in the order specified for your vehicle in the Airframe Reference. See Pixhawk 4 Mini > Supported Platforms for more information.
注解
This reference lists the output port to motor/servo mapping for all supported air and ground frames (if your frame is not listed in the reference then use a "generic" airframe of the correct type).
:::caution The mapping is not consistent across frames (e.g. you can't rely on the throttle being on the same output for all plane frames). Make sure to use the correct mapping for your vehicle. :::
# 其它外设
The wiring and configuration of optional/less common components is covered within the topics for individual peripherals.
# 配置
General configuration information is covered in: Autopilot Configuration.
QuadPlane specific configuration is covered here: QuadPlane VTOL Configuration