Skip to the content
2 layers46.7 × 87.5 mmServo motor, the printed circuit board in 3D

Open-source NEMA-17 integrated servomotor (motor + closed-loop driver + controller + encoder). RS-485, Python/Arduino libraries, MCP server for AI control. Hardware, firmware and software.

Size
46.7 × 87.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
112
Nets
98
Pads
475
Tracks, vias
815, 233
Pours
10
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
31 Aug 2021
Updated
29 Oct 2026

Overview

Servo motor is an open-source printed circuit board by tomrodinger, from the tomrodinger/servomotor repository on GitHub, published under the MIT licence. It is a 2-layer board of 46.7 × 87.5 mm with 112 parts on 98 nets, routed with 815 tracks and 233 vias.

It is built around the STM32G030C8T6, LM321LVIDBVR-TP and EG2133, with the HT7533-1, 78L10 and SN75176BDRG among its other parts. Its parts include 37 capacitors, 28 resistors, 10 connectors, 8 ICs and 8 transistors. It belongs with the robots and motor control and interfaces and adapters boards and the STM32 boards of this library.

Main components

12

README

README.md

Gearotons M17 servomotor family: M17-60, M17-48, M17-40, M17-34

Gearotons M17 — an open-source servomotor you can talk to

The M17 is a NEMA-17 integrated servomotor: motor, closed-loop driver, motion controller and magnetic encoder in one unit. It daisy-chains over RS-485, ships with Python and Arduino libraries, and has a first-party MCP server so an AI assistant (Claude Desktop, Claude Code, Cursor, …) can drive real motors from plain English.

Hardware, firmware and software are all in this repository under the MIT license.

M17-34M17-40M17-48M17-60
Length33.5 mm40.1 mm48.7 mm59.7 mm
Holding torque0.28 N·m0.42 N·m0.55 N·m0.65 N·m
Weight210 g285 g360 g470 g

All sizes: 12–24 V, up to ~1.1 A, up to 560 RPM, closed-loop 32 kHz control, RS-485 at 230400 baud, 64-bit unique ID + one-byte alias per motor, standard NEMA-17 mount. Indoor use (IP20).

Buy one: gearotons.com (from $20; ships worldwide from Shenzhen). Documentation: 9o.at/M17_1.5 · Datasheet (PDF) · Python API · Arduino API

Quick start (Python)

bash
pip install servomotor
python
import time, servomotor

servomotor.open_serial_port()                      # prompts for the USB–RS-485 adapter the first time
m = servomotor.M3("X", time_unit="seconds", position_unit="shaft_rotations")
m.enable_mosfets()
m.trapezoid_move(1.0, 1.0)                         # one full turn, in one second
time.sleep(1.1)
m.disable_mosfets()
servomotor.close_serial_port()

That is python_programs/example_trapezoid_move.py. Units are yours to choose (degrees, rotations, radians, encoder counts; seconds or milliseconds) — the library converts. No STEP/DIR timing, no microstep configuration.

Quick start (Arduino / ESP32)

Install the Servomotor library by Gearotons from the Arduino Library Manager, or from Arduino_library/. Wire the board's UART to an RS-485 transceiver, then:

cpp
#include <Servomotor.h>

void setup() {
  Servomotor motor('X', Serial1);                  // alias 'X'; the port opens on first use
  motor.setPositionUnit(PositionUnit::SHAFT_ROTATIONS);
  motor.setTimeUnit(TimeUnit::SECONDS);
  motor.enableMosfets();
  motor.trapezoidMove(2.0f, 3.0f);                 // two rotations over three seconds
  delay(4000);
  Serial.println(motor.getPosition());             // where it actually is, from the encoder
}
void loop() {}

That is a trimmed Arduino_library/example_one_move.cpp (the full file adds the ESP32 RS-485 pin definitions).

Quick start (talk to it)

bash
uvx --from servomotor-mcp servomotor-mcp        # runs with a simulated motor if no hardware is attached

Add it to Claude Desktop or run claude mcp add gearotons-motor -- uvx --from servomotor-mcp servomotor-mcp, then ask: "Find my motors, then move the one on the bench to 90 degrees and tell me where it ended up." Details and the full tool list: Gearotons/servomotor-mcp.

Claude Code driving a real M17 over MCP: find the motor, turn it two rotations, back, read the encoder

▶ 50-second video: the real motor and this session side by side (recorded 2026-09-09 on a bench M17).

Wiring: computer, USB to RS-485 adapter, two daisy-chained M17 motors, 12–24 V supply

What is in this repository

FolderContents
firmware/Motor firmware (STM32G0), plus bootloader_STM32G030/ and bootloader_STM32G031/
PCB/Schematics, board layouts and 3D (STEP) models of the controller board
python_programs/The servomotor Python library source, examples, test and characterisation scripts
Arduino_library/The Arduino/ESP32 C++ library and examples
API_documentation/Generated Python and Arduino API references (Markdown and PDF)
servomotor_datasheets/Datasheet sources and PDFs (EN, DE, ES, FR, IT, PT), dimension drawings
production_test_system/, motor_tests/How we test motors before they ship
marketting_page/Source of the gearotons.com product page

The command set is data-driven: every firmware command is defined once in motor_commands.json and the Python library, the Arduino library and the MCP server are generated from it, so they always agree.

Firmware 0.16.0.0

This backward-compatible M17 release adds Get PID constants (command 48). It returns the configured raw P, I and D values without changing controller or motion state. With the updated Python bindings in this repository:

python
p, i, d = m.get_pid_constants()

The release image targets M17 hardware 1.5, software compatibility code 3. See the release notes for the wire contract, upgrade/rollback commands, client requirements and test evidence.

Where the M17 is not the right tool

Direct-drive torque tops out at 0.65 N·m (gear it or go up a frame size for more), it is IP20 and indoor-only, and it is not a STEP/DIR drop-in for an existing 3D-printer board — it wants a serial bus and a host that sends it moves. We would rather you know that before you buy.

Community and support

Questions and builds: GitHub Discussions · email info@gearotons.com. Issues and pull requests welcome — the whole stack is here to be read, modified and improved.

Built and assembled by Gearotons in Shenzhen. MIT license — see LICENSE.

Parts

112
QtyValueFootprintReferences
1410KResistor_SMD:R_0603_1608MetricR4, R5, R8, R10, R13, R15, R17, R20, R21, R22, R23, R24, R25, R27
1310uFCapacitor_SMD:C_0805_2012MetricC6, C7, C10, C12, C14, C15, C19, C21, C24, C27, C29, C31, C34
9100nFCapacitor_SMD:C_0603_1608MetricC8, C9, C13, C16, C18, C25, C28, C35, C36
8MountingHole_Padservo_motor:Mounting Hole 3.5mmH1, H2, H3, H4, H5, H6, H7, H8
6CRTM025N03Lservo_motor:CRTM025N03LQ1, Q2, Q3, Q4, Q5, Q6
51uFCapacitor_SMD:C_0603_1608MetricC2, C22, C26, C32, C41
31.5KResistor_SMD:R_0603_1608MetricR12, R18, R19
3100pFCapacitor_SMD:C_0603_1608MetricC1, C5, C30
31N4148WSDiode_SMD:D_SOD-323D1, D2, D5
31nFCapacitor_SMD:C_0603_1608MetricC17, C20, C23
225121WF100MT4EResistor_SMD:R_2512_6332MetricR14, R16
24.7KResistor_SMD:R_0603_1608MetricR2, R29
24.7uFCapacitor_SMD:C_0603_1608MetricC3, C11
2Board_to_Board_Connectorservo_motor:board_to_board_femaleP2, P4
2Board_to_Board_Connectorservo_motor:board_to_board_maleP1, P3
2LM321Package_TO_SOT_SMD:SOT-23-5U1, U9
2LOGOLibrary_HD:QR_ServoG***, G***
2LOGOLibrary_HD:QR_Servo10mmG***, G***
2TS-1187A-B-A-BButton_Switch_SMD:SW_SPST_TL3342RST1, SW1
1100k 1% NTCResistor_SMD:R_0402_1005MetricTH1
110MResistor_SMD:R_0603_1608MetricR3
110uFCapacitor_SMD:C_0603_1608MetricC33
119-217/GHC-YR1S2/3TLED_SMD:LED_0603_1608MetricD4
11KResistor_SMD:R_0603_1608MetricR26
11MResistor_SMD:R_0603_1608MetricR1
12N3906Package_TO_SOT_SMD:SOT-23Q8
1300KResistor_SMD:R_0603_1608MetricR9
133KResistor_SMD:R_0603_1608MetricR6
1470Resistor_SMD:R_0603_1608MetricR11
1680KResistor_SMD:R_0603_1608MetricR7
1EG2133Package_SO:TSSOP-20_4.4x6.5mm_P0.65mmU3
1EncoderConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ6
1HT7533-1Package_TO_SOT_SMD:SOT-89-3U11
1Hall_Sensor*3servo_motor:hall_sensor_3U4
1KT-0603RLED_SMD:LED_0603_1608MetricD3
1L78L10_SOT89Package_TO_SOT_SMD:SOT-89-3U12
1MMBT3904Package_TO_SOT_SMD:SOT-23Q7
1NCCapacitor_SMD:C_0603_1608MetricC4
1Power INTerminalBlock:TerminalBlock_bornier-2_P5.08mmJ5
1ProgrammingConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ2
1RS485Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ4
1SN75176BDRPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU5
1STM32G030C8T6servo_motor:STM32G030C8T6U2
1Screw_Terminal_01x03servo_motor:MOTORJ3
1Serial PortConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ1
1TestPointservo_motor:TestPoint 6mmTP1

More from tomrodinger/servomotor

6
  • 2 layers98.9 × 91.4 mmCoin Cell Tester, the printed circuit board in 3D

    Coin Cell Tester

    tomrodinger/servomotor

    Open-source NEMA-17 integrated servomotor (motor + closed-loop driver + controller + encoder). RS-485, Python/Arduino libraries, MCP server for AI control. Hardware, firmware and software.

    204 parts17MIT
  • 2 layers39 × 56.4 mmServo motor, the printed circuit board in 3D

    Servo motor

    tomrodinger/servomotor

    Open-source NEMA-17 integrated servomotor (motor + closed-loop driver + controller + encoder). RS-485, Python/Arduino libraries, MCP server for AI control. Hardware, firmware and software.

    104 parts17MIT
  • 2 layers37.8 × 44.4 mmServomotor3, the printed circuit board in 3D

    Servomotor3

    tomrodinger/servomotor

    Open-source NEMA-17 integrated servomotor (motor + closed-loop driver + controller + encoder). RS-485, Python/Arduino libraries, MCP server for AI control. Hardware, firmware and software.

    79 parts17MIT
  • 2 layers38 × 44.6 mmM3-V5, the printed circuit board in 3D

    M3-V5

    tomrodinger/servomotor

    Open-source NEMA-17 integrated servomotor (motor + closed-loop driver + controller + encoder). RS-485, Python/Arduino libraries, MCP server for AI control. Hardware, firmware and software.

    71 parts17MIT
  • 2 layers38 × 56.5 mmServomotorStepper V2I1, the printed circuit board in 3D

    ServomotorStepper V2I1

    tomrodinger/servomotor

    Open-source NEMA-17 integrated servomotor (motor + closed-loop driver + controller + encoder). RS-485, Python/Arduino libraries, MCP server for AI control. Hardware, firmware and software.

    70 parts17MIT
  • 2 layers38 × 44.6 mmServomotor3, the printed circuit board in 3D

    Servomotor3

    tomrodinger/servomotor

    Open-source NEMA-17 integrated servomotor (motor + closed-loop driver + controller + encoder). RS-485, Python/Arduino libraries, MCP server for AI control. Hardware, firmware and software.

    69 parts17MIT

Similar boards

  • 6 layers237.9 × 80.5 mmXG Mobile Dock, the printed circuit board in 3D

    XG Mobile Dock

    osy/XG_Mobile_Station

    Open source eGPU dock for ROG Ally and ROG Flow

    300 parts712CC-BY-4.0
  • 2 layersTrx8020, the printed circuit board in 3D

    Trx8020

    pablo53/trx8020

    Transceiver 80m 20m

    99 parts
  • 4 layers176 × 56 mm2.12 Mobile Robot, the printed circuit board in 3D

    2.12 Mobile Robot

    jntaimo/2.12-PCB

    This is the PCB design for the MIT Intro to Robotics class 2.12

    82 parts
  • 6 layers160 × 120 mmPic32main, the printed circuit board in 3D

    Pic32main

    JuanPoueriet/automatic-spork

    Máquina de ruleta física de casino. 6 PCBs: pic32main (cerebro), wheel (rueda de LEDs), displaysa/b/c (paneles de 7 segmentos en cascada) y buttons (botonera).

    256 parts
  • 2 layers78 × 58 mmDick mouse, the printed circuit board in 3D

    Dick mouse

    segfau-yama/dxxk_mouse

    ESP32-S3 上で動作する Rust 製 USB 入力デバイスの実験用リポジトリです。

    51 partsMIT
  • 2 layers47 × 25.4 mm00 fanout, the printed circuit board in 3D

    00 fanout

    RileyMcCarthy/MaD

    Tensile testing machine

    31 parts3
  • 2 layers200 × 170 mmRouting R1, the printed circuit board in 3D

    Routing R1

    ddasdkimo/rack-atx-controller

    10-host isolated ATX rack controller hardware planning, interactive 3D model and wiring documentation

    698 parts
  • 4 layers140 × 140 mmPCU, the printed circuit board in 3D

    PCU

    Andresse2020/NovaDrone-Hardware

    Complete electronic system design for a high-performance quadcopter drone, developed entirely from scratch. Includes power distribution, motor control, flight stabilization, sensor integration, and communication…

    760 parts3

Questions

How big is the Servo motor PCB?

It measures 46.7 × 87.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Servo motor use?

112 parts, built around the STM32G030C8T6, LM321LVIDBVR-TP, EG2133 and HT7533-1. 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 Servo motor KiCad files?

From the tomrodinger/servomotor repository on GitHub, at the commit this page was made from: the board is PCB/Servomotor1/V27/servo_motor.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Servo motor 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).