Two Arduino Uno with 4 MPU6050 IMUs simulink
1 次查看(过去 30 天)
显示 更早的评论
Greetings,
I tried to get measurements from MPU6050 connected to Arduino Uno by using Arduino support package for Simulink, but it does not show readins??
Moreover, How I could implement two arduino Uno connected with 4 MPU6050 IMUs through simulink to get linear acceleration of body at the same time, it allowed me to implement only one MPU6050 to one Arduino Uno although there are two arduino UNO boards and 4 MPU6050 IMUs connected to the same computer.
Please help...![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/579612/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/579612/image.jpeg)
0 个评论
回答(1 个)
Gayatri Menon
2022-1-4
Hi,
You can connect 2 MPU6050s on the same Arduino 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 in the model you can add 2 MPU6050 blocks. Specify I2C Address of one block as 0x69 and other as 0x68.
Hope this helps
Thanks
Gayatri
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Arduino Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!