Wednesday, November 11, 2009

Day 3 - Arduino-to-matlab communication

Today we spent a couple hours working on getting the arduino and matlab to communicate over the serial port, and then to run the white noise command and receive position output at an acceptable frequency. We started by examining Team 7's sequencer code from the previous lab, which streamed data to matlab, and waited for matlab data back to respond.

After sorting the code we did set up streaming white noise, and returned streaming position, using Matlab to time stamp the data with the built-in tic and toc function. Unfortunately, we could only push the data to 10-20Hz, and it became unreliable at higher frequencies.

To increase frequency, we went to transmit and store the white noise data to the Arduino. We ran into programming trouble getting the data to store correctly, and called it quits.

No comments:

Post a Comment