AP_HAL_ChibiOS: iFlight BLITZ Mini F745

This commit is contained in:
Andy Piper 2024-04-12 16:29:53 +01:00 committed by Randy Mackay
parent 7c613bb45a
commit d549a93d81
5 changed files with 108 additions and 0 deletions

View File

@ -0,0 +1,89 @@
# iFlight BLITZ Mini F745 Flight Controller
https://shop.iflight.com/BLITZ-Mini-F745-Flight-Controller-Pro2142
The BLITZ Mini F745 is a flight controller produced by [iFlight](https://shop.iflight-rc.com/).
## Features
- MCU: BGA-STM32F745, 216MHz
- Gyro: ICM42688
- 16Mbytes Onboard Flash
- BEC output: 5V 2.5A
- Barometer: DPS310
- OSD: AT7456E
- 6 UARTS: (UART1, UART2, UART3, UART4, UART5, UART6)
- I2C for external compass.
- 5 PWM outputs (4 motor outputs and 1 LED output)
## Pinout
![BLITZ Mini F745 Board](blitz_f7_pinout.jpg "BLITZ Mini F745")
## 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.
|Name|Pin|Function|
|:-|:-|:-|
|SERIAL0|COMPUTER|USB|
|SERIAL1|RX1/TX1|UART1 (DJI connector)|
|SERIAL2|TX2/RX2|UART2 (RX, DMA-enabled)|
|SERIAL3|TX3/RX3|UART3 (GPS, DMA-enabled)|
|SERIAL4|TX4/RX4|UART4|
|SERIAL5|TX5/RX5|UART5|
|SERIAL6|RX6|UART6 (ESC telemetry)|
## RC Input
RC input is configured on the (UART2_RX/UART2_TX). It supports all serial RC protocols.
## OSD Support
The BLITZ Mini F745 supports OSD using OSD_TYPE 1 (MAX7456 driver).
## PWM Output
The BLITZ Mini F745 has 5 PWM outputs. The motor outputs M1-M4 are in the ESC connector housing. All 5 outputs support DShot and the first four outputs support bi-directional DShot as well as all PWM types. Output 5 is the "LED" pin and is configured for serial LED by default.
The PWM are in two groups:
- PWM 1-4 in group1
- PWM 5 in group2
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 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:
- BATT_MONITOR 4
- BATT_VOLT_PIN 12
- BATT_VOLT_MULT 11
- BATT_CURR_PIN 13
- BATT_CURR_MULT 50
These are set by default in the firmware and shouldn't need to be adjusted
## Compass
The BLITZ Mini F745 does not have a builtin compass, but you can attach an external compass to I2C pins.
## NeoPixel LED
The board includes a NeoPixel LED on the underside which is pre-configured to output ArduPilot sequences. This is the fifth PWM output.
## 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.

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

View File

@ -0,0 +1,4 @@
# setup for LEDs on chan5
SERVO5_FUNCTION 120
NTF_LED_TYPES 257
OSD_TYPE2 5

View File

@ -0,0 +1,4 @@
include ../BlitzF745/hwdef-bl.dat
APJ_BOARD_ID AP_HW_BlitzF7Mini

View File

@ -0,0 +1,11 @@
include ../BlitzF745/hwdef.dat
APJ_BOARD_ID AP_HW_BlitzF7Mini
undef IMU
undef PE9 PE11 PE13 PE14 PC9
IMU Invensensev3 SPI:imu1 ROTATION_ROLL_180_YAW_135
# LEDs
PC9 TIM8_CH4 TIM8 PWM(5) GPIO(54) # M5