Built as a selected KTH university–industry R&D project with Proximion AB for a 4-channel fiber-optic (Fiber Bragg Grating) sensor interrogator prototype running on a GD32VF103 RISC-V microcontroller.
Firmware and control loop
The firmware runs on FreeRTOS with separate tasks communicating over non-blocking queues instead of shared global state:
- Sensing and TEC control: Samples an NTC thermistor via ADC with digital filtering, converts readings with the Steinhart–Hart equation, and drives a thermoelectric cooler/heater through an 8 Hz PID loop and 20 kHz PWM H-bridge driver.
- USB / virtual COM port protocol: Deterministic binary framing between the MCU and PC host with state-machine parsing, sequence tracking, and CRC validation, paired with crash-state capture hooks.
- On-device display: Drives an LCD readout for live temperature, PWM duty cycle, and diagnostics.
Host tool and build infrastructure
On the host side, we built a C#/.NET desktop control and visualization interface for configuring the board and inspecting live sensor data. To keep builds identical across Windows, macOS, and Linux, I set up a cross-platform GNU Make build system and a self-hosted Linux GitLab CI pipeline using hermetic Docker containers for reproducible builds, formatting checks, and automated releases.