-
Notifications
You must be signed in to change notification settings - Fork 18k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hwdef: Add Aocoda-RC-H743Dual target
- Loading branch information
Showing
7 changed files
with
566 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+908 KB
...s/AP_HAL_ChibiOS/hwdef/Aocoda-RC-H743Dual/Aocoda-RC-H743Dual_Wiring_Diagram.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+191 KB
libraries/AP_HAL_ChibiOS/hwdef/Aocoda-RC-H743Dual/Aocoda-RC-H743Dual_bottom.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+283 KB
libraries/AP_HAL_ChibiOS/hwdef/Aocoda-RC-H743Dual/Aocoda-RC-H743Dual_top.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
99 changes: 99 additions & 0 deletions
99
libraries/AP_HAL_ChibiOS/hwdef/Aocoda-RC-H743Dual/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
# Aocoda-RC-H743Dual Flight Controller | ||
|
||
The Aocoda-RC-H743Dual is a flight controller produced by [Aocoda-RC](https://www.aocoda-rc.com/). | ||
|
||
## Features | ||
|
||
- MCU:STM32H743VIH6 | ||
- Gyro:MPU6000/BIM270x2 | ||
- Baro:DPS310/MS56XX/BMP280 | ||
- Blackbox:128MB | ||
- PWM output:10CH | ||
- Servo:2CH | ||
- UART:8CH | ||
- Power Supply:3-6SLipo | ||
- BEC Output:5V/2.5A, 9V/3A | ||
- USB Connector: Type-C | ||
- Weight:8.8g | ||
- Size:37mm x 37mm | ||
- Mounting Hole:30.5mm x 30.5mm | ||
|
||
## Pinout | ||
|
||
|
||
![Aocoda-RC-H743Dual Top](Aocoda-RC-H743Dual_top.jpg "Aocoda-RC-H743Dual Top") | ||
![Aocoda-RC-H743Dual Bottom](Aocoda-RC-H743Dual_bottom.jpg "Aocoda-RC-H743Dual Bottom") | ||
![Aocoda-RC-H743Dual Wiring](Aocoda-RC-H743Dual_Wiring_Diagram.jpg "Aocoda-RC-H743Dual Wiring") | ||
|
||
|
||
## 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. | ||
|
||
- SERIAL0 -> USB (primary mavlink, usually USB) | ||
- SERIAL1 -> UART1 (RC input) | ||
- SERIAL2 -> UART2 (Telemetry) | ||
- SERIAL3 -> UART3 (GPS) | ||
- SERIAL4 -> UART4 (VTX) | ||
- SERIAL5 -> not available | ||
- SERIAL6 -> UART6 (ESC Telemetry) | ||
- SERIAL7 -> UART7 | ||
- SERIAL8 -> UART8 | ||
|
||
## RC Input | ||
|
||
RC input is configured on the R1 (UART1_RX) pin. It supports all RC protocols. For protocols requiring half-duplex serial to transmit telemetry (such as CRSF/FPort) you should set BRD_ALT_CONFIG=1 and setup SERIAL1 as an RC input serial port, with half-duplex, pin-swap | ||
and inversion enabled. | ||
|
||
## FrSky Telemetry | ||
|
||
FrSky Telemetry is supported using the Tx pin of any UART including SERIAL1/UART1 . You need to set the following parameters to enable support for FrSky S.PORT (example shows SERIAL1). Note this assumes the RC input is using default (ALT_BRD_CONFIG =0). Obviously, if using ALT_BRD_CONFIG = 1 for full duplex RC protocols, you must a different UART for FrSky Telemetry. | ||
|
||
- SERIAL1_PROTOCOL 10 | ||
- SERIAL1_OPTIONS 7 | ||
|
||
## OSD Support | ||
|
||
The Aocoda-RC-H743Dual supports OSD using OSD_TYPE 1 (MAX7456 driver). | ||
|
||
## PWM Output | ||
|
||
The Aocoda-RC-H743Dual supports up to 10 PWM outputs. The pads for motor output S1 to S10 on the two motor connectors. | ||
|
||
The PWM is in 5 groups: | ||
|
||
- PWM 1, 2 in group1 | ||
- PWM 3, 4 in group2 | ||
- PWM 5, 6 in group3 | ||
- PWM 7, 8 in group4 | ||
- PWM 9, 10 in group5 | ||
|
||
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 built-in voltage and current sensor. The current sensor can read up to 130 Amps. The voltage sensor can handle from 3S to 6S LiPo batteries. | ||
|
||
The correct battery setting parameters are: | ||
|
||
- BATT_MONITOR 4 | ||
- BATT_VOLT_PIN 10 | ||
- BATT_CURR_PIN 11 | ||
- BATT_VOLT_MULT 11 | ||
|
||
Please calibrate before use amp parameters. | ||
|
||
- BATT_AMP_PERVLT 17.0 | ||
|
||
*Note: Please check carefully before use BATT_AMP_PERVLT, as voltage divider circuit for data collection is at ESC/BEC side* | ||
|
||
## Compass | ||
|
||
The Aocoda-RC-H743Dual does not have a built-in compass, but you can attach an external compass using I2C on the SDA and SCL pads. | ||
|
||
## 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. | ||
|
4 changes: 4 additions & 0 deletions
4
libraries/AP_HAL_ChibiOS/hwdef/Aocoda-RC-H743Dual/defaults.parm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# logging | ||
LOG_BACKEND_TYPE 4 | ||
LOG_FILE_BUFSIZE 4 | ||
|
48 changes: 48 additions & 0 deletions
48
libraries/AP_HAL_ChibiOS/hwdef/Aocoda-RC-H743Dual/hwdef-bl.dat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# hw definition file for processing by chibios_pins.py | ||
# | ||
|
||
# MCU class and specific type | ||
MCU STM32H7xx STM32H743xx | ||
|
||
# board ID for firmware load | ||
APJ_BOARD_ID AP_HW_AOCODA-RC-H743DUAL | ||
|
||
# crystal frequency, setup to use external oscillator | ||
OSCILLATOR_HZ 8000000 | ||
|
||
FLASH_SIZE_KB 2048 | ||
|
||
# bootloader starts at zero offset | ||
FLASH_RESERVE_START_KB 0 | ||
|
||
# use last 2 pages for flash storage | ||
# H743 has 16 pages of 128k each | ||
STORAGE_FLASH_PAGE 14 | ||
|
||
# the location where the bootloader will put the firmware | ||
# the H743 has 128k sectors | ||
FLASH_BOOTLOADER_LOAD_KB 128 | ||
|
||
|
||
# order of UARTs (and USB). Allow bootloading on USB and telem1 | ||
SERIAL_ORDER OTG1 #UART7 | ||
|
||
# UART7 (telem1) | ||
#PE7 UART7_RX UART7 NODMA | ||
#PE8 UART7_TX UART7 NODMA | ||
|
||
# PA10 IO-debug-console | ||
PA11 OTG_FS_DM OTG1 | ||
PA12 OTG_FS_DP OTG1 | ||
|
||
PA13 JTMS-SWDIO SWD | ||
PA14 JTCK-SWCLK SWD | ||
|
||
PE3 LED_BOOTLOADER OUTPUT LOW | ||
define HAL_LED_ON 0 | ||
|
||
# Add CS pins to ensure they are high in bootloader | ||
PC15 IMU1_CS CS | ||
PB12 MAX7456_CS CS | ||
PE11 IMU2_CS CS | ||
PD3 FLASH_CS CS |
Oops, something went wrong.