diff --git a/libraries/AP_HAL_ChibiOS/hwdef/StellarF4/README.md b/libraries/AP_HAL_ChibiOS/hwdef/StellarF4/README.md new file mode 100644 index 0000000000..368224f795 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/StellarF4/README.md @@ -0,0 +1,90 @@ +# StellarF4 Flight Controller + +https://stingbee.com.ua/flight_controllers/stellarf4 + + +## Features + Processor + STM32F405 + Sensors + ICM-42688p/BMI270 Acc/Gyro + DPS310/BMP280 barometer + AT7456E OSD + W25Q128 dataflash + Power + 6S Lipo input voltage with voltage monitoring + 12V, 3A BEC for powering Video Transmitter + 5V, 2A BEC for internal and peripherals + Interfaces + 9x PWM outputs DShot capable + 6x UARTs + 1x I2C + 2x ADC + SPI flash for logging + USB-C port + LED + Red, 3.3V power indicator + Green, FC status + Size + 41 x 41mm PCB with 30.5mm M3 mounting + + +## Overview + +![StellarF4](StellarF4_V1.png) + +## Wiring Diagram + + +## UART Mapping + +The UARTs are marked Rx* and Tx* in the above pinouts. The Rx* pin is the +receive pin for UART*. The Tx* pin is the transmit pin for UART*. + + - SERIAL0 -> USB + - SERIAL1 -> USART1 (User) + - SERIAL2 -> USART2 (Serial RC input) + - SERIAL3 -> USART3 (User) + - SERIAL4 -> UART4 (User) + - SERIAL5 -> USART3 (User) + - SERIAL6 -> USART6 (User) + + +## CAN and I2C + +StellarF4 supports I2C bus +multiple I2C peripherals can be connected to one I2C bus in parallel. + +## RC Input + +RC input is configured on the UART2(SERIAL2). It supports all serial RC protocols. SERIAL2_PROTOCOL=23 by default. + + +## OSD Support + +StellarF4 supports using its internal OSD using OSD_TYPE 1 (MAX7456 driver). External OSD support such as DJI or DisplayPort is supported using any spare UART. See :ref:`common-msp-osd-overview-4.2` for more info. + +## PWM Output + +StellarF4 supports up to 10 PWM outputs. All outputs support DShot. + + +## Battery Monitoring + +The board has 1 built-in voltage dividers and 1x current ADC. support external 3.3V based current sensor + + +## Compass + +StellarF4 does not have a built-in compass, but you can attach an external compass using I2C on the SDA and SCL pads. + + +## Loading Firmware +Firmware for these boards can be found at https://firmware.ardupilot.org in sub-folders labeled StellarH7V2. + +Initial firmware load can be done with DFU by plugging in USB with the +boot button pressed. Then you should load the "ardu*_with_bl.hex" firmware, using your favourite DFU loading tool. eg STM32CubeProgrammer + +Subsequently, you can update firmware with Mission Planner. + + diff --git a/libraries/AP_HAL_ChibiOS/hwdef/StellarF4/StellarF4_V1.png b/libraries/AP_HAL_ChibiOS/hwdef/StellarF4/StellarF4_V1.png new file mode 100644 index 0000000000..cc5ce562c1 Binary files /dev/null and b/libraries/AP_HAL_ChibiOS/hwdef/StellarF4/StellarF4_V1.png differ diff --git a/libraries/AP_HAL_ChibiOS/hwdef/StellarF4/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/StellarF4/hwdef-bl.dat index 3f17cde668..9ae9352114 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/StellarF4/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/StellarF4/hwdef-bl.dat @@ -5,7 +5,7 @@ MCU STM32F4xx STM32F405xx # board ID for firmware load -APJ_BOARD_ID 1500 +APJ_BOARD_ID AP_HW_StellarF4 # crystal frequency OSCILLATOR_HZ 8000000 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/StellarF4/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/StellarF4/hwdef.dat index 74ee98670b..3ad9769285 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/StellarF4/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/StellarF4/hwdef.dat @@ -6,7 +6,7 @@ MCU STM32F4xx STM32F405xx # board ID for firmware load -APJ_BOARD_ID 1500 +APJ_BOARD_ID AP_HW_StellarF4 # crystal frequency OSCILLATOR_HZ 8000000