フィルターのクリア

I2C Sensor

3 ビュー (過去 30 日間)
Muykim Ly
Muykim Ly 2017 年 11 月 7 日
回答済み: Madhu Govindarajan 2017 年 11 月 7 日
I know that Matlab has hardware support package for Arduino. There is also an example code for measuring the temp from I2C device on Arduino Hardware. I have MPU 9250. I was wondering if the code also works for measuring the accelerometer, or the gyroscope values?

回答 (1 件)

Madhu Govindarajan
Madhu Govindarajan 2017 年 11 月 7 日
Almost every I2C sensor is unique in its own startup routine and such. Once you have figured out what it is from the data sheet for this sensor and then executed it appropriately from MATLAB using this function - https://www.mathworks.com/help/supportpkg/arduinoio/ref/write.html, you should be all set. Then you only have to read the data from the I2C sensor.
HTH, Madhu

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by