Documentation Index
Fetch the complete documentation index at: https://motorbridge.seeedstudio.com/llms.txt
Use this file to discover all available pages before exploring further.
Tutorial 05: Registers and Parameters
Prerequisites
- Completed Tutorial 02: Enable and Status
- Motor connected and responding
Register Overview
Motor registers store configuration and runtime parameters:| Register Type | Access | Example Uses |
|---|---|---|
| ID registers | RW | Motor ID, Feedback ID |
| Mode registers | RW | Control mode, timeout |
| Tuning registers | RW | Kp, Ki, limits |
| Status registers | RO | Temperature, error codes |
Generic Register API
Read/Write Unsigned Integers
Read/Write Floats
Damiao Register Reference
Key Registers
| RID | Name | Type | Description | Range |
|---|---|---|---|---|
| 0 | UV_Value | f32 | Under-voltage protection | (10.0, 3.4E38] |
| 2 | OT_Value | f32 | Over-temperature protection | [80.0, 200) |
| 3 | OC_Value | f32 | Over-current protection | (0.0, 1.0) |
| 7 | MST_ID | u32 | Feedback ID | [0, 0x7FF] |
| 8 | ESC_ID | u32 | Motor ID | [0, 0x7FF] |
| 9 | TIMEOUT | u32 | Communication timeout (ms) | [0, 2^32-1] |
| 10 | CTRL_MODE | u32 | Control mode | [1, 4] |
| 21 | PMAX | f32 | Position mapping range | (0.0, 3.4E38] |
| 22 | VMAX | f32 | Velocity mapping range | (0.0, 3.4E38] |
| 23 | TMAX | f32 | Torque mapping range | (0.0, 3.4E38] |
| 25 | KP_ASR | f32 | Speed loop Kp | [0.0, 3.4E38] |
| 26 | KI_ASR | f32 | Speed loop Ki | [0.0, 3.4E38] |
| 27 | KP_APR | f32 | Position loop Kp | [0.0, 3.4E38] |
| 28 | KI_APR | f32 | Position loop Ki | [0.0, 3.4E38] |
Using Register Constants
Dump All Registers
Save Parameters to Flash
Changes to registers are volatile until saved:RobStride Parameter API
RobStride motors use a different parameter protocol:Ping and ID
Typed Parameter Access
Common Configuration Tasks
Change Motor ID
Tune PID Gains
Set Protection Limits
CLI Shortcuts
Dump Registers
Set IDs
Complete Example
Next Steps
- Tutorial 06: Practical Recipes - Copy-paste recipes
- Motor API - Register access methods
- Best Practices - Troubleshooting guide