gyro-mpu6050
The gyro-mpu6050 movement sensor model supports a combination gyroscope and accelerometer manufactured by TDK InvenSense.
{
"board": "local",
"i2c_bus": "default_i2c_bus"
}
{
"components": [
{
"name": "<your-sensor-name>",
"model": "gyro-mpu6050",
"api": "rdk:component:movement_sensor",
"attributes": {
"board": "<your-board-name>",
"i2c_bus": "<your-i2c-bus-name-on-board>",
"use_alt_i2c_address": <boolean>
},
"depends_on": []
}
]
}
{
"components": [
{
"name": "local",
"model": "esp32",
"api": "rdk:component:board",
"attributes": {
"pins": [15, 21, 22],
"i2cs": [
{
"name": "default_i2c_bus",
"bus": "i2c0",
"data_pin": 21,
"clock_pin": 22
}
]
}
},
{
"name": "my_accelgyro",
"model": "gyro-mpu6050",
"api": "rdk:component:movement_sensor",
"attributes": {
"board": "local",
"i2c_bus": "default_i2c_bus"
}
}
]
}
Attributes
| Name | Type | Required? | Description |
|---|---|---|---|
board | string | Required | The name of the board to which the device is wired. |
i2c_bus | string | Required | The name of the I2C bus configured on your board wired to this device. |
use_alt_i2c_address | boolean | Optional | Depends on whether you wire AD0 low (leaving the default address of 0x68) or high (making the address 0x69). If high, set true. If low, set false.Default: false |
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!