Skip to the content
4 layers38.9 × 30 mmOrbitESC, the printed circuit board in 3D

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

8

README

README.md

OrbitESC

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

PathDescription
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.jsonConfigure/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.

  1. Create and sync the environment
bash
uv venv
uv sync
  1. Option A: Activate the environment
bash
source .venv/bin/activate
  1. Option B: Run one-off commands without activation
bash
uv run <command>
  1. Launch the GUI
bash
uv run python -m pyorbit.app.main

Common tasks

bash
# 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

  • protoc available in PATH
  • The repo includes the Nanopb generator under lib/Aurora/lib/nanopb/...

Generate all bindings

bash
cd scripts
./build_proto.sh

What it does

  • Runs Nanopb to generate C/C++ descriptors into src/core/com/proto
  • Runs protoc to generate Python modules and .pyi into pyorbit/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-* (see scripts/install_arm_gcc.sh or install from Arm)

Configure & build (Debug)

bash
cmake --preset "OrbitESC_V3 Debug"
cmake --build --preset "OrbitESC_V3 Debug"

Configure & build (Release)

bash
cmake --preset "OrbitESC_V3 Release"
cmake --build --preset "OrbitESC_V3 Release"

Artifacts

  • Build directories under build/debug and build/release
  • The OrbitESC image and map file are produced; a copy of the image is placed under a sys_image folder 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)

bash
sudo apt-get update
sudo apt-get install -y build-essential cmake pkg-config libzmq3-dev

Configure & build

bash
cmake --preset "OrbitESC Simulator"
cmake --build --preset "OrbitESC Simulator"

Run

bash
# Example path; adjust if your CMake generator places binaries differently
./build/sim/OrbitESC

CAN bus setup (Linux)

Scripts are provided to bring up a can0 interface at 1 Mbit/s. Root privileges are required.

Open the CAN port

bash
sudo ./scripts/open_can_port.sh

Close the CAN port

bash
sudo ./scripts/close_can_port.sh

Note: 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.

bash
# 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: install libzmq3-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 PyQt5 is installed (it is declared in pyproject.toml), then uv sync again.

License

MIT. See LICENSE.

Parts

160
QtyValueFootprintReferences
20100nFCapacitor_SMD:C_0402_1005MetricC1, C11, C12, C13, C16, C17, C22, C24, C28, C31, C32, C34, C35, C36, C39, C41 +4
2010kResistor_SMD:R_0402_1005MetricR1, R3, R15, R19, R23, R25, R28, R29, R30, R31, R34, R37, R38, R41, R43, R44 +4
112.2uFCapacitor_SMD:C_0805_2012MetricC3, C6, C9, C15, C19, C20, C21, C27, C29, C33, C37
71kResistor_SMD:R_0402_1005MetricR26, R27, R32, R33, R35, R36, R39
61Resistor_SMD:R_0402_1005MetricR2, R4, R8, R10, R14, R16
6MCAC100N08YA-TPProject Mosfets:TRANS_BSC076N06NS3-GQ1, Q2, Q3, Q4, Q5, Q6
51.5kResistor_SMD:R_0402_1005MetricR24, R64, R77, R78, R91
5AHTestPoint:TestPoint_Pad_D1.0mmTP4, TP6, TP7, TP8, TP14
4470Resistor_SMD:R_0402_1005MetricR7, R87, R88, R90
447uFCapacitor_SMD:C_0805_2012MetricC4, C7, C25, C26
4Blue LEDDiode_SMD:D_0603_1608MetricD1, D16, D17, D19
4TLV9051IDBVRPackage_TO_SOT_SMD:SOT-23-5U4, U6, U13, U14
30.01Resistor_SMD:R_2512_6332MetricR6, R12, R18
31nFCapacitor_SMD:C_0402_1005MetricC2, C5, C8
3BLTestPoint:TestPoint_Pad_D1.0mmTP1, TP3, TP17
2100kResistor_SMD:R_0402_1005MetricR21, R22
210uFCapacitor_SMD:C_0805_2012MetricC18, C23
21uFCapacitor_SMD:C_0402_1005MetricC30, C44
25.1kResistor_SMD:R_0402_1005MetricR9, R13
2Green LEDDiode_SMD:D_0603_1608MetricD15, D18
2NOR_MISOTestPoint:TestPoint_Pad_D1.0mmTP2, TP13
110Resistor_SMD:R_0402_1005MetricR42
1120Resistor_SMD:R_0402_1005MetricR62
118vDiode_SMD:D_SMAD2
12.0kResistor_SMD:R_0402_1005MetricR5
124LC128Package_SO:MSOP-8_3x3mm_P0.65mmU3
12N7002Package_TO_SOT_SMD:SOT-23Q7
133Resistor_SMD:R_0402_1005MetricR11
133nFCapacitor_SMD:C_0402_1005MetricC14
14.7uHInductor_SMD:L_Bourns-SRN6028L1
156kResistor_SMD:R_0402_1005MetricR40
1ALTestPoint:TestPoint_Pad_D1.0mmTP15
1AP2120Package_TO_SOT_SMD:SOT-23U9
1AP2171WPackage_TO_SOT_SMD:SOT-23-5U8
1AP62200Z6-7Package_TO_SOT_SMD:SOT-563U7
1AT25SF081-SSHD-XPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU2
1B5819WDiode_SMD:D_SOD-123D8
1BHTestPoint:TestPoint_Pad_D1.0mmTP16
1BootButton_Switch_SMD:SW_SPST_PTS810SW2
1CAN1Connector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_VerticalJ6
1CHTestPoint:TestPoint_Pad_D1.0mmTP18
1CLTestPoint:TestPoint_Pad_D1.0mmTP19
1CP2104Package_DFN_QFN:QFN-24-1EP_4x4mm_P0.5mm_EP2.6x2.6mmU10
1DRV8300DRGERPackage_DFN_QFN:VQFN-24-1EP_4x4mm_P0.5mm_EP2.45x2.45mmU5
1EEPROM_SCLTestPoint:TestPoint_Pad_D1.0mmTP12
1EEPROM_SDATestPoint:TestPoint_Pad_D1.0mmTP11
1FerriteBead_SmallResistor_SMD:R_0603_1608MetricFB1
1GNDTestPoint:TestPoint_Pad_4.0x4.0mmJ12
1MC74HC595ADTR2GPackage_SO:TSSOP-16_4.4x5mm_P0.65mmU12
1NOR_MOSITestPoint:TestPoint_Pad_D1.0mmTP9
1NOR_SCKTestPoint:TestPoint_Pad_D1.0mmTP10
1NOR_nCSTestPoint:TestPoint_Pad_D1.0mmTP5
1Red LEDDiode_SMD:D_0603_1608MetricD20
1ResetButton_Switch_SMD:SW_SPST_PTS810SW1
1STM32L432KCU6Package_DFN_QFN:QFN-32-1EP_5x5mm_P0.5mm_EP3.45x3.45mmU11
1TLE9250XPackage_SON:HVSON-8-1EP_3x3mm_P0.65mm_EP1.6x2.4mmU1
1TermATestPoint:TestPoint_Pad_4.0x4.0mmJ3
1TermBTestPoint:TestPoint_Pad_4.0x4.0mmJ4
1TermCTestPoint:TestPoint_Pad_4.0x4.0mmJ5
1USB_C_Receptacle_USB2.0Connector_USB:USB_C_Receptacle_GCT_USB4085J1
1VDCTestPoint:TestPoint_Pad_4.0x4.0mmJ11
1Yellow LEDDiode_SMD:D_0603_1608MetricD5
1~Connector_PinHeader_1.27mm:PinHeader_2x05_P1.27mm_VerticalJ10

The 159 most common of 160 parts.

More from brandonbraun653/OrbitESC

1
  • 8 layers45.2 × 29.7 mmOrbitESC, the printed circuit board in 3D

    OrbitESC

    brandonbraun653/OrbitESC

    An attempt at creating my own ESC module

    161 parts2MIT

Similar boards

  • 4 layers92 × 88.9 mmCubesat obc, the printed circuit board in 3D

    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 mmESC Board, the printed circuit board in 3D

    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 mmEsc, the printed circuit board in 3D

    Esc

    aronkis/Licenta

    79 parts
  • 6 layers497.4 × 154.7 mmFCSTMV1.05, the printed circuit board in 3D

    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 mmEdf esc, the printed circuit board in 3D

    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
  • 8 layers38 × 38 mmRidge3-lite, the printed circuit board in 3D

    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 mmESC GEMINI, the printed circuit board in 3D

    ESC GEMINI

    PackageLAN/ESC_GEMINI

    112 partsGPL-3.0

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).