
Daylight Matchstick
VoronDesign/Voron-Hardware
Cool Hardware designed by the Voron Design group

This repository contains the embedded C++ firmware for a custom flight controller based on the NXP i.MX RT1011 (ARM Cortex-M7) microcontroller.
Servo PDB is an open-source printed circuit board by awalecka, from the awalecka/MIMXRT1011_FlightControllerRtos repository on GitHub. It is a 2-layer board of 61 × 24 mm with 22 parts on 10 nets, routed with 21 tracks and 0 vias.
Its parts include 21 connectors and 1 capacitor. It belongs with the robots and motor control boards of this library.
This repository contains the embedded C++ firmware for a custom flight controller based on the NXP i.MX RT1011 (ARM Cortex-M7) microcontroller. The system is built on FreeRTOS and utilizes a modular, object-oriented architecture to manage sensor fusion, flight control laws, and actuator outputs in real-time.
runViz.py, a PyQt6/PyQtGraph-based ground station for 3D attitude visualization, live RC input monitoring, and interactive 3D ellipsoid fitting for magnetometer calibration.All configured PWM signals are routed from the PWM1 peripheral block and explicitly mapped in actuators.cpp.
| Pin | MCU Signal | Function / Label | Module & Channel |
|---|---|---|---|
| 74 | GPIO_SD_02 | PWM0A | PWM1, Module 0, Channel A (Aileron Left) |
| 75 | GPIO_SD_01 | PWM0B | PWM1, Module 0, Channel B (Aileron Right) |
| 9 | GPIO_04 | PWM1A | PWM1, Module 1, Channel A (Gear Left) |
| 10 | GPIO_03 | PWM1B | PWM1, Module 1, Channel B (Gear Right) |
| 6 | GPIO_06 | PWM2A | PWM1, Module 2, Channel A (Elevator) |
| 8 | GPIO_05 | PWM2B | PWM1, Module 2, Channel B (Rudder) |
| 4 | GPIO_08 | PWM3A | PWM1, Module 3, Channel A (Throttle) |
| Pin | MCU Signal | Function / Label | Subsystem / Notes |
|---|---|---|---|
| 3 | GPIO_09 | UART1_RXD | LPUART1 |
| 2 | GPIO_10 | UART1_TXD | LPUART1 |
| 1 | GPIO_11 | UART3_RXD | LPUART3 (Telemetry) |
| 80 | GPIO_12 | UART3_TXD | LPUART3 (Telemetry) |
| 59 | GPIO_AD_01 | UART4_RXD | LPUART4 (IBUS Receiver) |
| 58 | GPIO_AD_02 | UART4_TXD | LPUART4 (IBUS Receiver) |
The I2C pins are configured with internal 22K Ohm pull-up resistors and open-drain enabled.
| Pin | MCU Signal | Function / Label |
|---|---|---|
| 11 | GPIO_02 | LPI2C1_SCL |
| 12 | GPIO_01 | LPI2C1_SDA |
| Pin | MCU Signal | Function / Label |
|---|---|---|
| 52 | GPIO_AD_06 | SD_CLK |
| 56 | GPIO_AD_04 | SD_MOSI |
| 57 | GPIO_AD_03 | SD_MISO |
| 43 | GPIO_AD_14 | SD_CS |
| 64 | GPIO_SD_11 | SD_CD (Card Detect) |
| 65 | GPIO_SD_10 | FlexSPI_CLK (Flash) |
| 69 | GPIO_SD_06 | FlexSPI_SS0 (Flash CS) |
graph LR
%% Main Microcontroller
MCU[NXP i.MX RT1011 <br> Cortex-M7 @ 500MHz]
%% Actuators & PWM
subgraph Actuators [PWM1: Servo & Motor Control]
MCU -->|Pin 74/75| M0[Module 0: Ailerons L/R]
MCU -->|Pin 9/10| M1[Module 1: Landing Gear L/R]
MCU -->|Pin 6/8| M2[Module 2: Elevator & Rudder]
MCU -->|Pin 4| M3[Module 3: Throttle]
end
%% Serial Communications
subgraph Serial [UART Communications]
MCU <-->|Pin 2/3| UART1[LPUART1: General]
MCU <-->|Pin 80/1| UART3[LPUART3: Telemetry / Ground Station]
MCU <-->|Pin 58/59| UART4[LPUART4: FlySky IBUS Receiver]
end
%% I2C Bus
subgraph I2C [I2C Sensor Bus]
MCU <-->|Pin 11/12| I2C1[LPI2C1: AHRS IMU & Magnetometer]
end
flowchart LR
%% Inputs
subgraph Inputs [Inputs & Sensors]
RC[FlySky Receiver\nIBUS]
IMU[LSM6DSOX\nAccel & Gyro]
MAG[LIS3MDL\nMagnetometer]
end
%% State Estimation
subgraph Estimator [State Estimation]
FILTER{Active Filter\nMEKF or UKF}
end
%% Control Laws
subgraph Control [Attitude Control]
SETPOINT[Target Setpoints\nRoll, Pitch, Throttle]
PID[PID Controller\nCascaded Angle & Rate]
end
%% Outputs
subgraph Outputs [Actuator Output]
MIX[Control Mixer\nLimits & Scaling]
PWM[PWM Driver\nServos & ESC]
endstateDiagram-v2
[*] --> STATE_BOOT : Power On / Reset
STATE_BOOT --> STATE_IDLE : Init Success
STATE_BOOT --> STATE_FAILSAFE : Init Failed (Sensors/I2C)
STATE_IDLE --> STATE_FLIGHT : Stick Gesture: Arm\n(Thr Low, Yaw Right)
STATE_IDLE --> STATE_CALIBRATE : Stick Gesture: Calibrate\n(Thr Low, Yaw Left, Pitch Up)
STATE_CALIBRATE --> STATE_IDLE : Gyro Calibration Complete
STATE_FLIGHT --> STATE_IDLE : Stick Gesture: Disarm\n(Thr Low, Yaw Left)
STATE_FAILSAFE --> [*] : Requires Reboot| Qty | Value | Footprint | References |
|---|---|---|---|
| 3 | Screw_Terminal_01x02 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_Horizontal | J17, J18, J19 |
| 2 | GND | Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_Vertical | J20, J21 |
| 1 | 2200uF | Capacitor_THT:C_Radial_D10.0mm_H20.0mm_P5.00mm | C1 |
| 1 | Servo 1 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J9 |
| 1 | Servo 1 | Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_Vertical | J4 |
| 1 | Servo 2 | Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_Vertical | J8 |
| 1 | Servo 2 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J10 |
| 1 | Servo 3 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J11 |
| 1 | Servo 3 | Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_Vertical | J1 |
| 1 | Servo 4 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J15 |
| 1 | Servo 4 | Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_Vertical | J7 |
| 1 | Servo 5 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J16 |
| 1 | Servo 5 | Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_Vertical | J2 |
| 1 | Servo 6 | Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_Vertical | J5 |
| 1 | Servo 6 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J12 |
| 1 | Servo 7 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J13 |
| 1 | Servo 7 | Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_Vertical | J3 |
| 1 | Servo 8 | Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_Vertical | J6 |
| 1 | Servo 8 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J14 |

VoronDesign/Voron-Hardware
Cool Hardware designed by the Voron Design group

hoglet67/RGBtoHDMI
Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

abhishek-kakkar/BeagleLogic
A Software Suite that implements a logic analyzer with the PRU on the BeagleBone / BeagleBone Black.

Chrismettal/flipper-zero-backpacks
Backpack-style addon boards for the Flipper Zero!



CRImier/MyKiCad
My KiCad boards. Can't be bothered uploading individually anymore, so here you go.
It measures 61 × 24 mm and has 2 copper layers, 1.6 mm thick.
22 parts. 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.
From the awalecka/MIMXRT1011_FlightControllerRtos repository on GitHub, at the commit this page was made from: the board is hardware/Servo_PDB/Servo_PDB/Servo_PDB.kicad_pcb and its schematic hardware/Servo_PDB/Servo_PDB/Servo_PDB.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask awalecka before reusing the design.