1 Introduction and Goals

This document is the software architecture of the Station application, the host software that runs on the Raspberry Pi described in the System building block view. It is written in the style of arc42. The machine-wide context, quality goals, naming conventions, and the Station-Pod wire protocol are defined once in the system documentation and referenced from here rather than repeated. See System introduction, System quality goals, System naming conventions, and System protocol concept.

Requirements Overview

The Station is the machine’s sole orchestrator. It hosts the Guest UI and the Operator UI on the same touch display, owns the domain model (recipes, ingredients, glasses, and the ingredient-to-dispenser mapping), discovers and tracks connected Pods, and turns a selected recipe into a sequence of dispensing commands sent to those Pods.

  • Let a Guest browse available recipes, select a glass, and start a mix without any instructions.

  • Turn a recipe into a sequence of dispensing actions, scaled to the chosen glass, and carry them out by commanding the appropriate Pods.

  • Track which Pods are connected and reflect their live state to the UI.

  • Let an Operator choose the active glass volumes and the ingredient-to-dispenser mapping and calibrate a dispenser, gated behind authentication.

Quality Goals

The quality goals driving the Station’s architecture are the machine-wide goals defined in the System quality goals.

Stakeholders

Role Expectation

Guest

Orders and receives a drink using only the touch screen, with no instructions needed.

Operator

Refills, cleans, calibrates, and chooses the glass volumes and the ingredient-to-dispenser mapping without needing deep technical expertise.

Station maintainer

Extends recipes, ingredients, glasses, and pod communication over time without destabilizing the safety-critical dispensing path.

Continue with 2 Constraints.