Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
function [] = i2c_sensor()
a = arduino('COM3', 'UNO');
imu = mpu6050(a,'SampleRate',50,'SamplesPerRead',5,'ReadMode','Latest');
accelReadings = readAcceleration(imu);
display(accelReadings);
end

Antworten (0)

Kategorien

Mehr zu Atomic, Molecular & Optical finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by