Alright, so I have a homework problem I am working on. Here is the description:
Construct a garage gateway controller implemented as a Finite State Machine (FSM). The gateway system
(Figure 1) has the following features.
• An electric motor (M) that allows the gateway to be moved upwards or downwards. The FSM has to
generate the control signals (M1 and M2) to indicate when there should be motion and in which
direction. These would correspond to actuator signals in a real system.
• Two sensors that indicate if the gateway is in the topmost (ST) or bottommost (SB) position, respectively.
• A switch (S) for users to open (close) the gateway when it is fully closed (open). For simplicity, once the
gateway is moving (up or down) it cannot be stopped or the direction of the movement reversed until
the corresponding sensor (SB or ST, respectively) is activated.
So in a nutshell, I have no idea where to start with this. I just need help designing a FSM diagram and from there I know how to build it. I know there will intermediate states that the machine will go to from Topmost to Bottom most and vice versa. If someone can help me get started, I would really appreciate it.
Edit: Here is the figure http://imgur.com/4XCwo
Construct a garage gateway controller implemented as a Finite State Machine (FSM). The gateway system
(Figure 1) has the following features.
• An electric motor (M) that allows the gateway to be moved upwards or downwards. The FSM has to
generate the control signals (M1 and M2) to indicate when there should be motion and in which
direction. These would correspond to actuator signals in a real system.
• Two sensors that indicate if the gateway is in the topmost (ST) or bottommost (SB) position, respectively.
• A switch (S) for users to open (close) the gateway when it is fully closed (open). For simplicity, once the
gateway is moving (up or down) it cannot be stopped or the direction of the movement reversed until
the corresponding sensor (SB or ST, respectively) is activated.
So in a nutshell, I have no idea where to start with this. I just need help designing a FSM diagram and from there I know how to build it. I know there will intermediate states that the machine will go to from Topmost to Bottom most and vice versa. If someone can help me get started, I would really appreciate it.
Edit: Here is the figure http://imgur.com/4XCwo
Last edited: