Software Design

Washing Machine Firmware State Machine

State Diagrams · made in Skemio

State diagram of a washing machine cycle showing Idle, Filling, Washing, Rinsing, Draining, Spinning, and Paused states.
State diagram of a washing machine cycle showing Idle, Filling, Washing, Rinsing, Draining, Spinning, and Paused states.

What it shows

  • Sequential operational phases enforce safe hardware transitions.
  • Interrupt transitions handle physical events like lid open safely.
  • Drain safeguards avoid high-RPM spinning while water is in drum.

The takeaway

Embedded state machines protect physical actuators by enforcing sequential cycles and hardware interrupts.

More state diagrams