Post · 4 min read· pp. 52–58

madflight FC3 - RP2350B Flight Controller

Schematic

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 5V 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 ~ 6V (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 interal 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
  • 16MB Flash
  • 30 pins accessible via 2.54mm pinheader
  • 9 power and 9 ground pins
  • 5 additional GPIOs accessible via SMD pads
  • Gyro/Acc: ICM-42688-P Precision Gyro/Accelerometer
  • QMC5883P Magnetometer
  • BMP580 Precision Barometer (2cm noise @ 85Hz sample rate)
  • INA226 16-bit Battery Monitor (36V, 40A with 1.25mV, 1.25mA 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.2 mm max height)
  • Weight: 5.6 gr (without DC-DC)

DC-DC Converter (included)

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

Arduino IDE and PlatformIO Setup

See here

Betaflight Setup

See here

Pinout FC3

Set #define MF_BOARD "brd/madflight_FC3.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
22free
23free
24free
25free
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)
44free (SMD pad ADC4)
45free (SMD pad ADC5)
46RBGLED
47QMI_CS1 (for optional PSRAM)

SMD Pads

  • GPIO 33 (internal SDA)
  • GPIO 32 (internal SCL)
  • GPIO 44 (free)
  • GPIO 45 (free)
  • GPIO 46 (internal RGB LED)
  • BAT_INT Battery sensor interrupt pin
  • BAR_INT Barometer interrupt pin

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) share the same timer and have the same frequency.

Previous Versions of this Board

madflight FC1