Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17049 Discussions

dc motor parking gate project in quartus 2 v8.0 for altera flex10k

Altera_Forum
Honored Contributor II
1,463 Views

hi, i would like to have some help in how to create a simple parking gate using dc motor interface by altera up2 board. so now, i just complete a code that can make the dc motor rotating clockwise and anticlockwise without stopping by pressing the push button on the board. is there anybody that could help me with the code..? it's hard for me to do this coz lack of experience and knowledge about this thing..you guys can check for the coding attachment..thanks.. :)

(Virus scan in progress ...)
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
668 Views

Can you be a bit more specific. Do you want to let it stop automatically, or do you want to use a remote? 

The code you gave was correct (you could remove the 2-bit vector z becouse you don't use it) but doesn't explain what you want. 

If you tell a bit more about your requirements, we might be able to help you. 

 

Also you might want to try some simple designs that help you understand the language, like a knightrider effect on some LEDs or a simple pattern recognition device.
0 Kudos
Altera_Forum
Honored Contributor II
668 Views

i want the motor to stop automatically after pressing push button , and rotating only 25% to ensure that my gate is opened at 90 degrees angle..and im using 2 motor for 2 gate, entrance and exit gate..i have to use the vhdl and altera up2 board as it is a requirement for my project..

0 Kudos
Altera_Forum
Honored Contributor II
668 Views

Than you'll need a timer or better, an encoder. But can't you ask your teacher? He might help you better becouse he knows the specific situation.

0 Kudos
Reply