How to continously read data from force sensor connected with Arduino
43 views (last 30 days)
I want to continously read data from a 'flexi force' sensor from arduino to Matlab, and i use the matlab script below to import data:
Here i used a for loop to load data from aduino, is this the only way to import data? The data transfering speed was too low by using this method. Is there any other method to read data from aduino to matlab.
Many thanks for you help!
Kenny Shu on 10 Apr 2019
Reading sensor values with this approach may be limited to the speed of the software for-loop. Consider reading and storing sensor values using an Arduino Sketch. Then, upon request, bring all of the values into MATLAB at once using serial read/write.