Forum Discussion
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- Although this can be surely done in FPGA, it's not clear what you want to achieve. Are you actually talking about pwm used with stepper motor, e.g for constant phase current? But why should it use variable frequency? Why step frequency fixed to 1 Hz? --- Quote End --- thanks for your reply. I have a step motor and a step motor controler,when the FPGA or MCU give a plus to the step motor controler,the step motor will rotate a small angle. so,I want to genrate plus to make the step motor controler work.The %50 Duty cycle pwm is suit for this. why step frequancy need variable frequency: if FPGA give one plus to the step motor controler in one second,the step motor will rotate one small angle,FPGA give two plus to the step motor controler in one second,the step motor will rotate two small angle in one second.......so on. The pwm frequency is relation whit the step motor's rotation speed. When the step motor work ,it's rotation speed should increase from zero to a high speed.That is to say,the pwm frequancy should increase from zero to high data. So,I need variable frequency pwm. And,Why step frequency fixed to 1Hz? When the pwm frequency increase,the step motor's rotation speed will increase too.But,if want the step motor's speed increase smoothly ,the pwm frequency can not increase too fast. So,I want the step frequency fixed to 1Hz. Here is a blog about step motor's motion characteristic. https://www.embedded.com/design/mcus-processors-and-socs/4006438/generate-stepper-motor-speed-profiles-in-real-time Thanks again!