mirror of https://github.com/ArduPilot/ardupilot
99 lines
2.7 KiB
Markdown
99 lines
2.7 KiB
Markdown
|
# FoxeerF405v2 Flight Controller
|
||
|
|
||
|
The FoxeerF405v2 is a flight controller produced by [Foxeer](https://www.foxeer.com/).
|
||
|
|
||
|
## Features
|
||
|
|
||
|
- MCU - STM32F405 32-bit processor
|
||
|
- IMU - ICM42688
|
||
|
- Barometer - DPS310
|
||
|
- OSD - AT7456E
|
||
|
- Onboard Flash: 128Mbit
|
||
|
- 6x UARTs
|
||
|
- 9x PWM Outputs (8 Motor Output, 1 LED)
|
||
|
- Battery input voltage: 2S-8S
|
||
|
- BEC 3.3V 0.5A
|
||
|
- BEC 5V 2A
|
||
|
- BEC 10V 2A
|
||
|
|
||
|
## Pinout
|
||
|
|
||
|
![FoxeerF405v2 Board](FoxeerF405v2.jpg "FoxeerF405v2")
|
||
|
|
||
|
## UART Mapping
|
||
|
|
||
|
The UARTs are marked Rn and Tn in the above pinouts. The Rn pin is the
|
||
|
receive pin for UARTn. The Tn pin is the transmit pin for UARTn.
|
||
|
|
||
|
- SERIAL0 -> USB
|
||
|
- SERIAL1 -> UART1 (ESC Telemetry)
|
||
|
- SERIAL2 -> UART2 (RX, DMA-enabled)
|
||
|
- SERIAL3 -> UART3 (VTX)
|
||
|
- SERIAL4 -> UART4
|
||
|
- SERIAL5 -> UART5 (GPS, DMA-enabled)
|
||
|
- SERIAL6 -> UART6
|
||
|
|
||
|
## RC Input
|
||
|
|
||
|
RC input is configured by default on the R2 (UART2_RX) pad. It supports all serial RC
|
||
|
protocols. For protocols requiring separate half-duplex serial to transmit
|
||
|
telemetry (such as FPort) you should setup SERIAL1 as an RC input serial port,
|
||
|
with half-duplex, pin-swap and inversion enabled.
|
||
|
|
||
|
## FrSky Telemetry
|
||
|
|
||
|
FrSky Telemetry can be supported using the T1 pin (UART1 transmit). You need to set the following parameters to enable support for FrSky S.PORT
|
||
|
|
||
|
- SERIAL1_PROTOCOL 10
|
||
|
- SERIAL1_OPTIONS 7
|
||
|
|
||
|
## OSD Support
|
||
|
|
||
|
The FoxeerF405v2 supports OSD using OSD_TYPE 1 (MAX7456 driver) or OSD_TYPE 3 if using DJI OSD
|
||
|
|
||
|
## PWM Output
|
||
|
|
||
|
The FoxeerF405v2 supports up to 9 PWM outputs. The pads for motor output
|
||
|
M1 to M8 are provided on both the motor connectors and on separate pads, plus
|
||
|
M9 on a separate pad for LED strip or another PWM output.
|
||
|
|
||
|
The PWM is in 4 groups:
|
||
|
|
||
|
- PWM 1,4 in group1
|
||
|
- PWM 2,3 in group2
|
||
|
- PWM 5,9 in group3
|
||
|
- PWM 6-8 in group4
|
||
|
|
||
|
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.
|
||
|
|
||
|
## Battery Monitoring
|
||
|
|
||
|
The board has a builting voltage and current sensor. The current
|
||
|
sensor can read up to 130 Amps. The voltage sensor can handle up to 8S
|
||
|
LiPo batteries.
|
||
|
|
||
|
The correct battery setting parameters are:
|
||
|
|
||
|
- BATT_MONITOR 4
|
||
|
- BATT_VOLT_PIN 10
|
||
|
- BATT_CURR_PIN 11
|
||
|
- BATT_VOLT_MULT 11
|
||
|
- BATT_AMP_PERVLT 142.9
|
||
|
|
||
|
## Compass
|
||
|
|
||
|
The FoxeerF405v2 does not have a builtin compass, but you can attach an external compass using I2C on the SDA and SCL pads.
|
||
|
|
||
|
## Loading Firmware
|
||
|
|
||
|
Initial firmware load can be done with DFU by plugging in USB with the
|
||
|
bootloader button pressed. Then you should load the "with_bl.hex"
|
||
|
firmware, using your favourite DFU loading tool.
|
||
|
|
||
|
Once the initial firmware is loaded you can update the firmware using
|
||
|
any ArduPilot ground station software. Updates should be done with the
|
||
|
*.apj firmware files.
|
||
|
|