How to do a loop to read 10 data of acceleration from this code?

1 vue (au cours des 30 derniers jours)
WAN NOR NAZIRA MUSTAPA KAMAL
function [] = i2c_sensor()
a = arduino('COM3', 'UNO');
imu = mpu6050(a,'SampleRate',50,'SamplesPerRead',5,'ReadMode','Latest');
accelReadings = readAcceleration(imu);
display(accelReadings);
end

Réponses (0)

Catégories

En savoir plus sur Atomic, Molecular & Optical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by