GHF13AIO - rotorflight/rotorflight GitHub Wiki

:exclamation: This page is outdated

Rotorflight Wiki is replaced by www.rotorflight.org.


The JHEMCU GHF13AIO is an F411-based FC with a built-in BLHeli_S 13A 4-in-1 ESC. It is an excellent choice for 2-4S on platforms such as the XK K120/K130 with a brushless tail, an Eachine E160 or the Blade 150S.

As a 4-in-1 AIO, this board is most suited to helicopters with a motorized tail. It is not recommended for servo-controlled tails: a non-AIO flight controller with one external ESC would be a better choice.

Suggested Wiring

First, create your servo wiring. Then wire up your flight controller according to this diagram.

Notes:

  • Both the RX2 and SBUS pad connect to UART2 RX, but the SBUS connection also includes an inverter which is needed for processing the SBUS signal on an F4.
  • If you want to use Blackbox Logging, you can use TX1 for this.
  • Servo 1 is the elevator (pitch) servo, servo 2 is left aileron servo and servo 3 is the right aileron servo.

Configure Resources

After flashing RF with the MATEKF411 board (the GHF13AIO claims to be a MATEKF411), apply custom defaults. Then paste this in the CLI in order to map the resources as suggested:

# remove resources
resource MOTOR 1     NONE
resource MOTOR 2     NONE
resource MOTOR 3     NONE
resource MOTOR 4     NONE
resource LED_STRIP 1 NONE
resource I2C_SCL 1   NONE
resource I2C_SDA 1   NONE

# resources
resource MOTOR 1     B05
resource MOTOR 2     B04
resource SERVO 1     A08
resource SERVO 2     B08
resource SERVO 3     B09

# timers
timer  B05   AF2     # M1 - pin B05: TIM3 CH2 (AF2)
timer  B04   AF2     # M2 - pin B04: TIM3 CH1 (AF2)
timer  A08   AF1     # S1 - pin A08: TIM1 CH1 (AF1)
timer  B08   AF3     # S2 - pin B08: TIM10 CH1 (AF3)
timer  B09   AF3     # S3 - pin B09: TIM11 CH1 (AF3)

# dma											
dma pin B05 0        # M1 - 0: DMA1 Stream 5 Channel 5
dma pin B04 0        # M2 - 0: DMA1 Stream 4 Channel 5
dma pin A08 0        # S1 - 0: DMA2 Stream 6 Channel 0

save

Alternative Wiring

If you want to wire your craft differently, you can use the Rotorflight Target Builder. Use File > Make a Copy to edit the spreadsheet. Set the resources like this to match the suggested wiring:

Now configure your resources as desired and paste the output of the Rotorflight Target Builder in the CLI.

Start Configuring

Configure your craft by roughly following the configuration steps detailed in the K110 with Play F4 walk-through, and adjust parameters if needed (e.g. the K130 has a 9T pinion and a 72T main gear).