How to do a loop to read 10 data of acceleration from this code?
1 回表示 (過去 30 日間)
古いコメントを表示
function [] = i2c_sensor()
a = arduino('COM3', 'UNO');
imu = mpu6050(a,'SampleRate',50,'SamplesPerRead',5,'ReadMode','Latest');
accelReadings = readAcceleration(imu);
display(accelReadings);
end
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Atomic, Molecular & Optical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!