CH1 Instruments · 2025 · role

Electronics and embedded engineer, PhovIR

Firmware and electronics for a handheld spectrometer at a start-up.

What I did

I wrote the ESP32 firmware and device drivers, including control of the high-voltage MEMS drive. I led the layout review, then brought up the boards we assembled as a team.

Result

By the end of my contract, readings were coming through to a console window. What bring-up found went into the next revision.

The company

PhovIR is a University of Manchester spin-out making a handheld, MEMS-based infrared (FTIR) spectrometer (PhovIR on LinkedIn). I joined on a three-month contract to set up the embedded and electronics side, taking the device from an early concept towards a consumer-ready prototype.

The firmware

The firmware I wrote. The spectrum depends on the timing between moving the MEMS and reading the photodiode.

Three months, two strands

The order of the work. Only the start and the end are dated. The layout review started at the photodiode, then took in EMC and ease of production.

The device, on PhovIR's site

PhovIR's MIEYRA NIR/MIR page shows the device as it is now. It has come a long way since I worked on it in its early days, when the first boards were built and brought up. These pictures are PhovIR's.

The MIEYRA unit taken apart on a dark background: an open black housing, four circuit boards stacked on brass standoffs with a gold sensor board at the front, and the closed housing with its lens.
The MIEYRA unit taken apart, as it is now. © PhovIR
A blue PhovIR circuit board labelled MEMS module, with a gold sensor package in the middle and a fine-pitch connector at each side.
The MEMS module board, as it is now. © PhovIR
PhovIR's Cortica software: an interferogram plotted against mirror displacement at the top, the spectrum worked out from it below, with a list of captures on the right.
PhovIR's Cortica software, which came later: the interferogram above, the spectrum worked out from it below. © PhovIR
The black MIEYRA unit on a cable beside a shot glass, next to a chart of spectra for pure methanol, pure vodka and mixes of the two.
Spectra of methanol in vodka, measured with the unit. © PhovIR
A chart of mean spectra for a set of plastics, next to a hand holding a white sample up to the MIEYRA unit.
Mean spectra of a set of plastics, measured with the unit. © PhovIR

More detail

How we got there

The embedded side started with the ESP32 firmware: drivers for the ADCs and DACs, then control of the high-voltage MEMS drive. The spectrum depends on the timing between moving the MEMS and reading the photodiode, so the firmware was interrupt-driven to keep that latency low. A separate hardware layer left room for MQTT or a web interface later. I wrote it in C++ with AI coding agents, backed by automated tests. By the end of my contract, readings were coming through to a console window.

While the first boards were being laid out, I led the engineering review. Placement started at the photodiode, where heat, coupling and leakage decide how clean the signal is. EMC and ease of production were part of the same review.

Once the boards arrived, we assembled them as a team. Bringing them up was my job, the MEMS drive included, as was fault-finding at board and system level. What we found went into the next revision.

Skills

  • ESP32
  • embedded firmware
  • C++
  • device drivers
  • real-time firmware
  • MEMS drive control
  • test automation
  • AI coding agents
  • PCB layout review
  • photodiode front ends
  • EMI and grounding
  • design for manufacture
  • board bring-up
  • fault-finding

Proof