Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21618 Discussions

stepper motor and FPGA question about pins assignment

Altera_Forum
Honored Contributor II
1,216 Views

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:
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
494 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
494 Views

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
0 Kudos
Reply