Forum Discussion

ABola2's avatar
ABola2
Icon for New Contributor rankNew Contributor
7 years ago
Solved

How to add a stepper motor to NIOS II.

Is there any Qsys IP can be used to include a stepper motor to NIOS? I need a generic IP can fit any motor.

  • Hi Amanda,

    Thanks for your trust. The stepper motor uses the simple pulse width modulator PWM controller. So you can use the PIO to control it. There is no precised Qsys component named as a stepper motor IP, but you can create one compatible with the motor you have. I will share with you the steps required to create a custom Qsys component. If you feel need more support please let me know the part number of the motor you are using.

    Regards,

4 Replies

  • Ahmed_H_Intel1's avatar
    Ahmed_H_Intel1
    Icon for Frequent Contributor rankFrequent Contributor

    Hi Amanda,

    Thanks for your trust. The stepper motor uses the simple pulse width modulator PWM controller. So you can use the PIO to control it. There is no precised Qsys component named as a stepper motor IP, but you can create one compatible with the motor you have. I will share with you the steps required to create a custom Qsys component. If you feel need more support please let me know the part number of the motor you are using.

    Regards,

  • ABola2's avatar
    ABola2
    Icon for New Contributor rankNew Contributor

    Hi,

    I see that, so there is no Qsys IP for stepper motor? if not please show me how to create a custom one.

  • Ahmed_H_Intel1's avatar
    Ahmed_H_Intel1
    Icon for Frequent Contributor rankFrequent Contributor

    Hi Amanda,

    there are many of stepper motors and there is no Generic IP to fit them, I recommend you to create a PWM controller and create your own IP in Qsys if you want. you still can use it without a Qsys components and it is very simple by writing a verilog code to control the stepper from NIOS.

    If you cannot do it yourself I can help you to get this design working.

    Regards,