Pages: [1]   Go Down
Author Topic: Communication Arduino MatLab  (Read 359 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Everyone.
I have an Arduino 2560 Mega R3 , Arduino motorshield R3, stepper and a hall sensor.

I want that the Arduino sends data over the serial interface to MATLAB.
My Matlab code for that:
clear all;

 %Create serial Port

 %Open serial Port

 while 1
    fprintf('%d\n', i);

 %Close serial Port

 %Delete serial Port

My Arduino code for that:
int sensor;
 void setup()

 void loop()
 {// this should simulate a sensor
   for(sensor=0; sensor < 100; sensor++){

If someone of you can help me pls, i would be glad.  Thanks

Pages: [1]   Go Up
Jump to: