# kwwsoft/irstation_448 architecture

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

- Interactive diagram: https://gitdiagram.com/kwwsoft/irstation_448
- Repository: https://github.com/kwwsoft/irstation_448

## Overview

This repository contains PIC18F448 firmware and a Windows PC application for an infrared soldering station. The apparent user workflow is operating the station through the PC interface, with automatic, manual, preheat, and historical-data screens, alongside embedded control and sensor-reading code. The entry point explicitly creates the application forms. Firmware internals and PC-to-station communication are not shown in the excerpts or README, so their connections are omitted; the hardware layout files are represented without inferred wiring.

Main entry points: [`soft_pc/irstation.cpp`](https://github.com/kwwsoft/irstation_448/blob/master/soft_pc/irstation.cpp) (PC entry point), [`soft_pc/Unit2.cpp`](https://github.com/kwwsoft/irstation_448/blob/master/soft_pc/Unit2.cpp) (Station interface), [`soft_pc/MenuAvtomat3Form.cpp`](https://github.com/kwwsoft/irstation_448/blob/master/soft_pc/MenuAvtomat3Form.cpp) (Automatic mode), [`soft_pc/MenuManualForm.cpp`](https://github.com/kwwsoft/irstation_448/blob/master/soft_pc/MenuManualForm.cpp) (Manual screen)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pc["PC application"]
  node_pc_entry["PC entry point<br/>[irstation.cpp]"]
  node_station_ui["Station interface<br/>[Unit2.cpp]"]
  node_automatic["Automatic mode"]
  node_manual_ui["Manual screen<br/>[MenuManualForm.cpp]"]
  node_preheat["Preheat screen"]
  node_preheat_pid["Preheat PID"]
  node_old_data["Historical data"]
  node_about["About screen<br/>[about.cpp]"]
end

subgraph group_firmware["Station firmware"]
  node_controller["PIC controller<br/>[irs448.c]"]
  node_firmware_init["Hardware initialization<br/>[global.c]"]
  node_resistor_adc["Resistor sensing<br/>[adc_resistor.c]"]
  node_manual_control["Manual control<br/>[manual.c]"]
  node_variables["Firmware variables<br/>[variables.c]"]
end

subgraph group_hardware["Hardware design"]
  node_main_layout["Main board layout<br/>[main.lay]"]
  node_regulator_layout["Regulator design"]
  node_power_layout["Power layout<br/>[power.lay]"]
end

node_operator(("Operator"))

node_operator -.->|"starts"| node_pc_entry
node_pc_entry -->|"creates form"| node_station_ui
node_pc_entry -->|"creates form"| node_automatic
node_pc_entry -->|"creates form"| node_manual_ui
node_pc_entry -->|"creates form"| node_preheat
node_pc_entry -->|"creates form"| node_old_data
node_pc_entry -->|"creates form"| node_about

click node_pc_entry "https://github.com/kwwsoft/irstation_448/blob/master/soft_pc/irstation.cpp"
click node_station_ui "https://github.com/kwwsoft/irstation_448/blob/master/soft_pc/Unit2.cpp"
click node_automatic "https://github.com/kwwsoft/irstation_448/blob/master/soft_pc/MenuAvtomat3Form.cpp"
click node_manual_ui "https://github.com/kwwsoft/irstation_448/blob/master/soft_pc/MenuManualForm.cpp"
click node_preheat "https://github.com/kwwsoft/irstation_448/blob/master/soft_pc/MenuPreHeatForm.cpp"
click node_preheat_pid "https://github.com/kwwsoft/irstation_448/blob/master/soft_pc/GyverPIDPreHeatForm.h"
click node_old_data "https://github.com/kwwsoft/irstation_448/blob/master/soft_pc/MenuOldDatalForm.cpp"
click node_about "https://github.com/kwwsoft/irstation_448/blob/master/soft_pc/about.cpp"
click node_controller "https://github.com/kwwsoft/irstation_448/blob/master/soft/irs448.c"
click node_firmware_init "https://github.com/kwwsoft/irstation_448/blob/master/soft/global.c"
click node_resistor_adc "https://github.com/kwwsoft/irstation_448/blob/master/soft/adc_resistor.c"
click node_manual_control "https://github.com/kwwsoft/irstation_448/blob/master/soft/manual.c"
click node_variables "https://github.com/kwwsoft/irstation_448/blob/master/soft/variables.c"
click node_main_layout "https://github.com/kwwsoft/irstation_448/blob/master/hard/main.lay"
click node_regulator_layout "https://github.com/kwwsoft/irstation_448/blob/master/hard/reguljator_main.spl7"
click node_power_layout "https://github.com/kwwsoft/irstation_448/blob/master/hard/power.lay"

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_pc_entry,node_station_ui,node_automatic,node_manual_ui,node_preheat,node_preheat_pid,node_old_data,node_about toneBlue
class node_controller,node_firmware_init,node_resistor_adc,node_manual_control,node_variables toneAmber
class node_main_layout,node_regulator_layout,node_power_layout toneMint
class node_operator toneIndigo
```

## Components

### PC application

- [PC entry point](https://github.com/kwwsoft/irstation_448/blob/master/soft_pc/irstation.cpp): `soft_pc/irstation.cpp`
- [Station interface](https://github.com/kwwsoft/irstation_448/blob/master/soft_pc/Unit2.cpp): `soft_pc/Unit2.cpp`
- [Automatic mode](https://github.com/kwwsoft/irstation_448/blob/master/soft_pc/MenuAvtomat3Form.cpp): `soft_pc/MenuAvtomat3Form.cpp`
- [Manual screen](https://github.com/kwwsoft/irstation_448/blob/master/soft_pc/MenuManualForm.cpp): `soft_pc/MenuManualForm.cpp`
- [Preheat screen](https://github.com/kwwsoft/irstation_448/blob/master/soft_pc/MenuPreHeatForm.cpp): `soft_pc/MenuPreHeatForm.cpp`
- [Preheat PID](https://github.com/kwwsoft/irstation_448/blob/master/soft_pc/GyverPIDPreHeatForm.h): `soft_pc/GyverPIDPreHeatForm.h`
- [Historical data](https://github.com/kwwsoft/irstation_448/blob/master/soft_pc/MenuOldDatalForm.cpp): `soft_pc/MenuOldDatalForm.cpp`
- [About screen](https://github.com/kwwsoft/irstation_448/blob/master/soft_pc/about.cpp): `soft_pc/about.cpp`

### Station firmware

- [PIC controller](https://github.com/kwwsoft/irstation_448/blob/master/soft/irs448.c): `soft/irs448.c`
- [Hardware initialization](https://github.com/kwwsoft/irstation_448/blob/master/soft/global.c): `soft/global.c`
- [Resistor sensing](https://github.com/kwwsoft/irstation_448/blob/master/soft/adc_resistor.c): `soft/adc_resistor.c`
- [Manual control](https://github.com/kwwsoft/irstation_448/blob/master/soft/manual.c): `soft/manual.c`
- [Firmware variables](https://github.com/kwwsoft/irstation_448/blob/master/soft/variables.c): `soft/variables.c`

### Hardware design

- [Main board layout](https://github.com/kwwsoft/irstation_448/blob/master/hard/main.lay): `hard/main.lay`
- [Regulator design](https://github.com/kwwsoft/irstation_448/blob/master/hard/reguljator_main.spl7): `hard/reguljator_main.spl7`
- [Power layout](https://github.com/kwwsoft/irstation_448/blob/master/hard/power.lay): `hard/power.lay`

### Other components

- **Operator**

## Connections

- Operator → PC entry point: starts
- PC entry point → Station interface: creates form (evidence: `soft_pc/irstation.cpp`)
- PC entry point → Automatic mode: creates form (evidence: `soft_pc/irstation.cpp`)
- PC entry point → Manual screen: creates form (evidence: `soft_pc/irstation.cpp`)
- PC entry point → Preheat screen: creates form (evidence: `soft_pc/irstation.cpp`)
- PC entry point → Historical data: creates form (evidence: `soft_pc/irstation.cpp`)
- PC entry point → About screen: creates form (evidence: `soft_pc/irstation.cpp`)
