The room is divided into three cells named C0 C1 and C2. S0, S1 and S2 are state variables that store the present state of the cell (i.e. state is 1 if people are present in the cell and 0 if cell is vacant). A small region near the door is assigned a state variable S3.
It is an intermediate state that is used to determine entry into and exit from the room. L0, L1, L2, L3, L4, L5 are the sensors placed in the room to determine the transition of people across the room through various cells. This is necessary to determine the present state of each cell so as to do automatic lighting up of an LED array provided in each cell if count of people is the cell is greater than zero. The LED array in each cell is OFF if the cell is empty.
STATE SYNTHESIZER
The automatic lighting system control is implemented with the help of a state synthesizer, which generates the next state with the help of present state and sensor inputs. A program is written and the artificial intelligence is created by burning that program into the microcontroller that emulates the function of a state synthesizer.The state transitions are detected by the sensor inputs and past states. The output of the state synth is the state itself hence its a moore one.
No comments:
Post a Comment