Micro-RDK Encoder Models
An encoder is a special type of sensor that measures rotation of a motor or joint. For more information and models supported by the RDK, see Encoder Component.
For configuration information, click on one of the supported encoder model names:
|A two phase encoder, which can measure the speed and direction of rotation in relation to a given reference point
|A single pin “pulse output” encoder which returns its relative position but no direction
Add support for other models
If none of the existing models fit your use case, you can create a modular resource to add support for it.
The micro-RDK works differently from the RDK, so creating modular resources for it is different. Refer to the Micro-RDK Module Template on GitHub for information on how to create custom resources for your micro-RDK machine. You will need to recompile and flash your ESP32 yourself instead of using Viam’s prebuilt binary and installer.
The micro-RDK encoder API supports only the following supported client SDK API methods, which operate the same ways as those in the full-featured RDK:
Was this page helpful?
Glad to hear it! If you have any other feedback please let us know:
We're sorry about that. To help us improve, please tell us what we can do better: