Design a finite state machine to control a device which consists of five sensors lined up in a row, controlled by the finite state machine’s outputs Zero, One, Two, Three, and Four. The five sensors scan an area outside a building. Each sensor scans one part of that area. When the sensor’s output is one, it is scanning its area, and when the sensor’s output is zero, it is not scanning its area. Only one sensor is on at a time meaning that each sensor takes a turn at being the sensor that is currently on. This turn taking follows a backand-forth motion going from left to right and then going from right to left. It is this “motion” that the finite state machine controls. The clock speed (which you do not need to know) regulates the rate of the motion. There are no inputs for the finite state machine. a. Draw the State Diagram for the controller
Design a finite state machine to control a device which consists of five sensors lined up in a row, controlled by the finite state machine’s outputs Zero, One, Two, Three, and Four. The five sensors scan an area outside a building. Each sensor scans one part of that area. When the sensor’s output is one, it is scanning its area, and when the sensor’s output is zero, it is not scanning its area. Only one sensor is on at a time meaning that each sensor takes a turn at being the sensor that is currently on. This turn taking follows a backand-forth motion going from left to right and then going from right to left. It is this “motion” that the finite state machine controls. The clock speed (which you do not need to know) regulates the rate of the motion. There are no inputs for the finite state machine.
a. Draw the State Diagram for the controller
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 1 images