MotorBridge Python SDK
v0.1.7 Python 3.10+ A unified, high-performance motor control library for Python. Control brushless motors from multiple vendors with a single, consistent API.Why MotorBridge?
Quick Example
Supported Vendors
| Vendor | Models | MIT | POS_VEL | VEL | FORCE_POS |
|---|---|---|---|---|---|
| Damiao | 4310, 4340P, 6001 | ✅ | ✅ | ✅ | ✅ |
| RobStride | rs-00 | ✅ | ❌ | ✅ | ❌ |
| MyActuator | X8 | ❌ | ✅ | ✅ | ❌ |
| HighTorque | HT | ✅ | ✅ | ✅ | ✅ |
| Hexfellow | * | ✅ | ✅ | ❌ | ✅ |
Hexfellow motors require CAN-FD transport. Use
Controller.from_socketcanfd("can0").Architecture
Core Concepts
| Component | Description |
|---|---|
| Controller | Manages transport layer and multiple motor handles |
| Motor | Per-device handle for sending commands and reading state |
| Mode | Control mode enum (MIT, POS_VEL, VEL, FORCE_POS) |
| MotorState | Immutable dataclass containing motor feedback |
Documentation Sections
Getting Started
Getting Started
- Installation - Set up your environment
- Transports - Configure CAN/Serial connections
- Quick Start - Your first motor control program
Tutorials
Tutorials
Step-by-step guides for common tasks:
- Scan & Identify - Find motors on CAN bus
- Enable & Status - Read motor state
- Mode & Control - Send commands
- Multi-Motor - Control multiple motors
- Registers - Configure motor parameters
API Reference
API Reference
- Controller API - Main entry point
- Motor API - Per-motor operations
- Mode & State - Enums and data structures
- CLI Tools - Command-line utilities
Installation
Getting Help
- 📖 Read the Tutorials for step-by-step guides
- 🔍 Check Troubleshooting for common issues
- 💻 Use
motorbridge-cli --helpfor CLI reference