libraries/AP_HAL_ChibiOS/hwdef/BETAFPV-F405-I2C/README.md
The BETAFPV F405 AIO is a flight controller produced by BETAFPV.
This version supports a compass via the TX3 (SCL) and RX3 (SDA) pins, but requires a hardware mod - see BETAFPV store
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.
| Name | Pin | Function |
|---|---|---|
| SERIAL0 | COMPUTER | USB |
| SERIAL1 | RX1/TX1 | UART1 (RX, DMA-enabled) |
| SERIAL4 | TX4/RX4 | UART4 (MSP DisplayPort) |
| SERIAL5 | RX5 | UART5 (SBUS, inverted and connected to RX-only) |
| SERIAL6 | TX6/RX6 | UART6 (GPS, DMA-enabled) |
RC input is configured on the on-board ELRS on UART3 or through (UART6_RX/UART6_TX) pins. It supports all serial RC protocols.
The BETAFPV F405 AIO supports OSD using OSD_TYPE 1 (MAX7456 driver).
The BETAFPV F405 AIO has 4 PWM outputs internally connected to its 4-in-1 ESC. The pads for motor output are M1 to M4 on the board. All 4 outputs support bi-directional DShot and DShot, as well as all PWM types. The default configuration is for bi-directional DShot using the already installed BlueJay firmware.
The PWM are in in two 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 builtin voltage sensor and a current sensor input tied to its 4 in 1 ESC current sensor. The voltage sensor can handle up to 6S LiPo batteries.
The correct battery setting parameters are:
These are set by default in the firmware and shouldn't need to be adjusted
The BETAFPV F405 AIO does not have a builtin compass.
The board has an IO pin on RELAY2 (GPIO pin 81). This then turns Buzz+ into a relay which can be used for controlling an external LED (e.g. on the Pavo 20 Pro)
The board includes a NeoPixel LED on the underside which is pre-configured to output ArduPilot sequences. This is the fifth PWM output.
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.