Please Help mini project

Discussion in 'Homework Help' started by full, Nov 15, 2014.

  1. full

    Thread Starter Member

    May 3, 2014
    225
    2
    hello
    I have project in digital ,I should use altera but first I want draw circuit :
    my project for Elevator is a system up and down. The input sends a signal and the output display the number and light of led. Next how an elevator working and used. In general, elevator is an alternative way to up and down compare to stair. Moreover, elevator is needed and used in bungalow and houses.

    On top of that, in this mini project it will be more focus on an elevator where we more focus for people to know which floor the elevator are. Why we choose an elevator in this mini project. This is because elevator is an important and very useful for people who want save their energy, time and so on. Stairs can give free exercise for people but sometime time is more important when they are in a hurry. So, elevator is a way to solve their problem.

    Besides that, elevator just use the simple system but give more advantage for users.

    my idea:
    For our project, the elevator in figure ( full.png ) is in a building of 3 floors (floor 0 to floor 3). Initially, the elevator is at floor 0 (only the bottom green LED is ON and the 7-segment Displays ‘0’) and no buttons are pushed (all red LEDs are OFF).

    For the implementation in the DE2-70 board, the LED are represented by the LEDR [0], LEDR [1], LEDR [2] and LEDR [3]. This LED represented the state of floor LED [0] for ground floor, LEDR [1] for the first floor, LEDR [1] for the second floor and LEDR [3] for the third floor. Then for the 7-segment display used to display the state of floor [0] for ground floor, [1] for first floor, [2] for second floor, [3] for the third floor.

    full2.PNG

    I can use D flip-flop in elevator, is mean same my idea?

    same this truth tube: full3.PNG

    if not same my idea in this project please help my how I can do circuit ? what I can use?

    thanks :)
     
    Last edited: Nov 15, 2014
  2. full

    Thread Starter Member

    May 3, 2014
    225
    2
    what is difference between D flip-flop and JK flip-flop if I want use in my project?
     
  3. WBahn

    Moderator

    Mar 31, 2012
    17,751
    4,799
    The excitation logic. You can use either (or you could also use a T flip-flop, but those aren't very common). The JK gives you the most flexibility which can allow you to minimize the number of external components. The D is generally the simpler to deal with conceptually for most people.
     
  4. full

    Thread Starter Member

    May 3, 2014
    225
    2
    thanks sir , is mean I can use D flip-flop in this my project?
     
  5. MrCarlos

    Active Member

    Jan 2, 2010
    400
    134
    Hello full
    Yes, of course, you can use Flip-Flip's Type D for your project.
    But. . . Why that question ??. . . Are You afraid for something ??
    In Your Original message you say you will use an Altera device.
    This would be used for what ??.
     
  6. full

    Thread Starter Member

    May 3, 2014
    225
    2
    I use 3 bit D flip-flop counter :
    my truth tube :
    full3.PNG
    and the K-map is :
    D2= Q2 Q1 X + Q2 X' Q0' +Q1' Q2 Q0 + X' Q0 Q1 Q2' + X Q2' Q1' Q0'
    D1= (Q1 + X + Q0) exclusive OR
    D0= Q0'

    first I design in logisim after work the circuit I will design in Quartus
    upload_2014-11-16_11-55-41.png

    how I can complete the circuit?
    how I can complement with 7 segment?

    thanks
     
  7. WBahn

    Moderator

    Mar 31, 2012
    17,751
    4,799
    The first thing you can do is make sure that you don't have unconnected inputs to logic gates!

    I can't figure out what you are trying to do in your project.

    What, exactly, are your inputs?

    What, exactly, is the required behavior of the elevator in response to those inputs?

    What, exactly, are your outputs?
     
  8. full

    Thread Starter Member

    May 3, 2014
    225
    2

    What, exactly, are your inputs?
    there are 4 bit :
    first : ground
    second : level1
    third :level 2
    fourth :level 3

    What, exactly, is the required behavior of the elevator in response to those inputs?

    same the elevator in the world
    is mean there are 4 pents in inside the elevator first ground second level1 third level 2 fourth level 3 , if I in ground I want go to third elevator I Press on level third and if I in level 2 I want go to ground press on ground ,normal elevator.

    What, exactly, are your outputs?

    I think 2 output

    and many thought and I got this idea ,please see my draft:
    full4.jpg

    thanks sir
     
    Last edited: Nov 16, 2014
  9. WBahn

    Moderator

    Mar 31, 2012
    17,751
    4,799
    I don't know what a 'pent' is. I'm assuming that that is a push button.

    I highly doubt that the behavior you are expected to implement is the same as for an elevator in the real world. If so, then let's say that the elevator has just stopped at Floor 2 and two people get on. One person pushes the button for Floor 1 and one person pushed the button for Floor 3. Where does the elevator go?
     
  10. full

    Thread Starter Member

    May 3, 2014
    225
    2
    I sorry for my wrong
    first go to floor 1 and second go to floor 3
    Schematic true?
     
  11. WBahn

    Moderator

    Mar 31, 2012
    17,751
    4,799
    So, let's say that you got on an elevator as the only person aboard on the ground floor and wanted to go to Floor 3. Then on Floor 2 the elevator stops and two people get on and one pushes Floor 1 and the other pushes Floor 3 (even though it is already lit because you pushed it). Would YOU be happy if the elevator then went back down to Floor 1? What if, after going to Floor 1 and dropping that person off, someone else got on at Floor 2 and pushed Floor 1. Should the elevator go back to Floor 1 again? See the problem?
     
  12. full

    Thread Starter Member

    May 3, 2014
    225
    2
    You held my project:confused:
     
  13. full

    Thread Starter Member

    May 3, 2014
    225
    2
    tell me what I will do?
     
  14. full

    Thread Starter Member

    May 3, 2014
    225
    2
    this is my mini project not project or final project !!
    please help me what i will do?!
    thanks
     
  15. WBahn

    Moderator

    Mar 31, 2012
    17,751
    4,799
    Who defined this project? You or your instructor?

    A three- or four-story elevator project is an extremely common project for a programmable logic course (and sometimes a discrete logic course) and the behaviors are almost always highly simplified with quite unrealistic assumptions as to the type of traffic using the elevator. But you can't solve ANY problem until you have a clear understanding OF the problem, which you have not yet demonstrated.

    You need to think through all of the possibilities that you can (I gave you several) and develop a clear and consistent set of rules that govern the behavior of the system.
     
  16. full

    Thread Starter Member

    May 3, 2014
    225
    2
    The first scheme ,there are ground and 3 floors

    I use Moore model in digital elevator

    this is basic elevator not large elevator !

    please see my scheme
     
    • 6.jpg
      6.jpg
      File size:
      315.9 KB
      Views:
      65
    Last edited: Dec 13, 2014
  17. full

    Thread Starter Member

    May 3, 2014
    225
    2
    if there is wrong tell me wrong!!
     
    Last edited: Dec 13, 2014
  18. full

    Thread Starter Member

    May 3, 2014
    225
    2
    I did another elevator:
    please check my elevator true?
     
  19. full

    Thread Starter Member

    May 3, 2014
    225
    2
    where is my wrong?!
     
  20. WBahn

    Moderator

    Mar 31, 2012
    17,751
    4,799
    You still haven't given any notion of a set of design specifications. How can we possibly tell you if your design meets spec if you won't tell us the specs it is supposed to meet?

    Look at your "test (1).png" image. What is that supposed to be? You have four states with a bunch of unlabeled lines going back and forth between them and a set of undefined signals that result in each state staying where it is. What is anyone supposed to make of that? If someone gave that to YOU and told you to implement it, what would be your reaction?
     
Loading...