Skip to the content
2 layers120.8 × 59.4 mmController, the printed circuit board in 3D

STM32F405 Flight Controller and NRF24 Transmitter

Size
120.8 × 59.4 mm
Copper layers
2
Thickness
1.6 mm
Parts
11
Nets
46
Pads
95
Tracks, vias
215, 22
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
28 Aug 2026
Updated
30 Aug 2026

Overview

Controller is an open-source printed circuit board by Harshil200619, from the Harshil200619/STM32-Custom-Drone repository on GitHub. It is a 2-layer board of 120.8 × 59.4 mm with 11 parts on 46 nets, routed with 215 tracks and 22 vias.

It is built around the AP2112K-3.3 and RKJXV122400R. Its parts include 4 connectors, 3 capacitors, 3 switches and 1 IC. It belongs with the robots and motor control boards of this library.

Main components

2

README

README.md

Custom STM32F405 Quadcopter & NRF24 Transmitter

This repository contains the complete hardware schematics (KiCad) and flight firmware (C++/Arduino) for a custom-designed drone system. This project bypasses off-the-shelf flight controllers by using a scratch-built STM32F405 receiver board paired with a custom NRF24L01+ remote transmitter.

🌟 Project Highlights

  • Custom Receiver PCB: An STM32F405RGT6-based flight controller designed in KiCad, integrating brushed motor MOSFETs, an MPU6050 IMU, and an NRF24L01+ radio.
  • Rock-Solid RF Link: High-speed 250kbps NRF24L01+ communication with Auto-ACK enabled for guaranteed packet delivery and real-time telemetry/LED connection status.
  • Advanced Firmware: Custom 250Hz non-blocking PID loop, dual-slope hover throttle mapping, and hardware-specific workarounds to eliminate timer and I2C/SPI bus collisions.

The Receiver (STM32 Flight Controller)

The receiver board is a custom PCB designed to handle RF decoding, IMU processing, and high-frequency motor driving simultaneously without hardware locking.

Hardware Architecture & Pinout:

  • MCU: STMicroelectronics STM32F405RGT6 (Arm Cortex-M4, 168 MHz).
  • Radio (Hardware SPI2): NRF24L01+ explicitly wired to PB13 (SCK), PB14 (MISO), and PB15 (MOSI) to prevent clock collisions with motor timers.
  • IMU (Custom I2C): MPU6050 gyro/accelerometer mapped to PA5 (SCL) and PA7 (SDA) running at 100kHz for reliable boot-up calibration.
  • Power Delivery: AP2112K-3.3 LDO regulator with low-ESR bulk capacitors to prevent gate-drive voltage collapse during heavy motor loads.
  • Motor Drivers: 4x N-Channel MOSFETs (AO3400A / IRLML6344) driving coreless brushed motors on standard timer pins PA0, PA1, PA2, and PA3.

Firmware Features:

  • Non-Blocking 250Hz Control Loop: A strict 4000µs flight timer ensures the PID loop runs consistently without starving the NRF24 radio of polling time.
  • Thermal Mitigation: PWM frequency is lowered to 8kHz to cut MOSFET switching losses by 50%.
  • Slew-Rate Limiting: Software throttle ramping prevents massive inrush current spikes that cause 3.3V LDO brownouts and resets.
  • Dual-Slope Throttle Curve: Mid-stick (50%) on the remote is mathematically anchored to the drone's exact Hover PWM limit for smooth, predictable altitude control.
  • Anti-Windup on Ground: I-term accumulation is mathematically locked to 0 while the drone is idling on the ground, preventing it from flipping on takeoff.

The Transmitter (Remote Controller)

The transmitter reads raw analog inputs from joystick gimbals and securely transmits them to the drone.

Features:

  • Fast ADC Reading: Uses 12-bit analog reads with bit-shifting to smooth out joystick noise.
  • Payload Structuring: Packages Throttle, Yaw, Pitch, and Roll into a tight, lightweight DataPacket struct.
  • Real-Time Link Validation: The transmitter enforces setAutoAck(true). If a packet fails to reach the drone, the onboard LED flashes rapidly to warn the pilot of signal degradation.

Repository Structure

text
├── Firmware/
│   ├── Receiver_Code/      # Flight controller code (PID, IMU, NRF24 RX)
│   └── Transmitter_Code/   # Joystick controller code (ADC, NRF24 TX)
│
├── Hardware/               # KiCad schematics, board layout (.kicad_pcb), and Netlists
│
└── README.md

Parts

11
QtyValueFootprintReferences
310uFCapacitor_SMD:C_0805_2012MetricC1, C2, C3
2RKJXV122400RRKJXV122400R:SW_RKJXV122400RS1, S2
1AP2112K-3.3Package_TO_SOT_SMD:SOT-23-5U1
1Conn_01x02Connector_JST:JST_PH_B2B-PH-K_1x02_P2.00mm_VerticalJ4
1Conn_01x20_SocketConnector_PinHeader_2.54mm:PinHeader_1x20_P2.54mm_VerticalJ2
1Conn_01x20_SocketConnector_PinSocket_2.54mm:PinSocket_1x20_P2.54mm_VerticalJ1
1Conn_02x04_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x04_P2.54mm_VerticalJ3
1SW_Slide_DPDTButton_Switch_SMD:SW_DIP_SPSTx01_Slide_6.7x4.1mm_W6.73mm_P2.54mm_LowProfile_JPinSW1

More from Harshil200619/STM32-Custom-Drone

1
  • 2 layers52.7 × 52 mmReciever, the printed circuit board in 3D

    Reciever

    Harshil200619/STM32-Custom-Drone

    STM32F405 Flight Controller and NRF24 Transmitter

    56 parts

Similar boards

  • 2 layers316 × 119 mmTeensy Grovebox, the printed circuit board in 3D

    Teensy Grovebox

    jerry20091103/Teensy_Grovebox

    A portable synth and music multi-tool made with Teensy 4.1

    142 parts150MIT
  • 2 layers321.8 × 129.3 mmPico keyboard v1, the printed circuit board in 3D

    Pico keyboard v1

    zli117/Pico-Keyboard

    Hardware design for a mechanical keyboard based on RP2040

    160 parts104CC-BY-SA-4.0
  • 2 layers245.3 × 78.6 mmSg48key2, the printed circuit board in 3D

    Sg48key2

    sago35/keyboards

    This repository was created to manage the circuitry and firmware for the keyboards I designed. The firmware is created using sago35/tinygo-keyboard.

    158 parts22MIT
  • 2 layers25.8 × 20 mmTM Warthog Open Analog Slew, the printed circuit board in 3D

    TM Warthog Open Analog Slew

    ServError/Thrustmaster_Warthog_Throttle_Alps_Slew_Mod

    An open source replacement for the terrible TM Warthog Throttle slew stick

    10 parts12
  • 2 layers70 × 128.5 mmJoystick v3.0, the printed circuit board in 3D

    Joystick v3.0

    StudioKAT/Joystick

    この作品は Creative Commons 表示 - 継承 4.0 国際 (CC BY-SA 4.0) の下でライセンスされています。 This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.

    110 parts9
  • 2 layers98 × 98 mmTinygo conf-2026, the printed circuit board in 3D

    Tinygo conf-2026

    tinygo-keeb/tinygo-conf-2026-badge

    TinyGo Conference 2026 向け開発ボード (devkit) の KiCad プロジェクトです。 ESP32-S3-DevKit を中心に、ディスプレイ・オーディオ・入力デバイスなどを 1 枚の基板にまとめています。

    26 parts2
  • 2 layers141 × 68.5 mmZRaiderViper, the printed circuit board in 3D

    ZRaiderViper

    radioation/ZRaiderStick

    Z Raider - Analog Joystick for Atari 800/XL/XE Computers

    37 parts1GPL-3.0
  • 2 layers108.5 × 61 mmVGAutumn, the printed circuit board in 3D

    VGAutumn

    Alan-GIRAUDON/VGAutumn

    VGAutumn is a RP2040 VGA joystick PCB. This board allows to play different game using its VGA output and its inputs (joystick, buttons).

    72 partsMIT

Questions

How big is the Controller PCB?

It measures 120.8 × 59.4 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Controller use?

11 parts, built around the AP2112K-3.3 and RKJXV122400R. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Controller KiCad files?

From the Harshil200619/STM32-Custom-Drone repository on GitHub, at the commit this page was made from: the board is Hardware/Transmitter/controller.kicad_pcb and its schematic Hardware/Receiver/Reciever.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Controller design in my own project?

Its repository states no licence, so its author keeps all rights: ask Harshil200619 before reusing the design.