# asrafiel/daisy-seed-development-kit architecture

> Architecture diagram of the GitHub repository asrafiel/daisy-seed-development-kit, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-05-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/asrafiel/daisy-seed-development-kit
- Repository: https://github.com/asrafiel/daisy-seed-development-kit

## Overview

1. **Repository purpose**
   - This is a modular hardware/software kit for the **Electrosmith Daisy Seed** embedded audio platform.
   - The repo combines **PCB designs**, **embedded C++ drivers**, a small **UI framework library**, and at least one **example audio app**.

2. **Top-level architecture**
   - The codebase is organized around three main layers:
     - **Hardware modules** in `Hardware/`
     - **Reusable software library code** in `Library/`
     - **Example application(s)** in `Examples/`
   - This makes the repo a mix of product hardware and firmware support code, not a single monolithic app.

3. **Hardware subsystem: modular boards**
   - Each hardware module is a distinct KiCad project with its own schematic, PCB, BOM, and fabrication outputs.
   - The main modules are:
     - **BreakoutBoard**: central interconnect board for the Daisy Seed and peripherals
     - **ExternalCodec**: external audio codec board plus driver and tests
     - **Midi**: MIDI interface board with a test program
     - **PotentiometerArray**: 16-pot control surface with drivers and tests
   - The architecture implies the breakout board is the hub, while the other boards are attachable peripherals.

4. **Firmware/hardware boundary**
   - Hardware modules that expose behavior to firmware have corresponding **C++ driver code** alongside the PCB design.
   - Examples:
     - `Hardware/ExternalCodec/Drivers`
     - `Hardware/PotentiometerArray/Drivers`
   - This indicates a clean separation between the physical board definition and the embedded interface used by application code.

5. **Example application as system integration**
   - `Examples/MonoSeed09` is the main runnable firmware example.
   - The README shows it is built and flashed with `make` and `make program-dfu`, targeting the Daisy Seed over DFU.
   - The example demonstrates the integrated system: Daisy Seed + breakout board + potentiometers + MIDI input + audio output.

6. **UI framework library**
   - `Library/UiFramework` is a reusable C++ library for building device UIs.
   - It is structured into:
     - **Display** abstraction
     - **View** layer
     - **Presenters** for pages, list items, settings, numeric options, and navigation
     - **Utilities** for UI parameter handling
   - The naming suggests a presenter/view style architecture for embedded controls, likely used to drive displays and user settings on the device.

7. **Data and control flow**
   - External inputs come from **MIDI**, **potentiometers**, and potentially an **encoder/I2C/SPI/SD card** via the breakout board.
   - These inputs are read by hardware-specific drivers and then flow into application logic and/or the UI framework.
   - Output flow goes from the application to **audio hardware** through the codec path, and to any on-device display/UI via the `UiFramework`.

8. **External interfaces and peripherals**
   - The breakout board is described as exposing connections for:
     - a second potentiometer array
     - SPI
     - I2C
     - an encoder
     - an SD card
   - MIDI is handled through a dedicated adapter board and DIN connector.
   - Audio is provided through the Daisy Seed plus codec path, with the README referencing headphones on the audio out jack.

9. **Build and deployment model**
   - Firmware projects use **Makefiles** and appear to build as embedded C++ programs against **libDaisy** and **DaisySP**.
   - The README requires `LIBDAISY_DIR` and `DAISYSP_DIR`, so those are core external dependencies for building audio firmware.
   - Deployment is to the Daisy Seed via **DFU/program mode**.

10. **Testing strategy**
   - The repo includes both **unit tests** and **manual/standalone hardware tests**.
   - The hardware modules have their own focused test programs, such as:
     - driver tests
     - standalone hardware tests
     - MIDI input tests
     - single/multiple potentiometer tests
   - This suggests validation happens at the module level before integration into the example app.

11. **Likely architecture diagram framing**
   - A useful diagram would place the **Daisy Seed** in the center, connected to:
     - the **BreakoutBoard**
     - **PotentiometerArray**
     - **MIDI adapter**
     - **ExternalCodec**
   - Above that, show the **firmware/application layer** and **UiFramework** as reusable software components.
   - Around the edges, show **KiCad hardware projects** and **test executables** as supporting artifacts.

12. **Overall design intent**
   - The repo is built to support **modular embedded audio development**: hardware boards can be fabricated independently, drivers can be tested independently, and then everything is integrated in an example instrument/utility firmware.
   - The structure is optimized for reuse and incremental hardware expansion rather than a single fixed product.

Main entry points: [`Examples/MonoSeed09/MonoSeed09.cpp`](https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Examples/MonoSeed09/MonoSeed09.cpp) (MonoSeed09), [`Library/UiFramework`](https://github.com/asrafiel/daisy-seed-development-kit/tree/main/Library/UiFramework) (UiFramework), [`Hardware/BreakoutBoard/PCB/BreakoutBoard/BreakoutBoard.kicad_pcb`](https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Hardware/BreakoutBoard/PCB/BreakoutBoard/BreakoutBoard.kicad_pcb) (Breakout Board), [`Hardware/ExternalCodec/Drivers/ExternalCodec.cpp`](https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Hardware/ExternalCodec/Drivers/ExternalCodec.cpp) (Codec Driver)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_hardware["Hardware"]
  node_breakout_board["Breakout Board<br/>carrier PCB"]
  node_external_codec_board["External Codec<br/>audio PCB"]
  node_external_codec_driver["Codec Driver<br/>C++ driver<br/>[ExternalCodec.cpp]"]
  node_external_codec_tests["Codec Tests<br/>driver/hardware tests<br/>[DriverTest.cpp]"]
  node_midi_board["MIDI Board<br/>I/O PCB<br/>[Midi.kicad_pcb]"]
  node_midi_test["MIDI Test<br/>hardware test<br/>[MidiInTest.cpp]"]
  node_pot_array_board["Pot Array<br/>control PCB"]
  node_pot_array_driver["Pot Driver<br/>C++ driver"]
  node_pot_array_tests["Pot Tests<br/>driver tests"]
end

subgraph group_library["Library"]
  node_ui_framework["UiFramework<br/>UI library"]
  node_display["Display<br/>UI abstraction<br/>[Display.cpp]"]
  node_view_layer["View Layer<br/>UI view<br/>[View.h]"]
  node_presenters["Presenters<br/>UI presenter layer<br/>[Page.h]"]
  node_ui_utils["UI Utilities<br/>parameter helpers<br/>[UiParameter.h]"]
end

subgraph group_examples["Examples"]
  node_mono_seed_09["MonoSeed09<br/>example firmware<br/>[MonoSeed09.cpp]"]
end

node_daisy_seed(("Daisy Seed<br/>MCU platform"))
node_libdaisy["libDaisy<br/>external SDK"]
node_daisysp["DaisySP<br/>audio DSP SDK"]

node_breakout_board -->|"hosts/connects"| node_daisy_seed
node_external_codec_board -->|"attaches"| node_breakout_board
node_midi_board -->|"attaches"| node_breakout_board
node_pot_array_board -->|"attaches"| node_breakout_board
node_external_codec_driver -->|"drives"| node_external_codec_board
node_external_codec_tests -->|"verifies"| node_external_codec_driver
node_midi_test -->|"verifies"| node_midi_board
node_pot_array_driver -->|"drives"| node_pot_array_board
node_pot_array_tests -->|"verifies"| node_pot_array_driver
node_ui_framework -->|"contains"| node_display
node_ui_framework -->|"contains"| node_view_layer
node_ui_framework -->|"contains"| node_presenters
node_ui_framework -->|"contains"| node_ui_utils
node_mono_seed_09 -->|"targets"| node_daisy_seed
node_mono_seed_09 -->|"uses"| node_external_codec_driver
node_mono_seed_09 -->|"uses"| node_pot_array_driver
node_mono_seed_09 -->|"uses"| node_midi_board
node_mono_seed_09 -->|"uses"| node_ui_framework
node_mono_seed_09 -->|"builds on"| node_libdaisy
node_mono_seed_09 -->|"builds on"| node_daisysp

click node_breakout_board "https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Hardware/BreakoutBoard/PCB/BreakoutBoard/BreakoutBoard.kicad_pcb"
click node_external_codec_board "https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Hardware/ExternalCodec/PCB/ExternalCodec/ExternalCodec.kicad_pcb"
click node_external_codec_driver "https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Hardware/ExternalCodec/Drivers/ExternalCodec.cpp"
click node_external_codec_tests "https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Hardware/ExternalCodec/Tests/DriverTest/DriverTest.cpp"
click node_midi_board "https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Hardware/Midi/PCB/Midi/Midi.kicad_pcb"
click node_midi_test "https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Hardware/Midi/Test/MidiInTest/MidiInTest.cpp"
click node_pot_array_board "https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Hardware/PotentiometerArray/PCB/PotentiometerArray/PotentiometerArray.kicad_pcb"
click node_pot_array_driver "https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Hardware/PotentiometerArray/Drivers/PotentiometerArray.cpp"
click node_pot_array_tests "https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Hardware/PotentiometerArray/Tests/SingleValueTest/SingleValueTest.cpp"
click node_ui_framework "https://github.com/asrafiel/daisy-seed-development-kit/tree/main/Library/UiFramework"
click node_display "https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Library/UiFramework/Display.cpp"
click node_view_layer "https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Library/UiFramework/View/View.h"
click node_presenters "https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Library/UiFramework/Presenters/Page.h"
click node_ui_utils "https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Library/UiFramework/Utilities/UiParameter.h"
click node_mono_seed_09 "https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Examples/MonoSeed09/MonoSeed09.cpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_breakout_board,node_external_codec_board,node_external_codec_driver,node_external_codec_tests,node_midi_board,node_midi_test,node_pot_array_board,node_pot_array_driver,node_pot_array_tests toneBlue
class node_ui_framework,node_display,node_view_layer,node_presenters,node_ui_utils toneAmber
class node_mono_seed_09 toneMint
class node_daisy_seed,node_libdaisy,node_daisysp toneNeutral
```

## Components

### Hardware

KiCad boards, attached drivers, and hardware tests

- [Breakout Board](https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Hardware/BreakoutBoard/PCB/BreakoutBoard/BreakoutBoard.kicad_pcb): carrier PCB · Central interconnect board for peripherals and expansion · `Hardware/BreakoutBoard/PCB/BreakoutBoard/BreakoutBoard.kicad_pcb`
- [External Codec](https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Hardware/ExternalCodec/PCB/ExternalCodec/ExternalCodec.kicad_pcb): audio PCB · External audio codec board with firmware driver and tests · `Hardware/ExternalCodec/PCB/ExternalCodec/ExternalCodec.kicad_pcb`
- [Codec Driver](https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Hardware/ExternalCodec/Drivers/ExternalCodec.cpp): C++ driver · Firmware interface for the external codec board · `Hardware/ExternalCodec/Drivers/ExternalCodec.cpp`
- [Codec Tests](https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Hardware/ExternalCodec/Tests/DriverTest/DriverTest.cpp): driver/hardware tests · Standalone validation for codec driver and board behavior · `Hardware/ExternalCodec/Tests/DriverTest/DriverTest.cpp`
- [MIDI Board](https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Hardware/Midi/PCB/Midi/Midi.kicad_pcb): I/O PCB · Dedicated MIDI adapter board with DIN interface · `Hardware/Midi/PCB/Midi/Midi.kicad_pcb`
- [MIDI Test](https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Hardware/Midi/Test/MidiInTest/MidiInTest.cpp): hardware test · Standalone MIDI input test program · `Hardware/Midi/Test/MidiInTest/MidiInTest.cpp`
- [Pot Array](https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Hardware/PotentiometerArray/PCB/PotentiometerArray/PotentiometerArray.kicad_pcb): control PCB · 16-potentiometer control surface and sensor board · `Hardware/PotentiometerArray/PCB/PotentiometerArray/PotentiometerArray.kicad_pcb`
- [Pot Driver](https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Hardware/PotentiometerArray/Drivers/PotentiometerArray.cpp): C++ driver · Firmware interface for the potentiometer array · `Hardware/PotentiometerArray/Drivers/PotentiometerArray.cpp`
- [Pot Tests](https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Hardware/PotentiometerArray/Tests/SingleValueTest/SingleValueTest.cpp): driver tests · Single and multiple value validation for the pot array · `Hardware/PotentiometerArray/Tests/SingleValueTest/SingleValueTest.cpp`

### Library

Reusable embedded UI framework

- [UiFramework](https://github.com/asrafiel/daisy-seed-development-kit/tree/main/Library/UiFramework): UI library · Reusable embedded UI framework for device screens and controls · `Library/UiFramework`
- [Display](https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Library/UiFramework/Display.cpp): UI abstraction · Display-facing rendering and presentation boundary · `Library/UiFramework/Display.cpp`
- [View Layer](https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Library/UiFramework/View/View.h): UI view · View abstractions and page rendering components · `Library/UiFramework/View/View.h`
- [Presenters](https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Library/UiFramework/Presenters/Page.h): UI presenter layer · Page, settings, navigation, and numeric UI presenters · `Library/UiFramework/Presenters/Page.h`
- [UI Utilities](https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Library/UiFramework/Utilities/UiParameter.h): parameter helpers · UI parameter and provider support types · `Library/UiFramework/Utilities/UiParameter.h`

### Examples

Runnable integration firmware

- [MonoSeed09](https://github.com/asrafiel/daisy-seed-development-kit/blob/main/Examples/MonoSeed09/MonoSeed09.cpp): example firmware · Integrated runnable audio firmware example · `Examples/MonoSeed09/MonoSeed09.cpp`

### Other components

- **Daisy Seed**: MCU platform · Central embedded audio target and integration hub
- **libDaisy**: external SDK · Embedded audio platform SDK used for build and device access
- **DaisySP**: audio DSP SDK · Audio signal-processing dependency for firmware builds

## Connections

- Breakout Board → Daisy Seed: hosts/connects · Provides the main expansion and peripheral connections for the seed
- External Codec → Breakout Board: attaches · Audio codec hardware is part of the modular board set
- MIDI Board → Breakout Board: attaches · MIDI interface board plugs into the system expansion path
- Pot Array → Breakout Board: attaches · Potentiometer control surface connects through the breakout hub
- Codec Driver → External Codec: drives · Driver layer controls the external codec board
- Codec Tests → Codec Driver: verifies · Tests exercise the codec driver and board behavior
- MIDI Test → MIDI Board: verifies · Standalone test program validates MIDI input handling
- Pot Driver → Pot Array: drives · Driver layer reads the potentiometer array hardware
- Pot Tests → Pot Driver: verifies · Tests cover single and multiple value sampling behavior
- UiFramework → Display: contains · UI framework is organized around display abstractions
- UiFramework → View Layer: contains · View layer defines screen rendering structures
- UiFramework → Presenters: contains · Presenter components model pages, items, and navigation
- UiFramework → UI Utilities: contains · Utility types handle UI parameters and providers
- MonoSeed09 → Daisy Seed: targets · Firmware runs on the Daisy Seed platform
- MonoSeed09 → Codec Driver: uses · Example integrates external codec support
- MonoSeed09 → Pot Driver: uses · Example reads potentiometer input through the driver
- MonoSeed09 → MIDI Board: uses · Example consumes MIDI input from the dedicated board
- MonoSeed09 → UiFramework: uses · Example can present device UI via the reusable framework
- MonoSeed09 → libDaisy: builds on · Firmware is built against the Daisy embedded SDK
- MonoSeed09 → DaisySP: builds on · Example depends on the audio DSP library
