Motor Component | Built-in components
Motor Component
This section documents the configuration attributes for each built-in motor model. Use these pages when you are writing a JSON configuration, debugging a config validation error, or looking up the default for a specific attribute.
- For how to add and configure a motor component on your machine, see Motor.
- For the methods you call on a motor in code, see the Motor API reference.
- For motor models outside the built-in set, search for
motorin the Viam registry. Each registry module’s configuration is documented in its own README on its registry page.
Built-in models
The following motor models ship with viam-server:
| Model | Description |
|---|---|
dmc4000 |
Stepper motor driven by a DMC-40x0 series motion controller. |
encoded-motor |
Standard brushed or brushless DC motor with an encoder. |
fake |
A model for testing, with no physical hardware. |
gpio |
Supports standard brushed or brushless DC motors. |
gpiostepper |
Supports stepper motors driven by basic GPIO-controlled stepper driver chips. |
Micro-RDK models
The following motor models ship with the Micro-RDK:
| Model | Description |
|---|---|
gpio |
— |