Post · 2 min read· pp. 38–42

madflight FC1 - RP2350B Flight Controller

Schematic

Buy

Specifications

madflight FC1

  • MCU: RP2350B with 48 GPIO, 32 GPIO accessible via pinheader
  • Gyro/Acc: ICM-42688-P
  • Magnetometer: QMC6309
  • Barometer: HP203B
  • Batery Monitor: INA226
  • Black Box: MicroSD (1-bit SPI or 4-bit SDIO)
  • PSRAM: Optional (empty SO-8 socket on back of board)
  • Dimensions: 57.6 x 42 mm
  • Weight: 7.5 gr (without pins, DC-DC)

Optional DC-DC Converter

  • 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 FC1

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

GPIOExternal 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)
6free
7OUT0 (connect to ESC for motor 1)
8free
9OUT1 (connect to ESC for motor 2)
10free
11OUT2 (connect to ESC for motor 3)
12free
13OUT3 (connect to ESC for motor 4)
14free
15OUT4
16free
17OUT5
18free
19OUT6
20free
21OUT7
22free
23free
24free
25free
26MAG_INT
27IMU_INT
28SPI1_MISO (imu)
29IMU_CS
30SPI1_SCLK (imu)
31SPI1_MOSI (imu)
32I2C0_SDA (bar,bat,mag)
33I2C0_SCL (bar,bat,mag)
34SDIO_CLK/SPI0_SLCK (bbx)
35SDIO_CMD/SPI0_MOSI (bbx)
36SDIO_D0/SPI0_MISO (bbx)
37SDIO_D1 (bbx)
38SDIO_D2 (bbx)
39SDIO_D3/SPI0_CS (bbx)
40free (ADC)
41free (ADC)
42free (ADC)
43free (ADC)
44free (ADC)
45free (ADC)
46BAR_INT
47QMI_CS1 (for optional PSRAM)

RP2350B Hardware

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

RP2350 has dual core processor, plus dual single precision FPUs.

madflight uses float and is much happier with RP2350 than with RP2040 !

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 1000Hz 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.