From all the OS's of the world, you had to torture your PC with Vista?Vista
From all the OS's of the world, you had to torture your PC with Vista?Vista
Yes I'm still at working it. I've got alot of other coursework to do as well, so this is only one of many things I'm trying to manage.jegues, are you still there. I haven't given up on this project, have you? I'm willing to bet I can help you get an A for the project. I haven't yet begun to fight! Your instructor is just messing with your head. You stick it to him by doing it. And I know we can do it. It's hard work, but are you with me? If you are, we'll get it done! I lost the use of my scanner, but I'll use that dang MS program, Paint, to make up for it. Are you willing to do the work? jeqies, what is the deadline? Roll up your sleeves, man, put up your fists. Do it.
Your approach may work, but that's not what jegues learned in class; that is, if things haven't changed much since I went to school. If he used your approach and succeeded in meeting the requirements for the elevator, he would probably not get an A or even a B. I know this because I did it with the result that it only made the instructor angry since I didn't use the approach taught in class. By the way, I got a C on that project. I think jegues wants an A.
After I finished school, when I actually had some time on my hands, I went back over sequential logic and cleared up the things that had gotten past me. I'd like to help jegues and his friends from making the same mistake I did.
So where does this leave me? I'm not entirely sure what assumptions I should ask him about.Thanks for the reply. I thought you had given up. Good to see you are still thinking about it. How much time do you have to come up with a solution? I lost my printer/scanner and therefore I can't draw diagrams for except using Paint and that's not easy for me. I feel like a child drawing with a big crayon in his fist.
I actually have thought more about the problem and I think that if you want an elevator that mimics an actual elevator, you've got a big project on your hands. Is this an end-of-course lab project? Do you have to actually build it?
Here is a major consideration for a real elevator: To some extent, the push buttons need to be remembered. This requires a data latch (flip flop) for each push button. At what point do you reset a bush button? At the point where the floor has been serviced? But in that case, what if the car is heading to F2 (floor 2) when someone on F3 pushes F2? The elevator then stops at F2 and its flip flop is cleared. Then the person on F3 is left wondering why the elevator never showed up?
The upshot is a need to remember multiple calls for the elevator to specific floors. It occurs to me that when a person on floor three presses 2, he is giving info about where is is currently at and where he wants to go. Somehow all of this information has to be condensed by a simple algorithm. Ask your teacher if he or she will allow for certain simplifying assumptions and just what those are.
Getting back to the first point: Say the car is heading to F2 from F1 and two people -- one on F1 and the other on F3 -- push 2? And what if we cleared flip flop 2 when the F2 was serviced (i.e. the car stops there)? The car would stay at F2 in this case. So we need to remember the call at F3 and F1, and I'm guessing two calls are enough. Therefore we need the flip flop 2 to be reset after the current call if there are no more calls to F2. This means we need to remember as many as 3 calls to F2. So we need a hardware implementation of LIFO up to 3 calls. LIFO is last in first out, like a stack of cafeteria trays. The number of calls for each floor would be stored in an up down counter that counts no higher than 2. (0, 1, 2). Each time the floor is serviced the counter is decremented. Each time the floor is called the counter is incremented, but up to 3 and no higher.
If the ceiling of 3 calls is not made a design feature, it's possible a prankster could hit a button 30 times and make the car go there on every assent or descent.
I don't think he understands how easy he has it!This makes building soooo much easier. You don't have to worry about the size of the build anymore. You can make Karnaugh Maps as large as you want. You don't care for the number of the gates you will use, because you won't have actual ICs on your hands.
I'm going to make an attempt (sometime today hopefully) at making a state diagram.Did they have to wait for a week to tell you that you will be using an FPGA? REALLY?
This makes building soooo much easier. You don't have to worry about the size of the build anymore. You can make Karnaugh Maps as large as you want. You don't care for the number of the gates you will use, because you won't have actual ICs on your hands.
In that case I suggest you construct an FSM with all possible inputs. It will be kind of hard to solve the Karnaugh maps, but the operation will be straightforward. Check this submission for more on constructign an FSM. http://forum.allaboutcircuits.com/showthread.php?t=44399
The hard part is to make the state diagram. I will be away 'till Sunday but if I find a PC I will try to help you more.
s2 s1 b3 b2 b1 u/d' on/off' L3 L2 L1
0 0 0 0 0
0 0 0 0 1
0 0 0 1 0
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
A | I need assistance asap, assignment due in 4 hours. Elevator circuit. | Homework Help | 22 | |
D | Elevator simulation circuit | Homework Help | 15 | |
P | Elevator Circuit | General Electronics Chat | 7 | |
K | 3 Storie Elevator Logic Circuit | General Electronics Chat | 18 | |
A | 3-storey elevator circuit | Homework Help | 3 |