Forum Discussion

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

VHDL robot design not working

Hello everybody I'm new in VHDL and I'm doing a project with DE2 board

In the project I need to build a robot.

My first step was to design a ASM and from that to take out the FSM which i did (hopefully I did it good enough)

The second step is to check one of my ASM and I choose my engine control ASM

I wrote a program in VHDL using quartus and burn it into my board

Instead of using the motors from the beginnig the idea was to used the board's led using a PWM generator that will create a "running led" effect for a curtain direction and in change it in a push of a button

but it didn't work.

Can anybody tell me what I did wrong?

I think it's in the pin assignment

34 Replies

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

    I attaching me designs just in case they are a bit different by now but they could deliver the general idea

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

    --- Quote Start ---

    Hello everybody I'm new in VHDL and I'm doing a project with DE2 board

    In the project I need to build a robot.

    My first step was to design a ASM and from that to take out the FSM which i did (hopefully I did it good enough)

    The second step is to check one of my ASM and I choose my engine control ASM

    I wrote a program in VHDL using quartus and burn it into my board

    Instead of using the motors from the beginnig the idea was to used the board's led using a PWM generator that will create a "running led" effect for a curtain direction and in change it in a push of a button

    but it didn't work.

    Can anybody tell me what I did wrong?

    I think it's in the pin assignment

    --- Quote End ---

    Hi there

    I am very new in VHDL I want to write a code for line following robot , but I faced a lot of problems because I started from zero. I spent already more than two months to learn it.

    when I started to write the code I got stuck and I couldn't know how to start.

    I tried to check from the internet but I didn't find any thing, then I found your code for robot using VHDL. could you please help me with that if you have done it successfully
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I can't really help you if I don't know what went wrong with your code

    I can tell you the steps that I had made in order to create a working code

    1. Understand your goals

    2. Pick your components according to your goals

    3. Understand how the components works

    4. Create asm

    5. Design a logic circuit

    6. Write it in vhdl

    Hope it was helpful