Question: Design a finite state machine for an elevator. The elevator can be at one of two floors: first or second. There is two buttons that


Design a finite state machine for an elevator. The elevator can be at one of two floors: first or second. There is two buttons that controls the elevator SW1 and SW2. Also, there are two lights in the elevator that indicate the current floor: Red for first floor, and blue for second floor. At each time step, the controller checks the current floor and current input, changes floors and lights in the obvious way.

Step by Step Solution

3.30 Rating (147 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

State Floor Input SW 1 SW 2 ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Physics Questions!