Skip to the content
2 layers52.7 × 52 mmReciever, the printed circuit board in 3D

STM32F405 Flight Controller and NRF24 Transmitter

Size
52.7 × 52 mm
Copper layers
2
Thickness
1.6 mm
Parts
56
Nets
79
Pads
219
Tracks, vias
975, 129
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
28 Aug 2026
Updated
30 Aug 2026

Overview

Reciever 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 52.7 × 52 mm with 56 parts on 79 nets, routed with 975 tracks and 129 vias.

It is built around the AP2112K-3.3 and AO3400A. Its parts include 17 capacitors, 15 resistors, 9 connectors, 7 diodes and 4 transistors. It belongs with the robots and motor control boards and the STM32 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

56
QtyValueFootprintReferences
6D_SchottkyDiode_SMD:D_SOD-123D1, D3, D4, D5, D6, D7
5100nfCapacitor_SMD:C_0805_2012MetricC1, C2, C3, C4, C6
510kResistor_SMD:R_0805_2012MetricR3, R8, R9, R10, R11
5Conn_01x02Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ3, J4, J5, J6, J7
4100ohmResistor_SMD:R_0805_2012MetricR4, R5, R6, R7
4AO3400APackage_TO_SOT_SMD:SOT-23Q1, Q2, Q3, Q4
310ufCapacitor_SMD:C_0805_2012MetricC8, C9, C10
2100nFCapacitor_SMD:C_0805_2012MetricC5, C16
22.2ufCapacitor_SMD:C_0805_2012MetricC7, C13
222pFCapacitor_SMD:C_0805_2012MetricC11, C12
25.1kResistor_SMD:R_0805_2012MetricR1, R2
110Resistor_SMD:R_0805_2012MetricR15
1100kResistor_SMD:R_0805_2012MetricR13
110uFCapacitor_SMD:C_0805_2012MetricC14
11uFCapacitor_SMD:C_0805_2012MetricC19
1330Resistor_SMD:R_0805_2012MetricR12
1470uFCapacitor_SMD:C_Elec_8x10.2C15
147kResistor_SMD:R_0805_2012MetricR14
1AP2112K-3.3Package_TO_SOT_SMD:SOT-23-5U2
1Conn_01x04Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJ9
1Crystal_GND24_SmallCrystal:Crystal_SMD_5032-4Pin_5.0x3.2mmY1
1GYRO MODULEConnector_PinSocket_2.54mm:PinSocket_1x10_P2.54mm_VerticalJ8
1LEDLED_SMD:LED_0805_2012MetricD2
1NRF MODULEConnector_PinHeader_2.54mm:PinHeader_2x04_P2.54mm_VerticalJ2
1STM32F405RGTxPackage_QFP:LQFP-64_10x10mm_P0.5mmU1
1SW_PushButton_Switch_SMD:SW_SPST_FSMSMSW1
1USB_C_Receptacle_USB2.0_16PConnector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12J1

More from Harshil200619/STM32-Custom-Drone

1
  • 2 layers120.8 × 59.4 mmController, the printed circuit board in 3D

    Controller

    Harshil200619/STM32-Custom-Drone

    STM32F405 Flight Controller and NRF24 Transmitter

    11 parts

Similar boards

  • 2 layers61 × 61 mmCo2-sensor, the printed circuit board in 3D

    Co2-sensor

    blinry/co2-canary

    An open-hardware, ultra-low power CO2 sensor

    57 parts78
  • 8 layers50 × 50 mmUSB C PSU, the printed circuit board in 3D

    USB C PSU

    LeoDJ/USB-C_PD_PSU

    A 5-60V bidirectional buck-boost-converter, also capable of 240W USB PD EPR (48V 5A)

    149 parts29
  • 2 layers58 × 20 mmCCCCPPPS MkII, the printed circuit board in 3D

    CCCCPPPS MkII

    BogdanTheGeek/CCCCPPPS

    Cheap Crappy Constant Current Portable Programmable Power Supply

    30 parts12MIT
  • 4 layers98 × 124.4 mmPiberry.beepy, the printed circuit board in 3D

    Piberry.beepy

    CarbonComputers/Piberry-12

    PiBerry v12 marks the final and most refined revision of the PiBerry handheld Linux terminal. Designed with both form and function in mind, this version brings together the best elements of previous iterations while…

    132 parts9MIT
  • 2 layers100 × 100 mmIO 16 8 1, the printed circuit board in 3D

    IO 16 8 1

    PPUC/Hardware_IO_16_8_1

    Hardware for the generic I/O Board for PPUC

    227 parts5
  • 4 layers60 × 56.1 mmAvionicsGPSModule, the printed circuit board in 3D

    AvionicsGPSModule

    esb8/AvionicsGPS

    GPS board for the Avionics of a model rocket

    57 parts3
  • 4 layers80.4 × 49.3 mmLeany, the printed circuit board in 3D

    Leany

    gilleshenrard/leany

    STM32 ARM Core-M3 based inclinometer

    83 parts3
  • 2 layers84 × 98 mmFalloutbadge, the printed circuit board in 3D

    Falloutbadge

    sophiayduan/badges

    hackathon pcb badges

    93 parts3Unlicense

Questions

How big is the Reciever PCB?

It measures 52.7 × 52 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Reciever use?

56 parts, built around the AP2112K-3.3 and AO3400A. 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 Reciever KiCad files?

From the Harshil200619/STM32-Custom-Drone repository on GitHub, at the commit this page was made from: the board is Hardware/Receiver/Reciever.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 Reciever design in my own project?

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