Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP_HAL_ChibiOS: add new target Stellar H7V2 #28926

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

cvetaevvitaliy
Copy link
Contributor

add Stellar H7V2 target

@Hwurzburg
Copy link
Collaborator

Needs full readme with images and pinouts...see other recent hwdefs....should break out board id into separate PR that can be merged before this gets a review in order to reserve the board id...also use the text board name instead of number in the hwdefs

@cvetaevvitaliy
Copy link
Contributor Author

Needs full readme with images and pinouts...see other recent hwdefs....should break out board id into separate PR that can be merged before this gets a review in order to reserve the board id...also use the text board name instead of number in the hwdefs

Done

#28929

@cvetaevvitaliy cvetaevvitaliy changed the title add Stellar H7V2 target AP_HAL_ChibiOS: add new target Stellar H7V2 Dec 22, 2024
Copy link
Collaborator

@andyp1per andyp1per left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commits need to be squashed per subsystem and labeled according to our coding standards. Please see https://ardupilot.org/dev/docs/submitting-patches-back-to-master.html

define HAL_GPIO_B_LED_PIN 90

# order of UARTs (and USB)
SERIAL_ORDER OTG1 UART7 USART1 USART2 USART3 UART8 UART4 USART6
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not recommend changing the order here unless the silkscreen has the same numbering

PD9 USART3_RX USART3
PD8 USART3_TX USART3

# UART4 (spare)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RCIN according to the picture?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UART4

PD3 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW GPIO(70)

# Motors
PB0 TIM3_CH3 TIM3 PWM(1) GPIO(50)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should add bidir here

receive pin for UART*. The Tx* pin is the transmit pin for UART*.

- SERIAL0 -> USB
- SERIAL1 -> USART1 (User)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These need some better descriptions I think

# Motors
PB0 TIM3_CH3 TIM3 PWM(1) BIDIR GPIO(50)
PB1 TIM3_CH4 TIM3 PWM(2) GPIO(51)
PA0 TIM5_CH1 TIM5 PWM(3) GPIO(52)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should at least add it to PWM3 as well so that you can support a quad with bi-dir

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should come at the end of the line

Copy link
Collaborator

@Hwurzburg Hwurzburg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you will also need to squash the commits into one for the Tools library titled
Tools:add StellarH7V2

and one for the hwdef library titled
HWDEF: add StellarH7V2

Please make similar changes as from this review to PR#28925 StellarF4 and then I will review it also

DPS310/BMP280 barometer
AT7456E OSD
SD Card
W25N02G/1G dataflash
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unless this will be on the autopilot when we merge this, remove this line

SD Card
W25N02G/1G dataflash
Power
8S Lipo input voltage with voltage monitoring
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2S-8S?

12V, 3A BEC for powering Video Transmitter
5V, 2A BEC for internal and peripherals
Interfaces
10x PWM outputs DShot capable
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see only 8 outputs on the board, what am I missing?

12V, 3A BEC for powering Video Transmitter
5V, 2A BEC for internal and peripherals
Interfaces
10x PWM outputs DShot capable
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
10x PWM outputs DShot capable
10x PWM outputs DShot capable, 4 outputs BDShot capable

1x CAN
1x I2C
3x ADC
SD card and 128/256MB NAND for logging
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
SD card and 128/256MB NAND for logging
micro-SD card interface


## RC Input

RC input is configured on the UART4(SERIAL4). It supports all serial RC protocols. SERIAL2_PROTOCOL=23 by default.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
RC input is configured on the UART4(SERIAL4). It supports all serial RC protocols. SERIAL2_PROTOCOL=23 by default.
The default RC input is configured on the UART4 RX4 input and can be used for all ArduPilot supported unidirectional receiver protocols.
* PPM is not supported.
* SBUS/DSM/SRXL connects to the RX4 pin.
* FPort requires connection to TX4 and RX4 via a bi-directional inverter. See :ref:`common-FPort-receivers`.
* CRSF also requires a TX4 connection, in addition to RX6, and automatically provides telemetry.
* SRXL2 requires a connection to TX4 and automatically provides telemetry. Set :ref:`SERIAL4_OPTIONS<SERIAL4_OPTIONS>` to “4”.


## OSD Support

StellarH7V2 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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
StellarH7V2 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.
StellarH7V2 supports using its internal OSD using OSD_TYPE 1 (MAX7456 driver). Simulatenous DisplayPort OSD operation is preconfigured on SERIAL 6 but requires OSD_TYPE2 = 5. See :ref:`common-msp-osd-overview-4.2` for more info.

## PWM Output

StellarH7V2 supports up to 10 PWM outputs. All outputs support DShot.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
All the channels support DShot. Channels 1-4 support bi-directional DShot. PWM outputs are grouped and every group must use the same output protocol:
* 1, 2,are Group 1;
* 3 - 6 are Group 2;
* 7 - 9 are Group 3;

## Battery Monitoring

The board has 1 built-in voltage dividers and 2x current ADC. support external 3.3V based current sensor

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The voltage input is compatible with 2~8S LiPo batteries.
The default battery parameters are:
* :ref:`BATT_MONITOR<BATT_MONITOR>` = 4
* :ref:`BATT_VOLT_PIN<BATT_VOLT_PIN__AP_BattMonitor_Analog>` = 10
* :ref:`BATT_CURR_PIN<BATT_CURR_PIN__AP_BattMonitor_Analog>` = 11
* :ref:`BATT_VOLT_MULT<BATT_VOLT_MULT__AP_BattMonitor_Analog>` = 11
* :ref:`BATT_AMP_PERVLT<BATT_AMP_PERVLT__AP_BattMonitor_Analog>` = 10
* :ref:`BATT2_CURR_PIN<BATT2_CURR_PIN__AP_BattMonitor_Analog>` = 7


StellarH7V2 does not have a built-in compass, but you can attach an external compass using I2C on the SDA and SCL pads.


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to add section on Camera Switch:

Suggested change
## Camera Switch
GPIO 81 controls which camera input (CAM1 or CAM22 is applied to the internal OSD. A RELAY function can be enabled to control the switching.

@cvetaevvitaliy
Copy link
Contributor Author

cvetaevvitaliy commented Jan 9, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants