The current submission illustrates a way to use the popular open source arduino boards with MATLAB illustrating the capabilities of data acquisition and visualization in real time .
The Arduino Demilanove based on the ATMEGA 328 is used to send a series of time series through the serial interface and the matlab code acquires the data and performs a meaningful part of the same at a baud rate of 9600.
There are quite a few things that could be made more visually appealing by using Matlab with the microcontrollers !
I was happy to get my board at a low cost not bearing much custom duties and i have listed the vendor who markets them in India !
Thanks for this one. However, I am using gizDuino MiniUSB with ATEM328. Unlike Arduino Uno, gizDuino is being read by the computer as "libusb" not as coneected in communication port. Therefore I have the problem of identifying what COM port to be use. Can you help me figure out how to solve my problem?
i want to ask about the interface with arduino and matlab..i am now trying to get the data from potentiometer which is attached at my stepper motor shaft..can anybody tell me how to get the data from potentiometer through arduino board to my computer(MATLAB) and try to plot the graph at the same time?..i have the code to plot the graph but i cant run both files at the same..
either i run my motor or get data from potentiometer by turning the potentiometer myself..so how do i solve this??..
A simple fix to the problem faced is to make the arduino to get a start command from the matlab and then start the communication from the arduino end.I have had success doing this and may be post an other sketch to the file exchange.
Thanks Ram. I was using code similar to the screen shot and it was not solving the timeout problems. It took me quite some time to figure this out but here's what was happening (In case anyone else cares):
The Arduino Starts sending serial messages on bootup. If Matlab is stated after the Arduino Matlab has a lot of trouble framing the Serial messages. What does work is to reset the arduino, and then while the bootloader is starting up, open the serial port. That way Matlab doesn't time out and it gets the first reading for the arduino. Another solution is to implement some sort of handshaking.