Post · 5 min read· pp. 43–51

madflight FC3v2 - RP2350B Flight Controller

Schematic Rev-B/C Schematic Rev-A

Buy

This is a Raspberry Pi Pico2 on steroids. Use it as a flight controller, or for a project that requires precise orientation sensing with the on-board 10DOF best-in-class sensors.

The layout of the pins is similar to the Raspberry Pi Pico2, but with added power pins to make it easy to connect external components like RC receivers, GPS with compass, 4-in-1 ESC, Servos, Radars, etc.

Easy mounting: Use the standard 30.5mm x 30.5mm mounting holes to fit your drone frame. Or use double sided tape to mount the board, the board has no components on the back.

Power the board directly from 3 ~ 5.5V (eg. USB or 1S LiPo), or use the included DC-DC converter to connect larger batteries. For added flexibility the DC-DC converter board can be top or bottom mounted.

Even when using all internal functions, the external pins can be used for:

  • 22 PWM pins
  • 8 DSHOT pins
  • 6 Serial Ports (2 Hardware + 4 PIO UARTs)
  • 1 I2C Port
  • 1 SPI Port
  • 6 ADC pins

Specifications

madflight FC3

  • RP2350B with 48 GPIO
  • 2MB [Rev-C], or 16MB [A/B] Flash
  • 30 GPIO pins accessible via 2.54mm pinheader
  • 9 power and 9 ground pins
  • LSM6DSV [Rev-C], LSM6DSV16B [B], or ICM-45686 [A] high-performance 6-axis IMU
  • MMC5603NJ high performance magnetometer (20-bit, 0.0625mG per LSB, 2 mG total RMS noise, Enables heading accuracy of 1º)
  • BMP580 Precision Barometer (2cm noise @ 85Hz sample rate)
  • INA226 16-bit Battery Monitor (-40A to +40A with 1.25mA resolution, 0-36V with with 1.25mV resolution)
  • WS2812B RGB LED
  • SDCARD with click mechanism and fast 4-bit SDIO interface
  • Optional PSRAM or second Flash (empty SO-8 socket on back of board)
  • Standard 30.5 x 30.5 mm mounting with 4x Φ4mm holes, with grommets Φ3mm
  • Dimensions: 50.7 x 41.6 mm (4.4 mm max height)
  • Weight: 6.3 gr (without DC-DC)

DC-DC Converter (option)

  • Output: 5V 2A continous / 3A peak
  • Input: 6.5 ~ 20V
  • Dimensions: 20 x 10 x 5 mm
  • Weight: 1.8 gr

IMPORTANT: Cut the ADJ trace and solder the 5V jumper before assembly!

Arduino IDE and PlatformIO Setup

See here

Betaflight Setup

Betaflight supports the RP2350 based madflight FC3 Rev-A flight controller, see Betaflight announcement

Not all Betaflight features are supported yet for RP2350, but:

Open app.betaflight.com with a Chrome browser to configure your FC3. Note: the Betaflight PC Configurator is history.

Betaflight firmware upload instructions:

  • Open app.betaflight.com with a Chrome browser
  • Click "Update Firmware"
  • Enable switches "Enable Expert Mode" and "Show release candidates"
  • Select "Development"
  • Select board "MADFLIGHT_FC3"
  • Press "Load Firmware[Online]"
  • Place the FC3 in boot mode (press BOOT button, press+release RST button, release BOOT button)
  • Press "Flash Firmware", and in the save-as popup select the RP2350 drive
  • Press "Connect" and configure your FC3 board

Note: if your motors run erratic when disarmed, put #14864 (pull request number) in the Select commit field in the Firmware Flasher tab (you need to Enable expert mode, Show release candidates and Development).

Pinout FC3v2

Set #define MF_BOARD "brd/madflight_FC3v2.h" to use this configuration, it can be modified with madflight_config configuration settings in your program.

GPIODefault External Pin FunctionInternal Function
0SER0_TX (connect to radio receiver RX)
1SER0_RX (connect to radio receiver TX)
2I2C1_SDA (connect to GPS SDA)
3I2C1_SCL (connect to GPS SCL)
4SER1_TX (connect to GPS RX)
5SER1_RX (connect to GPS TX)
6OUT0 (connect to ESC for motor 1)
7OUT1 (connect to ESC for motor 2)
8OUT2 (connect to ESC for motor 3)
9OUT3 (connect to ESC for motor 4)
10free
11free
12free
14free
15free
16free
17free
18free
19free
20free
21free
22freeRev-B+ jumper Vusb Sense
23freeRev-B+ jumper BAR_INT
24freeRev-B+ jumper BAT_INT
25freeRev-B+ jumper SD Card Detect
26IMU_CLKIN
27IMU_INT
28IMU_SPI1_MISO
29IMU_CS
30IMU_SPI1_SCLK
31IMU_SPI1_MOSI
32I2C0_SDA (bar,bat,mag)
33I2C0_SCL (bar,bat,mag)
34SD_SDIO_CLK or SD_SPI0_SLCK
35SD_SDIO_CMD or SD_SPI0_MOSI
36SD_SDIO_D0 or SD_SPI0_MISO
37SD_SDIO_D1
38SD_SDIO_D2
39SD_SDIO_D3 or SD_SPI0_CS
40free (ADC0)
41free (ADC1)
42free (ADC2)
43free (ADC3)
44100k/10k Vbat voltage divider
45Blue LED
46RBG LED
47QMI_CS1 (for optional PSRAM)

SMD Pads

  • GPIO 33 (internal SDA)
  • GPIO 32 (internal SCL)
  • GPIO 46 (internal RGB LED)

RP2350B Hardware

RP2350B is the 80 pin / 48 GPIO variant of the Raspberry Pi RP2350 processor.

RP2350 has dual core processors with dual single precision FPUs.

madflight uses a custom Serial library, because the default Arduino Serial transmitter blocks after sending a couple bytes. Something we don't want.

madflight uses FreeRTOS and executes the IMU loop on the second core. The first core is used for the other sensors.

madflight Limitiations

  • OUT: Consecutive even/odd PWM pins (e.g. pins 2,3 or 10,11) on the RP2350 share the same timer and have the same frequency.

Previous Versions of this Board

madflight FC3v1 madflight FC1