Finite State Machines -
Make light work of
complex functions

Finite State diagram
State Diagrams 6, Actions

Figure 6 introduces several new concepts:

  • Several states can be combined to form a complete state diagram (I am sure you saw that one coming!)
  • Events can be something more than an input turning on or off. In this case it is a temperature measurement being compared with some limit values.
  • Actions, represented by rectangular boxes.
  • A clearly defined place where the state machine starts, denoted in this case as “Init” (initialize).

There are two action boxes in this state diagram. One turns a heater off and one turns it on. The turn-off uses the same bar across the top of the word as I used for an input being off.


Program your own Finite State Machine using a SPLat Controller for only $29.00.

The EC1 “EasyOne”, a 32-bit fully featured SPLat Controller with USB and true multi-tasking is a easy way to learn and a cheap way to build your project.

Can you work out what this state machine is for? The answer is here: