Mamba Basic F405 Flight Controllers¶
The Mamba Basic line of flight controllers are produced by [Diatone](https://www.diatone.us).
- STM32F405RGT6 microcontroller
- MPU6000 IMU
- AT7456E OSD
- 4 UARTs
- 4 PWM outputs
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.
|SERIAL1||PPM/RX1/SBUS/TX1||UART1 (RC Input)|
The PPM pin, which by default is mapped to a timer input, can be used for all ArduPilot supported receiver protocols, except CRSF which requires a true UART connection. However, bi-directional protocols which include telemetry, such as SRXL2 and FPort, when connected in this manner, will only provide RC without telemetry.
To allow CRSF and embedded telemetry available in Fport, CRSF, and SRXL2 receivers, the SBUS pin can also be configured to be used as true UART1 RX pin for use with bi-directional systems by setting the BRD_ALT_CONFIG to “1” so it becomes the SERIAL1 port’s RX input pin.
With this option, SERIAL1_PROTOCOL must be set to “23”, and:
- PPM is not supported.
- SBUS/DSM/SRXL connects to the PPM pin, but SBUS is not supported without an external inverter.
- FPort requires connection to T1 and PPM(R1) via a bi-directional inverter. See FPort Receivers .
- CRSF also requires a T1 connection, in addition to PPM (R1), and automatically provides telemetry.
- SRXL2 requires a connection to T1 and automatically provides telemetry. Set SERIAL1_OPTIONS to “4”.
Any UART can be used for RC system connections in ArduPilot also, and is compatible with all protocols except PPM (SBUS requires external inversion). See Radio Control Systems for details.
The Mamba F405 MK2 supports up to 4 PWM outputs. The pads for motor output ESC1 to ESC4 on the above diagram are for the 4 outputs. All 4 outputs support DShot as well as all PWM types.
The outputs are all in one group.
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.
The board has a built-in voltage sensor. The voltage sensor can handle up to 6S LiPo batteries. An external current sense input is also provided.
The correct battery setting parameters are:
The Mamba Basic flight controllers do not have a builting compass, but you can attach an external compass using I2C on the SDA and SCL pads or refer to Compass-less Operation.
Firmware for this board can be found here in sub-folders labeled “MambaF405US-I2C”.
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. See Loading Firmware onto boards without existing ArduPilot firmware.
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.