Pages: [1]   Go Down
Author Topic: displaying arduino current sensor values in matlab  (Read 403 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
global a;

a=arduino('COM3');

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

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 610
Posts: 49033
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
av=a.analogRead(14); //corresponds to analog pin0 on arduino board
Why not use 0 when you mean 0?
Logged

Pages: [1]   Go Up
Jump to: