Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

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

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.. :)

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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..

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.