MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by Mohamed Dahy
on 13 Mar 2011

I need a simulation model for a bipolar 2-phase permanent magnet stepper motor and the pulse generator model for the motor ..

http://www.megaupload.com/?d=T6W2ANZH

this link include the last model I reached but it has some problems , also you will find the paper whice I used to make this model..

*No products are associated with this question.*

Answer by Arnaud Miege
on 14 Mar 2011

Accepted answer

You don't say what the problems are with your model. Also, have you looked at the Stepper Motor and Stepper Motor Driver from SimElectronics?

HTH,

Arnaud

Show 1 older comment

Mohamed Dahy
on 18 Mar 2011

Model after editing and stepper parameters

http://www.megaupload.com/?d=T6W2ANZH

Arnaud Miege
on 21 Mar 2011

I am not sure I understand what your problem is. Your model appears to run OK. I cannot comment on whether it gives the results you expect or not. I did notice though a 'sin(2*u+90)' block, where I think the input is in radians. If that's the case, then it should be 'sin(2*u+pi/2)', provided the formula is correct. If you want to use the stepper motor from SimElectronics, have a look at the shipping demo elec_controlled_stepper.mdl. If this doesn't meet your requirements, you can always use the Simscape language to create your own stepper motor model.

## 0 Comments