I am trying to read out from a force/ pressure sensor that is connected to an Ardunio Micro (connected by USB) into MATLAB.
When I use the Ardunio software and look in the serial monitor, pressing the force sensor shows values going up and down as they should:
However, when I try and read using matlab (using various read/ scan functions) I get 0's (even when pressing as above)
I tried changing the format of the output I was expecting to %s %s %s %d etc, but this did not work (and I think is not the correct format anyway). I tried various other things commented out below:
s1 = serial("/dev/tty.usbmodem1421");
s1.BaudRate = 9600;
for l = 1:50
As you can see I am a total novice... Any help would be very very very much appreciated, as I am supposed to have this up and running by Monday :s
Thank you all!
This is my Ardunio code in case helpful