Skip to content

Commit

Permalink
4.6:LongBowF405WING
Browse files Browse the repository at this point in the history
  • Loading branch information
Hwurzburg committed Nov 13, 2024
1 parent 3898ec0 commit d816895
Show file tree
Hide file tree
Showing 5 changed files with 161 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/source/docs/common-autopilots.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ Closed Hardware
iFlight Blitz Wing H743 <common-blitzh743wing>
iFlight Thunder H7 <common-iflight-thunder-H7>
JAE JFB-110 <common-jae-jfb110>
LongBowF405WING <common-longbowf405wing>
Mamba F405 MK2 <common-mamba405-mk2>
Mamba MK4 F405Mini <common-mambaf405-mini>
Mamba Basic F405 mk3 <common-mamba-basic-mk3>
Expand Down
160 changes: 160 additions & 0 deletions common/source/docs/common-longbowf405wing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
.. _common-longbowf405wing:

===============
LongBowF405WING
===============

The LongBowF405WING is a flight controller produced by `lefei rc <http://www.lefeirc.com/>`_.

Specifications
==============

- **Processor**

- STM32F405RGT6 ARM (168MHz)
- AT7456E OSD
- Internal Wireless Telemetry Module


- **Sensors**

- ICM-42688P IMU (accel, gyro)
- SPL-06 barometer

- **Power**

- 2S - 6S Lipo input voltage with voltage monitoring
- 120A Cont., 215A peak current monitor
- 9V/12/5V, 1.8A BEC for powering Video Transmitter controlled by GPIO
- 4.9V/6V/7.2V, 6A BEC for servos
- 5V, 2.4A BEC for internal and peripherals

- **Interfaces**

- 12x PWM outputs DShot capable (Serail LED output is PWM12)
- 1x RC input
- 5x UARTs/serial for GPS and other peripherals, 6th UART internally tied to Wireless board)
- I2C port for external compass, airspeed, etc.
- microSDCard for logging, etc.
- USB-C port


Pinout
======


.. image:: ../../../images/LongBowF405WING-top-bd.png
:target: ../_images/LongBowF405WING-top-bd.png

.. image:: ../../../images/LongBowF405WING-mid-bd.jpg
:target: ../_images/LongBowF405WING-mid-bd.jpg

.. image:: ../../../images/LongBowF405WING-bot-bd.png
:target: ../_images/LongBowF405WING-bot-bd.png


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
* SERIAL1 -> USART1 (User) (DMA capable)
* SERIAL2 -> USART2 (RX tied to inverted SBUS RC input, but can be used as normal UART if :ref:`BRD_ALT_CONFIG<BRD_ALT_CONFIG>` = 1)
* SERIAL3 -> UART3 (GPS) (TX DMA capable)
* SERIAL4 -> UART4 (User) (TX DMA capable)
* SERIAL5 -> UART5 (DisplayPort, available on DJI air unit connector) (TX DMA capable)
* SERIAL6 -> UART6 (tied to internal wireless module, MAVLink2 telem)

RC Input
========

RC input is configured on the SBUS pin (inverted and sent to UART2_RX). It supports all RC
protocols except serial protocols such as CRSF, ELRS, etc. Those devices can be connected to USART1 TX and RX, instead setting :ref:`SERIAL1_PROTOCOL<SERIAL1_PROTOCOL>` = 23.

Fport can be connected to USART1 TX also, but will require an external bi-directional inverter and the :ref:`SERIAL1_OPTIONS<SERIAL1_OPTIONS>` = 4 (HalfDuplex) set.

OSD Support
===========

The LongBowF405WING supports using its internal OSD using OSD_TYPE 1 (MAX7456 driver). External OSD support such DisplayPor is setup by default using UART5. Simultaneous use of the internal OSD and Displayport is allowed. See :ref:`common-msp-osd-overview-4.2` for more info.

PWM Output
==========

The LongBowF405WING supports up to 12 PWM outputs .
All outputs support DShot.

The PWM is in 5 groups:


* PWM 1,2 in group1
* PWM 3,4 in group2
* PWM 5-6 in group3
* PWM 7-9 in group4
* PWM 10-12 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 that group would need
to use DShot.

Battery Monitoring
==================

The board has a built-in voltage sensor and current sensor. The current
sensor can read up to 120A continuosly, 160 Amps peak. The voltage sensor can handle up to 6S
LiPo batteries.

The correct battery setting parameters are set by default and are:

Enable Battery monitor.

:ref:`BATT_MONITOR<BATT_MONITOR>` =4

Then reboot.

:ref:`BATT_VOLT_PIN<BATT_VOLT_PIN>` 10

:ref:`BATT_CURR_PIN<BATT_CURR_PIN>` 11

:ref:`BATT_VOLT_MULT<BATT_VOLT_MULT>` 11.0

:ref:`BATT_AMP_PERVLT<BATT_AMP_PERVLT>` 50

Compass
=======

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

VTX power control
=================

GPIO 81 controls the VTX BEC output to pins marked "9V" and "Vs1". Setting a RELAY function to this pin and turning it "ON" will remove the supply from these pins.

Camera Switch
=============

GPIO 82 controls which camera input (CC1 or C2 is applied to the internal OSD. A RELAY function can be enabled to control the switching.

Buzzer
======

An active buzzer output is provided and is controlled as GPIO 80

Firmware
========

Firmware for these boards can be found at https://firmware.ardupilot.org in sub-folders labeled LongBowF405WING.

Loading Firmware
================

Initial firmware load can be done with DFU by plugging in USB with the
boot button pressed. Then you should load the "LongBowF405WING_bl.hex"
firmware, using your favourite DFU loading tool.

Subsequently, you can update firmware with Mission Planner.

[copywiki destination="plane,copter,rover,blimp"]
Binary file added images/LongBowF405WING-bot-bd.png
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 images/LongBowF405WING-mid-bd.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 images/LongBowF405WING-top-bd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d816895

Please sign in to comment.