Forum Discussion
Altera_Forum
Honored Contributor
12 years agostepper motor and FPGA question about pins assignment
Hi everyone. My mission this week is to make a step motor move by FPGA
I need to program the FPGA to send out a pulse, and i plan to use the clock to send a 3.3V and then connect to the stepper motor, however, i have no idea which pin to use... I tried to write some codes, here are my codes(it's probably really stupid to someone, but please help me) module simplemotion(switch, clk, motion); input switch,clk ; output motion; assign motion = switch&clk ; endmodule so when switch is on , then motion will be equal to clk. However, it doesnt move. Would anybody help me.:cry:2 Replies
- Altera_Forum
Honored Contributor
Without the motor specs it's hard to say. It may be the drive requirement is more than the FPGA can provide, or your clock is clocking faster than your motor can respond to.
First things first however. With the motor disconnected, you you see with an oscope the clock output when the motion pin is in the correct state? Pete - Altera_Forum
Honored Contributor
the motor controller i am using is M542
and the FPGA i am using is the one with the chip EP1C3T100C8N i will try to check the frequency by CRO first