Micro-RDK Movement Sensor Models
A movement sensor is a sensor that gives data on where a machine is and how fast it is moving. For more information and models supported by the RDK, see Movement Sensor Component.
Supported models
For configuration information, click a supported movement sensor model name:
Model | Description |
---|---|
accel-adxl345 | The Analog Devices ADXL345 digital accelerometer |
gyro-mpu6050 | A gyroscope/accelerometer manufactured by TDK InvenSense |
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.
API
The micro-RDK movement sensor API supports only the following client SDK API methods, which operate the same as in the full-featured RDK:
GetReadings()
GetAngularVelocity()
GetLinearVelocity()
GetCompassHeading()
GetPosition()
GetProperties()
GetLinearAcceleration()
DoCommand()
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:
Thank you!