Skip to the content
2 layers35 × 16 mmServo pcb mg99x, the printed circuit board in 3D

A comprehensive documentation suite is available in the docs directory: Hardware Reference: Detailed specs of both board variants, pin mappings, and BOM.

Size
35 × 16 mm
Copper layers
2
Thickness
1.6 mm
Parts
42
Nets
31
Pads
92
Tracks, vias
215, 16
Pours
2
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
7 Jun 2026
Updated
28 Aug 2026

Overview

Servo pcb mg99x is an open-source printed circuit board by justimepassnow, from the justimepassnow/Microdrive repository on GitHub, published under the MIT licence. It is a 2-layer board of 35 × 16 mm with 42 parts on 31 nets, routed with 215 tracks and 16 vias.

It is built around the BDR6121H, MM32G0001S and SL7533-3. Its parts include 5 capacitors, 5 ICs, 4 resistors and 1 connector. It belongs with the robots and motor control boards of this library.

Main components

3

README

README.md

μDrive (Microdrive)

License: MIT Hardware License OSHWA Certified

μDrive is an open-source hardware and software project designed to convert any standard "dumb" DC motor into a smart, closed-loop servo motor. By retrofitting a standard DC motor with an analog potentiometer or an I2C magnetic encoder, μDrive grants you precise control over position, velocity, and current.


✨ Features

  • Universal DC Motor Support: Works with standard DC brushed motors (within the limits of the onboard motor driver).
  • Closed-Loop Control: PID-based control over Motor Position, Velocity, and Torque.
  • Single-Wire Communication: Network multiple servos together using a half-duplex, single-wire UART interface.
  • Web-Based Dashboard: Includes a Svelte-based WebGUI utilizing the Web Serial API. Connect a master microcontroller to your PC via USB, and monitor/tune your servo network directly from your browser.
  • High-Level API: Control motors using high-level commands without worrying about register-level or bit-level operations.

📖 Documentation

A comprehensive documentation suite is available in the docs directory:


🛠️ Hardware Specifications

μDrive is available in two PCB variants sharing the same MCU and logic, but using different motor drivers:

FeatureServo BoardMG996 Drop-in Board
Motor DriverCP2119BDR6121H
Form FactorStandard — attach to any DC motorDrop-in replacement for MG996R servo
Operating VoltageUp to 18V maxUp to 7.5V max
Current Rating5A continuous1.5A continuous / 3A peak
PCB Filesservo_pcbservo_pcb_mg99x

Board Layouts

Servo Board Front Servo Board Back

Common Architecture (Both Boards)

  • Microcontroller: MindMotion MM32G0001 (32-bit Cortex-M0, 48MHz, 16KB Flash, 2KB RAM)
  • Current Sensor: INA180A2 (current sense amplifier) with a 0.01Ω shunt resistor for overcurrent protection
  • Power: Onboard SL7533-3 3.3V logic regulator (supports input up to 24V)
  • Feedback Inputs:
    • Analog: Standard potentiometer support (shared with the SDA pin).
    • Digital (I2C): 4-pad footprint (3.3V, SCL, SDA, GND) for external I2C magnetic encoders like the AS5600.
  • Communication: Half-duplex, single-wire UART on PA12 (open-drain), 250000 baud, 8N1.

💻 Software & APIs

The project uses a Master/Slave architecture over a half-duplex UART bus. You simply import the driver library onto your master microcontroller and send high-level commands.

  • MicroPython: A fully functioning driver library is currently available.
  • Arduino/C++: Coming soon!

WebGUI Architecture

mermaid
graph TD
    Web["<span style='color:#000'>💻 Web Browser<br>(Svelte WebGUI)</span>"] -- "Web Serial API" --> Master["<span style='color:#000'>🧠 Master Microcontroller<br>(Running Python Script)</span>"]
    Master -- "Single-Wire UART" --> Servo["<span style='color:#000'>⚡ μDrive Servo Board</span>"]
    Servo --> Motor["<span style='color:#000'>⚙️ DC Motor + Encoder</span>"]

    %% Styling
    style Web fill:#e1f5fe,stroke:#01579b,stroke-width:2px;
    style Master fill:#e8f5e9,stroke:#1b5e20,stroke-width:2px;
    style Servo fill:#fff3e0,stroke:#e65100,stroke-width:2px;
    style Motor fill:#efebe9,stroke:#3e2723,stroke-width:2px;

Web GUI

μDrive WebGUI Dashboard



🚀 Getting Started

1. Flashing the Servo Board (via Picoprobe)

Why use a Raspberry Pi Pico? Programming obscure chips like the MM32G0001 usually requires buying dedicated, expensive hardware programmers (like mm32link or ST-Link). By using a $4 Raspberry Pi Pico instead, we keep the project incredibly cheap and accessible. Even better: once you've flashed the servo board, you can wipe the Pico and reuse it as the master MicroPython controller for your entire servo network!

Step 1: Turn the Pico into a Programmer Flash your Raspberry Pi Pico with the Picoprobe (Debug Probe) firmware to turn it into a CMSIS-DAP debugger. You can download the latest debugprobe_on_pico.uf2 file directly from the official Raspberry Pi GitHub Releases page. Just hold the BOOTSEL button, plug in the Pico, and drag-and-drop the file!

Step 2: Wire the Pico to the μDrive Board Connect these 4 wires from the Pico to the programming header on the μDrive board:

  • Pico 3V3 --> μDrive 3.3V
  • Pico GND --> μDrive GND
  • Pico GP2 --> μDrive SWCLK (Labeled C on the board)
  • Pico GP3 --> μDrive SWDIO (Labeled D on the board)

Step 3: Install the Software Tools

  1. Install VS Code and add the PlatformIO extension.
  2. Install Python on your PC.
  3. Open a terminal and install the flashing tool by running: pip install pyocd
    • (Windows Users: If pyocd fails to detect your probe later, Windows likely installed the wrong default driver. Download the free Zadig tool, select "Picoprobe CMSIS-DAP" from the dropdown, and replace the driver with WinUSB).

Step 4: Open and Flash!

  1. Clone this repository and open the Microdrive folder in VS Code.
  2. Click the PlatformIO Upload button (the small → arrow at the bottom of the screen). PlatformIO will automatically compile the code and trigger pyocd to flash it onto the MM32G0001!

2. Setting Up the Master MCU (Drivers)

Once the servo board is flashed, it listens for commands over a half-duplex UART line. You will need a "Master" microcontroller to send these commands.

  • Currently, a MicroPython driver is provided. You can flash a standard Raspberry Pi Pico with MicroPython, import the provided driver library, and use simple high-level functions to command the servo.
  • (Arduino/C++ library support is coming soon!)

3. Launching the Web GUI

To easily tune and monitor your servo network from your computer, you can run the provided Svelte WebGUI:

  1. Ensure your Master MCU is connected to your PC via USB and running the serial bridge python script.
  2. Open a terminal and navigate to the gui folder inside this repository.
  3. Run npm install to download the web dependencies.
  4. Run npm run dev to start the local server.
  5. Open the provided localhost link in a browser that supports the Web Serial API (like Chrome or Edge) to connect to your Master MCU and start tuning!

🚧 Known Issues & Roadmap

Microdrive is actively under development. Current focus areas include:

  • 🐛 EMI Stability: The board occasionally stops responding to commands during massive current spikes. This is likely due to electromagnetic interference (EMI) crashing the MCU or bus. Hardware/software filtering improvements are being investigated.
  • 🚀 Better I2C Encoder Support: Writing the software drivers to fully utilize the AS5600 footprint.
  • ⚙️ Control Optimization: Improving the efficiency of the communication protocol and fine-tuning the torque and velocity control loops.
  • 🔌 Arduino Compatibility: Development of Arduino/C++ compatible driver libraries to control the servo network from Arduino-compatible microcontrollers.

🤝 Contributing

Contributions are welcome! Whether it's firmware, hardware, documentation, or the WebGUI — check out the Contributing Guide to get started. Found a bug or have an idea? Open an issue.


⚖️ License

This project is fully open-source and OSHWA certified (UID: IN000092):

  • The Software/Firmware is licensed under the MIT License.
  • The Hardware (PCBs/Schematics) is licensed under the CERN-OHL-P v2.

You are free to build, modify, and integrate μDrive into your own projects (commercial or hobbyist).

Parts

42
QtyValueFootprintReferences
13, , , , , , , , , , , ,
3100nfCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC2, C3, C5
310KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR2, R3, R4
23.3vTestPoint:TestPoint_Pad_1.5x1.5mmTP1, TP7
2GNDTestPoint:TestPoint_Pad_1.5x1.5mmTP2, TP10
2SCLTestPoint:TestPoint_Pad_1.5x1.5mmTP9, TP12
2SDATestPoint:TestPoint_Pad_1.5x1.5mmTP8, TP11
1+VETestPoint:TestPoint_Pad_1.5x1.5mmTP5
1-VETestPoint:TestPoint_Pad_1.5x1.5mmTP4
10.01RResistor_SMD:R_2512_6332MetricR1
110ufCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1
110ufCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC4
1AS5600Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU5
1BDR6121HPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU3
1INA180A2Package_TO_SOT_SMD:SOT-23-5U4
1M1TestPoint:TestPoint_Pad_2.5x2.5mmM1
1M2TestPoint:TestPoint_Pad_2.5x2.5mmM2
1MM32G0001Package_SO:TSSOP-20_4.4x6.5mm_P0.65mmU1
1SL7533-3Package_TO_SOT_SMD:SOT-23U2
1SWCLKTestPoint:TestPoint_Pad_1.5x1.5mmTP3
1SWIOTestPoint:TestPoint_Pad_1.5x1.5mmTP6
1power inConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ1

More from justimepassnow/Microdrive

1
  • 2 layers32.5 × 23 mmServo pcb, the printed circuit board in 3D

    Servo pcb

    justimepassnow/Microdrive

    A comprehensive documentation suite is available in the docs directory: Hardware Reference: Detailed specs of both board variants, pin mappings, and BOM.

    25 parts9MIT

Similar boards

  • 2 layers30 × 50 mmModuleV400, the printed circuit board in 3D

    ModuleV400

    stuartpittaway/diyBMSv4

    Version 4 of the diyBMS

    42 parts1.1k
  • 2 layers139.7 × 64.8 mmSprig console, the printed circuit board in 3D

    Sprig console

    hackclub/sprig

    🍃 Learn to code by making games in a JavaScript web-based game editor.

    42 parts1.1kMIT
  • 2 layers90.5 × 50 mmMain control board, the printed circuit board in 3D

    Main control board

    jamro/tiny-engineer

    A small desktop robot that brings an AI coding assistant to life, physically acting out when it reads files, thinks, writes code, and finishes work.

    42 parts1.1k
  • 2 layers67.6 × 30.5 mmRgb to hdmi, the printed circuit board in 3D

    Rgb to hdmi

    hoglet67/RGBtoHDMI

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

    42 parts1kGPL-3.0
  • 2 layers190 × 80 mmPcb shield, the printed circuit board in 3D

    Pcb shield

    hackclub/OnBoard

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

    42 parts915
  • 2 layers98 × 80 mmMai io, the printed circuit board in 3D

    Mai io

    whowechina/mai_pico

    Pico controller for Maimai

    42 parts475
  • 2 layers50.8 × 90.4 mmOBOGS PANEL, the printed circuit board in 3D

    OBOGS PANEL

    jrsteensen/OpenHornet

    OpenHornet 1:1 F/A-18C Simulator Repository

    42 parts431

Questions

How big is the Servo pcb mg99x PCB?

It measures 35 × 16 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Servo pcb mg99x use?

42 parts, built around the BDR6121H, MM32G0001S and SL7533-3. 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 pcb mg99x KiCad files?

From the justimepassnow/Microdrive repository on GitHub, at the commit this page was made from: the board is PCB/servo_pcb_mg99x.kicad_pcb and its schematic PCB/servo_pcb.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

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