PDA

View Full Version : Servo Motor control using MATLAB and PIC.



shirohin
- 14th July 2012, 12:42
Hi All,

This might sound a bit silly to many of you but its becoming very gruelling for me and request your help. I have written some codes and tested them successfully in MATLAB like shape classifier, object counting, colour segmentation, etc. However, I am getting absolutely no clue as to how to transmit the data from these codes to my PIC so as to control the servo motor.

For example, in shape classifier, my MATLAB code will identify a certain object. Now using my PIC (which is interfaced with MATLAB), I have to move a servo motor in the direction of that object. What data should I transmit from MATLAB to PIC that could make this happen.

Awaiting response.

Regards
Shivam

grahamg
- 14th July 2012, 16:45
I think you may be in the incorrect forum. This forum has nothing to do with Matlab.

comwarrior
- 15th July 2012, 02:44
i agree with graham,
However, trying to be helpfull...
Does matlab not transmit data out of a PC serial port? if so, connect PC serial port to PIC serial via a MAX232 and transmit the commands that way.