# microchiptech/e-nose architecture

> Architecture diagram of the GitHub repository microchiptech/e-nose, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/microchiptech/e-nose
- Repository: https://github.com/microchiptech/e-nose

## Overview

E-nose is a six-sensor gas-classification system targeting an Adafruit Feather M4 Express. Its documented workflow collects sensor readings, logs them as CSV for optional Edge Impulse training, then deploys an Arduino inference sketch that reports class probabilities. The repository tree contains only README.md, so implementation paths cannot be verified; nodes therefore have null paths. Relationships shown here are limited to those stated in the README.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_collection["Data collection"]
  node_sensor_array["Six-sensor array"]
  node_collection_firmware["Sensor firmware"]
  node_python_logger["Python logger"]
  node_csv_dataset["CSV dataset"]
end

subgraph group_model["Model development"]
  node_edge_impulse["Edge Impulse"]
  node_trained_model["Classification model"]
end

subgraph group_inference["Embedded inference"]
  node_feather["Feather M4"]
  node_inference_sketch["Inference sketch"]
  node_class_scores["Class probabilities"]
end

node_sample(("Air sample"))

node_sample -->|"sensed by"| node_sensor_array
node_sensor_array -->|"read by"| node_collection_firmware
node_collection_firmware -->|"serial output"| node_python_logger
node_python_logger -->|"writes"| node_csv_dataset
node_csv_dataset -.->|"optional upload"| node_edge_impulse
node_edge_impulse -->|"trains"| node_trained_model
node_trained_model -->|"exported for"| node_inference_sketch
node_feather -->|"runs on"| node_inference_sketch
node_inference_sketch -->|"reads analog data"| node_sensor_array
node_inference_sketch -->|"runs inference"| node_trained_model
node_inference_sketch -->|"prints"| node_class_scores

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_sensor_array,node_collection_firmware,node_python_logger,node_csv_dataset toneBlue
class node_edge_impulse,node_trained_model toneAmber
class node_feather,node_inference_sketch,node_class_scores toneMint
class node_sample toneIndigo
```

## Components

### Data collection

- **Six-sensor array**
- **Sensor firmware**
- **Python logger**
- **CSV dataset**

### Model development

- **Edge Impulse**
- **Classification model**

### Embedded inference

- **Feather M4**
- **Inference sketch**
- **Class probabilities**

### Other components

- **Air sample**

## Connections

- Air sample → Six-sensor array: sensed by (evidence: `README.md`)
- Six-sensor array → Sensor firmware: read by (evidence: `README.md`)
- Sensor firmware → Python logger: serial output (evidence: `README.md`)
- Python logger → CSV dataset: writes (evidence: `README.md`)
- CSV dataset → Edge Impulse: optional upload (evidence: `README.md`)
- Edge Impulse → Classification model: trains (evidence: `README.md`)
- Classification model → Inference sketch: exported for (evidence: `README.md`)
- Feather M4 → Inference sketch: runs on (evidence: `README.md`)
- Inference sketch → Six-sensor array: reads analog data (evidence: `README.md`)
- Inference sketch → Classification model: runs inference (evidence: `README.md`)
- Inference sketch → Class probabilities: prints (evidence: `README.md`)
