Borrar filtros
Borrar filtros

Multi MPU6050 matlab code

1 visualización (últimos 30 días)
Tran Trung
Tran Trung el 14 de Nov. de 2021
Comentada: Tran Trung el 7 de En. de 2022
Hi, i'm doing a project involve about arm motion tracking. But i don't know how to get result when i measure a joint with 2 mpu.
Can you help me how to do it?
Thank you.

Respuestas (1)

Gayatri Menon
Gayatri Menon el 6 de En. de 2022
Hi,
If you are using Arduino or RaspberryPi board, you could use mpu6050() to connect MPU6050 sensor
You can connect 2 MPU6050s on the same I2C bus by changing the I2C Address of one of the sensor.
This can be done by connecting AD0 pin on one of the sensor to high, making the I2C Address of the sensor 0x69 and connect the AD0 of the other sensor to Low, making the I2C Address of the sensor 0x68.
Now create mpu6050() by specifying I2C Address of one as 0x69 and other as 0x68.
a = arduino;
sensor1 = mpu6050(a,'I2CAddress','0x68');
sensor2 = mpu6050(a,'I2CAddress','0x69');
sensor1.readAcceleration;
sensor2.readAcceleration;
Hope this helps
Thanks
Gayatri
  1 comentario
Tran Trung
Tran Trung el 7 de En. de 2022
It's really useful. Now i can do it.
Thanks for your help.

Iniciar sesión para comentar.

Categorías

Más información sobre Arduino Hardware en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by