Skip to the content
2 layers49.7 × 38 mmMoteus adaptor, the printed circuit board in 3D

A control theory and software development repo for a balancing robot.

Size
49.7 × 38 mm
Copper layers
2
Thickness
1.6 mm
Parts
14
Nets
12
Pads
25
Tracks, vias
30, 0
Pours
2
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
3 Aug 2025
Updated
24 Jun 2026

Overview

Moteus adaptor is an open-source printed circuit board by owhite, from the owhite/balancing-robot-notes repository on GitHub, published under the MIT licence. It is a 2-layer board of 49.7 × 38 mm with 14 parts on 12 nets, routed with 30 tracks and 0 vias.

It belongs with the robots and motor control boards of this library.

README

PCBs/brainboardV1.4/README.md

MESC BRAIN BOARD

A PCB and software development project for a balancing robot.

The goal is to use a hobby Electronic Speed Controller (one open source example, and this circuit for a brain board, a teensy 4.0, and an ESP-32, in combination with MESC firmware.

GENERAL APPROACH

A separation of concerns is divided across these architectures:

  • Teensy: Runs the high-level brain → gait generator, balance estimator, RC inputs
  • MESC: The firmware on the ESC for control → torque or velocity loops per joint
  • ESP32: Easy to log and analyze later → pumps UDP to the computer
  • Desktop computer → perfectly adequate way of viewing high speed data with UDP

TEENSY 4.0

  • 600+ MHz ARM Cortex-M7 — plenty of headroom for filtering, control loops, gait logic, telemetry
  • Tons of I/O for IMU, encoders, RC input, WiFi (via ESP add-on), etc.
  • Precise timing with elapsedMicros or interrupts for deterministic control
  • Great for real-time control, sensor fusion, and behavior modeling

MESC MOTOR CONTROLLER

  • Deploys on simple DIY or commercially available ESC boards
  • Executes low-level Field-Oriented Control (FOC) motor control
  • Built-in support for encoders, FOC, and torque estimation
  • Accurate low-level motor control using current sensing
  • Reads angular position from the MT6701 encoder via SPI or PWM
  • UART/CAN interface (RX + TX) Real-time communication with the Teensy
  • PWM / FOC commutation w/ efficient, smooth motor operation

OTHER BRAIN BOARD FEATURES

  • RC receiver connector (for PWM/PPM/SBUS input)
  • ESP32 UART serial programmer
  • Power input connector
  • Voltage divider (to monitor battery voltage)
  • Push-button E-stop connector
  • Power button (for system on/off)
  • IMU connector (e.g., MPU-6050)
  • Buzzer (for system alerts or E-stop signal)
  • MESC I/O
  • Reserved 2 GPIO pins on Teensy for emergency shutoff to MESC
  • CAN connector (for MESC motor control)

CAN BUS

  • Full-duplex communication between Teensy and motor controllers
  • Carries:
    • Commands: set_torque, set_velocity, enable_motor, zero_encoder, etc.
    • Telemetry: encoder position, estimated torque, velocity, fault codes
  • Real-time performance with minimal latency
  • Can support multiple motor controllers on the same bus

MANY THANKS

This project would never happen without:

NOTES

Ever wanted to change all the names of kicad files at once?

use this:

text
python3 replace_kicad_names.py VESC_brain_board MESC_brain_board

[LINK]

STILL NEEDS WORK

  • Not great design w/ DC-DC conversion from high voltage VBat
  • Replace out the IMU for a ICM-42688-P
  • Order / revise pushbuttons for programming the ESP32
  • Ensure 3.3V CAN transciever

VERSIONS

  • See github tag pcb-v1 for V1.0
  • Retreive with this command: "git checkout pcb-v1"

Parts

14
QtyValueFootprintReferences
5Conn_01x01Connector_Pin:my_Pin_D2.0mmJ3, J4, J5, J6, J7
4MountingHoleMountingHole:MountingHole_2.5mmH1, H2, H3, H4
3Conn_01x01Connector_Pin:my_Pin_D2.6mmJ8, J10, J12
1Conn_01x05Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ1
1Conn_02x04_Odd_EvenConnector_PinSocket_1.27mm:PinSocket_2x04_P1.27mm_VerticalJ2

More from owhite/balancing-robot-notes

7
  • 4 layers84.5 × 64 mmMESC brain board, the printed circuit board in 3D

    MESC brain board

    owhite/balancing-robot-notes

    A control theory and software development repo for a balancing robot.

    59 partsMIT
  • 4 layers90.5 × 68.6 mmMESC brain board, the printed circuit board in 3D

    MESC brain board

    owhite/balancing-robot-notes

    A control theory and software development repo for a balancing robot.

    55 partsMIT
  • 4 layers84.5 × 64 mmMESC brain board, the printed circuit board in 3D

    MESC brain board

    owhite/balancing-robot-notes

    A control theory and software development repo for a balancing robot.

    53 partsMIT
  • 4 layers84.5 × 64 mmMESC brain board, the printed circuit board in 3D

    MESC brain board

    owhite/balancing-robot-notes

    A control theory and software development repo for a balancing robot.

    45 partsMIT
  • 2 layers59.1 × 59.1 mmESC caddyV1.0, the printed circuit board in 3D

    ESC caddyV1.0

    owhite/balancing-robot-notes

    A control theory and software development repo for a balancing robot.

    26 partsMIT
  • 4 layers38.4 × 30 mmMT6701 ENCODER, the printed circuit board in 3D

    MT6701 ENCODER

    owhite/balancing-robot-notes

    A control theory and software development repo for a balancing robot.

    11 partsMIT
  • 2 layers13.9 × 23.1 mmMT6701 ENCODER, the printed circuit board in 3D

    MT6701 ENCODER

    owhite/balancing-robot-notes

    A control theory and software development repo for a balancing robot.

    7 partsMIT

Similar boards

  • 2 layers116.8 × 30 mmType d, the printed circuit board in 3D

    Type d

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    14 parts3kApache-2.0
  • 2 layers32 × 22 mmDiff driver, the printed circuit board in 3D

    Diff driver

    rene-dev/stmbl

    AC Servo Driver for STM32F4

    14 parts990GPL-3.0
  • 2 layers34 × 45 mm2032Charger, the printed circuit board in 3D

    2032Charger

    hackclub/OnBoard

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

    14 parts915
  • 2 layers34 × 109.9 mmTdisplay s3, the printed circuit board in 3D

    Tdisplay s3

    landonr/homeThing

    Wifi Smart Home Remotes that run on ESPHome

    14 parts551GPL-3.0
  • 2 layers45.3 × 42.7 mmMainPcb, the printed circuit board in 3D

    MainPcb

    adamb314/ServoProject

    Getting the most out of your hobby servo

    14 parts545
  • 2 layers42.5 × 28.8 mmC5VRX JACK DIY, the printed circuit board in 3D

    C5VRX JACK DIY

    Twotoz/C5VRX

    Ultra-minimal, zero-CPU 5.8 GHz analog FPV video receiver using ESP32-C5 Wi-Fi 6 PHY MODEM_DIAG, BitScrambler WBFM demodulation & resistor DAC CVBS

    14 parts515GPL-3.0
  • 2 layers62 × 24 mmMai button, the printed circuit board in 3D

    Mai button

    whowechina/mai_pico

    Pico controller for Maimai

    14 parts475

Questions

How big is the Moteus adaptor PCB?

It measures 49.7 × 38 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Moteus adaptor use?

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

Where can I download the Moteus adaptor KiCad files?

From the owhite/balancing-robot-notes repository on GitHub, at the commit this page was made from: the board is PCBs/moteus_adaptor/moteus_adaptor.kicad_pcb and its schematic PCBs/ESC_caddyV1.0/ESC_caddyV1.0.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Moteus adaptor 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).