RuiBet F4 AIO 12A - rotorflight/rotorflight GitHub Wiki
:exclamation: This page is outdated
www.rotorflight.org.
Rotorflight Wiki is replaced byThe JHEMCU RuiBet F4 AIO is an F411 based 1-2S AIO with an integrated 12A 4-in-1 BLHeli_S ESC, 2 serial ports (UART 1 and UART 2), an I2C port (SDA/SCL) and an SBUS interface (inverted RX2).
Suggested Wiring
You can use this setup for most small double brushless helicopters:
- M2: motor 1 (main motor)
- M1: motor 2 (tail motor)
- LEDSTRIP: servo 1 (elevator)
- SDA: servo 2 (left aileron)
- SCL: servo 3 (right aileron)
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.
Resource Configuration
After flashing RF with the JHEF411 board, 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_SDA 1 NONE
resource I2C_SCL 1 NONE
# resources
resource MOTOR 1 A09
resource MOTOR 2 A08
resource SERVO 1 A15
resource SERVO 2 B09
resource SERVO 3 B08
resource SERVO 4 NONE
set tail_rotor_mode = MOTORIZED
# timers
timer A09 AF1 # M1 - pin A09: TIM1 CH2 (AF1)
timer A08 AF1 # M2/S4 - pin A08: TIM1 CH1 (AF1)
timer A15 AF1 # S1 - pin A15: TIM2 CH1 (AF1)
timer B09 AF2 # S2 - pin B09: TIM4 CH4 (AF2)
timer B08 AF2 # S3 - pin B08: TIM4 CH3 (AF2)
# dma
dma pin A09 0 # M1 - 0: DMA2 Stream 6 Channel 0
dma pin A08 0 # M2/S4 - 0: DMA2 Stream 6 Channel 0
dma pin A15 0 # S1 - 0: DMA1 Stream 5 Channel 3
# No dma on S2 pin and timer
dma pin B08 0 # S3 - 0: DMA1 Stream 7 Channel 2
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.