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, browse 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:

ModelDescription
dmc4000Stepper motor driven by a DMC-40x0 series motion controller.
encoded-motorStandard brushed or brushless DC motor with an encoder.
fakeA model for testing, with no physical hardware.
gpioSupports standard brushed or brushless DC motors.
gpiostepperSupports stepper motors driven by basic GPIO-controlled stepper driver chips.

Micro-RDK models

The following motor models ship with the Micro-RDK:

ModelDescription
gpio