Go Down

Topic: displaying arduino current sensor values in matlab (Read 443 times) previous topic - next topic

aryan007

I have a current sensor connected to my arduino board displaying current values in the arduino serial monitor. Now I want to display the same values in matlab. How do I proceed???  I have established connection between my arduino board and matlab. Here is the starting code.
Any help would be appreciated.

Code: [Select]

global a;

a=arduino('COM3');

av=a.analogRead(14); //corresponds to analog pin0 on arduino board

PaulS

Quote
av=a.analogRead(14); //corresponds to analog pin0 on arduino board

Why not use 0 when you mean 0?

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy