Moore machine


In this machine, the output is determined only by the present active state of the state machine and not by any input events.

Moore machine.png


Light switch state machine

In this example, a light switch is controlled with two buttons (ON/OFF) and each state is reached through them. The state name is on the blue part of each rectangle and the process being executed is on the bottom white part.

The blue ON and OFF represent actions from the user and the bridge between each state.

Pasted image 20241112002117.png

State transition table - Light control Moore machine

In this representation, we start from a state and an output and wait for an input event to transition to a different state. From there, we shall go back to the left of the table and start again.

Pasted image 20241112103903.png