Friday, January 25, 2013

matlab gui to control servo motor


*initial position 90 degrees


This project is almost similar to the servo motor posted before but in here mouse is used to control the motor instead of joystick.   

The signal pin (yellow) of the servo motor is connected  to the digital pin 9 of the arduino.

For the file:
step 1: open pde folder
2: open open adiosrv folder
3: upload the adiosrv pde file to your arduino
4: run the SERVO MATLAB M-File

download the file here








7 comments:

Unknown said...

thats is nice.. do you know how to control 2 servos with a similar interface??

Unknown said...

Do you know how to control 2 servos with a similar interface..??

Unknown said...

Do you know how to control 2 servos with a similar interface..??

Unknown said...

do you know how to control 2 servos with a similar interface.??

Anonymous said...

hHi when I run the servo.m file I have got this error can you help me?

Error using char/int (line 9)
The method char/int will be removed in a future release. Use sym/int instead. For example
int(sym('x^2')).

Error in SERVO>SERVO_OpeningFcn (line 68)
int pos;

Error in gui_mainfcn (line 221)
feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});

Error in SERVO (line 42)
gui_mainfcn(gui_State, varargin{:});

Draco Depresus said...

Heeey! you use a driver or something to control the motor?
I'm trying to do it with an easydriver, but i don't know where do I connect the pins step and dir, can you help me?

Draco Depresus said...

Heeey! do you use a driver or something to control the motor?
I'm trying to do it with an easydriver, but i don't know where do i connect the pins step and dir, can you help me?