← Commit history

Explain software self-calibration instead of trimpots

John Lauer ·1931ebc8c4 · ·parent f28373f
1 file changed +15
README.md+15
@@ -30,6 +30,21 @@  *Test stage: a stepper, a fine screw and a flexure lever move the mirror about 16 nm per step, a small slice of one fringe, while the dashboard counts it.* +## It calibrates itself: no trimpots++In his video, Breaking Taps turns a trim pot by hand to set the laser power. This board has no trimpots and no jumpers to move. Software sets the laser current, both offsets, the gains and the monitor bias through DACs and analog switches. That means the dashboard can do the calibration for you:++- **Zero the current readback.** With the laser off, it measures the head's current sense and stores the offset. The laser can't turn on until that is done.+- **Centre both channels** (`smi-dash offset auto`). It moves each offset DAC until the signal sits in the middle of the ADC's range. That takes 2 to 3 steps per channel, about half a second, in the simulator.+- **Tune for fringes** (`smi-dash tune`). It sweeps the laser current and re-centres the signal at each step. Each step is scored by fringe size against noise, with clipping penalised. Then it refines around the best current and tries each gain. A sweep takes about 10 seconds and needs a moving target, which the [test stage](test-stage/README.md) is designed to provide.+- **Check every setting.** The Pico reads the laser set-point back from its DAC before the laser can turn on, and the head measures the real laser current 50 times a second and shuts off above its limit.++Every step is also a command, so an AI or a script can retune the board whenever the laser, the mirror or the temperature changes.++<img src="software/screenshots/controls-tuned.png?v=198a825b" width="900" alt="The Controls tab after an automatic tune">++*The Controls tab after an automatic tune, in the simulator: the laser current, gain and offsets were all set by software. Tune and auto-centre have not been run on a physical board yet. Details are in the [software guide](software/README.md).*+ ## Overview  The interferometer measures displacement from light reflected into the laser cavity. The **104 × 104 mm main board** conditions both photodiode channels and samples them with a Raspberry Pi Pico. The **82 × 82 mm head** connects to the fixture-mounted laser and carries its driver, current-sense ADC and monitor amplifier. Both boards have two copper layers. Compared with 1.2.1, main-board area falls from 14,124 to 10,816 mm² (23.4%) and head-board area from 8,526 to 6,724 mm² (21.1%).