
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.

A comprehensive documentation suite is available in the docs directory: Hardware Reference: Detailed specs of both board variants, pin mappings, and BOM.
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.
μ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.
A comprehensive documentation suite is available in the docs directory:
μDrive is available in two PCB variants sharing the same MCU and logic, but using different motor drivers:
| Feature | Servo Board | MG996 Drop-in Board |
|---|---|---|
| Motor Driver | CP2119 | BDR6121H |
| Form Factor | Standard — attach to any DC motor | Drop-in replacement for MG996R servo |
| Operating Voltage | Up to 18V max | Up to 7.5V max |
| Current Rating | 5A continuous | 1.5A continuous / 3A peak |
| PCB Files | servo_pcb | servo_pcb_mg99x |
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.
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;
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:
Step 3: Install the Software Tools
pip install pyocd
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!
Microdrive folder in VS Code.→ arrow at the bottom of the screen). PlatformIO will automatically compile the code and trigger pyocd to flash it onto the MM32G0001!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.
To easily tune and monitor your servo network from your computer, you can run the provided Svelte WebGUI:
gui folder inside this repository.npm install to download the web dependencies.npm run dev to start the local server.localhost link in a browser that supports the Web Serial API (like Chrome or Edge) to connect to your Master MCU and start tuning!Microdrive is actively under development. Current focus areas include:
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.
This project is fully open-source and OSHWA certified (UID: IN000092):
You are free to build, modify, and integrate μDrive into your own projects (commercial or hobbyist).
| Qty | Value | Footprint | References |
|---|---|---|---|
| 13 | , , , , , , , , , , , , | ||
| 3 | 100nf | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C2, C3, C5 |
| 3 | 10K | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R2, R3, R4 |
| 2 | 3.3v | TestPoint:TestPoint_Pad_1.5x1.5mm | TP1, TP7 |
| 2 | GND | TestPoint:TestPoint_Pad_1.5x1.5mm | TP2, TP10 |
| 2 | SCL | TestPoint:TestPoint_Pad_1.5x1.5mm | TP9, TP12 |
| 2 | SDA | TestPoint:TestPoint_Pad_1.5x1.5mm | TP8, TP11 |
| 1 | +VE | TestPoint:TestPoint_Pad_1.5x1.5mm | TP5 |
| 1 | -VE | TestPoint:TestPoint_Pad_1.5x1.5mm | TP4 |
| 1 | 0.01R | Resistor_SMD:R_2512_6332Metric | R1 |
| 1 | 10uf | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C1 |
| 1 | 10uf | Capacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolder | C4 |
| 1 | AS5600 | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U5 |
| 1 | BDR6121H | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U3 |
| 1 | INA180A2 | Package_TO_SOT_SMD:SOT-23-5 | U4 |
| 1 | M1 | TestPoint:TestPoint_Pad_2.5x2.5mm | M1 |
| 1 | M2 | TestPoint:TestPoint_Pad_2.5x2.5mm | M2 |
| 1 | MM32G0001 | Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm | U1 |
| 1 | SL7533-3 | Package_TO_SOT_SMD:SOT-23 | U2 |
| 1 | SWCLK | TestPoint:TestPoint_Pad_1.5x1.5mm | TP3 |
| 1 | SWIO | TestPoint:TestPoint_Pad_1.5x1.5mm | TP6 |
| 1 | power in | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J1 |

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

rusefi/rusefi
rusefi - GPL internal combustion engine control unit


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

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.

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

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


It measures 35 × 16 mm and has 2 copper layers, 1.6 mm thick.
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.
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.
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).