

OrbitESC
An attempt at creating my own ESC module
- Size
- 38.9 × 30 mm
- Copper layers
- 4
- Thickness
- 1.6 mm
- Parts
- 160
- Nets
- 122
- Pads
- 524
- Tracks, vias
- 1,029, 162
- Pours
- 25
- Routed
- Yes
- KiCad
- KiCad 7 (file 20221018)
- Created
- 15 Apr 2021
- Updated
- 27 Oct 2026
Overview
OrbitESC is an open-source printed circuit board by brandonbraun653, from the brandonbraun653/OrbitESC repository on GitHub, published under the MIT licence. It is a 4-layer board of 38.9 × 30 mm with 160 parts on 122 nets, routed with 1,029 tracks and 162 vias.
It is built around the STM32L432KCU6, CP2104EK and TLE9250XLE, with the DRV8300DRGER-MS, 24LC128-I/P and AP2171WG among its other parts. Its parts include 54 resistors, 43 capacitors, 14 ICs, 10 diodes and 8 connectors. It belongs with the robots and motor control boards and the STM32 boards of this library.
Main components
8STM32L432KCU6
UFQFPN-32(5x5)-40℃~+85℃ 1.71V~3.6V 12bit 12bit 256KB 26 32 Bit 64KB 80MHz ARM Cortex-M4 Built-in FLASH UFQFPN-32(5x5) Microcontrollers (MCU/MPU/SOC) ROHSSTMicroelectronicsMicrocontrollers (MCU/MPU/SOC)CP2104EK
-- USB Conversion Modules ROHSSilicon LabsUSB Conversion ModulesTLE9250XLE
TSON-8-EP(3x3)TSON-8-EP(3x3) CAN Transceivers ROHSInfineon TechnologiesCAN TransceiversDRV8300DRGER-MS
VQFN-24(4x4)VQFN-24(4x4) Gate Drivers ROHSMSKSEMIGate Drivers24LC128-I/P
PDIP-8-40℃~+85℃ 1,000,000 cycles 128Kbit 2.5V~5.5V 200 Years 400kHz 5ms Hardware write protection function、Noise suppression function I2C PDIP-8 EEPROM ROHSMicrochip TechnologyEEPROMAP2171WG
SOT-25-5-40℃~+85℃ 1 1A 2.7V~5.5V 95mΩ Active High High Side Switch Overcurrent Protection(OCP)、Overtemperature protection (OTP) SOT-25-5 Power Distribution Switches ROHSDiodes IncorporatedPower Distribution SwitchesMCAC100N08YA-TP
DFN5060-55℃~+150℃ 1 N-channel 100A 152W 1V 28pF 4.5mΩ@10V 6.32nF 80V 90nC@10V DFN5060 MOSFETs ROHSMicro Commercial ComponentsMOSFETsB5819W
SOD-123-55℃~+125℃ 1.5A 1mA@40V 25A 40V 600mV@1A Standalone SOD-123 Schottky Diodes ROHSMDDSchottky Diodes
README
README.mdOrbitESC
Brushless motor controller development environment for STM32-based ESC firmware, a host-side simulator, and a Python GUI/tooling suite.
Features
- Field-oriented control (FOC)-centric ESC stack with FreeRTOS integration
- STM32F446RE target (embedded) and host simulator build (ChimeraSim)
- Protobuf/Nanopb command and telemetry schema for C/C++ and Python
- Python tools and PyQt5 GUI for monitoring, configuration, and testing
- CMake presets for embedded and simulator builds
Project Structure
| Path | Description |
|---|---|
src/ | C++ sources for firmware, simulator integration, startup, tasks, and libraries. |
lib/ | Third-party and in-tree libraries: Aurora, Chimera, ChimeraSim, CMSIS, FreeRTOS, Thor, tinyusb, db. |
pyorbit/ | Python package for host tools, GUI (pyorbit/app), serial/CAN clients, protobuf stubs. |
scripts/ | Helper scripts: build embedded, generate protobufs, CAN interface setup. |
model/ | MATLAB/Simulink models and notebooks related to control algorithms. |
CMakePresets.json | Configure/build presets for embedded and simulator targets. |
Quickstart (Python tooling & GUI)
This repo uses uv for Python dependency management. Python 3.11 is required and auto-detected from pyproject.toml.
- Create and sync the environment
uv venv
uv sync- Option A: Activate the environment
source .venv/bin/activate- Option B: Run one-off commands without activation
uv run <command>- Launch the GUI
uv run python -m pyorbit.app.mainCommon tasks
# Run unit tests
uv run pytest
# Type check
uv run mypy
# Lint / Format
uv run flake8
uv run black .Development workflow
- Add dependencies:
uv add <package> - Sync/update:
uv sync - Update lockfile:
uv lock
Protobuf/Nanopb workflow
Protobuf definitions live under src/core/com/proto. C bindings are generated with Nanopb for the firmware, and Python stubs for pyorbit.
Prerequisites
protocavailable in PATH- The repo includes the Nanopb generator under
lib/Aurora/lib/nanopb/...
Generate all bindings
cd scripts
./build_proto.shWhat it does
- Runs Nanopb to generate C/C++ descriptors into
src/core/com/proto - Runs
protocto generate Python modules and.pyiintopyorbit/nanopb
Embedded firmware build (STM32F446RE)
The firmware uses CMake presets and GCC ARM toolchain.
Prerequisites
- CMake ≥ 3.16, build-essential toolchain
- Arm GNU Toolchain
arm-none-eabi-*(seescripts/install_arm_gcc.shor install from Arm)
Configure & build (Debug)
cmake --preset "OrbitESC_V3 Debug"
cmake --build --preset "OrbitESC_V3 Debug"Configure & build (Release)
cmake --preset "OrbitESC_V3 Release"
cmake --build --preset "OrbitESC_V3 Release"Artifacts
- Build directories under
build/debugandbuild/release - The
OrbitESCimage and map file are produced; a copy of the image is placed under asys_imagefolder in the preset's runtime output directory
Flashing
- Flashing is board/debugger dependent (ST-Link, J-Link, OpenOCD). Provide your preferred tool or script; a generic OpenOCD flow is recommended.
Simulator build (host)
Build a host-executable with simulated hardware using ChimeraSim.
Host prerequisites (Ubuntu/Debian)
sudo apt-get update
sudo apt-get install -y build-essential cmake pkg-config libzmq3-devConfigure & build
cmake --preset "OrbitESC Simulator"
cmake --build --preset "OrbitESC Simulator"Run
# Example path; adjust if your CMake generator places binaries differently
./build/sim/OrbitESCCAN bus setup (Linux)
Scripts are provided to bring up a can0 interface at 1 Mbit/s. Root privileges are required.
Open the CAN port
sudo ./scripts/open_can_port.shClose the CAN port
sudo ./scripts/close_can_port.shNote: Ensure a compatible CAN adapter/driver is present. The Python side uses python-can.
Testing & quality checks
All commands can be run with uv run ... without activating the venv.
# Python tests
uv run pytest -q
# Type checks
uv run mypy
# Linting / formatting
uv run flake8
uv run black --check .Pytest is configured to discover tests under pyorbit/tests.
Troubleshooting
- CMake cannot find
arm-none-eabi-gcc: install the Arm GNU Toolchain and ensure it is in PATH. - Simulator link fails on
zmq: installlibzmq3-dev(or the platform equivalent) and reconfigure. protoc: command not found: install protobuf compiler (sudo apt-get install -y protobuf-compiler).- GUI fails to start: ensure
PyQt5is installed (it is declared inpyproject.toml), thenuv syncagain.
License
MIT. See LICENSE.
Parts
160| Qty | Value | Footprint | References |
|---|---|---|---|
| 20 | 100nF | Capacitor_SMD:C_0402_1005Metric | C1, C11, C12, C13, C16, C17, C22, C24, C28, C31, C32, C34, C35, C36, C39, C41 +4 |
| 20 | 10k | Resistor_SMD:R_0402_1005Metric | R1, R3, R15, R19, R23, R25, R28, R29, R30, R31, R34, R37, R38, R41, R43, R44 +4 |
| 11 | 2.2uF | Capacitor_SMD:C_0805_2012Metric | C3, C6, C9, C15, C19, C20, C21, C27, C29, C33, C37 |
| 7 | 1k | Resistor_SMD:R_0402_1005Metric | R26, R27, R32, R33, R35, R36, R39 |
| 6 | 1 | Resistor_SMD:R_0402_1005Metric | R2, R4, R8, R10, R14, R16 |
| 6 | MCAC100N08YA-TP | Project Mosfets:TRANS_BSC076N06NS3-G | Q1, Q2, Q3, Q4, Q5, Q6 |
| 5 | 1.5k | Resistor_SMD:R_0402_1005Metric | R24, R64, R77, R78, R91 |
| 5 | AH | TestPoint:TestPoint_Pad_D1.0mm | TP4, TP6, TP7, TP8, TP14 |
| 4 | 470 | Resistor_SMD:R_0402_1005Metric | R7, R87, R88, R90 |
| 4 | 47uF | Capacitor_SMD:C_0805_2012Metric | C4, C7, C25, C26 |
| 4 | Blue LED | Diode_SMD:D_0603_1608Metric | D1, D16, D17, D19 |
| 4 | TLV9051IDBVR | Package_TO_SOT_SMD:SOT-23-5 | U4, U6, U13, U14 |
| 3 | 0.01 | Resistor_SMD:R_2512_6332Metric | R6, R12, R18 |
| 3 | 1nF | Capacitor_SMD:C_0402_1005Metric | C2, C5, C8 |
| 3 | BL | TestPoint:TestPoint_Pad_D1.0mm | TP1, TP3, TP17 |
| 2 | 100k | Resistor_SMD:R_0402_1005Metric | R21, R22 |
| 2 | 10uF | Capacitor_SMD:C_0805_2012Metric | C18, C23 |
| 2 | 1uF | Capacitor_SMD:C_0402_1005Metric | C30, C44 |
| 2 | 5.1k | Resistor_SMD:R_0402_1005Metric | R9, R13 |
| 2 | Green LED | Diode_SMD:D_0603_1608Metric | D15, D18 |
| 2 | NOR_MISO | TestPoint:TestPoint_Pad_D1.0mm | TP2, TP13 |
| 1 | 10 | Resistor_SMD:R_0402_1005Metric | R42 |
| 1 | 120 | Resistor_SMD:R_0402_1005Metric | R62 |
| 1 | 18v | Diode_SMD:D_SMA | D2 |
| 1 | 2.0k | Resistor_SMD:R_0402_1005Metric | R5 |
| 1 | 24LC128 | Package_SO:MSOP-8_3x3mm_P0.65mm | U3 |
| 1 | 2N7002 | Package_TO_SOT_SMD:SOT-23 | Q7 |
| 1 | 33 | Resistor_SMD:R_0402_1005Metric | R11 |
| 1 | 33nF | Capacitor_SMD:C_0402_1005Metric | C14 |
| 1 | 4.7uH | Inductor_SMD:L_Bourns-SRN6028 | L1 |
| 1 | 56k | Resistor_SMD:R_0402_1005Metric | R40 |
| 1 | AL | TestPoint:TestPoint_Pad_D1.0mm | TP15 |
| 1 | AP2120 | Package_TO_SOT_SMD:SOT-23 | U9 |
| 1 | AP2171W | Package_TO_SOT_SMD:SOT-23-5 | U8 |
| 1 | AP62200Z6-7 | Package_TO_SOT_SMD:SOT-563 | U7 |
| 1 | AT25SF081-SSHD-X | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U2 |
| 1 | B5819W | Diode_SMD:D_SOD-123 | D8 |
| 1 | BH | TestPoint:TestPoint_Pad_D1.0mm | TP16 |
| 1 | Boot | Button_Switch_SMD:SW_SPST_PTS810 | SW2 |
| 1 | CAN1 | Connector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_Vertical | J6 |
| 1 | CH | TestPoint:TestPoint_Pad_D1.0mm | TP18 |
| 1 | CL | TestPoint:TestPoint_Pad_D1.0mm | TP19 |
| 1 | CP2104 | Package_DFN_QFN:QFN-24-1EP_4x4mm_P0.5mm_EP2.6x2.6mm | U10 |
| 1 | DRV8300DRGER | Package_DFN_QFN:VQFN-24-1EP_4x4mm_P0.5mm_EP2.45x2.45mm | U5 |
| 1 | EEPROM_SCL | TestPoint:TestPoint_Pad_D1.0mm | TP12 |
| 1 | EEPROM_SDA | TestPoint:TestPoint_Pad_D1.0mm | TP11 |
| 1 | FerriteBead_Small | Resistor_SMD:R_0603_1608Metric | FB1 |
| 1 | GND | TestPoint:TestPoint_Pad_4.0x4.0mm | J12 |
| 1 | MC74HC595ADTR2G | Package_SO:TSSOP-16_4.4x5mm_P0.65mm | U12 |
| 1 | NOR_MOSI | TestPoint:TestPoint_Pad_D1.0mm | TP9 |
| 1 | NOR_SCK | TestPoint:TestPoint_Pad_D1.0mm | TP10 |
| 1 | NOR_nCS | TestPoint:TestPoint_Pad_D1.0mm | TP5 |
| 1 | Red LED | Diode_SMD:D_0603_1608Metric | D20 |
| 1 | Reset | Button_Switch_SMD:SW_SPST_PTS810 | SW1 |
| 1 | STM32L432KCU6 | Package_DFN_QFN:QFN-32-1EP_5x5mm_P0.5mm_EP3.45x3.45mm | U11 |
| 1 | TLE9250X | Package_SON:HVSON-8-1EP_3x3mm_P0.65mm_EP1.6x2.4mm | U1 |
| 1 | TermA | TestPoint:TestPoint_Pad_4.0x4.0mm | J3 |
| 1 | TermB | TestPoint:TestPoint_Pad_4.0x4.0mm | J4 |
| 1 | TermC | TestPoint:TestPoint_Pad_4.0x4.0mm | J5 |
| 1 | USB_C_Receptacle_USB2.0 | Connector_USB:USB_C_Receptacle_GCT_USB4085 | J1 |
| 1 | VDC | TestPoint:TestPoint_Pad_4.0x4.0mm | J11 |
| 1 | Yellow LED | Diode_SMD:D_0603_1608Metric | D5 |
| 1 | ~ | Connector_PinHeader_1.27mm:PinHeader_2x05_P1.27mm_Vertical | J10 |
The 159 most common of 160 parts.
More from brandonbraun653/OrbitESC
1- 8 layers45.2 × 29.7 mm

Similar boards
- 4 layers92 × 88.9 mm

Cubesat obc
ephemeridis/cubesat_obc
A small CubeSat On-Board Computer with lots of processing headroom, utilizing a low power ARM Cortex M33 processor at its core.
311 parts2MIT - 4 layers48.8 × 53.1 mm

ESC Board
FPV-Drone-STM32F411/DroneController
All-in-one FPV drone PCB with integrated flight controller, PDB, and ESCs built around STM32F411.
73 parts60 - 4 layers62.5 × 38 mm

- 6 layers497.4 × 154.7 mm

FCSTMV1.05
CGainsWorks/emb-drone-flight-stack
Open-source quadrotor flight stack: custom KiCad flight-controller and power distribution boards plus C++ firmware with a PID attitude loop, written from scratch.
1,198 partsMIT - 4 layers98 × 58 mm

Edf esc
iamdarshg/edf-esc
Open hardware and firmware for a compact 98 mm × 58 mm, four-layer board with two independent 6S sensorless BLDC/EDF controller channels.
99 partsMIT - 4 layers78 × 78 mm

- 8 layers38 × 38 mm

Ridge3-lite
offgridevices/offgrid-hardware
Open hardware from OffGrid Devices. One folder per board. CERN-OHL-S.
260 partsCERN-OHL-S-2.0 - 6 layers12 × 35 mm

Questions
How big is the OrbitESC PCB?
It measures 38.9 × 30 mm and has 4 copper layers, 1.6 mm thick.
What parts does the OrbitESC use?
160 parts, built around the STM32L432KCU6, CP2104EK, TLE9250XLE and DRV8300DRGER-MS. 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 OrbitESC KiCad files?
From the brandonbraun653/OrbitESC repository on GitHub, at the commit this page was made from: the board is hw/pcb/OrbitESC/OrbitESC.kicad_pcb and its schematic hw/pcb/OrbitESC/OrbitESC.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the OrbitESC design in my own project?
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).