danny wang a136536ff5 watchrobot first commit | il y a 2 ans | |
---|---|---|
.. | ||
PH4-mini-pinout.jpg | il y a 2 ans | |
README.md | il y a 2 ans | |
defaults.parm | il y a 2 ans | |
hwdef-bl.dat | il y a 2 ans | |
hwdef.dat | il y a 2 ans |
The Pixhawk4-Mini flight controller is sold by Holybro
The Telem1 port has RTS/CTS pins, the other UARTs do not have RTS/CTS.
The RCIN port can be used as RX or TX as a general UART using the SERIAL5_OPTIONS bits to swap pins. It is not used for RC input (the PPM pin is used for RC input)
The UART7 connector is inside the case and labelled as debug, but is available as a general purpose UART with ArduPilot.
RC input is configured on the port marked PPM. This connector supports all RC protocols (including SBUS, DSM, ST24, SRXL and PPM). The RCIN port is not used for RC input.
The Pixhawk4-Mini supports up to 11 PWM outputs. All 11 outputs support all normal PWM output formats. All outputs except numbers 7 and 8 support DShot.
The first 8 outputs are labelled "MAIN OUT" on the case. The next 3 outputs are labelled CAP1 to CAP3 on the case. The CAP4 pin cannot be used as a PWM output.
In order to use outputs 9, 10 and 11 you need to change BRD_PWM_COUNT to 11.
The 11 PWM outputs are in 4 groups:
Channels within the same group need to use the same output rate. If any channel in a group uses DShot then all channels in the group need to use DShot.
The board has a dedicated power monitor port with a 6 pin connector. The correct battery setting parameters are dependent on the type of power brick which is connected.
The Pixhawk4-Mini has a builtin IST8310 compass. Due to potential interference the board is usually used with an external I2C compass as part of a GPS/Compass combination.
The 11 PWM ports plus the CAP4 port can be used as GPIOs (relays, buttons, RPM etc). To use them you need to limit the number of these pins that is used for PWM by setting the BRD_PWM_COUNT to a number less than 11. For example if you set BRD_PWM_COUNT to 8 then CAP1, CAP2 and CAP3 will be available for use as GPIOs.
The numbering of the GPIOs for PIN variables in ArduPilot is:
In addition the 4 pins on the servo rail marked CAP1 to CAP4 can be used as GPIOs. These are available as GPIOs in ArduPilot using the following GPIO numbers:
The Pixhawk4-Mini has 4 analog inputs
Unless noted otherwise all connectors are JST GH
Pin | Signal | Volt |
---|---|---|
1 (red) | VCC | +5V |
2 (blk) | TX (OUT) | +3.3V |
3 (blk) | RX (IN) | +3.3V |
4 (blk) | CTS | +3.3V |
5 (blk) | RTS | +3.3V |
6 (blk) | GND | GND |
Pin | Signal | Volt |
---|---|---|
1 (red) | VCC | +5V |
2 (blk) | SERIAL3 TX (OUT) | +3.3V |
3 (blk) | SERIAL3 RX (IN) | +3.3V |
4 (blk) | SCL | +3.3 (pullups) |
5 (blk) | SDA | +3.3 (pullups) |
6 (blk) | SafetyButton | +3.3V |
7 (blk) | SafetyLED | +3.3V |
8 (blk) | VDD 3.3 (OUT) | +3.3V |
9 (blk) | Buzzer | +3.3V |
10 (blk) | GND | GND |
Pin | Signal | Volt |
---|---|---|
1 (red) | VCC | +5V |
2 (blk) | TX (OUT) | +3.3V |
3 (blk) | RX (IN) | +3.3V |
4 (blk) | SCL I2C2 | +3.3V |
5 (blk) | SDA I2C2 | +3.3V |
6 (blk) | GND | GND |
Pin | Signal | Volt |
---|---|---|
1 (red) | VCC | +5V |
2 (red) | VCC | +5V |
3 (blk) | CURRENT | up to +3.3V |
4 (blk) | VOLTAGE | up to +3.3V | 5 (blk) | GND | GND | 6 (blk) | GND | GND |
Pin | Signal | Volt |
---|---|---|
1 (red) | VCC | +5V |
2 (blk) | RCIN (IN) | +3.3V |
3 (blk) | RSSI (IN) | +3.3V |
4 (blk) | VDD3.3 | +3.3V |
5 (blk) | GND | GND |
The Pixhawk4 supports SWD debugging on the debug port
Pin | Signal | Volt |
---|---|---|
1 (red) | FMU VDD 3.3 | +3.3V |
2 (blk) | UART TX Debug (OUT) | +3.3V |
3 (blk) | UART RX Debug (IN) | +3.3V |
4 (blk) | SWDIO | +3.3V |
5 (blk) | SWCLK | +3.3V |
6 (blk) | GND | GND |
The board comes pre-installed with an ArduPilot compatible bootloader, allowing the loading of *.apj firmware files with any ArduPilot compatible ground station.
Thanks to PX4 for images used under the CC-BY 4.0 license